]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Mark lazy tlsdesc helper functions unused to avoid warnings
[thirdparty/glibc.git] / ChangeLog
1 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2
3 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
4 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
5
6 2017-11-02 Joseph Myers <joseph@codesourcery.com>
7
8 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
9 Declare.
10 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
11 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
12 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
13 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
14 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
15 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
16 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
17 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
18 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
19 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
20 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
21
22 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23
24 [BZ #22382]
25 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
26 * localedata/locales/tpi_PG: Add standard header.
27
28 2017-11-02 Florian Weimer <fweimer@redhat.com>
29
30 test-errno-linux: quotactl can fail with EPERM in containers.
31 * sysdeps/unix/sysv/linux/test-errno-linux.c
32 (LIST, LIST_FORWARD): New macros.
33 (check_error_in_list): New function.
34 (test_wrp_rv): Accept list of permitted error codes.
35 (test_wrp_rv2): Remove.
36 (test_wrp): Call test_wrp_rv with list of error codes.
37 (test_wrp2): Accept list of error codes.
38 (do_test): Adjust. Allow EPERM for quotactl.
39
40 2017-11-02 Florian Weimer <fweimer@redhat.com>
41
42 * stdio-common/bug16.c (do_test): Use array_length.
43 * stdio-common/errlist.c (_sys_nerr): Likewise.
44 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
45 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
46 * stdio-common/psiginfo.c (psiginfo): Use array_length.
47 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
48 (do_test): Use array_length.
49 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
50 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
51 * stdio-common/tst-printf-round.c (do_test): Likewise.
52 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
53 (CHECK): Use array_length.
54 * stdio-common/tstdiomisc.c (t3, F): Likewise.
55 * stdio-common/tstscanf.c (main): Likewise.
56 * stdio-common/vfprintf.c (process_string_arg): Likewise.
57
58 2017-11-02 Florian Weimer <fweimer@redhat.com>
59
60 Add array_length and array_end macros.
61 * include/array_length.h: New file.
62
63 2017-11-02 Florian Weimer <fweimer@redhat.com>
64
65 [BZ #22332]
66 * posix/tst-glob-tilde.c (do_noescape): New variable.
67 (one_test): Process it.
68 (do_test): Set do_noescape. Add unescaping test case.
69
70 2017-11-01 Joseph Myers <joseph@codesourcery.com>
71
72 * math/complex.h
73 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
74 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
75 with appropriate macros defined and undefined.
76 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
77 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
78 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
79 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
80 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
81 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
82 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
83 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
84 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
85 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
86
87 * math/complex.h
88 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
89 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
90 that for long double. Do not condition define and undefine of
91 _Mdouble_complex_ on [__CFLOAT128].
92
93 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
94
95 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
96 of <sysdeps/generic/sysdep.h>.
97 (ALIGNARG): Removed.
98 (ASM_SIZE_DIRECTIVE): Likewise.
99 (ENTRY): Likewise.
100 (END): Likewise.
101 (ENTRY_CHK): Likewise.
102 (END_CHK): Likewise.
103 (syscall_error): Likewise.
104 (mcount): Likewise.
105 (PSEUDO_END): Likewise.
106 (L): Likewise.
107 (atom_text_section): Likewise.
108 * sysdeps/x86/sysdep.h: New file.
109 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
110 of <sysdeps/generic/sysdep.h>.
111 (ALIGNARG): Removed.
112 (ASM_SIZE_DIRECTIVE): Likewise.
113 (ENTRY): Likewise.
114 (END): Likewise.
115 (ENTRY_CHK): Likewise.
116 (END_CHK): Likewise.
117 (syscall_error): Likewise.
118 (mcount): Likewise.
119 (PSEUDO_END): Likewise.
120 (L): Likewise.
121 (atom_text_section): Likewise.
122
123 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
124
125 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
126 category of LC_CTYPE set to "i18n:2012".
127 * localedata/locales/i18n_ctype: Regenerate.
128
129 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
130
131 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
132 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
133 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
134 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
135
136 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
137 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
138 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
139 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
140
141 2017-10-31 Joseph Myers <joseph@codesourcery.com>
142
143 * math/complex.h
144 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
145 New macro.
146 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
147 Likewise.
148 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
149 Likewise.
150 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
151 (CMPLXF32X): Likewise.
152 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
153 (CMPLXF64X): Likewise.
154 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
155 (CMPLXF128X): Likewise.
156
157 * math/math.h
158 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
159 (__MATH_EVAL_FMT2): Define to add 0.0f.
160
161 2017-10-31 Alan Modra <amodra@gmail.com>
162
163 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
164 include sysdep.h.
165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
176 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
177 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
179 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
180 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
181 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
182 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
183 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
184 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
185 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
186 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
187 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
188 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
189 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
190 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
191 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
192 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
193 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
194 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
195 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
196 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
197 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
198 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
199 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
200 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
201 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
202 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
203 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
204 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
205 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
206 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
207 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
208 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
209 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
210 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
211 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
212 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
213 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
214 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
215 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
216 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
217 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
218 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
219 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
220 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
221 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
222 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
223 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
224 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
225 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
226 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
227 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
228 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
229 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
230 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
231 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
232 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
233 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
234
235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
236 include sysdep.h and math_ldbl_opt.h.
237
238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
239 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
240 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
248 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
264
265 2017-10-31 Alan Modra <amodra@gmail.com>
266
267 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
268 string/strncase_l.c, not string/strncase.c.
269 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
270 (libc_hidden_def): Redefine.
271
272 2017-10-31 Alan Modra <amodra@gmail.com>
273
274 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
275 (__STRCMP, STRCMP, __strcasecmp_l): Define.
276 (__strcasecmp): Don't define.
277
278 2017-10-31 Alan Modra <amodra@gmail.com>
279
280 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
281 IS_IN (libc).
282 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
283 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
284 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
285
286 2017-10-31 Alan Modra <amodra@gmail.com>
287
288 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
289 USE_AS_STPNCPY.
290
291 2017-10-31 Alan Modra <amodra@gmail.com>
292
293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
294 Redefine only when SHARED.
295
296 2017-10-30 Joseph Myers <joseph@codesourcery.com>
297
298 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
299 Include <bits/math-finite.h> with appropriate macros defined and
300 undefined.
301 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
302 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
303 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
304 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
305 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
306
307 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
308 [!_Mlong_double_] (_Mlong_double_): Likewise.
309 [!_Mfloat16_] (_Mfloat16_): Likewise.
310 [!_Mfloat32_] (_Mfloat32_): Likewise.
311 [!_Mfloat64_] (_Mfloat64_): Likewise.
312 [!_Mfloat128_] (_Mfloat128_): Likewise.
313 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
314 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
315 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
316 (_Mdouble_): Define without indirection through those macros.
317 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
318 [!_Mfloat128_] (_Mfloat128_): Likewise.
319 [_Mlong_double_] (_Mlong_double_): Likewise.
320 (_Mdouble_): Define without indirection through those macros.
321 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
322 not add -D_Mlong_double_=double.
323 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
324 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
325
326 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
327
328 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
329
330 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
331
332 * sysdeps/x86/libc-start.c: Reformat.
333
334 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
335
336 [BZ #22353]
337 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
338 (1): Renamed to ...
339 (L(Src0)): This.
340 (L(Src1)): New.
341 (L(Src2)): Likewise.
342 (L(1)): Renamed to ...
343 (L(Src3)): This.
344
345 2017-10-30 Joseph Myers <joseph@codesourcery.com>
346
347 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
348 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
349 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
350 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
351 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
352 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
353 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
354 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
355 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
356 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
357 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
358 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
359 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
360 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
361 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
362 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
363 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
364 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
365 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
366 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
367 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
368 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
369 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
370 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
371 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
372 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
373 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
374 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
375 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
376 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
377 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
378 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
379 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
380 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
381 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
382 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
383 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
384 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
385 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
386 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
387 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
388 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
389 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
390 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
391 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
392 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
393 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
394 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
395 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
396 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
397 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
398 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
399 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
400 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
401 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
402 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
403 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
404 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
405 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
406 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
407 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
408 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
409 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
410 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
411 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
412 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
413
414 2017-10-30 Florian Weimer <fweimer@redhat.com>
415
416 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
417 always defined.
418 * io/tst-mkdirat.c (do_test): Likewise.
419 * io/tst-mkfifoat.c (do_test): Likewise.
420 * io/tst-mknodat.c (do_test): Likewise.
421 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
422 * locale/programs/locale.c (select_dirs): Likewise.
423 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
424 * posix/bug-glob2.c (my_readdir): Likewise.
425 * posix/tst-dir.c (main): Likewise.
426 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
427 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
428
429 2017-10-30 Florian Weimer <fweimer@redhat.com>
430
431 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
432 just __USE_GNU.
433
434 2017-10-30 Florian Weimer <fweimer@redhat.com>
435
436 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
437 Convert to support/test-driver.c.
438 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
439 New macro parameters.
440 (PRINTF): Remove macro. Use test_verbose conditionals instead.
441 * posix/tst-gnuglob.c: New file.
442 * posix/tst-gnuglob64.c: Likewise.
443 * posix/Makefile (tests): Add tst-gnuglob64.
444
445 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
446
447 [BZ #19485]
448 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
449 and use a better translation for March in “mon”.
450 * localedata/locales/csb_PL: Use more ASCII to improve the
451 readability of the source.
452
453 2017-10-30 Mike FABIAN <mfabian@redhat.com>
454
455 [BZ #13953]
456 * localedata/locales/km_KH: Use ASCII as much
457 as possible for better readability of the source and
458 remove useless comments.
459 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
460 was commented out and apparently wrong anyway because it was
461 using Lao characters. If Buddhist era should be used
462 for km_KH, a native speaker should write the correct formaat
463 for Khmer.
464 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
465 (According to CLDR, the first weekday for Cambodia is Sunday).
466 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
467 (These were using Lao characters which must be wrong. If we get
468 the correct data from a native speaker, we could add it back, until
469 then it is better not to have name_mr and name_mrs at all than
470 having it wrong).
471
472 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
473
474 * locale/loadlocale.c: Correct size of
475 _nl_value_type_LC_<category> arrays.
476
477 2017-10-27 Joseph Myers <joseph@codesourcery.com>
478
479 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
480 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
481 with appropriate macros defined and undefined.
482 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
483 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
484 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
485 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
486 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
487
488 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
489
490 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
491 "-O2 -march=i586".
492
493 2017-10-27 Mike FABIAN <mfabian@redhat.com>
494
495 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
496 with lowercase letters to make it agree with CLDR.
497
498 2017-10-27 Mike FABIAN <mfabian@redhat.com>
499
500 [BZ #15260]
501 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
502 first letters of yesstr and nostr in yesexpr and noexpr,
503 not for the full words.
504 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
505 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
506 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
507 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
508 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
509 first letters of yesstr and nostr in yesexpr and noexpr,
510 until now only English was matched in yesexpr and noexpr.
511 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
512 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
513 fil but not for tl. As tl and fil are very similar, using fil
514 is probably better than using English.
515
516 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
517
518 [BZ #21706]
519 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
520 in yesstr and nostr.
521
522 2017-10-26 Joseph Myers <joseph@codesourcery.com>
523
524 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
525 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
526 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
527 Likewise.
528 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
529 Likewise.
530 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
531 Likewise.
532 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
533 Likewise.
534 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
535 (SNANF128X): Likewise.
536
537 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
538 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
539 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
540 (HUGE_VAL_F32): Likewise.
541 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
542 (HUGE_VAL_F64): Likewise.
543 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
544 (HUGE_VAL_F32X): Likewise.
545 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
546 (HUGE_VAL_F64X): Likewise.
547 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
548 (HUGE_VAL_F128X): Likewise.
549
550 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
551
552 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
553 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
554 for the br_FR locale.
555
556 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
557
558 [BZ #21706]
559 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
560
561 2017-10-25 Carlos O'Donell <carlos@redhat.com>
562
563 * locale/programs/record-status.h: Define globals, and function
564 prototypes. Move function bodies...
565 * locale/programs/record-status.c: ... to here. New file.
566 * iconv/Makefile (iconv_prog-modules): Add record-status.
567 * locale/Makefile (lib-modules): Likewise.
568 * iconv/iconv_prog.c: Remove verbose.
569 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
570 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
571 record a warning about ASCII compatibility.
572 * locale/programs/ld-monetary.c (monetary_finish): If
573 warn_int_curr_symbol is true then record a warning about the symbol
574 not being in our ISO 4217 list.
575 * locale/programs/locale.c: Include record-status.h. Remove verbose.
576 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
577 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
578 (OPT_NO_WARN): Define.
579 (OPT_WARN): Define.
580 (options): Add entry for --no-warnings, and --warnings.
581 (set_warnings): New function to enable/disable warnings.
582 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
583 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
584 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
585 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
586 Pass flags to generate_locale.
587 (generate_locale): Accept new flag argument and pass it to localedef
588 invocation.
589 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
590 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
591
592 * localedata/Makefile (test-input-data): Use full file name.
593 * localedata/da_DK.in: Rename to...
594 * localedata/da_DK.ISO-8859-1.in: ...this.
595 * localedata/de_DE.in: Rename to...
596 * localedata/de_DE.ISO-8859-1.in: ...this.
597 * localedata/en_US.in: Rename to...
598 * localedata/en_US.ISO-8859-1.in: ...this.
599 * localedata/fr_FR.in: Rename to...
600 * localedata/fr_FR.UTF-8.in: ... this.
601 * localedata/hr_HR.in: Rename to...
602 * localedata/hr_HR.ISO-8859-2.in: ...this.
603 * localedata/hu_HU.in: Rename to...
604 * localedata/hu_HU.UTF-8.in: ...this.
605 * localedata/si_LK.in: Rename to...
606 * localedata/si_LK.UTF-8.in: ...this.
607 * localedata/sv_SE.in: Rename to...
608 * localedata/sv_SE.ISO-8859-1.in: ...this.
609 * localedata/tr_TR.in: Rename to...
610 * localedata/tr_TR.UTF-8.in: ...this.
611 * localedata/uk_UA.in: Rename to...
612 * localedata/uk_UA.UTF-8.in: ...this.
613 * localedata/sort-test.sh: Test file is locale name with the
614 suffix.
615
616 * localedata/unicode-gen/Makefile (check_i18n): Rename to
617 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
618 file.
619 * localedata/locales/i18n_ctype: Regenerate.
620 * localedata/locales/tr_TR: Likewise.
621 * localedata/locales/translit_circle: Likewise.
622 * localedata/locales/translit_cjk_compat: Likewise.
623 * localedata/locales/translit_combining: Likewise.
624 * localedata/locales/translit_compat: Likewise.
625 * localedata/locales/translit_font: Likewise.
626 * localedata/locales/translit_fraction: Likewise.
627
628 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
629
630 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
631 lxvd2x/stxvd2x with lvx/stvx.
632 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
633
634 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
635
636 * include/alloc_buffer.h: Replace "if if " with "if " in
637 comments.
638 * sysdeps/mips/memcpy.S: Likkewise.
639 * sysdeps/mips/memset.S: Likewise.
640 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
641 Likewise.
642 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
643 Likewise.
644 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
645 Likewise.
646
647 2017-10-25 Mike FABIAN <mfabian@redhat.com>
648
649 [BZ #15261]
650 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
651 yesexpr and noexpr.
652 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
653 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
654 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
655 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
656 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
657 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
658 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
659
660 2017-10-25 Mike FABIAN <mfabian@redhat.com>
661
662 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
663 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
664 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
665 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
666 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
667 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
668 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
669 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
670 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
671 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
672 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
673 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
674
675 2017-10-25 Mike FABIAN <mfabian@redhat.com>
676
677 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
678 as possible for better readability of the source.
679 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
680 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
681 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
682 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
683 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
684 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
685 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
686 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
687 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
688 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
689 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
690 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
691 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
692 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
693 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
694 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
695 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
696 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
697 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
698 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
699 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
700 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
701 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
702 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
703 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
704 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
705 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
706 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
707 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
708 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
709 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
710 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
711 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
712 * localedata/locales/en_US (LC_MESSAGES): Likewise.
713 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
714 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
715 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
716 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
717 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
718 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
719 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
720 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
721 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
722 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
723 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
724 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
725 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
726 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
727 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
728 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
729 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
730 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
731 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
732 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
733 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
734 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
735 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
736 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
737 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
738 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
739 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
740 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
741 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
742 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
743 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
744 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
745 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
746 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
747 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
748 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
749 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
750 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
751 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
752 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
753 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
754 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
755 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
756 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
757 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
758 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
759 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
760 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
761 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
762 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
763 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
764 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
765 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
766 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
767 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
768 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
769 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
770 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
771 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
772 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
773 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
774 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
775 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
776 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
777 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
778 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
779 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
780 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
781 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
782 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
783 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
784 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
785 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
786 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
787 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
788 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
789 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
790 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
791 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
792 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
793 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
794 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
795 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
796 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
797 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
798 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
799 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
800 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
801 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
802 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
803 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
804 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
805 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
806 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
807 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
808 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
809 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
810 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
811 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
812 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
813 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
814 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
815 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
816 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
817 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
818 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
819 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
820 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
821 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
822 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
823 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
824 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
825 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
826 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
827 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
828 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
829 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
830 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
831 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
832 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
833 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
834 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
835 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
836 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
837 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
838 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
839 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
840 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
841 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
842 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
843 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
844 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
845 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
846 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
847 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
848 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
849 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
850 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
851 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
852 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
853
854 2017-10-25 Mike FABIAN <mfabian@redhat.com>
855
856 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
857 (Use first letters of yesstr and nostr correctly instead of using
858 full words).
859
860 2017-10-25 Mike FABIAN <mfabian@redhat.com>
861
862 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
863 (Use first letters of yesstr and nostr correctly).
864
865 2017-10-25 Mike FABIAN <mfabian@redhat.com>
866
867 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
868 also check for the first characters of yesstr and nostr.
869 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
870 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
871
872 2017-10-25 Mike FABIAN <mfabian@redhat.com>
873
874 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
875 also check for Chinese characters.
876
877 2017-10-25 Mike FABIAN <mfabian@redhat.com>
878
879 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
880 match also for the contents of yesstr and nostr. As the first letter
881 of yesstr and nostr is equal, checking only for the first letter
882 is not enough.
883
884 2017-10-25 Mike FABIAN <mfabian@redhat.com>
885
886 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
887 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
888
889 2017-10-25 Mike FABIAN <mfabian@redhat.com>
890
891 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
892 of main contributor.
893
894 2017-10-25 Mike FABIAN <mfabian@redhat.com>
895
896 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
897 instead of using English.
898
899 2017-10-25 Mike FABIAN <mfabian@redhat.com>
900
901 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
902 by including the first letters of nostr and yesexpr in the regexp.
903 Also make it more readable by using ASCII where possible.
904
905 2017-10-25 Mike FABIAN <mfabian@redhat.com>
906
907 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
908 the first letter of nostr in the regexp. It agrees with CLDR now.
909 Also make it more readable by using ASCII where possible.
910
911 2017-10-24 Mike FABIAN <mfabian@redhat.com>
912
913 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
914 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
915 these strings contain a U+17D6 (which somewhat looks like a colon)
916 instead of a real colon to separate the full words for “yes”
917 and “no” from the single letter responses.
918
919 2017-10-24 Mike FABIAN <mfabian@redhat.com>
920
921 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
922 it agree with CLDR (include the first letter of yesstr).
923 Also make it more readable by using ASCII where possible.
924
925 2017-10-24 Mike FABIAN <mfabian@redhat.com>
926
927 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
928 and improve yesexpr and noexpr. The yesstr and nostr apparently
929 came from CLDR. And CLDR has a bug there: these strings contain
930 a U+0903 (which looks like a colon) instead of a real colon
931 to separate the full words for “yes” and “no” from the single
932 letter responses.
933
934 2017-10-24 Mike FABIAN <mfabian@redhat.com>
935
936 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
937 letters of the full yesstr and nostr in yesexpr and noexpr.
938
939 2017-10-24 Mike FABIAN <mfabian@redhat.com>
940
941 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
942 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
943 * localedata/locales/an_ES: Make source more readable by using ASCII
944 where possible.
945
946 2017-10-24 Mike FABIAN <mfabian@redhat.com>
947
948 [BZ #20952]
949 * localedata/locales/yuw_PG: New file.
950 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
951 * locale/iso-639.def: Add Yau (Uruwa).
952
953 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
954
955 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
956
957 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
958
959 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
960 (__libc_realloc): Likewise.
961 (_mid_memalign): Likewise.
962 (__libc_calloc): Likewise.
963
964 2017-10-23 Mike FABIAN <mfabian@redhat.com>
965
966 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
967 by adding the generic +1 and -0 as in all other locales.
968 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
969 day names and make it more readable by using ASCII where possible.
970
971 2017-10-24 Joseph Myers <joseph@codesourcery.com>
972
973 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
974 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
975
976 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
977
978 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
979 WNOHANG in waitpid call.
980
981 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
982
983 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
984 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
985
986 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
987 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
988 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
989 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
990 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
991 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
992 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
993 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
994 variables.
995
996 2017-10-23 Michael Collison <michael.collison@arm.com>
997
998 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
999 with __builtin_sqrt.
1000 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
1001 with __builtin_sqrtf.
1002 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
1003 with __builtin_ceil.
1004 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
1005 with __builtin_ceilf.
1006 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
1007 with __builtin_floor.
1008 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
1009 with __builtin_floorf.
1010 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
1011 with __builtin_fma.
1012 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
1013 with __builtin_fmaf.
1014 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
1015 with __builtin_fmax.
1016 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
1017 with __builtin_fmaxf.
1018 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
1019 with __builtin_fmin.
1020 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
1021 with __builtin_fminf.
1022 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
1023 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
1024 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
1025 with builtin_rint and conversion to int.
1026 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
1027 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
1028 with builtin_llround.
1029 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
1030 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
1031 with builtin_rint and conversion to long int.
1032 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
1033 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
1034 with builtin_lround.
1035 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
1036 with builtin_lroundf.
1037 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
1038 statements with __builtin_nearbyint.
1039 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
1040 statements with __builtin_nearbyintf.
1041 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
1042 with __builtin_rint.
1043 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
1044 with __builtin_rintf.
1045 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
1046 with __builtin_round.
1047 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
1048 with __builtin_roundf.
1049 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
1050 with __builtin_trunc.
1051 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
1052 with __builtin_truncf.
1053 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
1054 and s_l[l]round[f].c too.
1055
1056 2017-10-23 Alan Modra <amodra@gmail.com>
1057
1058 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
1059 Adjust stack after restoring regs. Add missing LR cfi_restore.
1060
1061 2017-10-23 Alan Modra <amodra@gmail.com>
1062
1063 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
1064 Move LR save and frame setup/teardown and LR restore to
1065 immediately around memset call. Provide cfi.
1066
1067 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1068
1069 * sysdeps/i386/fpu/e_powf.S: Removed.
1070 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
1071 * sysdeps/i386/fpu/w_powf.c: Likewise.
1072 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
1073 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1074 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1075 Add e_powf-sse2.
1076 (CFLAGS-e_powf-sse2.c): New.
1077 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
1078 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
1079
1080 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1081
1082 * sysdeps/i386/fpu/e_log2f.S: Removed.
1083 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
1084 * sysdeps/i386/fpu/w_log2f.c: Likewise.
1085 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
1086 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1087 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1088 Add e_log2f-sse2.
1089 (CFLAGS-e_log2f-sse2.c): New.
1090 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
1091 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
1092
1093 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1094
1095 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1096 Add e_powf-fma.
1097 (CFLAGS-e_powf-fma.c): New.
1098 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
1099 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
1100
1101 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1102
1103 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1104 Add e_log2f-fma.
1105 (CFLAGS-e_log2f-fma.c): New.
1106 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
1107 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
1108
1109 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1110
1111 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1112 Add e_logf-fma.
1113 (CFLAGS-e_logf-fma.c): New.
1114 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
1115 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
1116
1117 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 * sysdeps/i386/fpu/e_logf.S: Removed.
1120 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
1121 * sysdeps/i386/fpu/w_logf.c: Likewise.
1122 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
1123 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
1124 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1125 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1126 Add e_logf-sse2.
1127 (CFLAGS-e_logf-sse2.c): New.
1128 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
1129 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
1130
1131 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1132
1133 * sysdeps/i386/fpu/e_exp2f.S: Removed.
1134 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
1135 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
1136 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1137 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1138 Add e_exp2f-sse2.
1139 (CFLAGS-e_exp2f-sse2.c): New.
1140 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
1141 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
1142
1143 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1144
1145 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1146 Add e_exp2f-fma.
1147 (CFLAGS-e_exp2f-fma.c): New.
1148 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
1149 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
1150
1151 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1152
1153 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
1154 * sysdeps/i386/fpu/e_expf.S: Likewise.
1155 * sysdeps/i386/fpu/math_errf.c: Likewise.
1156 * sysdeps/i386/fpu/w_expf.c: Likewise.
1157 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
1158 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1159 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
1160 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
1161 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1162 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1163 Remove e_expf-ia32.
1164 (CFLAGS-e_expf-sse2.c): New.
1165 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
1166 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
1167
1168 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
1169
1170 * sysdeps/x86_64/fpu/e_expf.S: Removed.
1171 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
1172 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
1173 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
1174 e_expf.c.
1175 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
1176 New.
1177 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
1178 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1179 Renamed to ...
1180 (__redirect_expf): This.
1181 (SYMBOL_NAME): Changed to expf.
1182 (__ieee754_expf): Renamed to ...
1183 (__expf): This.
1184 (__GI___expf): This.
1185 (__ieee754_expf): Add strong_alias.
1186 (__expf_finite): Likewise.
1187 (__expf): New.
1188 Include <sysdeps/ieee754/flt-32/e_expf.c>.
1189
1190 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
1191
1192 [BZ #22332]
1193 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
1194 unescaping.
1195
1196 2017-10-21 Florian Weimer <fweimer@redhat.com>
1197
1198 * posix/Makefile (tests): Add tst-glob-tilde.
1199 (tests-special): Add tst-glob-tilde-mem.out
1200 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
1201 (tst-glob-tilde-mem.out): Add mtrace check.
1202 * posix/tst-glob-tilde.c: New file.
1203
1204 2017-10-20 Joseph Myers <joseph@codesourcery.com>
1205
1206 * bits/floatn-common.h: New file.
1207 * math/Makefile (headers): Add bits/floatn-common.h.
1208 * bits/floatn.h: Include <bits/floatn-common.h>.
1209 * sysdeps/ia64/bits/floatn.h: Likewise.
1210 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1211 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
1212 * sysdeps/powerpc/bits/floatn.h: Likewise.
1213 * sysdeps/x86/bits/floatn.h: Likewise.
1214
1215 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1216
1217 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
1218 indicates whether compiler emits an warning for alias for
1219 functions with incompatible types.
1220
1221 [BZ #22273]
1222 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
1223 the auxiliary process is terminated by a signal before calling _exit
1224 or execve.
1225
1226 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
1227
1228 [BZ #21265]
1229 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
1230 New.
1231 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
1232 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
1233 and bit_arch_XSAVEC_Usable if needed.
1234 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
1235 and bit_arch_Use_dl_runtime_resolve_opt.
1236 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1237 Removed.
1238 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1239 (bit_arch_Prefer_No_AVX512): Updated.
1240 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
1241 (bit_arch_XSAVEC_Usable): New.
1242 (STATE_SAVE_OFFSET): Likewise.
1243 (STATE_SAVE_MASK): Likewise.
1244 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
1245 (cpu_features): Add xsave_state_size and xsave_state_full_size.
1246 (index_arch_Use_dl_runtime_resolve_opt): Removed.
1247 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1248 (index_arch_XSAVEC_Usable): New.
1249 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1250 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
1251 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
1252 is enabled.
1253 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1254 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
1255 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
1256 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
1257 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
1258 _dl_runtime_resolve_xsavec.
1259 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
1260 Removed.
1261 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
1262 instead of VEC_SIZE.
1263 (REGISTER_SAVE_BND0): Removed.
1264 (REGISTER_SAVE_BND1): Likewise.
1265 (REGISTER_SAVE_BND3): Likewise.
1266 (REGISTER_SAVE_RAX): Always defined to 0.
1267 (VMOV): Removed.
1268 (_dl_runtime_resolve_avx): Likewise.
1269 (_dl_runtime_resolve_avx_slow): Likewise.
1270 (_dl_runtime_resolve_avx_opt): Likewise.
1271 (_dl_runtime_resolve_avx512): Likewise.
1272 (_dl_runtime_resolve_avx512_opt): Likewise.
1273 (_dl_runtime_resolve_sse): Likewise.
1274 (_dl_runtime_resolve_sse_vex): Likewise.
1275 (USE_FXSAVE): New.
1276 (_dl_runtime_resolve_fxsave): Likewise.
1277 (USE_XSAVE): Likewise.
1278 (_dl_runtime_resolve_xsave): Likewise.
1279 (USE_XSAVEC): Likewise.
1280 (_dl_runtime_resolve_xsavec): Likewise.
1281 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
1282 Removed.
1283 (_dl_runtime_resolve_avx512_opt): Likewise.
1284 (_dl_runtime_resolve_avx): Likewise.
1285 (_dl_runtime_resolve_avx_opt): Likewise.
1286 (_dl_runtime_resolve_sse): Likewise.
1287 (_dl_runtime_resolve_sse_vex): Likewise.
1288 (_dl_runtime_resolve_fxsave): New.
1289 (_dl_runtime_resolve_xsave): Likewise.
1290 (_dl_runtime_resolve_xsavec): Likewise.
1291
1292 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
1293
1294 [BZ #22320]
1295 CVE-2017-15670
1296 * posix/glob.c (__glob): Fix one-byte overflow.
1297
1298 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1299
1300 * malloc/malloc.c (sysdep-cancel.h): Add include.
1301
1302 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1303
1304 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
1305
1306 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
1307
1308 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
1309 (tests): Remove $(objpfx)ga_test depdendency.
1310 * resolv/ga_test.c: Remove file.
1311
1312 2017-10-20 Mike FABIAN <mfabian@redhat.com>
1313
1314 [BZ #18812]
1315 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
1316 * localedata/locales/kab_DZ: New file.
1317
1318 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
1319
1320 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
1321 _dl_relocate_static_pie instead of _dl_start to compute load
1322 address in static PIE.
1323
1324 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
1325
1326 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
1327
1328 2017-10-20 Mike FABIAN <mfabian@redhat.com>
1329
1330 [BZ #13605]
1331 * localedata/SUPPORTED: Add shn_MM/UTF-8.
1332 * localedata/locales/shn_MM: New file.
1333
1334 2017-10-20 Florian Weimer <fweimer@redhat.com>
1335
1336 [BZ #22321]
1337 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
1338 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
1339 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
1340 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
1341 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
1342 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
1343
1344 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
1345
1346 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1347
1348 2017-10-19 Joseph Myers <joseph@codesourcery.com>
1349
1350 * sysdeps/mips/ieee754/bits/floatn.h: New file.
1351
1352 [BZ #22322]
1353 * sysdeps/mips/bits/long-double.h: Move to ....
1354 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
1355
1356 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
1357
1358 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
1359
1360 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
1361 H.J. Lu <hongjiu.lu@intel.com>
1362
1363 [BZ #22299]
1364 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
1365 GLRO(dl_platform) to NULL.
1366 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
1367 (modules-names): Add tst-platformmod-1 and
1368 x86_64/tst-platformmod-2.
1369 (CFLAGS-tst-platform-1.c): New.
1370 (CFLAGS-tst-platformmod-1.c): Likewise.
1371 (CFLAGS-tst-platformmod-2.c): Likewise.
1372 (LDFLAGS-tst-platformmod-2.so): Likewise.
1373 ($(objpfx)tst-platform-1): Likewise.
1374 ($(objpfx)tst-platform-1.out): Likewise.
1375 (tst-platform-1-ENV): Likewise.
1376 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
1377 * sysdeps/x86_64/tst-platform-1.c: New file.
1378 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
1379 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
1380
1381 2017-10-19 Mike FABIAN <mfabian@redhat.com>
1382
1383 [BZ #13994]
1384 * locale/iso-639.def: Add Karbi.
1385 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
1386 * localedata/locales/mjw_IN: New file.
1387
1388 2017-10-18 Joseph Myers <joseph@codesourcery.com>
1389
1390 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
1391 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1392 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
1393 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
1394 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1395 (libm_alias_ldouble_other_r): Also create _Float128 alias.
1396 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
1397 <bits/floatn.h>.
1398 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1399 (libm_alias_ldouble_other_r): Also create _Float128 alias.
1400 * manual/math.texi (Mathematics): Document additional architecture
1401 support for _Float128.
1402 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1403 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1404 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1405 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1406 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1407 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1408 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1409 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1410 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1411 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1412 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1413 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1414 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1415 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1416 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1417
1418 2017-10-18 Renlin Li <renlin.li@arm.com>
1419
1420 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
1421 _DYNAMIC symbol to calculate load address.
1422
1423 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
1424
1425 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
1426 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
1427 summary bits.
1428 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
1429 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
1430
1431 2017-10-18 Mike FABIAN <mfabian@redhat.com>
1432
1433 [BZ #16777]
1434 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
1435 and improve readability by using more ASCII.
1436 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
1437 and improve readability by using more ASCII.
1438
1439 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
1440
1441 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
1442 not all targets support atomics on bool.
1443
1444 2017-10-17 Joseph Myers <joseph@codesourcery.com>
1445
1446 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
1447 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
1448 __f128.
1449 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1450 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
1451 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1452 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
1453 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1454 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
1455
1456 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1457
1458 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
1459 defines.
1460
1461 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
1462
1463 [BZ #22159]
1464 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
1465 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
1466 (do_check_remalloced_chunk): Fix build bug.
1467 (do_check_malloc_state): Add assert that checks arena->top.
1468 (malloc_consolidate): Remove initialization.
1469 (int_mallinfo): Remove call to malloc_consolidate.
1470 (__libc_mallopt): Clarify why malloc_consolidate is needed.
1471
1472 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
1473
1474 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
1475 (have_fastchunks): Remove.
1476 (clear_fastchunks): Remove.
1477 (set_fastchunks): Remove.
1478 (malloc_state): Add have_fastchunks.
1479 (malloc_init_state): Use have_fastchunks.
1480 (do_check_malloc_state): Remove incorrect invariant checks.
1481 (_int_malloc): Use have_fastchunks.
1482 (_int_free): Likewise.
1483 (malloc_consolidate): Likewise.
1484
1485 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
1486
1487 * malloc/malloc.c (tcache_put): Inline.
1488 (tcache_get): Inline.
1489
1490 2017-10-17 Jordi Mallach <jordi@gnu.org>
1491
1492 Aurelien Jarno <aurelien@aurel32.net>
1493 [BZ #2522]
1494 * localedata/locales/ca_ES@valencia: New file.
1495 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
1496
1497 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
1498
1499 [BZ #22296]
1500 * math/math.h: Let signbit use the builtin in C++ mode with gcc
1501 < 6.x
1502
1503 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1504
1505 * scripts/build-many-glibcs.py (Context.add_all_configs):
1506 Add arm-linux-gnueabihf multiarch extra_glibcs.
1507
1508 * sysdeps/generic/ifunc-init.h: New file.
1509 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
1510
1511 2017-10-17 Mike FABIAN <mfabian@redhat.com>
1512
1513 [BZ #22019]
1514 * localedata/locales/el_GR: Set n_cs_precedes to 0.
1515 * localedata/locales/el_CY: copy "el_GR" because it is identical.
1516 * stdlib/tst-strfmon_l.c: adapt test case.
1517
1518 2017-10-16 Joseph Myers <joseph@codesourcery.com>
1519
1520 * sysdeps/generic/float128-abi.h: New file.
1521 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
1522 non-__prefixed symbols to ....
1523 * math/Versions: ... here. Include <float128-abi.h>.
1524 * stdlib/Versions ... and here. Include <float128-abi.h>
1525
1526 2017-10-16 Florian Weimer <fweimer@redhat.com>
1527
1528 * version.h (VERSION): Switch to ".9000" as the development
1529 version suffix.
1530
1531 2017-10-16 Florian Weimer <fweimer@redhat.com>
1532
1533 [BZ #22050]
1534 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
1535 compat_symbol_reference to access non-default version.
1536
1537 2017-10-16 Florian Weimer <fweimer@redhat.com>
1538
1539 * malloc/Makefile (others-extras): Set to mcheck-init.o.
1540
1541 2017-10-16 Carlos O'Donell <carlos@redhat.com>
1542
1543 * include/shlib-compat.h (compat_symbol_reference): Update
1544 comment.
1545
1546 2017-10-16 Joseph Myers <joseph@codesourcery.com>
1547
1548 * math/Makefile (test-types): Add
1549 $(type-float128-$(float128-alias-fcts)).
1550 * math/test-float128.h (TYPE_STR): Define conditional on
1551 [FLT128_MANT_DIG == LDBL_MANT_DIG].
1552 (ULP_IDX): Likewise.
1553 (ULP_I_IDX): Likewise.
1554
1555 * stdlib/strtold.c: Include <bits/floatn.h>
1556 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
1557 and later undefine as macro. Define as weak alias if
1558 [!USE_WIDE_CHAR].
1559 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
1560 and later undefine as macro. Define as weak alias if
1561 [USE_WIDE_CHAR].
1562 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
1563 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
1564 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
1565 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1566 Define and later undefine as macro. Define as weak alias if
1567 [USE_WIDE_CHAR].
1568 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
1569 <bits/floatn.h>.
1570 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
1571 Define and later undefine as macro. Define as weak alias if
1572 [!USE_WIDE_CHAR].
1573 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1574 Define and later undefine as macro. Define as weak alias if
1575 [USE_WIDE_CHAR].
1576
1577 2017-10-15 Carlos O'Donell <carlos@redhat.com>
1578
1579 * localedata/collate-test.c (allocate_arrays): Don't use \n in
1580 record_verbose messages.
1581
1582 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
1583
1584 [BZ #22052]
1585 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
1586 to silence -O3 -Wall warning with GCC 7.
1587
1588 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
1589
1590 * Makeconfig (+link-static-before-libc): Use the first of
1591 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
1592 * gmon/Makefile (tests): Add tst-gmon-static.
1593 (tests-static): Likewise.
1594 (CFLAGS-tst-gmon-static.c): New.
1595 (CRT-tst-gmon-static): Likewise.
1596 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
1597 (tst-gmon-static-ENV): Likewise.
1598 (tests-special): Likewise.
1599 ($(objpfx)tst-gmon-static.out): Likewise.
1600 (clean-tst-gmon-static-data): Likewise.
1601 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
1602 * gmon/tst-gmon-static-gprof.sh: New file.
1603 * gmon/tst-gmon-static.c: Likewise.
1604
1605 2017-10-13 Carlos O'Donell <carlos@redhat.com>
1606
1607 [BZ #22295]
1608 * locale/programs/linereader.c (get_string): Don't warn on
1609 non-symbolic character.
1610
1611 [BZ #22294]
1612 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
1613 int_curr_symbol.
1614
1615 [BZ #22292]
1616 * locale/programs/record-status.h: New file
1617 * locale/programs/locale.c: Add comment.
1618 * locale/programs/charmap-dir.c: Don't include error.h.
1619 (charmap_opendir): Use record_error.
1620 * locale/programs/charmap.c: Don't include error.h.
1621 (charmap_read): Use record_error, and record_warning.
1622 (parse_charmap): Likewise.
1623 * locale/programs/ld-address.c: Don't include error.h.
1624 (address_finish): Use record_error, and record_warning.
1625 * locale/programs/ld-collate.c: Don't include error.h.
1626 (collate_finish): Use record_error, and record_error_at_line.
1627 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
1628 (ctype_class_new): Likewise.
1629 (ctype_map_new): Likewise.
1630 (set_one_default): Likewise.
1631 (set_class_defaults): Likewise.
1632 (translit_flatten): Likewise.
1633 (allocate_arrays): Use record_error, and record_verbose.
1634 * locale/programs/ld-identification.c: Don't include error.h.
1635 (indentation_finish): Use record_error and record_warning.
1636 * locale/programs/ld-measurement.c: Don't include error.h.
1637 (measurement_finish): Use record_error.
1638 * locale/programs/ld-messages.c
1639 (message_finish): Likewise.
1640 * locale/programs/ld-monetary.c
1641 (monetary_finish): Likewise.
1642 * locale/programs/ld-name.c (name_finish): Use record_error
1643 and record_warning.
1644 * locale/programs/ld-numeric.c
1645 (numeric_finish): Use record_error.
1646 * locale/programs/ld-paper.c: Don't include error.h.
1647 (paper_finish): Use record_error.
1648 * locale/programs/ld-telephone.c: Don't include error.h.
1649 (telephone_finish): Use record_error.
1650 * locale/programs/ld-time.c (time_finish): Likewise.
1651 * locale/programs/linereader.h (lr_error): Make inline func.
1652 * locale/programs/localedef.c: Define recorded_warning_count,
1653 and recorded_error_count.
1654 (main): Use record_error. Use recorded_error_count and
1655 recorded_warning_count to issue correct error returns.
1656 (add_to_readlist): Use record_error.
1657 (find_locale): Likewise.
1658 (load_locale): Likewise.
1659 * locale/programs/localedef.h: Remove be_quiet
1660 and WITH_CUR_LOCALE.
1661 * locale/programs/locarchive.c (compare_from_file): Use
1662 record_error.
1663 * locale/programs/locfile.c (write_locale_data): Use
1664 record_error.
1665 * locale/programs/repertoire.c: Dont include error.h.
1666 (repertoire_complain): Use record_error.
1667 * localedata/tst-fmon.sh: Expect failures from localedef.
1668 * localedata/tst-locale.sh: Likewise.
1669 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
1670
1671 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
1672 (REPORTS): Likewise.
1673 (check): Likewise.
1674 (i18n): Rename to...
1675 (i18n_ctype): ...this.
1676 (i18n-report): Rename to...
1677 (i18n_ctype-report): ...this.
1678 * localedata/locales/i18n_ctype: Regenerate.
1679 * localedata/locales/i18n: copy i18n_ctype.
1680
1681 2017-10-13 Joseph Myers <joseph@codesourcery.com>
1682
1683 * stdlib/strfroml.c: Include <bits/floatn.h>.
1684 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
1685 Define before include of <stdlib.h> and undefine afterwards, then
1686 define as weak alias.
1687
1688 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
1689 Undefine and restore default definition. Use
1690 libm_alias_ldouble_other.
1691
1692 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
1693
1694 [BZ #22153]
1695 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
1696 in coredumps.
1697
1698 2017-10-13 James Clarke <jrtc27@jrtc27.com>
1699
1700 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
1701 Assign sym_map to be map for local symbols, as TLS relocations
1702 use sym_map to determine whether the symbol is defined and to
1703 extract the TLS information.
1704 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1705 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1706
1707 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
1708
1709 [BZ #22189]
1710 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
1711 (math_force_eval): Add powerpc version.
1712
1713 [BZ #22142]
1714 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
1715 -DBL_MAX.
1716 (do_test): Likewise.
1717 * stdio-common/tst-printf.sh: Likewise.
1718 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
1719 ifdef clause in order to set the carry bit right. Replace r0 by
1720 0 without changing the behavior.
1721
1722 2017-10-13 Joseph Myers <joseph@codesourcery.com>
1723
1724 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
1725 <libm-alias-ldouble.h>.
1726 (fabsl): Define using libm_alias_ldouble.
1727 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
1728 <libm-alias-ldouble.h>.
1729 (fabsl): Define using libm_alias_ldouble.
1730
1731 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
1732 Remove conditional code.
1733
1734 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
1735 Rename to __clog10_internal_l.
1736 (__clog10_internal_l): Define aliases using
1737 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
1738 with __clog10.
1739
1740 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1741
1742 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
1743 * benchtests/sincosf-inputs: New file.
1744 * benchtests/cosf-inputs: New file.
1745 * benchtests/sinf-inputs: New file.
1746
1747 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
1748
1749 * posix/tst-spawn.c (do_test): Wait for both children.
1750
1751 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
1752
1753 [BZ #22284]
1754 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
1755 tests-pie): Add tst-gmon-pie.
1756 (CFLAGS-tst-gmon-pie.c): New.
1757 (CRT-tst-gmon-pie): Likewise.
1758 (tst-gmon-pie-ENV): Likewise.
1759 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
1760 ($(objpfx)tst-gmon-pie.out): Likewise.
1761 (clean-tst-gmon-pie-data): Likewise.
1762 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
1763 * gmon/gmon.c [PIC]: Include <link.h>.
1764 [PIC] (callback): New function.
1765 (write_hist): Add an argument for load address. Subtract load
1766 address from PCs.
1767 (write_call_graph): Likewise.
1768 (write_gmon): Call __dl_iterate_phdr to get load address, pass
1769 it to write_hist and write_call_graph.
1770 * gmon/tst-gmon-pie.c: New file.
1771
1772 2017-10-11 Joseph Myers <joseph@codesourcery.com>
1773
1774 * math/Makefile (test-types-basic): New variable.
1775 (test-types): Likewise.
1776 (libm-test-support): Use $(test-types) instead of $(types).
1777 (libm-tests-base-normal): Likewise.
1778 (libm-tests-base-finite): Likewise.
1779 (libm-tests-base-inline): Likewise.
1780 (generated): Likewise.
1781 ($(objpfx)libm-test-support-$(t).c): Likewise.
1782 (libm-tests-for-type iterator): Likewise.
1783 (libm-test-support iterator): Likewise.
1784 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
1785 (ulp_idx): Use ULP_IDX.
1786 * math/test-ldouble.h: Include <float.h>.
1787 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
1788 (ULP_IDX): New macro.
1789 (ULP_I_IDX): Likewise.
1790 * math/test-double.h (ULP_IDX): Likewise.
1791 (ULP_I_IDX): Likewise.
1792 * math/test-float.h (ULP_IDX): Likewise.
1793 (ULP_I_IDX): Likewise.
1794 * math/test-float128.h (ULP_IDX): Likewise.
1795 (ULP_I_IDX): Likewise.
1796
1797 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1798
1799 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
1800 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1801 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1802 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
1803 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1804 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
1805 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
1806 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1807 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1808 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1809 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
1810 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
1811 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1812 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1813 (SINGLE_THREAD_BY_GLOBAL): Define.
1814 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1815 Likewise.
1816 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1817 Likewise.
1818 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1819 Likewise.
1820 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1821 Likewise.
1822 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
1823 (SINGLE_THREAD_BY_GLOBAL): Likewise.
1824 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1825 Likewise.
1826
1827 2017-10-11 Andreas Schwab <schwab@suse.de>
1828
1829 * nis/Makefile (aux): Remove.
1830 * nscd/Makefile (aux): Add nscd_hash.
1831 (nscd-modules): Likewise.
1832 ($(objpfx)nscd): Don't depend on libnsl.
1833 * nscd/nscd_hash.c: New file.
1834 * nscd/nscd_hash.h: Likewise.
1835 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
1836 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
1837 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
1838 instead of <nis/rpcsvc/nis.h>.
1839 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
1840
1841 2017-10-11 Florian Weimer <fweimer@redhat.com>
1842
1843 [BZ #22078]
1844 Avoid large NSS buffers with many addresses, aliases.
1845 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
1846 using dynarrays and struct alloc_buffer.
1847 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
1848 (tst-nss-files-hosts-multi): Link with -ldl.
1849 * nss/tst-nss-files-hosts-multi.c: New file.
1850
1851 2017-10-11 Florian Weimer <fweimer@redhat.com>
1852
1853 [BZ #18023]
1854 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
1855 scratch_buffer. Eliminate gotos.
1856
1857 2017-10-11 Joseph Myers <joseph@codesourcery.com>
1858
1859 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
1860 libm_alias_ldouble_other.
1861 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
1862 undefine and redefine.
1863 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
1864 (exp10l): Do not define here.
1865 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
1866 (weak_alias): Undefine and redefine.
1867 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
1868 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
1869 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
1870 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
1871
1872 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
1873 [!__fma] (fma): Define using libm_alias_double.
1874 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
1875 [!__fmaf] (fmaf): Define using libm_alias_float.
1876 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
1877 (fmal): Define using libm_alias_ldouble.
1878
1879 2017-10-10 Joseph Myers <joseph@codesourcery.com>
1880
1881 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
1882 New macro.
1883 (libm_alias_double_other): Likewise.
1884 (libm_alias_double_r): Use libm_alias_double_other_r.
1885 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
1886 New macro.
1887 (libm_alias_float_other): Likewise.
1888 (libm_alias_float_r): Use libm_alias_float_other_r.
1889 * sysdeps/generic/libm-alias-float128.h
1890 (libm_alias_float128_other_r): New macro.
1891 (libm_alias_float128_other): Likewise.
1892 (libm_alias_float128_r): Use libm_alias_float128_other_r.
1893 * sysdeps/generic/libm-alias-ldouble.h
1894 (libm_alias_ldouble_other_r): New macro.
1895 (libm_alias_ldouble_other): Likewise.
1896 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
1897 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
1898 (libm_alias_double_other_r): New macro.
1899 (libm_alias_double_other): Likewise.
1900 (libm_alias_double_r): Use libm_alias_double_other_r.
1901 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
1902 (libm_alias_ldouble_other_r): New macro.
1903 (libm_alias_ldouble_other): Likewise.
1904 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
1905 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
1906 [!USE_AS_COMPAT]: Use libm_alias_double_other.
1907 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
1908 [!USE_AS_COMPAT]: Use libm_alias_float_other.
1909 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
1910 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
1911 * math/w_exp2f.c: Use libm_alias_float_other.
1912 * math/w_expf.c: Likewise.
1913 * math/w_log2f.c: Likewise.
1914 * math/w_logf.c: Likewise.
1915 * math/w_powf.c: Likewise.
1916 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
1917 [!__exp2f]: Use libm_alias_float_other.
1918 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
1919 [!__expf]: Use libm_alias_float_other.
1920 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
1921 [!__log2f]: Use libm_alias_float_other.
1922 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
1923 [!__logf]: Use libm_alias_float_other.
1924 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
1925 [!__powf]: Use libm_alias_float_other.
1926
1927 2017-10-10 Florian Weimer <fweimer@redhat.com>
1928
1929 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
1930 function.
1931 (_nss_files_gethostbyname3_r): Call it.
1932
1933 2017-10-09 Joseph Myers <joseph@codesourcery.com>
1934
1935 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
1936 error. Remove default definition of declare_mgen_alias.
1937 [!declare_mgen_alias_r]: Likewise.
1938 * sysdeps/generic/math-type-macros-double.h
1939 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
1940 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
1941 (declare_mgen_alias_r): Likewise.
1942 * sysdeps/generic/math-type-macros-float128.h
1943 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1944 * sysdeps/generic/math-type-macros-ldouble.h
1945 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1946 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
1947 macro.
1948 (declare_mgen_alias_r_s): Likewise.
1949 (declare_mgen_alias_r): Likewise.
1950 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
1951 (lgamma_r): Define using libm_alias_double_r.
1952 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
1953 (lgammaf_r): Define using libm_alias_float_r.
1954 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
1955 (lgammal_r): Define using libm_alias_ldouble_r.
1956 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
1957 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
1958
1959 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1960
1961 * lib/glob.c (__glob_pattern_type): Remove now-spurious
1962 extern declaration.
1963
1964 2017-10-09 Joseph Myers <joseph@codesourcery.com>
1965
1966 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
1967
1968 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
1969
1970 [BZ #21326]
1971 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
1972 [__cplusplus >= 201103] (__USE_ISOC99): Define.
1973 * math/Makefile (test-math-cxx11): New test.
1974 * math/test-math-cxx11.cc: New file.
1975
1976 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
1977
1978 * login/openpty.c (openpty): Close slave pty file descriptor on error.
1979
1980 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
1981 call to allocate the slave pty file descriptor.
1982
1983 2017-10-06 Joseph Myers <joseph@codesourcery.com>
1984
1985 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
1986 [!__fma] (fma): Define using libm_alias_double.
1987 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
1988 [!__fma] (fma): Define using libm_alias_double.
1989
1990 * sysdeps/ieee754/float128/float128_private.h: Include
1991 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
1992 (libm_alias_ldouble_r): Undefine and redefine.
1993 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
1994 <libm-alias-ldouble.h>.
1995 (asinhl): Define using libm_alias_ldouble.
1996 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
1997 <libm-alias-ldouble.h>.
1998 (atanl): Define using libm_alias_ldouble.
1999 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
2000 <libm-alias-ldouble.h>.
2001 (cbrtl): Define using libm_alias_ldouble.
2002 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
2003 <libm-alias-ldouble.h>.
2004 (ceill): Define using libm_alias_ldouble.
2005 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
2006 <libm-alias-ldouble.h>.
2007 (copysignl): Define using libm_alias_ldouble.
2008 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
2009 <libm-alias-ldouble.h>.
2010 (cosl): Define using libm_alias_ldouble.
2011 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
2012 <libm-alias-ldouble.h>.
2013 (erfl): Define using libm_alias_ldouble.
2014 (erfcl): Likewise.
2015 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
2016 <libm-alias-ldouble.h>.
2017 (expm1l): Define using libm_alias_ldouble.
2018 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
2019 <libm-alias-ldouble.h>.
2020 (fabsl): Define using libm_alias_ldouble.
2021 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
2022 <libm-alias-ldouble.h>.
2023 (floorl): Define using libm_alias_ldouble.
2024 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
2025 <libm-alias-ldouble.h>.
2026 (fmal): Define using libm_alias_ldouble.
2027 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
2028 <libm-alias-ldouble.h>.
2029 (frexpl): Define using libm_alias_ldouble.
2030 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
2031 libm_alias_ldouble.
2032 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
2033 <libm-alias-ldouble.h>.
2034 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
2035 libm_alias_ldouble.
2036 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
2037 <libm-alias-ldouble.h>.
2038 (getpayloadl): Define using libm_alias_ldouble.
2039 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
2040 <libm-alias-ldouble.h>.
2041 (llrintl): Define using libm_alias_ldouble.
2042 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
2043 <libm-alias-ldouble.h>.
2044 (llroundl): Define using libm_alias_ldouble.
2045 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
2046 <libm-alias-ldouble.h>.
2047 (logbl): Define using libm_alias_ldouble.
2048 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
2049 <libm-alias-ldouble.h>.
2050 (lrintl): Define using libm_alias_ldouble.
2051 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
2052 <libm-alias-ldouble.h>.
2053 (lroundl): Define using libm_alias_ldouble.
2054 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
2055 <libm-alias-ldouble.h>.
2056 (modfl): Define using libm_alias_ldouble.
2057 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
2058 <libm-alias-ldouble.h>.
2059 (nearbyintl): Define using libm_alias_ldouble.
2060 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
2061 <libm-alias-ldouble.h>.
2062 (nextafterl): Define using libm_alias_ldouble.
2063 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
2064 <libm-alias-ldouble.h>.
2065 (nextupl): Define using libm_alias_ldouble.
2066 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
2067 <libm-alias-ldouble.h>.
2068 (remquol): Define using libm_alias_ldouble.
2069 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
2070 <libm-alias-ldouble.h>.
2071 (rintl): Define using libm_alias_ldouble.
2072 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
2073 <libm-alias-ldouble.h>.
2074 (roundevenl): Define using libm_alias_ldouble.
2075 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
2076 <libm-alias-ldouble.h>.
2077 (roundl): Define using libm_alias_ldouble.
2078 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
2079 using libm_alias_ldouble.
2080 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
2081 <libm-alias-ldouble.h>.
2082 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
2083 Define using libm_alias_ldouble.
2084 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
2085 <libm-alias-ldouble.h>.
2086 (sincosl): Define using libm_alias_ldouble.
2087 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
2088 <libm-alias-ldouble.h>.
2089 (sinl): Define using libm_alias_ldouble.
2090 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
2091 <libm-alias-ldouble.h>.
2092 (tanhl): Define using libm_alias_ldouble.
2093 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
2094 <libm-alias-ldouble.h>.
2095 (tanl): Define using libm_alias_ldouble.
2096 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2097 <libm-alias-ldouble.h>.
2098 (totalorderl): Define using libm_alias_ldouble.
2099 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2100 <libm-alias-ldouble.h>.
2101 (totalordermagl): Define using libm_alias_ldouble.
2102 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
2103 <libm-alias-ldouble.h>.
2104 (truncl): Define using libm_alias_ldouble.
2105 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
2106 libm_alias_ldouble.
2107 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
2108 libm_alias_ldouble.
2109 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
2110 <libm-alias-ldouble.h>.
2111 (weak_alias): Do not undefine and redefine.
2112 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2113 (copysignl): Define with long_double_symbol only if [IS_IN
2114 (libc)].
2115 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
2116 <libm-alias-ldouble.h>.
2117 (weak_alias): Do not undefine and redefine.
2118 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2119 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
2120 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
2121 <libm-alias-ldouble.h>.
2122 (weak_alias): Do not undefine and redefine.
2123 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2124 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
2125 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
2126 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
2127 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
2128 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
2129 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
2130 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
2131 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
2132 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
2133 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
2134 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
2135 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
2136 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
2137 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
2138 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
2139 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
2140 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
2141 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
2142 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
2143 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
2144 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
2145 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
2146 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
2147 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
2148 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
2149
2150 2017-10-06 Carlos O'Donell <carlos@redhat.com>
2151
2152 [BZ #22111]
2153 * malloc/malloc.c (tcache_shutting_down): Use bool type.
2154 (tcache_thread_freeres): Set tcache_shutting_down before
2155 freeing the tcache.
2156 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
2157 * malloc/tst-malloc-tcache-leak.c: New file.
2158
2159 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2160
2161 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
2162 back to powerpc32 file.
2163 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2164 (memrchr): Add __memrchr_power8 to ifunc list.
2165 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
2166 extra bytes for unaligned inputs.
2167
2168 2017-10-06 Joseph Myers <joseph@codesourcery.com>
2169
2170 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
2171 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
2172 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
2173 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
2174 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
2175
2176 2017-10-05 Joseph Myers <joseph@codesourcery.com>
2177
2178 * sysdeps/arm/libm-test-ulps: Update.
2179
2180 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
2181 <libm-alias-ldouble.h>.
2182 (asinhl): Define using libm_alias_ldouble.
2183 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
2184 <libm-alias-ldouble.h>.
2185 (cbrtl): Define using libm_alias_ldouble.
2186 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
2187 <libm-alias-ldouble.h>.
2188 (copysignl): Define using libm_alias_ldouble.
2189 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
2190 <libm-alias-ldouble.h>.
2191 (cosl): Define using libm_alias_ldouble.
2192 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
2193 <libm-alias-ldouble.h>.
2194 (erfl): Define using libm_alias_ldouble.
2195 (erfcl): Likewise.
2196 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
2197 <libm-alias-ldouble.h>.
2198 (fmal): Define using libm_alias_ldouble.
2199 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
2200 <libm-alias-ldouble.h>.
2201 (frexpl): Define using libm_alias_ldouble.
2202 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
2203 libm_alias_ldouble.
2204 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
2205 <libm-alias-ldouble.h>.
2206 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
2207 libm_alias_ldouble.
2208 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
2209 <libm-alias-ldouble.h>.
2210 (getpayloadl): Define using libm_alias_ldouble.
2211 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
2212 <libm-alias-ldouble.h>.
2213 (llrintl): Define using libm_alias_ldouble.
2214 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
2215 <libm-alias-ldouble.h>.
2216 (llroundl): Define using libm_alias_ldouble.
2217 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
2218 <libm-alias-ldouble.h>.
2219 (lrintl): Define using libm_alias_ldouble.
2220 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
2221 <libm-alias-ldouble.h>.
2222 (lroundl): Define using libm_alias_ldouble.
2223 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
2224 <libm-alias-ldouble.h>.
2225 (modfl): Define using libm_alias_ldouble.
2226 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
2227 <libm-alias-ldouble.h>.
2228 (nextupl): Define using libm_alias_ldouble.
2229 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
2230 <libm-alias-ldouble.h>.
2231 (remquol): Define using libm_alias_ldouble.
2232 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
2233 <libm-alias-ldouble.h>.
2234 (roundevenl): Define using libm_alias_ldouble.
2235 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
2236 <libm-alias-ldouble.h>.
2237 (roundl): Define using libm_alias_ldouble.
2238 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
2239 using libm_alias_ldouble.
2240 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
2241 <libm-alias-ldouble.h>.
2242 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
2243 <libm-alias-ldouble.h>.
2244 (setpayloadsigl): Define using libm_alias_ldouble.
2245 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
2246 <libm-alias-ldouble.h>.
2247 (sincosl): Define using libm_alias_ldouble.
2248 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
2249 <libm-alias-ldouble.h>.
2250 (sinl): Define using libm_alias_ldouble.
2251 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
2252 <libm-alias-ldouble.h>.
2253 (tanhl): Define using libm_alias_ldouble.
2254 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
2255 <libm-alias-ldouble.h>.
2256 (tanl): Define using libm_alias_ldouble.
2257 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2258 <libm-alias-ldouble.h>.
2259 (totalorderl): Define using libm_alias_ldouble.
2260 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2261 <libm-alias-ldouble.h>.
2262 (totalordermagl): Define using libm_alias_ldouble.
2263 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
2264 libm_alias_ldouble.
2265 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
2266 libm_alias_ldouble.
2267
2268 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
2269
2270 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2271 memmove_falkor.
2272 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2273 (__libc_ifunc_impl_list): Likewise.
2274 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
2275 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
2276
2277 * benchtests/bench-memmove-walk.c: New file.
2278 * benchtests/Makefile (string-benchset): Add it.
2279
2280 * benchtests/bench-memset-walk.c: New file.
2281 * benchtests/Makefile (string-benchset): Add it.
2282
2283 * benchtests/bench-memcpy-walk.c: New file.
2284 * benchtests/Makefile (string-benchset): Add it.
2285
2286 2017-10-05 Florian Weimer <fweimer@redhat.com>
2287
2288 nscd: Eliminate compilation time dependency in the build output.
2289 * nscd/nscd_stat.c (STATDATA_VERSION)
2290 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
2291 (STATDATA_VERSION_FULL): New macro definitions.
2292 (compilation): Remove.
2293 (struct statdata): Adjust version member.
2294 (send_stats): Set version from STATDATA_VERSION_FULL.
2295 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
2296
2297 2017-10-05 Joseph Myers <joseph@codesourcery.com>
2298
2299 * configure.ac (--enable-add-ons): Remove option.
2300 (machine): Do not mention add-ons in comment.
2301 (LIBC_PRECONFIGURE): Likewise.
2302 (add_ons): Remove variable and sanity checks and logic to locate
2303 add-ons.
2304 (add_ons_automatic): Remove variable.
2305 (configured_add_ons): Likewise.
2306 (add_ons_sfx): Likewise.
2307 (add_ons_pfx): Likewise.
2308 (add_on_subdirs): Likewise.
2309 (sysnames_add_ons): Likewise. Remove loop over add-ons and
2310 consideration of add-ons in Implies handling.
2311 (sysdeps_add_ons): Likewise.
2312 * configure: Regenerated.
2313 * libidn/configure.ac: Remove.
2314 * libidn/configure: Likewise.
2315 * sysdeps/unix/inet/configure.ac: New file.
2316 * sysdeps/unix/inet/configure: New generated file.
2317 * sysdeps/unix/inet/Subdirs: Add libidn.
2318 * Makeconfig (sysdeps-srcdirs): Remove variable.
2319 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
2320 ($(common-objpfx)config.status): Do not depend on add-on files.
2321 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
2322 comment.
2323 (all-subdirs): Do not include $(add-on-subdirs).
2324 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
2325 * config.make.in (add-ons): Remove variable.
2326 (add-on-subdirs): Likewise.
2327 (sysdeps-add-ons): Likewise.
2328 * manual/Makefile (add-chapters): Remove.
2329 ($(objpfx)texis): Do not depend on $(add-chapters).
2330 (nonexamples): Do not handle $(add-chapters).
2331 (examples): Do not handle $(add-ons).
2332 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
2333 libc-texinfo.sh.
2334 * manual/install.texi (Installation): Do not mention add-ons.
2335 (--enable-add-ons): Do not document configure option.
2336 * INSTALL: Regenerated.
2337 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
2338 * manual/maint.texi (Hierarchy Conventions): Do not mention
2339 add-ons.
2340 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
2341 --enable-add-ons.
2342 * scripts/gen-sorted.awk: Do not handle Subdirs files from
2343 add-ons.
2344 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
2345 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
2346
2347 2017-10-05 Andreas Schwab <schwab@suse.de>
2348
2349 [BZ #15142]
2350 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
2351 (_IO_flush_all_lockp): Always lock list_all_lock.
2352 (_IO_flush_all_linebuffered): Likewise.
2353 (_IO_unbuffer_all): Likewise.
2354
2355 2017-10-05 Florian Weimer <fweimer@redhat.com>
2356
2357 [BZ #15436]
2358 Do not flush stdio streams on abort.
2359 * stdlib/abort.c (fflush): Remove macro definition.
2360 (abort): Remove stages related to stdio flushing.
2361
2362 2017-10-05 Florian Weimer <fweimer@redhat.com>
2363
2364 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
2365
2366 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
2367
2368 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2369
2370 2017-10-05 Florian Weimer <fweimer@redhat.com>
2371
2372 * support/support_format_hostent.c (support_format_hostent): Add
2373 more error information for NETDB_INTERNAL.
2374
2375 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2376
2377 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
2378 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
2379 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
2380 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
2381 AC_DEFINE if multi-arch is enabled.
2382 * sysdeps/i386/configure: Regenerated.
2383
2384 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2385
2386 * Makeconfig (+link-static-before-libc): Use
2387 $(DEFAULT-LDFLAGS-$(@F)).
2388 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
2389 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
2390 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
2391
2392 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2393
2394 * elf/Makefile (tests): Add tst-main1.
2395 (modules-names): Add tst-main1mod.
2396 ($(objpfx)tst-main1): New.
2397 (CRT-tst-main1): Likewise.
2398 (LDFLAGS-tst-main1): Likewise.
2399 (LDLIBS-tst-main1): Likewise.
2400 (tst-main1mod.so-no-z-defs): Likewise.
2401 * elf/tst-main1.c: New file.
2402 * elf/tst-main1mod.c: Likewise.
2403
2404 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
2405
2406 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
2407
2408 2017-10-04 Joseph Myers <joseph@codesourcery.com>
2409
2410 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
2411 (fma): Define using libm_alias_double.
2412 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
2413 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
2414 <math_ldbl_opt.h>.
2415 (fmal): Do not define as compat symbol here.
2416 * sysdeps/alpha/fpu/s_fma.c: New file.
2417
2418 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2419
2420 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
2421
2422 2017-10-04 Joseph Myers <joseph@codesourcery.com>
2423
2424 [BZ #22229]
2425 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
2426 <math_ldbl_opt.h>
2427 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2428 and libc.
2429 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
2430 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2431 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
2432 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
2433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2434 Include <math_ldbl_opt.h>
2435 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2436 and libc.
2437 (compat_symbol): Undefine and redefine.
2438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
2439 <math_ldbl_opt.h>
2440 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2441 (compat_symbol): Undefine and redefine.
2442 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
2443 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
2444 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
2445 GLIBC_2_1 for libm.
2446 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
2447 GLIBC_2.0 copysignl symbol.
2448 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
2449 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
2450
2451 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
2452
2453 2017-10-04 Florian Weimer <fweimer@redhat.com>
2454
2455 * scripts/check-local-headers.sh: Ignore nspr4 header file
2456 directory in addition to nspr.
2457
2458 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
2459
2460 [BZ #17956]
2461 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
2462 * configure: Regenerate.
2463 * crypt/Makefile (nss-cpp-flags): New variable.
2464 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
2465 (CPPFLAGS-md5-crypt.c): Use it.
2466 * scripts/check-local-headers.sh: Ignore nspr header file
2467 directory.
2468
2469 2017-10-04 Andreas Schwab <schwab@suse.de>
2470
2471 * nis/Makefile (services): Remove compat.
2472 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
2473 ($(objpfx)libnss_compat.so): Remove rule.
2474 * nis/Versions (libnss_compat): Remove.
2475 * nss/Makefile (services): Add compat.
2476 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
2477 * nss/Versions (libnss_compat): Define.
2478 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
2479 Don't include <rpc/types.h>. Replace bool_t by bool.
2480 * nss/nss_compat/compat-initgroups.c: Likewise.
2481 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
2482 instead of <rpcsrv/ypclnt.h>.
2483 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
2484 yp_get_default_domain.
2485 * nss/nss_compat/compat-pwd.c: Likewise.
2486 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
2487 yp_get_default_domain.
2488 * nss/nss_compat/nisdomain.c: New file.
2489 * nss/nss_compat/nisdomain.h: Likewise.
2490
2491 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2492
2493 [BZ #22244]
2494 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
2495 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2496
2497 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2498
2499 [BZ #22243]
2500 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
2501 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
2502
2503 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2504
2505 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
2506 "movl main@GOTOFF(%ebx), %eax".
2507
2508 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2509
2510 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
2511 allow undefined _DYNAMIC in PIE libc.a.
2512 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2513 Likewse.
2514
2515 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2516
2517 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
2518 check _DYNAMIC.
2519
2520 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2521
2522 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
2523 check _DYNAMIC.
2524
2525 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2526
2527 * math/test-math-iscanonical.cc (error): Replace bool with int.
2528
2529 2017-10-03 Joseph Myers <joseph@codesourcery.com>
2530
2531 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
2532 (modf): Define using libm_alias_double, only if [!__modf].
2533 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
2534 <libm-alias-double.h>.
2535 (modf): Define using libm_alias_double, only if [!__modf].
2536 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
2537 compat symbol here.
2538 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
2539 (weak_alias): Do not undefine and redefine.
2540 (strong_alias): Likewise.
2541 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
2542 (weak_alias): Likewise.
2543 (strong_alias): Likewise.
2544
2545 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
2546 (logb): Define using libm_alias_double, only if [!__logb].
2547 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
2548 <libm-alias-double.h>.
2549 (logb): Define using libm_alias_double, only if [!__logb].
2550 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
2551 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
2552 (weak_alias): Do not undefine and redefine.
2553 (strong_alias): Likewise.
2554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
2555 (weak_alias): Likewise.
2556 (strong_alias): Likewise.
2557
2558 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2559
2560 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
2561 Check SHARED instead PIC.
2562
2563 2017-10-03 Joseph Myers <joseph@codesourcery.com>
2564
2565 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
2566 [!__fmaf] (fmaf): Define using libm_alias_float.
2567
2568 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
2569 (frexp): Define using libm_alias_double.
2570 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
2571 <libm-alias-double.h>.
2572 (frexp): Define using libm_alias_double.
2573 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
2574 compat symbol here.
2575
2576 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2577
2578 [BZ #22235]
2579 * math/math.h: Trivial fix for unbalanced parentheses in comment.
2580 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
2581 (CFLAGS-test-math-iscanonical.cc): New variable.
2582 * math/test-math-iscanonical.cc: New file.
2583 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
2584 Provide a C++ implementation based on function overloading,
2585 rather than using __MATH_TG, which uses C-only builtins.
2586 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
2587 Likewise.
2588 * sysdeps/powerpc/powerpc64le/Makefile
2589 (CFLAGS-test-math-iscanonical.cc): New variable.
2590
2591 2017-10-03 Joseph Myers <joseph@codesourcery.com>
2592
2593 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
2594 (ceil): Define using libm_alias_double.
2595 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
2596 (floor): Define using libm_alias_double.
2597 * sysdeps/ieee754/dbl-64/s_llround.c: Include
2598 <libm-alias-double.h>.
2599 (llround): Define using libm_alias_double.
2600 * sysdeps/ieee754/dbl-64/s_lround.c: Include
2601 <libm-alias-double.h>.
2602 (lround): Define using libm_alias_double.
2603 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
2604 <libm-alias-double.h>.
2605 (nearbyint): Define using libm_alias_double.
2606 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
2607 <libm-alias-double.h>.
2608 (remquo): Define using libm_alias_double.
2609 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
2610 (rint): Define using libm_alias_double.
2611 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
2612 (round): Define using libm_alias_double.
2613 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
2614 (trunc): Define using libm_alias_double.
2615 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
2616 <libm-alias-double.h>.
2617 (ceil): Define using libm_alias_double.
2618 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
2619 <libm-alias-double.h>.
2620 (floor): Define using libm_alias_double.
2621 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
2622 <libm-alias-double.h>.
2623 (llround): Define using libm_alias_double.
2624 [_LP64] (lround): Likewise.
2625 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
2626 <libm-alias-double.h>.
2627 [!_LP64] (lround): Define using libm_alias_double.
2628 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
2629 <libm-alias-double.h>.
2630 (nearbyint): Define using libm_alias_double.
2631 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
2632 <libm-alias-double.h>.
2633 (remquo): Define using libm_alias_double.
2634 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
2635 <libm-alias-double.h>.
2636 (rint): Define using libm_alias_double.
2637 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
2638 <libm-alias-double.h>.
2639 (round): Define using libm_alias_double.
2640 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
2641 <libm-alias-double.h>.
2642 (trunc): Define using libm_alias_double.
2643 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
2644 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
2645 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
2646 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
2647 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
2648 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
2649 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
2650 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
2651 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
2652
2653 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2654
2655 * math/w_remainder.c: New file.
2656 * math/w_remainderf.c: New file.
2657 * math/w_remainderl.c: New file.
2658
2659 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
2660
2661 * elf/rtld.c (BOOTSTRAP_MAP): New.
2662 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
2663 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2664 Likewise.
2665 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2666 Likewise.
2667 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2668 Likewise.
2669
2670 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2671
2672 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
2673 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
2674 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
2675 rtld_hidden_data_ver): Define to empty.
2676 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
2677 __assert_perror_fail): Likewise.
2678 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2679 (__rewinddir): Likewise.
2680 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2681 (__profile_frequency): Likewise.
2682 * include/setjmp.h (__sigsetjmp): Likewise.
2683 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
2684 __libc_sigaction): Likewise.
2685 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
2686 not set hidden attribute.
2687 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
2688 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
2689 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
2690 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
2691 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
2692 __fxstatat64): Likewise.
2693 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2694 (__uname): Likewise.
2695 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2696 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
2697 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
2698 (NO_RTLD_HIDDEN): Set.
2699 * sysdeps/mach/hurd/configure: Refresh.
2700 * config.h.in: Refresh.
2701
2702 2017-10-02 Joseph Myers <joseph@codesourcery.com>
2703
2704 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
2705 (atan): Define using libm_alias_double.
2706 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
2707 (tan): Define using libm_alias_double.
2708 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
2709 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
2710
2711 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
2712 define as weak alias of __atan. Do not define any aliases if
2713 [__atan].
2714 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
2715 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
2716 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
2717 as weak alias of __tan. Do not define any aliases if [__tan].
2718 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
2719 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
2720 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
2721 __atan.
2722 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
2723 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
2724 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
2725 and define as weak alias of __atan.
2726 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
2727 __atan.
2728 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
2729 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
2730 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
2731 define as weak alias of __tan.
2732
2733 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2734
2735 * math/w_lgamma.c: New file.
2736 * math/w_lgammaf.c: New file.
2737 * math/w_lgammal.c: New file.
2738
2739 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2740
2741 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
2742 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
2743 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
2744 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
2745 * sysdeps/ieee754/flt-32/w_logf.c: New file.
2746 * sysdeps/ieee754/flt-32/w_powf.c: New file.
2747 * sysdeps/i386/fpu/w_log2f.c: New file.
2748 * sysdeps/i386/fpu/w_logf.c: New file.
2749 * sysdeps/i386/fpu/w_powf.c: New file.
2750 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
2751 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
2752 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
2753
2754 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2755 H.J. Lu <hongjiu.lu@intel.com>
2756
2757 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
2758 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
2759 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
2760 * sysdeps/ieee754/flt-32/w_expf.c: New file.
2761 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
2762 the new expf code.
2763 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
2764 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
2765 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
2766 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
2767 * sysdeps/i386/fpu/w_exp2f.c: New file.
2768 * sysdeps/i386/fpu/w_expf.c: New file.
2769 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
2770 * sysdeps/x86_64/fpu/w_expf.c: New file.
2771
2772 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2773
2774 * math/Versions (logf): New libm symbol at GLIBC_2.27.
2775 (log2f): Likewise.
2776 (powf): Likewise.
2777 * math/w_log2f.c: New file.
2778 * math/w_logf.c: New file.
2779 * math/w_powf.c: New file.
2780 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
2781 * math/w_logf_compat.c (__logf_compat): Likewise.
2782 * math/w_powf_compat.c (__powf_compat): Likewise.
2783 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
2784 * sysdeps/ia64/fpu/e_logf.S: Likewise.
2785 * sysdeps/ia64/fpu/e_powf.S: Likewise.
2786 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2787 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2788 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2789 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2790 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2791 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2792 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2793 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2794 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2795 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2796 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2797 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2799 Likewise.
2800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2801 Likewise.
2802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2803 Likewise.
2804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2805 Likewise.
2806 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2807 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2808 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2809 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2810 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2811 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2812 Likewise.
2813 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2814 Likewise.
2815 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2816 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2817 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2818
2819 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2820
2821 * sysdeps/powerpc/powerpc64/multiarch/Makefile
2822 (sysdep_routines): Add memrchr_power8.
2823 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2824 (memrchr): Add __memrchr_power8 to list of memrchr functions.
2825 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
2826 New file.
2827 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2828 (memrchr): Add __memrchr_power8 to ifunc list.
2829 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
2830
2831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2832
2833 [BZ #18822]
2834 * sysdeps/unix/sysv/linux/posix_fadvise64.c
2835 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
2836 libc_hidden_def.
2837 * sysdeps/unix/sysv/linux/posix_fallocate64.c
2838 (__posix_fallocate64_l64): Likewise.
2839
2840 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2841
2842 [BZ #18822]
2843 * sysdeps/unix/sysv/linux/sched_setaffinity.c
2844 (__sched_setaffinity_new): Add libc_hidden_proto and
2845 libc_hidden_def.
2846
2847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2848
2849 [BZ #18822]
2850 * include/glob.h (__glob64): Add libc_hidden_proto.
2851 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
2852 libc_hidden_def.
2853
2854 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2855
2856 [BZ #18822]
2857 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
2858 attribute_hidden.
2859
2860 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2861
2862 [BZ #18822]
2863 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
2864
2865 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2866
2867 [BZ #18822]
2868 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
2869 libc_hidden_def.
2870
2871 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2872
2873 [BZ #18822]
2874 * csu/version.c (__libc_print_version): Add attribute_hidden.
2875
2876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2877
2878 [BZ #18822]
2879 * include/libc-internal.h (__init_misc): Add attribute_hidden.
2880
2881 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2882
2883 [BZ #18822]
2884 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
2885
2886 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2887
2888 [BZ #18822]
2889 * nscd/nscd_helper.c (__nis_hash): New prototype.
2890
2891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2892
2893 [BZ #18822]
2894 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
2895 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
2896 libc_hidden_def.
2897 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
2898 * termios/tcgetattr.c (__tcgetattr): Likewise.
2899
2900 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2901
2902 [BZ #18822]
2903 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
2904 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
2905 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
2906 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
2907 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
2908
2909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2910
2911 [BZ #18822]
2912 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
2913
2914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2915
2916 [BZ #18822]
2917 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
2918 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
2919
2920 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2921
2922 [BZ #18822]
2923 * intl/hash-string.h (__hash_string): Add attribute_hidden.
2924
2925 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2926
2927 [BZ #18822]
2928 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
2929 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
2930
2931 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2932
2933 [BZ #18822]
2934 * include/ifreq.h: New file.
2935 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
2936 (__ifreq): Likewise.
2937 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
2938 (__ifreq): Likewise.
2939
2940 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2941
2942 [BZ #18822]
2943 * include/idna.h: New file.
2944 * inet/getnameinfo.c: Include <idna.h> instead of
2945 <libidn/idna.h>.
2946 (__idna_to_unicode_lzlz): Removed.
2947 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
2948 <libidn/idna.h>.
2949 (__idna_to_ascii_lz): Removed.
2950 (__idna_to_unicode_lzlz): Likewise.
2951
2952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2953
2954 [BZ #18822]
2955 * include/plural-exp.h: New file.
2956 * intl/plural-exp.c: Include <plural-exp.h> instead of
2957 "plural-exp.h".
2958
2959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2960
2961 [BZ #18822]
2962 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
2963 "getsourcefilter.h".
2964 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
2965 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
2966 "getsourcefilter.h".
2967 (__get_sol): Removed.
2968
2969 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2970
2971 [BZ #18822]
2972 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
2973 to ...
2974 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
2975
2976 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2977
2978 [BZ #18822]
2979 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
2980 attribute_hidden.
2981
2982 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2983
2984 [BZ #18822]
2985 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
2986
2987 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2988
2989 [BZ #18822]
2990 * include/search.h (__tdestroy): Add libc_hidden_proto.
2991 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
2992
2993 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2994
2995 [BZ #18822]
2996 * include/assert.h (__assert_fail_base): Add attribute_hidden.
2997
2998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2999
3000 [BZ #18822]
3001 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
3002 attribute_hidden.
3003
3004 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3005
3006 [BZ #18822]
3007 * include/signal.h (__kill): Add libc_hidden_proto.
3008 (__sigblock): Likewise.
3009 (__sigprocmask): Likewise.
3010 (__sigaltstack): Likewise.
3011 * signal/kill.c (__kill): Add libc_hidden_def.
3012 * signal/sigblock.c (__sigblock): Likewise.
3013 * signal/sigprocmask.c (__sigprocmask): Likewise.
3014 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
3015 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
3016 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
3017 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
3018 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
3019 Likewise.
3020 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
3021 Likewise.
3022 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
3023 (__sigprocmask): Likewise.
3024 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
3025 Likewise.
3026 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
3027 (__sigprocmask): Likewise.
3028 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
3029 Likewise.
3030
3031 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3032
3033 [BZ #18822]
3034 * include/string.h (__strsep): Add libc_hidden_proto.
3035 * string/strsep.c (__strsep): Add libc_hidden_def.
3036
3037 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3038
3039 [BZ #18822]
3040 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
3041 attribute_hidden.
3042 (__spawni): Likewise.
3043
3044 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3045
3046 [BZ #18822]
3047 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
3048 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
3049 libc_hidden_def.
3050
3051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3052
3053 [BZ #18822]
3054 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
3055
3056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3057
3058 [BZ #18822]
3059 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
3060 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
3061 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3062 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
3063 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
3064 Likewise.
3065 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
3066 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
3067
3068 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3069
3070 [BZ #18822]
3071 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
3072 (__dcigettext): Likewise.
3073
3074 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3075
3076 [BZ #18822]
3077 * include/sys/sysinfo.h (__get_nprocs_conf): Add
3078 libc_hidden_proto.
3079 (__get_nprocs): Likewise.
3080 (__get_phys_pages): Likewise.
3081 (__get_avphys_pages): Likewise.
3082 (__get_child_max): Add attribute_hidden.
3083 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
3084 (__get_nprocs): Likewise.
3085 (__get_phys_pages): Likewise.
3086 (__get_avphys_pages): Likewise.
3087 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
3088 libc_hidden_def.
3089 (__get_nprocs): Likewise.
3090 (__get_phys_pages): Likewise.
3091 (__get_avphys_pages): Likewise.
3092 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
3093 libc_hidden_def.
3094 (__get_nprocs_conf): Likewise.
3095 (__get_phys_pages): Likewise.
3096 (__get_avphys_pages): Likewise.
3097
3098 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3099
3100 [BZ #18822]
3101 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
3102 attribute_hidden.
3103 (__netlink_close): Likewise.
3104 (__netlink_free_handle): Likewise.
3105 (__netlink_request): Likewise.
3106
3107 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3108
3109 [BZ #18822]
3110 * include/rpc/rpc.h (__rpc_thread_variables): Add
3111 attribute_hidden.
3112 (__rpc_thread_svc_cleanup): Likewise.
3113 (__rpc_thread_clnt_cleanup): Likewise.
3114 (__rpc_thread_key_cleanup): Likewise.
3115
3116 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3117
3118 [BZ #18822]
3119 * include/sys/uio.h (__readv): Add libc_hidden_proto.
3120 (__writev): Likewise.
3121 * misc/readv.c (__readv): Add libc_hidden_def.
3122 * misc/writev.c (__writev): Likewise.
3123 * sysdeps/posix/readv.c (__readv): Likewise.
3124 * sysdeps/posix/writev.c (__writev): Likewise.
3125 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
3126 (__readv): Likewise.
3127 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
3128 (__writev): Likewise.
3129
3130 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3131
3132 [BZ #18822]
3133 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
3134 (__regcomp): Add libc_hidden_proto.
3135 (__regexec): Likewise.
3136 (__regfree): Likewise.
3137 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
3138 (__regfree): Likewise.
3139 * posix/regexec.c (__regexec): Likewise.
3140
3141 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3142
3143 [BZ #18822]
3144 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
3145 (__getutent): Likewise.
3146 (__getutid): Likewise.
3147 (__getutline): Likewise.
3148 (__pututline): Likewise.
3149 (__getutent_r): Likewise.
3150 (__getutid_r): Likewise.
3151 (__getutline_r): Likewise.
3152 (__utmpname): Add attribute_hidden.
3153 (__setutent): Likewise.
3154 (__endutent): Likewise.
3155 * login/getutent.c (__getutent): Add libc_hidden_def.
3156 * login/getutent_r.c (__getutent_r): Likewise.
3157 (__pututline): Likewise.
3158 * login/getutid.c (__getutid): Likewise.
3159 * login/getutid_r.c (__getutid_r): Likewise.
3160 * login/getutline.c (__getutline): Likewise.
3161 * login/getutline_r.c (__getutline_r): Likewise.
3162 * login/updwtmp.c (__updwtmp): Likewise.
3163
3164 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3165
3166 [BZ #18822]
3167 * include/dirent.h (__opendir): Always add attribute_hidden.
3168 (__fdopendir): Likewise.
3169 (__closedir): Likewise.
3170 (__readdir): Likewise.
3171 (__readdir64): Add libc_hidden_proto.
3172 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
3173 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
3174 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
3175 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
3176 New alias.
3177
3178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3179
3180 [BZ #18822]
3181 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
3182 * include/netdb.h (__gethostbyaddr_r): Likewise.
3183 (__gethostbyname_r): Likewise.
3184 (__gethostbyname2_r): Likewise.
3185 (__getnetbyaddr_r): Likewise.
3186 (__getnetbyname_r): Likewise.
3187 (__getservbyname_r): Likewise.
3188 (__getservbyport_r): Likewise.
3189 (__getprotobyname_r): Likewise.
3190 (__getprotobynumber_r): Likewise.
3191 (__getnetgrent_r): Likewise.
3192 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
3193 (__getrpcbynumber_r): Likewise.
3194 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
3195
3196 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3197
3198 [BZ #18822]
3199 * include/stdio.h (__fcloseall): Add attribute_hidden.
3200 (__getline): Likewise.
3201 (__path_search): Likewise.
3202 (__gen_tempname): Likewise.
3203 (__libc_message): Likewise.
3204 (__flockfile): Likewise.
3205 (__funlockfile): Likewise.
3206 (__fxprintf): Likewise.
3207 (__fxprintf_nocancel): Likewise.
3208
3209 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3210
3211 [BZ #18822]
3212 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
3213 (__sgetsgent_r): Likewise.
3214
3215 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3216
3217 [BZ #18822]
3218 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
3219 (__statfs64): Likewise.
3220 (__fstatfs64): Likewise.
3221 * include/sys/statvfs.h (__statvfs64): Likewise.
3222 (__fstatvfs64): Likewise.
3223 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
3224 (__statfs_filesize_max): Likewise.
3225 (__statfs_symlinks): Likewise.
3226 (__statfs_chown_restricted): Likewise.
3227
3228 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3229
3230 [BZ #18822]
3231 * include/time.h (__tzstring): Add attribute_hidden.
3232 (__tzfile_read): Likewise.
3233 (__tzfile_compute): Likewise.
3234 (__tzfile_default): Likewise.
3235 (__tzset_parse_tz): Likewise.
3236 (__offtime): Likewise.
3237 (__asctime_r): Likewise.
3238 (__tzset): Likewise.
3239 (__tz_convert): Likewise.
3240 (__getdate_r): Likewise.
3241 (__getclktck): Likewise.
3242
3243 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3244
3245 [BZ #18822]
3246 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
3247 (__nscd_unmap): Likewise.
3248 (__nscd_cache_search): Likewise.
3249 (__nscd_get_nl_timestamp): Likewise.
3250 (__nscd_getpwnam_r): Likewise.
3251 (__nscd_getpwuid_r): Likewise.
3252 (__nscd_getgrnam_r): Likewise.
3253 (__nscd_getgrgid_r): Likewise.
3254 (__nscd_gethostbyname_r): Likewise.
3255 (__nscd_gethostbyname2_r): Likewise.
3256 (__nscd_gethostbyaddr_r): Likewise.
3257 (__nscd_getai): Likewise.
3258 (__nscd_getgrouplist): Likewise.
3259 (__nscd_getservbyname_r): Likewise.
3260 (__nscd_getservbyport_r): Likewise.
3261 (__nscd_innetgr): Likewise.
3262 (__nscd_setnetgrent): Likewise.
3263
3264 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3265
3266 [BZ #18822]
3267 * include/gmp.h: Declare internal functions only if _ISOMAC is
3268 undefined.
3269 (__mpn_extract_double): Add attribute_hidden.
3270 (__mpn_extract_long_double): Likewise.
3271 (__mpn_extract_float128): Likewise.
3272 (__mpn_construct_float): Likewise.
3273 (__mpn_construct_double): Likewise.
3274 (__mpn_construct_long_double): Likewise.
3275 (__mpn_construct_float128): Likewise.
3276 (mpn_add_1): Likewise.
3277 (mpn_addmul_1): Likewise.
3278 (mpn_add_n): Likewise.
3279 (mpn_cmp): Likewise.
3280 (mpn_divrem): Likewise.
3281 (mpn_lshift): Likewise.
3282 (mpn_mul): Likewise.
3283 (mpn_mul_1): Likewise.
3284 (mpn_rshift): Likewise.
3285 (mpn_sub_1): Likewise.
3286 (mpn_submul_1): Likewise.
3287 (mpn_sub_n): Likewise.
3288
3289 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3290
3291 [BZ #18822]
3292 * include/wchar.h (__wcsnlen): Add attribute_hidden.
3293 (__wcscat): Likewise.
3294 (__btowc): Likewise.
3295 (__wcrtomb): Likewise.
3296 (__mbsrtowcs): Likewise.
3297 (__wcsrtombs): Likewise.
3298 (__mbsnrtowcs): Likewise.
3299 (__wcsnrtombs): Likewise.
3300 (__wcsncpy): Likewise.
3301 (__wcpncpy): Likewise.
3302 (__wmemcpy): Likewise.
3303 (__wmempcpy): Likewise.
3304 (__wmemmove): Likewise.
3305 (__wcschrnul): Likewise.
3306 (__vfwscanf): Likewise.
3307 (__vswprintf): Likewise.
3308 (__fwprintf): Likewise.
3309 (__vfwprintf): Likewise.
3310
3311 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3312
3313 [BZ #18822]
3314 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
3315 (__getgrgid_r): Likewise.
3316 (__getgrnam_r): Likewise.
3317 * include/pwd.h (__getpwuid_r): Likewise.
3318 (__getpwnam_r): Likewise.
3319 (__fgetpwent_r): Likewise.
3320 * include/shadow.h (__getspnam_r): Likewise.
3321 (__sgetspent_r): Likewise.
3322 (__fgetspent_r): Likewise.
3323
3324 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3325
3326 [BZ #18822]
3327 * include/unistd.h (__access): Add attribute_hidden.
3328 (__lseek64): Likewise.
3329 (__libc_pread64): Likewise.
3330 (__pipe2): Likewise.
3331 (__sleep): Likewise.
3332 (__chdir): Likewise.
3333 (__fchdir): Likewise.
3334 (__getcwd): Likewise.
3335 (__rmdir): Likewise.
3336 (__execvpe): Likewise.
3337 (__execve): Likewise.
3338 (__setsid): Likewise.
3339 (__getuid): Likewise.
3340 (__geteuid): Likewise.
3341 (__getgid): Likewise.
3342 (__getegid): Likewise.
3343 (__getgroups): Likewise.
3344 (__group_member): Likewise.
3345 (__ttyname_r): Likewise.
3346 (__isatty): Likewise.
3347 (__readlink): Likewise.
3348 (__unlink): Likewise.
3349 (__gethostname): Likewise.
3350 (__profil): Likewise.
3351 (__getdtablesize): Likewise.
3352 (__brk): Likewise.
3353 (__ftruncate): Likewise.
3354 (__ftruncate64): Likewise.
3355
3356 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3357
3358 [BZ #18822]
3359 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
3360 * argp/argp-fs-xinl.c: Likewise.
3361 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
3362 * argp/argp-parse.c: Include <argp.h>.
3363 * argp/argp-xinl.c: Likewise.
3364 * include/argp-fmtstream.h: New file.
3365 * include/argp.h (__argp_error): Add attribute_hidden.
3366 (__argp_failure): Likewise.
3367 (__argp_input): Likewise.
3368 (__argp_state_help): Likewise.
3369
3370 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3371
3372 [BZ #18822]
3373 * include/wchar.h (____wcstof_l_internal): New prototype.
3374 (____wcstod_l_internal): Likewise.
3375 (____wcstold_l_internal): Likewise.
3376 (____wcstol_l_internal): Likewise.
3377 (____wcstoul_l_internal): Likewise.
3378 (____wcstoll_l_internal): Likewise.
3379 (____wcstoull_l_internal): Likewise.
3380 (____wcstof128_l_internal): Likewise.
3381 * sysdeps/ieee754/float128/wcstof128.c
3382 (____wcstof128_l_internal): Removed.
3383 * sysdeps/ieee754/float128/wcstof128_l.c
3384 (____wcstof128_l_internal): Likewise.
3385 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
3386 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
3387 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
3388 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
3389 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
3390 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
3391 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
3392 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
3393 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
3394 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
3395
3396 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3397
3398 [BZ #18822]
3399 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
3400 instead of <sys/statvfs.h>.
3401 (__internal_statvfs): Removed.
3402 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
3403 instead of <sys/statvfs.h>.
3404 (__internal_statvfs64): Removed.
3405 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
3406 "internal_statvfs.h" instead of <sys/statvfs.h>.
3407 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
3408 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
3409 instead of <sys/statvfs.h>.
3410 (__internal_statvfs): Removed.
3411 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
3412 instead of <sys/statvfs.h>.
3413 (__internal_statvfs64): Removed.
3414
3415 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3416
3417 [BZ #18822]
3418 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
3419 (__gconv_close): Likewise.
3420 (__gconv): Likewise.
3421 (__gconv_find_transform): Likewise.
3422 (__gconv_lookup_cache): Likewise.
3423 (__gconv_compare_alias_cache): Likewise.
3424 (__gconv_load_cache): Likewise.
3425 (__gconv_get_path): Likewise.
3426 (__gconv_close_transform): Likewise.
3427 (__gconv_release_cache): Likewise.
3428 (__gconv_find_shlib): Likewise.
3429 (__gconv_release_shlib): Likewise.
3430 (__gconv_get_builtin_trans): Likewise.
3431 (__gconv_compare_alias): Likewise.
3432 * include/dlfcn.h (_dlerror_run): Likewise.
3433 * include/stdio.h (__fortify_fail_abort): Likewise.
3434 * include/time.h (__tz_compute): Likewise.
3435 (__strptime_internal): Likewise.
3436 * intl/gettextP.h (_nl_find_domain): Likewise.
3437 (_nl_load_domain): Likewise.
3438 (_nl_find_msg): Likewise.
3439 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
3440 (EXTRACT_PLURAL_EXPRESSION): Likewise.
3441 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
3442 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
3443 (__gai_find_request): Likewise.
3444 (__gai_remove_request): Likewise.
3445 (__gai_notify): Likewise.
3446 (__gai_notify_only): Likewise.
3447 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
3448 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
3449 (_dl_non_dynamic_init): Likewise.
3450 (_dl_aux_init): Likewise.
3451 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
3452 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
3453 Likewise.
3454 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
3455 (__wcsmbs_clone_conv): Likewise.
3456 (__wcsmbs_named_conv): Likewise.
3457
3458 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3459
3460 [BZ #18822]
3461 * include/stdlib.h (__random): Add attribute_hidden.
3462 (__random_r): Likewise.
3463 (__srandom_r): Likewise.
3464 (__initstate_r): Likewise.
3465 (__setstate_r): Likewise.
3466 (__erand48_r): Likewise.
3467 (__nrand48_r): Likewise.
3468 (__jrand48_r): Likewise.
3469 (__srand48_r): Likewise.
3470 (__seed48_r): Likewise.
3471 (__lcong48_r): Likewise.
3472 (__drand48_iterate): Likewise.
3473 (__setenv): Likewise.
3474 (__unsetenv): Likewise.
3475 (__clearenv): Likewise.
3476 (__ptsname_r): Likewise.
3477 (__posix_openpt): Likewise.
3478 (__add_to_environ): Likewise.
3479 (__realpath): Add libc_hidden_proto.
3480 (__ecvt_r): Likewise.
3481 (__fcvt_r): Likewise.
3482 (__qecvt_r): Likewise.
3483 (__qfcvt_r): Likewise.
3484 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
3485 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
3486
3487 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
3488
3489 [BZ #18822]
3490 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
3491 * include/time.h (__mktime_internal): Likewise.
3492 * libio/iolibio.h (__fopen_internal): Likewise.
3493
3494 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
3495
3496 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
3497 pointer in frame.
3498 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
3499 Correct offset used to restore PIC register.
3500
3501 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
3502
3503 [BZ libc/22165]
3504 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
3505 code to load address of __getcontext_ret when generating PIC code.
3506
3507 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
3508
3509 * elf/Makefile (tests-static-internal): Add
3510 tst-tls1-static-non-pie.
3511 (LDFLAGS-tst-tls1-static-non-pie): New.
3512 * elf/tst-tls1-static-non-pie.c: New file.
3513
3514 2017-09-29 Joseph Myers <joseph@codesourcery.com>
3515
3516 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
3517 (asinh): Define using libm_alias_double.
3518 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
3519 (cbrt): Define using libm_alias_double.
3520 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
3521 <libm-alias-double.h>.
3522 (copysign): Define using libm_alias_double.
3523 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
3524 (erf): Define using libm_alias_double.
3525 (erfc): Likewise.
3526 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
3527 (expm1): Define using libm_alias_double.
3528 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
3529 (fabs): Define using libm_alias_double.
3530 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
3531 libm_alias_double.
3532 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
3533 <libm-alias-double.h>.
3534 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
3535 libm_alias_double.
3536 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
3537 <libm-alias-double.h>.
3538 (getpayload): Define using libm_alias_double.
3539 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
3540 <libm-alias-double.h>.
3541 (llrint): Define using libm_alias_double.
3542 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
3543 (lrint): Define using libm_alias_double.
3544 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
3545 <libm-alias-double.h>.
3546 (nextup): Define using libm_alias_double.
3547 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
3548 <libm-alias-double.h>.
3549 (roundeven): Define using libm_alias_double.
3550 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
3551 libm_alias_double.
3552 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
3553 <libm-alias-double.h>.
3554 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
3555 using libm_alias_double.
3556 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
3557 (cos): Define using libm_alias_double.
3558 (sin): Likewise.
3559 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
3560 <libm-alias-double.h>.
3561 (sincos): Define using libm_alias_double.
3562 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
3563 (tanh): Define using libm_alias_double.
3564 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
3565 <libm-alias-double.h>.
3566 (totalorder): Define using libm_alias_double.
3567 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
3568 <libm-alias-double.h>.
3569 (totalordermag): Define using libm_alias_double.
3570 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
3571 libm_alias_double.
3572 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
3573 libm_alias_double.
3574 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
3575 <libm-alias-double.h>.
3576 (getpayload): Define using libm_alias_double.
3577 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
3578 <libm-alias-double.h>.
3579 (roundeven): Define using libm_alias_double.
3580 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
3581 <libm-alias-double.h>.
3582 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
3583 <libm-alias-double.h>.
3584 (totalorder): Define using libm_alias_double.
3585 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
3586 <libm-alias-double.h>.
3587 (totalordermag): Define using libm_alias_double.
3588 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
3589 libc compat symbol here.
3590 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
3591 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
3592 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
3593 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
3594 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
3595 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
3596 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
3597 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
3598 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
3599 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
3600
3601 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
3602
3603 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
3604 _dl_relocate_static_pie instead of _dl_start to compute load
3605 address in static PIE. Return 0 if _DYNAMIC is undefined for
3606 static executable.
3607
3608 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
3609
3610 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
3611 _DYNAMIC is undefined for static executable.
3612
3613 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
3614
3615 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
3616
3617 2017-09-29 Joseph Myers <joseph@codesourcery.com>
3618
3619 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3620
3621 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
3622
3623 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
3624 (__ieee754_lgamma_r): Use fabs rather than __fabs.
3625 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
3626 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3627 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
3628 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
3629 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3630 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3631 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
3632 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3633 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3634 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3635 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
3636 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3637 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3638 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3639 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
3640
3641 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
3642
3643 * math/bits/cmathcalls.h (cimag): Remove inline.
3644 (creal): Remove inline.
3645 (conj): Remove inline.
3646
3647 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
3648
3649 * math/Makefile (type-float-routines): Add e_powf_log2_data.
3650 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
3651 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
3652 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
3653 (issignalingf_inline): Likewise.
3654 (POWF_LOG2_TABLE_BITS): Likewise.
3655 (POWF_LOG2_POLY_ORDER): Likewise.
3656 (POWF_SCALE_BITS): Likewise.
3657 (POWF_SCALE): Likewise.
3658 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
3659 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
3660 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
3661
3662 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
3663
3664 * math/Makefile (type-float-routines): Add e_log2f_data.
3665 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
3666 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
3667 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
3668 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
3669 * sysdeps/i386/fpu/e_log2f_data.c: New file.
3670 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
3671 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
3672
3673 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
3674
3675 * math/Makefile (type-float-routines): Add e_logf_data.
3676 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
3677 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
3678 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
3679 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
3680 * sysdeps/i386/fpu/e_logf_data.c: New file.
3681 * sysdeps/ia64/fpu/e_logf_data.c: New file.
3682 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
3683
3684 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
3685
3686 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
3687 undefined _DYNAMIC in PIE libc.a.
3688 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3689 Likewse.
3690
3691 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
3692
3693 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
3694 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
3695 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
3696 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
3697 (__signbit): Remove.
3698 (__signbitl): Remove.
3699 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
3700 (__signbit): Remove.
3701 (__signbitl): Remove.
3702 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
3703 (__signbit): Remove.
3704 (__signbitl): Remove.
3705 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
3706 (__signbit): Remove.
3707 (__signbitl): Remove.
3708 * sysdeps/tile/bits/mathinline.h: Delete file.
3709 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
3710 (__signbit): Remove.
3711 (__signbitl): Remove.
3712
3713 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
3714
3715 * math/math.h: Improve handling of C99 isgreater macros.
3716 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
3717 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
3718 * sysdeps/powerpc/bits/mathinline.h: Likewise.
3719 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3720 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
3721
3722 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
3723
3724 * sysdeps/aarch64/libm-test-ulps: Update.
3725
3726 2017-09-28 Joseph Myers <joseph@codesourcery.com>
3727
3728 [BZ #22225]
3729 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3730 math_opt_barrier on argument when doing arithmetic on it.
3731 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3732 Likewise. Use math_force_eval not math_opt_barrier after
3733 arithmetic.
3734 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
3735 math_opt_barrier on argument when doing arithmetic on it.
3736 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3737 Likewise.
3738
3739 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
3740
3741 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
3742 libc_hidden_def.
3743 (__freeifaddrs): Likewise.
3744
3745 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
3746
3747 * include/dirent.h (__dirfd): New declaration.
3748 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
3749 alias.
3750 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
3751 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
3752 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
3753 * include/unistd.h (__revoke): New declaration.
3754 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
3755 alias.
3756 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
3757 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
3758 revoke.
3759 * include/dirent.h (__seekdir): New declaration.
3760 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
3761 redefine as weak alias.
3762 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
3763 of seekdir.
3764 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
3765 and use libc_hidden_def on them.
3766 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
3767 them.
3768 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
3769 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
3770 instead of getifaddrs and freeifaddrs.
3771
3772 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
3773
3774 [BZ #18822]
3775 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
3776 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
3777 (__dso_handle): Remove declaration.
3778 * dlfcn/tstatexit.c (__dso_handle): Removed.
3779 (main): Don't check __dso_handle.
3780 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
3781 (main): Don't check __dso_handle.
3782 * include/dso_handle.h: New file.
3783 * malloc/mtrace.c: Include <dso_handle.h>.
3784 (mtrace): Pass __dso_handle directly.
3785 * nptl/pthread_atfork.c: Include <dso_handle.h>.
3786 (__dso_handle): Remove declaration.
3787 (__pthread_atfork): Pass __dso_handle directly.
3788 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
3789 (__dso_handle): Removed.
3790 * posix/wordexp-test.c: Include <dso_handle.h>.
3791 (__dso_handle): Remove declaration.
3792 (__app_register_atfork): Pass __dso_handle directly.
3793 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
3794 (__dso_handle): Remove declaration.
3795 (at_quick_exit): Pass __dso_handle directly.
3796 * stdlib/atexit.c: Include <dso_handle.h>.
3797 (__dso_handle): Remove declaration.
3798 (atexit): Pass __dso_handle directly.
3799 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
3800 (__dso_handle): Removed.
3801
3802 2017-09-26 Joseph Myers <joseph@codesourcery.com>
3803
3804 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
3805 using VDSO.
3806
3807 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
3808
3809 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
3810 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
3811 values to correct default value for given type.
3812
3813 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
3814
3815 [BZ #22101]
3816 * elf/Makefile (tests): Add tst-debug1.
3817 ($(objpfx)tst-debug1): New.
3818 ($(objpfx)tst-debug1.out): Likewise.
3819 ($(objpfx)tst-debug1mod1.so): Likewise.
3820 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
3821 with p_filesz == 0.
3822 * elf/tst-debug1.c: New file.
3823
3824 2017-09-26 Joseph Myers <joseph@codesourcery.com>
3825
3826 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
3827 Define using __ifunc.
3828
3829 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3830
3831 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
3832 exp2f() values.
3833
3834 2017-09-26 Joseph Myers <joseph@codesourcery.com>
3835
3836 [BZ #22156]
3837 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
3838
3839 2017-09-26 Florian Weimer <fweimer@redhat.com>
3840
3841 * resolv/Makefile (tests-internal): Fix typo in comment.
3842
3843 2017-09-26 Florian Weimer <fweimer@redhat.com>
3844
3845 * resolv/nss_dns/dns-host.c: Fix typo in comment.
3846
3847 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3848
3849 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
3850 Use an union instead of a max_align_t array for __space,
3851 so that __space is the same size on all platforms.
3852 * malloc/scratch_buffer_grow_preserve.c
3853 (__libc_scratch_buffer_grow_preserve): Likewise.
3854
3855 [BZ #22183]
3856 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
3857 version to 2.
3858 * posix/Makefile (routines): Add glob-lstat-compat and
3859 glob64-lstat-compat.
3860 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
3861 * posix/glob-lstat-compat.c: New file.
3862 * posix/glob64-lstat-compat.c: Likewise.
3863 * posix/tst-glob_lstat_compat.c: Likewise.
3864 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
3865 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
3866 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
3867 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
3868 Likewise.
3869 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
3870 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
3871 * posix/glob.c (glob_lstat): New function.
3872 (glob): Rename to __glob and add versioned symbol to 2.27.
3873 (glob_in_dir): Use glob_lstat.
3874 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
3875 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3876 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
3877 2.27.
3878 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
3879 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
3880 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
3881 gl_lstat on glob call.
3882 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
3883 and glob64 symbols.
3884 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3885 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3886 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3887 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3888 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3889 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3890 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3891 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3892 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
3893 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3894 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3895 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3896 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3897 Likewise.
3898 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
3899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
3900 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3901 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3902 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3903 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3904 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3905 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
3906 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
3907 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
3908 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3909 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3910
3911 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
3912
3913 * configure.ac (AS): Require binutils 2.25 or later.
3914 * configure: Regenerated.
3915
3916 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3917
3918 [BZ #22207]
3919 * stdlib/test-atexit-race-common.c (do_test): Minimize required
3920 VM size.
3921
3922 2017-09-25 DJ Delorie <dj@redhat.com>
3923
3924 [BZ #22161]
3925 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
3926 resetting timeout.
3927
3928 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
3929
3930 * sysdeps/ieee754/dbl-64/sincos32.h
3931 [SINCCOS32_H]: Remove define.
3932 [SINCOS32_H]: Define.
3933
3934 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
3935
3936 * math/Versions (expf): New libm symbol at GLIBC_2.27.
3937 (exp2f): Likewise.
3938 * math/w_exp2f.c: New file.
3939 * math/w_expf.c: New file.
3940 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
3941 * math/w_expf_compat.c (__expf_compat): Likewise.
3942 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
3943 * sysdeps/ia64/fpu/e_expf.S: Likewise.
3944 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3945 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3946 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3947 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3948 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3949 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3950 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3951 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3952 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3953 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3954 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3955 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3956 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3957 Likewise.
3958 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3959 Likewise.
3960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3961 Likewise.
3962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3963 Likewise.
3964 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3965 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3966 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3967 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3968 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3969 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3970 Likewise.
3971 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3972 Likewise.
3973 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3974 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3975 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3976
3977 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
3978
3979 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
3980 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
3981 (roundtoint, converttoint): Likewise.
3982 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
3983 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
3984 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
3985 * sysdeps/ieee754/flt-32/math_config.h: New file.
3986 * sysdeps/ieee754/flt-32/math_errf.c: New file.
3987 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
3988 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
3989 * sysdeps/i386/fpu/math_errf.c: New file.
3990 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
3991 * sysdeps/ia64/fpu/math_errf.c: New file.
3992 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
3993 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
3994
3995 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3996
3997 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
3998 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
3999 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
4000 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
4001 to make sure that these symbols are defined.
4002 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
4003 of <limits.h>
4004 (__need_NULL): Do not define.
4005 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
4006 alignment.
4007 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
4008 CMGROUP_MAX, cmsgcred): Do not define.
4009 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
4010 NULL.
4011 * bits/socket.h: Likewise.
4012 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
4013 __gettimeofday instead of gettimeofday.
4014 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
4015 instead of settimeofday.
4016
4017 2017-09-22 Joseph Myers <joseph@codesourcery.com>
4018
4019 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
4020 (asinhf): Define using libm_alias_float.
4021 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
4022 (atanf): Define using libm_alias_float.
4023 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
4024 (cbrtf): Define using libm_alias_float.
4025 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
4026 (ceilf): Define using libm_alias_float.
4027 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
4028 <libm-alias-float.h>.
4029 (copysignf): Define using libm_alias_float.
4030 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
4031 (cosf): Define using libm_alias_float.
4032 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
4033 (erff): Define using libm_alias_float.
4034 (erfcf): Likewise.
4035 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
4036 (expm1f): Define using libm_alias_float.
4037 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
4038 (fabsf): Define using libm_alias_float.
4039 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
4040 (floorf): Define using libm_alias_float.
4041 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
4042 (frexpf): Define using libm_alias_float.
4043 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
4044 libm_alias_float.
4045 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
4046 <libm-alias-float.h>.
4047 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
4048 libm_alias_float.
4049 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
4050 <libm-alias-float.h>.
4051 (getpayloadf): Define using libm_alias_float.
4052 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
4053 <libm-alias-float.h>.
4054 (llrintf): Define using libm_alias_float.
4055 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
4056 <libm-alias-float.h>.
4057 (llroundf): Define using libm_alias_float.
4058 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
4059 (logbf): Define using libm_alias_float.
4060 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
4061 (lrintf): Define using libm_alias_float.
4062 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
4063 (lroundf): Define using libm_alias_float.
4064 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
4065 (modff): Define using libm_alias_float.
4066 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
4067 <libm-alias-float.h>.
4068 (nearbyintf): Define using libm_alias_float.
4069 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
4070 <libm-alias-float.h>.
4071 (nextafterf): Define using libm_alias_float.
4072 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
4073 <libm-alias-float.h>.
4074 (nextupf): Define using libm_alias_float.
4075 * sysdeps/ieee754/flt-32/s_remquof.c: Include
4076 <libm-alias-float.h>.
4077 (remquof): Define using libm_alias_float.
4078 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
4079 (rintf): Define using libm_alias_float.
4080 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
4081 <libm-alias-float.h>.
4082 (roundevenf): Define using libm_alias_float.
4083 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
4084 (roundf): Define using libm_alias_float.
4085 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
4086 using libm_alias_float.
4087 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
4088 <libm-alias-float.h>.
4089 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
4090 Define using libm_alias_float.
4091 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
4092 <libm-alias-float.h>.
4093 (sincosf): Define using libm_alias_float.
4094 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
4095 (sinf): Define using libm_alias_float.
4096 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
4097 (tanf): Define using libm_alias_float.
4098 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
4099 (tanhf): Define using libm_alias_float.
4100 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
4101 <libm-alias-float.h>.
4102 (totalorderf): Define using libm_alias_float.
4103 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
4104 <libm-alias-float.h>.
4105 (totalordermagf): Define using libm_alias_float.
4106 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
4107 (truncf): Define using libm_alias_float.
4108 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
4109 libm_alias_float.
4110 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
4111 libm_alias_float.
4112
4113 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4114
4115 [BZ #22146]
4116 math/math.h: Let fpclassify use the builtin in C++ mode, even
4117 when optimazing for size.
4118
4119 2017-09-22 Joseph Myers <joseph@codesourcery.com>
4120
4121 * csu/Makefile (generated): Do not add version-info.h.
4122 (before-compile): Likewise.
4123 (all-Banner-files): Remove variable.
4124 ($(objpfx)version-info.h): Remove rule.
4125 * csu/version.c (banner): Do not include "version-info.h".
4126 * libidn/Banner: Remove.
4127 * manual/contrib.texi (Simon Josefsson): New entry.
4128
4129 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4130
4131 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4132 Remove conditionals on LDBL_MANT_DIG.
4133 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4134 (__ieee754_lgammal_r): Likewise.
4135
4136 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4137
4138 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
4139 _Float128 and L().
4140 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
4141 _Float128 and L(). Replace _Float128 with long double and L(x)
4142 with xL, throughout the file.
4143 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4144 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4145 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4146 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4147
4148 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4149
4150 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
4151 sysdeps/ieee754/ldbl-128ibm.
4152 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
4153 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
4154 of including it. Keep _Float128 and L() intact. These will be
4155 reviewed by a separate patch.
4156 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4157 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4158 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4159 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4160
4161 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4162
4163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
4164 (__finitef128): Define to __redirect___finitef128.
4165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
4166 (__isinff128): Define to __redirect___isinff128.
4167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
4168 (__isnanf128): Define to __redirect___isnanf128.
4169
4170 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4171
4172 * sysdeps/powerpc/powerpc64le/Makefile
4173 (CFLAGS-tst-strtod-nan-locale.c): New variable.
4174 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
4175
4176 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
4177 Carlos O'Donell <carlos@redhat.com>
4178
4179 [BZ #22180]
4180 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
4181 * stdlib/test-dlclose-exit-race.c: New file.
4182 * stdlib/test-dlclose-exit-race-helper.c: New file.
4183 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
4184
4185 2017-09-21 Joseph Myers <joseph@codesourcery.com>
4186
4187 * crypt/Banner: Remove file.
4188 * nptl/Banner: Likewise.
4189 * resolv/Banner: Likewise.
4190 * soft-fp/Banner: Likewise.
4191 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
4192 ($(objpfx)version.d): Remove dependency on banner.h.
4193 ($(objpfx)version.os): Likewise.
4194 * nptl/version.c (banner): Do not include banner.h.
4195 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
4196 Jelinek and BIND code.
4197
4198 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
4199 Carlos O'Donell <carlos@redhat.com>
4200
4201 * support/xdlfcn.h: New file.
4202 * support/xdlfcn.c: New file.
4203 * support/Makefile (libsupport-routines): Add xdlfcn.
4204 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
4205
4206 2017-09-20 Joseph Myers <joseph@codesourcery.com>
4207
4208 [BZ #20142]
4209 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4210 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
4211 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
4212 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
4213 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
4214 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
4215 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
4216 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
4217
4218 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
4219 Ricky Zhou <rickyz@google.com>
4220 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
4221
4222 [BZ #14333]
4223 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
4224 Remove atomics.
4225 (__new_exitfn): Fail registration when we finished at_exit processing.
4226 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
4227 * stdlib/on_exit.c (__on_exit): Likewise.
4228 * stdlib/exit.c (__exit_funcs_done): New variable.
4229 (__run_exit_handlers): Use __exit_funcs_lock.
4230 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
4231 declarations.
4232 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
4233 (test-cxa_atexit-race, test-on_exit-race): New tests.
4234 * stdlib/test-atexit-race-common.c: New file.
4235 * stdlib/test-atexit-race.c: New file.
4236 * stdlib/test-at_quick_exit-race.c: New file.
4237 * stdlib/test-cxa_atexit-race.c: New file.
4238 * stdlib/test-on_exit-race.c: New file.
4239
4240 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
4241
4242 * benchtests/Makefile: Add exp2f and log2f benchmarks.
4243 * benchtests/exp2f-inputs: Copy of expf-inputs.
4244 * benchtests/log2f-inputs: Copy of logf-inputs.
4245
4246 2017-09-19 Joseph Myers <joseph@codesourcery.com>
4247
4248 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
4249 Explicitly take address of first element of array arguments in
4250 call to INLINE_SYSCALL.
4251
4252 2017-09-19 Andreas Schwab <schwab@suse.de>
4253
4254 [BZ #22134]
4255 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
4256 execveat first.
4257 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
4258 unimplemented.
4259 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
4260 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
4261 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4262 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
4263 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4264 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4265 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4266 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4267 * posix/Makefile (tests): Add tst-fexecve.
4268 * posix/tst-fexecve.c: New file.
4269
4270 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4271
4272 * benchtests/Makefile: Add logf benchmark.
4273 * benchtests/logf-inputs: Add reduced trace from wrf_r.
4274
4275 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4276
4277 * benchtests/Makefile: Add expf benchmark.
4278 * benchtests/expf-inputs: Add reduced trace from wrf_r.
4279
4280 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
4281
4282 * csu/Makefile: Add -funwind-tables to libc-start.c.
4283 * debug/Makefile: Add -funwind-tables to backtrace.c.
4284 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
4285 * sysdeps/arm/Makefile: Likewise.
4286 * sysdeps/i386/Makefile: Likewise.
4287 * sysdeps/m68k/Makefile: Likewise.
4288 * sysdeps/mips/Makefile: Likewise.
4289 * sysdeps/nios2/Makefile: Likewise.
4290 * sysdeps/sh/Makefile: Likewise.
4291 * sysdeps/sparc/Makefile: Likewise.
4292
4293 2017-09-19 Joseph Myers <joseph@codesourcery.com>
4294
4295 * benchtests/Makefile (bench-math): Add trunc and truncf.
4296 (CFLAGS-bench-trunc.c): New variable.
4297 (CFLAGS-bench-truncf.c): Likewise.
4298 * benchtests/trunc-inputs: New file.
4299 * benchtests/truncf-inputs: Likewise.
4300
4301 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4302
4303 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
4304
4305 2017-09-18 Joseph Myers <joseph@codesourcery.com>
4306
4307 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
4308 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
4309 redefine.
4310 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
4311 (exp10l): Define as weak alias.
4312 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
4313 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
4314 and redefine.
4315 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
4316 (remainderl): Define as weak alias.
4317
4318 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
4319 (fmal): Define using libm_alias_ldouble.
4320 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
4321 (acoshl): Define using libm_alias_ldouble.
4322 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
4323 (acosl): Define using libm_alias_ldouble.
4324 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
4325 (asinl): Define using libm_alias_ldouble.
4326 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
4327 (atan2l): Define using libm_alias_ldouble.
4328 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
4329 (atanhl): Define using libm_alias_ldouble.
4330 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
4331 (coshl): Define using libm_alias_ldouble.
4332 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
4333 (exp10l): Define using libm_alias_ldouble.
4334 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
4335 (exp2l): Define using libm_alias_ldouble.
4336 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
4337 (expl): Define using libm_alias_ldouble.
4338 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
4339 (fmodl): Define using libm_alias_ldouble.
4340 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
4341 (hypotl): Define using libm_alias_ldouble.
4342 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
4343 (j0l): Define using libm_alias_ldouble.
4344 (y0l): Likewise.
4345 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
4346 (j1l): Define using libm_alias_ldouble.
4347 (y1l): Likewise.
4348 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
4349 (jnl): Define using libm_alias_ldouble.
4350 (ynl): Likewise.
4351 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
4352 (log10l): Define using libm_alias_ldouble.
4353 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
4354 (log2l): Define using libm_alias_ldouble.
4355 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
4356 (logl): Define using libm_alias_ldouble.
4357 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
4358 (powl): Define using libm_alias_ldouble.
4359 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
4360 (remainderl): Define using libm_alias_ldouble.
4361 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
4362 (sinhl): Define using libm_alias_ldouble.
4363 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
4364 (sqrtl): Define using libm_alias_ldouble.
4365 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
4366 (tgammal): Define using libm_alias_ldouble.
4367 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
4368 (exp10l): Do not use long_double_symbol here.
4369 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
4370 [LIBM_SVID_COMPAT] (remainderl): Likewise.
4371 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
4372 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4373 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4374 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4375 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4376 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4377 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4378 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4379 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4380 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4381 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4382 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4383 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4384 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4385 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4386 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4387 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4388 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4389 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4390 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4391
4392 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
4393
4394 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
4395 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
4396
4397 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
4398
4399 * io/read.c (read): Add libc_hidden_weak.
4400 * sysdeps/mach/hurd/read.c (read): Likewise.
4401 * io/write.c (write): Likewise.
4402 * sysdeps/mach/hurd/write.c (write): Likewise.
4403 * io/pread64.c (__pread64): Likewise.
4404 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
4405 * posix/pread64.c (__pread64): Add libc_hidden_def.
4406
4407 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4408
4409 * benchtests/scripts/compare_strings.py: New option -g.
4410 (draw_graph): Print a message that a graph is being generated.
4411 (process_results): Generate graph only if -g is passed.
4412 (main): Process option -g.
4413
4414 * benchtests/scripts/compare_strings.py (process_results):
4415 Better spacing for output.
4416
4417 * benchtests/scripts/compare_strings.py: Use argparse.
4418 * benchtests/README: Document existence of compare_strings.py.
4419
4420 2017-09-15 Joseph Myers <joseph@codesourcery.com>
4421
4422 * math/s_fma.c: Include <libm-alias-double.h>.
4423 (fma): Define using libm_alias_double.
4424 * math/s_nextafter.c: Include <libm-alias-double.h>.
4425 (nextafter): Define using libm_alias_double.
4426 * math/w_acos_compat.c: Include <libm-alias-double.h>.
4427 (acos): Define using libm_alias_double.
4428 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
4429 (aocsh): Define using libm_alias_double.
4430 * math/w_asin_compat.c: Include <libm-alias-double.h>.
4431 (asin): Define using libm_alias_double.
4432 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
4433 (atan2): Define using libm_alias_double.
4434 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
4435 (atanh): Define using libm_alias_double.
4436 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
4437 (cosh): Define using libm_alias_double.
4438 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
4439 (exp10): Define using libm_alias_double.
4440 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
4441 (exp2): Define using libm_alias_double.
4442 * math/w_exp_compat.c: Include <libm-alias-double.h>.
4443 (exp): Define using libm_alias_double.
4444 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
4445 (fmod): Define using libm_alias_double.
4446 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
4447 (hypot): Define using libm_alias_double.
4448 * math/w_j0_compat.c: Include <libm-alias-double.h>.
4449 (j0): Define using libm_alias_double.
4450 (y0): Likewise.
4451 * math/w_j1_compat.c: Include <libm-alias-double.h>.
4452 (j1): Define using libm_alias_double.
4453 (y1): Likewise.
4454 * math/w_jn_compat.c: Include <libm-alias-double.h>.
4455 (jn): Define using libm_alias_double.
4456 (yn): Likewise.
4457 * math/w_log10_compat.c: Include <libm-alias-double.h>.
4458 (log10): Define using libm_alias_double.
4459 * math/w_log2_compat.c: Include <libm-alias-double.h>.
4460 (log2): Define using libm_alias_double.
4461 * math/w_log_compat.c: Include <libm-alias-double.h>.
4462 (log): Define using libm_alias_double.
4463 * math/w_pow_compat.c: Include <libm-alias-double.h>.
4464 (pow): Define using libm_alias_double.
4465 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
4466 (remainder): Define using libm_alias_double.
4467 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
4468 (sinh): Define using libm_alias_double.
4469 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
4470 (sqrt): Define using libm_alias_double.
4471 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
4472 (tgamma): Define using libm_alias_double.
4473 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
4474 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
4475 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
4476 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
4477 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
4478 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
4479 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
4480 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
4481 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
4482 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
4483 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
4484 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
4485 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
4486 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
4487 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
4488 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
4489 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
4490 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
4491 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
4492 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
4493 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
4494 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
4495 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
4496 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
4497 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
4498
4499 * math/e_acoshl.c: Remove.
4500 * math/e_acosl.c: Likewise.
4501 * math/e_asinl.c: Likewise.
4502 * math/e_atan2l.c: Likewise.
4503 * math/e_atanhl.c: Likewise.
4504 * math/e_coshl.c: Likewise.
4505 * math/e_expl.c: Likewise.
4506 * math/e_fmodl.c: Likewise.
4507 * math/e_gammal_r.c: Likewise.
4508 * math/e_hypotl.c: Likewise.
4509 * math/e_j0l.c: Likewise.
4510 * math/e_j1l.c: Likewise.
4511 * math/e_jnl.c: Likewise.
4512 * math/e_lgammal_r.c: Likewise.
4513 * math/e_log10l.c: Likewise.
4514 * math/e_log2l.c: Likewise.
4515 * math/e_logl.c: Likewise.
4516 * math/e_powl.c: Likewise.
4517 * math/e_rem_pio2l.c: Likewise.
4518 * math/e_sinhl.c: Likewise.
4519 * math/e_sqrtf128.c: Likewise.
4520 * math/e_sqrtl.c: Likewise.
4521 * math/k_cosl.c: Likewise.
4522 * math/k_sinl.c: Likewise.
4523 * math/k_tanl.c: Likewise.
4524 * math/s_asinhl.c: Likewise.
4525 * math/s_atanl.c: Likewise.
4526 * math/s_cbrtl.c: Likewise.
4527 * math/s_erfl.c: Likewise.
4528 * math/s_expm1l.c: Likewise.
4529 * math/s_log1pl.c: Likewise.
4530 * math/s_tanhl.c: Likewise.
4531
4532 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
4533
4534 [BZ #21745]
4535 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
4536 [$(subdir) = math] (sysdep_calls): New variable. Has the
4537 previous contents of sysdep_routines, but re-sorted..
4538 [$(subdir) = math] (sysdep_routines): Re-use the contents from
4539 sysdep_calls.
4540 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
4541 defined in sysdep_calls and replace by the respective m_* names.
4542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
4543 (compat_symbol): Undefine to avoid duplicated compat symbols in
4544 libc.
4545
4546 2017-09-15 Joseph Myers <joseph@codesourcery.com>
4547
4548 * math/s_fmaf.c: Include <libm-alias-float.h>.
4549 (fmaf): Define using libm_alias_float.
4550 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
4551 (acosf): Define using libm_alias_float.
4552 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
4553 (acoshf): Define using libm_alias_float.
4554 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
4555 (asinf): Define using libm_alias_float.
4556 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
4557 (atan2f): Define using libm_alias_float.
4558 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
4559 (atanhf): Define using libm_alias_float.
4560 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
4561 (coshf): Define using libm_alias_float.
4562 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
4563 (exp10f): Define using libm_alias_float.
4564 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
4565 (fmodf): Define using libm_alias_float.
4566 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
4567 (hypotf): Define using libm_alias_float.
4568 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
4569 (j0f): Define using libm_alias_float.
4570 (y0f): Likewise.
4571 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
4572 (j1f): Define using libm_alias_float.
4573 (y1f): Likewise.
4574 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
4575 (jnf): Define using libm_alias_float.
4576 (ynf): Likewise.
4577 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
4578 (log10f): Define using libm_alias_float.
4579 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
4580 (log2f): Define using libm_alias_float.
4581 * math/w_logf_compat.c: Include <libm-alias-float.h>.
4582 (logf): Define using libm_alias_float.
4583 * math/w_powf_compat.c: Include <libm-alias-float.h>.
4584 (powf): Define using libm_alias_float.
4585 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
4586 (remainderf): Define using libm_alias_float.
4587 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
4588 (sinhf): Define using libm_alias_float.
4589 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
4590 (sqrtf): Define using libm_alias_float.
4591 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
4592 (tgammaf): Define using libm_alias_float.
4593
4594 2017-09-14 Joseph Myers <joseph@codesourcery.com>
4595
4596 * include/math.h (roundeven): Change hidden_proto call to
4597 __roundeven.
4598 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
4599 alias.
4600 [NO_LONG_DOUBLE] (__j0l): New strong alias.
4601 (y0): Rename to __y0 and define as weak alias.
4602 [NO_LONG_DOUBLE] (__y0l): New strong alias.
4603 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
4604 alias.
4605 (y0f): Rename to __y0f and define as weak alias.
4606 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
4607 alias.
4608 [NO_LONG_DOUBLE] (__j1l): New strong alias.
4609 (y1): Rename to __y1 and define as weak alias.
4610 [NO_LONG_DOUBLE] (__y1l): New strong alias.
4611 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
4612 alias.
4613 (y1f): Rename to __y1f and define as weak alias.
4614 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
4615 alias.
4616 [NO_LONG_DOUBLE] (__jnl): New strong alias.
4617 (yn): Rename to __yn and define as weak alias.
4618 [NO_LONG_DOUBLE] (__ynl): New strong alias.
4619 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
4620 alias.
4621 (ynf): Rename to __ynf and define as weak alias.
4622 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
4623 (fromfp): Define as weak alias.
4624 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
4625 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
4626 (fromfpx): Define as weak alias.
4627 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
4628 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
4629 __getpayload and define as weak alias.
4630 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4631 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
4632 __roundeven and define as weak alias.
4633 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4634 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
4635 __setpayload.
4636 (setpayload): Define as weak alias.
4637 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
4638 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
4639 __setpayloadsig.
4640 (setpayloadsig): Define as weak alias.
4641 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
4642 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
4643 __totalorder and define as weak alias.
4644 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4645 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
4646 to __totalordermag and define as weak alias.
4647 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4648 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
4649 (ufromfp): Define as weak alias.
4650 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
4651 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
4652 __ufromfpx.
4653 (ufromfpx): Define as weak alias.
4654 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
4655 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
4656 Rename to __getpayload and define as weak alias.
4657 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4658 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
4659 Rename to __roundeven and define as weak alias.
4660 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4661 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
4662 Rename to __totalorder and define as weak alias.
4663 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4664 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
4665 (totalordermag): Rename to __totalordermag and define as weak
4666 alias.
4667 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4668 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
4669 macro.
4670 (__roundevenl): Likewise.
4671 (__totalorderl): Likewise.
4672 (__totalordermagl): Likewise
4673 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
4674 __fromfpf128.
4675 (fromfpf128): Define as weak alias.
4676 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
4677 __fromfpxf128.
4678 (fromfpxf128): Define as weak alias.
4679 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
4680 __setpayloadf128.
4681 (setpayloadf128): Define as weak alias.
4682 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
4683 __setpayloadsigf128.
4684 (setpayloadsigf128): Define as weak alias.
4685 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
4686 __ufromfpf128.
4687 (ufromfpf128): Define as weak alias.
4688 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
4689 __ufromfpxf128.
4690 (ufromfpxf128): Define as weak alias.
4691 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
4692 (fromfpf): Define as weak alias.
4693 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
4694 __fromfpxf.
4695 (fromfpxf): Define as weak alias.
4696 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
4697 __getpayloadf and define as weak alias.
4698 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
4699 __roundevenf and define as weak alias.
4700 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
4701 __setpayloadf.
4702 (setpayloadf): Define as weak alias.
4703 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
4704 __setpayloadsigf.
4705 (setpayloadsigf): Define as weak alias.
4706 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
4707 __totalorderf and define as weak alias.
4708 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
4709 Rename to __totalordermagf and define as weak alias.
4710 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
4711 __ufromfpf.
4712 (ufromfpf): Define as weak alias.
4713 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
4714 __ufromfpxf.
4715 (ufromfpxf): Define as weak alias.
4716 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
4717 __fromfpl.
4718 (fromfpl): Define as weak alias.
4719 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
4720 __fromfpxl.
4721 (fromfpxl): Define as weak alias.
4722 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
4723 to __getpayloadl and define as weak alias.
4724 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
4725 __roundevenl and define as weak alias.
4726 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
4727 __setpayloadl.
4728 (setpayloadl): Define as weak alias.
4729 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
4730 __setpayloadsigl.
4731 (setpayloadsigl): Define as weak alias.
4732 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
4733 to __totalorderl and define as weak alias.
4734 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
4735 Rename to __totalordermagl and define as weak alias.
4736 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
4737 __ufromfpl.
4738 (ufromfpl): Define as weak alias.
4739 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
4740 __ufromfpxl.
4741 (ufromfpxl): Define as weak alias.
4742 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
4743 __fromfpl.
4744 (fromfpl): Define as weak alias.
4745 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
4746 __fromfpxl.
4747 (fromfpxl): Define as weak alias.
4748 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
4749 Rename to __getpayloadl and define as weak alias.
4750 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
4751 to __roundevenl and define as weak alias. Call __roundeven
4752 instead of roundeven.
4753 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
4754 __setpayloadl.
4755 (setpayloadl): Define as weak alias.
4756 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
4757 __setpayloadsigl.
4758 (setpayloadsigl): Define as weak alias.
4759 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
4760 Rename to __totalorderl and define as weak alias.
4761 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
4762 Rename to __totalordermagl and define as weak alias.
4763 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
4764 __ufromfpl.
4765 (ufromfpl): Define as weak alias.
4766 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
4767 __ufromfpxl.
4768 (ufromfpxl): Define as weak alias.
4769 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
4770 __fromfpl.
4771 (fromfpl): Define as weak alias.
4772 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
4773 __fromfpxl.
4774 (fromfpxl): Define as weak alias.
4775 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
4776 __getpayloadl and define as weak alias.
4777 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
4778 __roundevenl and define as weak alias.
4779 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
4780 __setpayloadl.
4781 (setpayloadl): Define as weak alias.
4782 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
4783 __setpayloadsigl.
4784 (setpayloadsigl): Define as weak alias.
4785 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
4786 __totalorderl and define as weak alias.
4787 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
4788 Rename to __totalordermagl and define as weak alias.
4789 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
4790 __ufromfpl.
4791 (ufromfpl): Define as weak alias.
4792 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
4793 __ufromfpxl.
4794 (ufromfpxl): Define as weak alias.
4795
4796 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
4797
4798 * benchtests/bench-string.h (realloc_bufs): New function.
4799 (test_init): Call it.
4800 * benchtests/bench-memset-large.c (do_test): Likewise.
4801 * benchtests/bench-memset.c (do_test): Likewise.
4802
4803 * benchtests/bench-memset-large.c: Print output in JSON
4804 format.
4805 * benchtests/bench-memset.c: Likewise.
4806
4807 2017-09-14 Mike FABIAN <mfabian@redhat.com>
4808
4809 [BZ #21084]
4810 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
4811 * iconvdata/Makefile: Add IBM858.
4812 * iconvdata/gconv-modules: Likewise.
4813 * iconvdata/tst-tables.sh: Likewise.
4814 * iconvdata/ibm858.c: New file.
4815 * localedata/charmaps/IBM858: Likewise.
4816
4817 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
4818
4819 [BZ #22023]
4820 * locales/niu_NZ (LC_TIME): copy "niu_NU".
4821 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
4822
4823 2017-09-14 Mike FABIAN <mfabian@redhat.com>
4824
4825 [BZ #22112]
4826 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
4827 and add tel_int_fmt.
4828
4829 2017-09-14 Joseph Myers <joseph@codesourcery.com>
4830
4831 * sysdeps/generic/libm-alias-float128.h: New file.
4832 * sysdeps/generic/math-type-macros-float128.h: Include
4833 <libm-alias-float128.h>.
4834 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
4835
4836 2017-09-13 Joseph Myers <joseph@codesourcery.com>
4837
4838 * sysdeps/generic/libm-alias-ldouble.h: New file.
4839 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
4840 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
4841 * sysdeps/generic/math-type-macros-ldouble.h: Include
4842 <libm-alias-ldouble.h>.
4843 [!declare_mgen_alias] (declare_mgen_alias): Define to use
4844 libm_alias_ldouble.
4845
4846 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
4847
4848 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
4849 * math/w_exp_compat.c: ... here.
4850 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
4851 * math/w_expf_compat.c: ... here.
4852 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
4853 * math/w_expl_compat.c: ... here.
4854 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
4855 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
4856 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
4857 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4858
4859 2017-09-13 Joseph Myers <joseph@codesourcery.com>
4860
4861 * math/w_scalbln_template.c (strong_alias): Do not undefine and
4862 redefine.
4863 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
4864 macro.
4865 (ldexpl): Only define as compat symbol for libc, not libm.
4866 (scalbnl): Define as compat symbol for libc here.
4867 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
4868 define for [IS_IN (libc)].
4869 (__ldexpl_2): Remove alias.
4870 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
4871 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
4872 name in long_double_symbol call.
4873 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
4874 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
4875 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
4876 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
4877 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
4878 Remove macro.
4879 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
4880 Define as compat symbol.
4881
4882 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4883
4884 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
4885 * sysdeps/unix/sysv/linux/alpha/Makefile
4886 [$(subdir) = csu] (sysdep_routines): Remove rule.
4887
4888 2017-09-13 Joseph Myers <joseph@codesourcery.com>
4889
4890 * sysdeps/generic/libm-alias-double.h: New file.
4891 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
4892 * sysdeps/generic/math-type-macros-double.h: Include
4893 <libm-alias-double.h>.
4894 [declare_mgen_alias] (declare_mgen_alias): Define to use
4895 libm_alias_double.
4896 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
4897 (M_LIBM_NEED_COMPAT): Remove macro.
4898 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
4899 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
4900 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
4901 code.
4902 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4903 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4904 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4905 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4906 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4907 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4908 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4909 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4910 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4911 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4912 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4913 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4914 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4915 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4916 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4917 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4918 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4919 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4920 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4921 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4922 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4923 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4924 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4925 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4926 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4927 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4928 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4929 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
4930 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
4931 macro.
4932 (declare_mgen_alias): New macro.
4933 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
4934 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
4935 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
4936 (M_LIBM_NEED_COMPAT): Remove macro.
4937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
4938 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
4939 <first-versions.h>.
4940 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
4941 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
4942
4943 2017-09-12 Joseph Myers <joseph@codesourcery.com>
4944
4945 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
4946 (declare_mgen_alias_2): Remove.
4947 * sysdeps/generic/math-type-macros-double.h
4948 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
4949 Likewise.
4950 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
4951 alias.
4952 (ldexp): Define with declare_mgen_alias.
4953 (scalbn): Likewise.
4954
4955 2017-09-12 Steve Ellcey <sellcey@cavium.com>
4956
4957 * grp/initgroups.c: Include config.h.
4958 (DEFAULT_CONFIG): New macro.
4959 (internal_getgrouplist): Use DEFAULT_CONFIG.
4960 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4961 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
4962 (DEFAULT_DEFCONFIG): New macro.
4963 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
4964 * nss/grp-lookup.c: Include config.h
4965 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
4966 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
4967 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
4968 * manual/nss.texi: Update default values section.
4969
4970 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
4971
4972 [BZ #21967]
4973 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
4974 New.
4975 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
4976 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4977 Handle MathVec_Prefer_No_AVX512.
4978 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
4979 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
4980 is set.
4981
4982 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
4983
4984 * posix/sched_primax.c (__sched_get_priority_max): Add
4985 libc_hidden_def.
4986 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
4987 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
4988 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
4989 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
4990 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
4991 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
4992 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
4993 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
4994 Add aliases.
4995
4996 2017-09-11 Joseph Myers <joseph@codesourcery.com>
4997
4998 * sysdeps/generic/libm-alias-float.h: New file.
4999 * sysdeps/generic/math-type-macros-float.h: Include
5000 <libm-alias-float.h>.
5001 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
5002
5003 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 [BZ #22093]
5006 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
5007 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
5008 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
5009 (HWCAP_IMPORTANT): Likewise.
5010 (HWCAP_X86_64): New enum.
5011 (HWCAP_X86_AVX512_1): Updated.
5012 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
5013 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
5014 (modules-names): Add x86_64/tst-x86_64mod-1.
5015 (LDFLAGS-tst-x86_64mod-1.so): New.
5016 ($(objpfx)tst-x86_64-1): Likewise.
5017 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
5018 (tst-x86_64-1-clean): Likewise.
5019 * sysdeps/x86_64/tst-x86_64-1.c: New file.
5020 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
5021
5022 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
5023
5024 * po/sv.po: Update translations.
5025 * po/fr.po: Likewise.
5026
5027 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5028
5029 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
5030 seconds.
5031 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
5032 seconds.
5033 * elf/rtld-Rules: Fix $(error) use.
5034
5035 2017-09-09 Mike FABIAN <mfabian@redhat.com>
5036
5037 [BZ #14925]
5038 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
5039 * locale/iso-639.def: Change “Bengali” to “Bangla”.
5040 * localedata/locales/bn_BD: “Bengali” was still used in some
5041 comments. Change it to “Bangla”.
5042
5043 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
5044
5045 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
5046
5047 2017-09-08 Steve Ellcey <sellcey@cavium.com>
5048
5049 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
5050 thunderx2t99p1 to list of cpu names.
5051 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
5052 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
5053
5054 2017-09-08 Steve Ellcey <sellcey@cavium.com>
5055
5056 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
5057 Use strcmp instead of tunable_is_name.
5058
5059 2017-09-08 Joseph Myers <joseph@codesourcery.com>
5060
5061 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5062 (F_GET_RW_HINT): New macro.
5063 [__USE_GNU] (F_SET_RW_HINT): Likewise.
5064 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
5065 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
5066 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
5067 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
5068 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
5069 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
5070 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
5071 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
5072
5073 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5074 (F_ADD_SEALS): New macro.
5075 [__USE_GNU] (F_GET_SEALS): Likewise.
5076 [__USE_GNU] (F_SEAL_SEAL): Likewise.
5077 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
5078 [__USE_GNU] (F_SEAL_GROW): Likewise.
5079 [__USE_GNU] (F_SEAL_WRITE): Likewise.
5080
5081 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5082
5083 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5084 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5085 * posix/glob_internal.h (__glob_pattern_type):
5086 * posix/glob.c (glob):
5087 * posix/glob_pattern_p.c (__glob_pattern_p):
5088 Use them.
5089
5090 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
5091 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5092 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
5093 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
5094 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
5096 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
5097 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
5098 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5099 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5100 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5101 * sysdeps/wordsize-64/glob.c: Likewise.
5102 * sysdeps/wordsize-64/glob64.c: Likewise.
5103 * sysdeps/wordsize-64/globfree.c: Likewise.
5104 * sysdeps/wordsize-64/globfree64.c: Likewise.
5105 * sysdeps/unix/sysv/linux/glob.c: New file.
5106 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
5107 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
5108 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
5109 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5110 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
5111 adds !GLOB_NO_OLD_VERSION as an extra condition.
5112 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
5113 using relative path instead of absolute one.
5114 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5115 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5116 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5117 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5118 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
5119 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
5120
5121 [BZ #1062]
5122 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
5123 (glob): Use the same scratch buffer for both getlogin_r and
5124 getpwnam_r. Don’t require preallocation of the login name. This
5125 simplifies storage allocation, and corrects the handling of
5126 long login names.
5127
5128 [BZ #1062]
5129 * posix/glob.c (glob): Port recent patches to platforms
5130 lacking getpwnam_r.
5131 (glob): Fix longstanding misuse of errno after getpwnam_r, which
5132 returns an error number rather than setting errno.
5133
5134 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
5135 instead of GCC extension.
5136 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
5137 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
5138 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
5139
5140 [BZ #866]
5141 [BZ #1062]
5142 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
5143 * posix/bug-glob1.c: Remove file.
5144 * posix/tst-glob_symlinks.c: New file.
5145 * posix/glob.c (__lstat64): New macro.
5146 (is_dir): New function.
5147 (glob, glob_in_dir): Match symlinks even if they are dangling.
5148 (link_stat, link_exists_p): Remove. All uses removed.
5149
5150 [BZ #1062]
5151 [BZ #19971]
5152 * posix/glob.c (struct readdir_result): Remove skip_entry member.
5153 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5154 All uses removed.
5155
5156 [BZ #1062]
5157 CVE-2017-15671
5158 * posix/Makefile (routines): Add globfree, globfree64, and
5159 glob_pattern_p.
5160 * posix/flexmember.h: New file.
5161 * posix/glob_internal.h: Likewise.
5162 * posix/glob_pattern_p.c: Likewise.
5163 * posix/globfree.c: Likewise.
5164 * posix/globfree64.c: Likewise.
5165 * sysdeps/gnu/globfree64.c: Likewise.
5166 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
5167 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5168 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
5169 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5170 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5171 * sysdeps/wordsize-64/globfree.c: Likewise.
5172 * sysdeps/wordsize-64/globfree64.c: Likewise.
5173 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
5174 [NDEBUG): Remove comments.
5175 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
5176 (dirent_type): New type. Use uint_fast8_t not
5177 uint8_t, as C99 does not require uint8_t.
5178 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
5179 (struct readdir_result): Use dirent_type. Do not define skip_entry
5180 unless it is needed; this saves a byte on platforms lacking d_ino.
5181 (readdir_result_type, readdir_result_skip_entry):
5182 New functions, replacing ...
5183 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5184 these functions, which were removed. This makes the callers
5185 easier to read. All callers changed.
5186 (D_INO_TO_RESULT): Now empty if there is no d_ino.
5187 (size_add_wrapv, glob_use_alloca): New static functions.
5188 (glob, glob_in_dir): Check for size_t overflow in several places,
5189 and fix some size_t checks that were not quite right.
5190 Remove old code using SHELL since Bash no longer
5191 uses this.
5192 (glob, prefix_array): Separate MS code better.
5193 (glob_in_dir): Remove old Amiga and VMS code.
5194 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5195 separate files.
5196 (glob_in_dir): Do not rely on undefined behavior in accessing
5197 struct members beyond their bounds. Use a flexible array member
5198 instead
5199 (link_stat): Rename from link_exists2_p and return -1/0 instead of
5200 0/1. Caller changed.
5201 (glob): Fix memory leaks.
5202 * posix/glob64 (globfree64): Move to separate file.
5203 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
5204 (globfree64): Remove hidden alias.
5205 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
5206 oldglob.
5207 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
5208 separate file.
5209 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
5210 define.
5211 Move compat code to separate file.
5212 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
5213 separate file.
5214
5215 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
5216
5217 * resolv/tst-resolv-qtypes.c (domain): Changed to
5218 "const char domain[] =".
5219
5220 2017-09-07 Joseph Myers <joseph@codesourcery.com>
5221
5222 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5223 version to 3.1.6.
5224
5225 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
5226 (TCP_MD5SIG_EXT): Likewise.
5227 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
5228 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
5229 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
5230
5231 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
5232
5233 2017-09-07 Mike FABIAN <mfabian@redhat.com>
5234
5235 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
5236
5237 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
5238
5239 [BZ #22100]
5240 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
5241
5242 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5243
5244 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
5245 before assuming that the file is empty. Avoid testing buffer content
5246 when nread == 0.
5247
5248 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5249
5250 [BZ #18858]
5251 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5252 Remove define.
5253 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
5254 Likewise.
5255 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
5256 Likewise.
5257 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
5258 Likewise.
5259 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5260 Likewise.
5261 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
5262 Likewise.
5263 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
5264 Likewise.
5265
5266 2017-09-06 Florian Weimer <fweimer@redhat.com>
5267
5268 * malloc/dynarray_emplace_enlarge.c
5269 (__libc_dynarray_emplace_enlarge): Add missing else.
5270
5271 2017-09-06 Florian Weimer <fweimer@redhat.com>
5272
5273 [BZ #22096]
5274 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
5275 case of failure to obtain the global conf object.
5276
5277 2017-09-06 Florian Weimer <fweimer@redhat.com>
5278
5279 [BZ #22095]
5280 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
5281 dynarray allocation failure.
5282
5283 2017-09-06 Florian Weimer <fweimer@redhat.com>
5284
5285 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
5286 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
5287 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
5288 New functions.
5289 (response): Call them. Add 'p', '6' flag processing.
5290 (test_reverse): New function.
5291 (test_get2_any): Call it.
5292 (test_no_inet6): Add 'p' test.
5293 (test_inet6): Likewise.
5294
5295 2017-09-06 Florian Weimer <fweimer@redhat.com>
5296
5297 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
5298 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
5299 the QNAME.
5300 (test_gai): Adjust query names. Add additional tests.
5301 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
5302 test_get2. Adjust query names. Add additional tests.
5303 (test_no_inet6): New function, extracted from threadfunc.
5304 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
5305 Add additional tests.
5306
5307 2017-09-06 Mike FABIAN <mfabian@redhat.com>
5308
5309 [BZ #22070]
5310 * localedata/unicode-gen/utf8_gen.py: Set the width for
5311 characters with Prepended_Concatenation_Mark property to 1
5312 * localedata/charmaps/UTF-8: Updated using the improved script.
5313
5314 2017-09-06 Mike FABIAN <mfabian@redhat.com>
5315
5316 [BZ #21750]
5317 * localedata/unicode-gen/utf8_gen.py: Improve the script to
5318 use the range notation for all ranges of neighbouring characters
5319 with the same width.
5320
5321 2017-09-05 Joseph Myers <joseph@codesourcery.com>
5322
5323 * sysdeps/generic/math-type-macros-double.h: Include
5324 <math-svid-compat.h>.
5325 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5326 * sysdeps/generic/math-type-macros-float.h: Include
5327 <math-svid-compat.h>.
5328 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5329 * sysdeps/generic/math-type-macros-ldouble.h: Include
5330 <math-svid-compat.h>.
5331 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5332 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
5333 condition.
5334 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
5335 * math/w_acosf_compat.c: Likewise.
5336 * math/w_acosh_compat.c: Likewise.
5337 * math/w_acoshf_compat.c: Likewise.
5338 * math/w_acoshl_compat.c: Likewise.
5339 * math/w_acosl_compat.c: Likewise.
5340 * math/w_asin_compat.c: Likewise.
5341 * math/w_asinf_compat.c: Likewise.
5342 * math/w_asinl_compat.c: Likewise.
5343 * math/w_atan2_compat.c: Likewise.
5344 * math/w_atan2f_compat.c: Likewise.
5345 * math/w_atan2l_compat.c: Likewise.
5346 * math/w_atanh_compat.c: Likewise.
5347 * math/w_atanhf_compat.c: Likewise.
5348 * math/w_atanhl_compat.c: Likewise.
5349 * math/w_cosh_compat.c: Likewise.
5350 * math/w_coshf_compat.c: Likewise.
5351 * math/w_coshl_compat.c: Likewise.
5352 * math/w_exp10_compat.c: Likewise.
5353 * math/w_exp10f_compat.c: Likewise.
5354 * math/w_exp10l_compat.c: Likewise.
5355 * math/w_exp2_compat.c: Likewise.
5356 * math/w_exp2f_compat.c: Likewise.
5357 * math/w_exp2l_compat.c: Likewise.
5358 * math/w_fmod_compat.c: Likewise.
5359 * math/w_fmodf_compat.c: Likewise.
5360 * math/w_fmodl_compat.c: Likewise.
5361 * math/w_hypot_compat.c: Likewise.
5362 * math/w_hypotf_compat.c: Likewise.
5363 * math/w_hypotl_compat.c: Likewise.
5364 * math/w_j0_compat.c: Likewise.
5365 * math/w_j0f_compat.c: Likewise.
5366 * math/w_j0l_compat.c: Likewise.
5367 * math/w_j1_compat.c: Likewise.
5368 * math/w_j1f_compat.c: Likewise.
5369 * math/w_j1l_compat.c: Likewise.
5370 * math/w_jn_compat.c: Likewise.
5371 * math/w_jnf_compat.c: Likewise.
5372 * math/w_jnl_compat.c: Likewise.
5373 * math/w_lgamma_r_compat.c: Likewise.
5374 * math/w_lgammaf_r_compat.c: Likewise.
5375 * math/w_lgammal_r_compat.c: Likewise.
5376 * math/w_log10_compat.c: Likewise.
5377 * math/w_log10f_compat.c: Likewise.
5378 * math/w_log10l_compat.c: Likewise.
5379 * math/w_log2_compat.c: Likewise.
5380 * math/w_log2f_compat.c: Likewise.
5381 * math/w_log2l_compat.c: Likewise.
5382 * math/w_log_compat.c: Likewise.
5383 * math/w_logf_compat.c: Likewise.
5384 * math/w_logl_compat.c: Likewise.
5385 * math/w_pow_compat.c: Likewise.
5386 * math/w_powf_compat.c: Likewise.
5387 * math/w_powl_compat.c: Likewise.
5388 * math/w_remainder_compat.c: Likewise.
5389 * math/w_remainderf_compat.c: Likewise.
5390 * math/w_remainderl_compat.c: Likewise.
5391 * math/w_sinh_compat.c: Likewise.
5392 * math/w_sinhf_compat.c: Likewise.
5393 * math/w_sinhl_compat.c: Likewise.
5394 * math/w_sqrt_compat.c: Likewise.
5395 * math/w_sqrtf_compat.c: Likewise.
5396 * math/w_sqrtl_compat.c: Likewise.
5397 * math/w_tgamma_compat.c: Likewise.
5398 * math/w_tgammaf_compat.c: Likewise.
5399 * math/w_tgammal_compat.c: Likewise.
5400 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
5401 [LIBM_SVID_COMPAT].
5402 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
5403 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
5404 [LIBM_SVID_COMPAT].
5405 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
5406 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
5407 [LIBM_SVID_COMPAT].
5408 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
5409 * sysdeps/i386/fpu/w_sqrt.c: New file.
5410 * sysdeps/ia64/fpu/w_acos.c: Likewise.
5411 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5412 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5413 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5414 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5415 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5416 * sysdeps/ia64/fpu/w_asin.c: Likewise.
5417 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5418 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5419 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5420 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5421 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5422 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5423 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5424 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5425 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5426 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5427 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5428 * sysdeps/ia64/fpu/w_exp.c: Likewise.
5429 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5430 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5431 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5432 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5433 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5434 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5435 * sysdeps/ia64/fpu/w_expf.c: Likewise.
5436 * sysdeps/ia64/fpu/w_expl.c: Likewise.
5437 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5438 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5439 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5440 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5441 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5442 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5443 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
5444 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
5445 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
5446 * sysdeps/ia64/fpu/w_log.c: Likewise.
5447 * sysdeps/ia64/fpu/w_log10.c: Likewise.
5448 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5449 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5450 * sysdeps/ia64/fpu/w_log2.c: Likewise.
5451 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5452 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5453 * sysdeps/ia64/fpu/w_logf.c: Likewise.
5454 * sysdeps/ia64/fpu/w_logl.c: Likewise.
5455 * sysdeps/ia64/fpu/w_pow.c: Likewise.
5456 * sysdeps/ia64/fpu/w_powf.c: Likewise.
5457 * sysdeps/ia64/fpu/w_powl.c: Likewise.
5458 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5459 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5460 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5461 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5462 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5463 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5464 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5465 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5466 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5467 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
5468 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
5469 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
5470 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
5471 [LIBM_SVID_COMPAT].
5472 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
5473 * sysdeps/ieee754/k_standard.c: Likewise.
5474 * sysdeps/ieee754/k_standardf.c: Likewise.
5475 * sysdeps/ieee754/k_standardl.c: Likewise.
5476 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
5477 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
5478 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
5479 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
5480 long_double_symbol call on [LIBM_SVID_COMPAT].
5481 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5482 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5483 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5484 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5485 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5486 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5487 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5488 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5489 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5490 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5491 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5492 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
5493 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5494 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5495 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5496 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5497 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5498 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5499 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5500 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5501 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
5502 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
5503
5504 2017-09-05 Steve Ellcey <sellcey@cavium.com>
5505
5506 * include/shlib-compat.h (TEST_COMPAT): New Macro.
5507 * malloc/tst-mallocstate.c: Convert from test-skeleton
5508 to test-driver. Ifdef code using TEST_COMPAT macro.
5509 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
5510 * math/test-matherr.c: Likewise.
5511
5512 2017-09-05 Joseph Myers <joseph@codesourcery.com>
5513
5514 [BZ #22086]
5515 * debug/pcprofiledump.c (main): Use byte-swapped mask when
5516 comparing word with byte-swapped constant.
5517
5518 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
5519
5520 [BZ #20498]
5521 * locale/iso-639.def: add Miskito.
5522 * localedata/SUPPORTED: Add miq_NI/UTF-8.
5523 * localedata/locales/miq_NI: New file.
5524
5525 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
5526
5527 [BZ #18822]
5528 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
5529 (__mkdir): Likewise.
5530 * io/chmod.c (__chmod): Add libc_hidden_def.
5531 * io/mkdir.c (__mkdir): Likewise.
5532 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
5533 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
5534 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
5535 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
5536
5537 2017-09-04 Joseph Myers <joseph@codesourcery.com>
5538
5539 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5540 version to 4.13.
5541
5542 [BZ #22082]
5543 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
5544 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5545
5546 2017-09-04 Florian Weimer <fweimer@redhat.com>
5547
5548 * math/math.h: Issue warning if log is defined.
5549
5550 2017-09-04 Joseph Myers <joseph@codesourcery.com>
5551
5552 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5553 kernel version to 4.13.
5554
5555 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5556
5557 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
5558 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
5559 parameter.
5560 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
5561 just <bits/types.h>.
5562 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
5563 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
5564 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
5565 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
5566 * misc/preadv2.c: Include <errno.h>.
5567 * misc/preadv64v2.c: Include <errno.h>.
5568 * misc/pwritev2.c: Include <errno.h>.
5569 * misc/pwritev64v2.c: Include <errno.h>.
5570 * sysdeps/posix/preadv2.c: Include <errno.h>.
5571 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
5572 Fix <unistd.h> inclusion.
5573 * sysdeps/posix/pwritev2.c: Include <errno.h>.
5574 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
5575 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
5576 __strtoul_internal): New functions.
5577 * sysdeps/posix/pause.c: Include <sigsetops.h>.
5578 * sysdeps/posix/system.c: Include <sigsetops.h>.
5579 * sysdeps/mach/hurd/i386/Makefile
5580 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
5581 [$(subdir) = csu] (sysdep-only-routines): Likewise.
5582 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
5583 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
5584 __feraiseexcept_renamed to feraiseexcept instead of
5585 __GI_feraiseexcept.
5586 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
5587 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
5588 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
5589 RWF_NOWAIT): Define to 0 if undefined already.
5590 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
5591 boils down to 0.
5592 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
5593 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
5594
5595 2017-09-01 Joseph Myers <joseph@codesourcery.com>
5596
5597 * manual/math.texi (pow10): Do not document.
5598 (pow10f): Likewise.
5599 (pow10l): Likewise.
5600 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
5601 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
5602 * math/libm-test-exp10.inc (pow10_test): Remove.
5603 (do_test): Do not call pow10.
5604 * math/w_exp10_compat.c (pow10): Make into compat symbol.
5605 [NO_LONG_DOUBLE] (pow10l): Likewise.
5606 * math/w_exp10f_compat.c (pow10f): Likewise.
5607 * math/w_exp10l_compat.c (pow10l): Likewise.
5608 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
5609 (pow10): Make into compat symbol.
5610 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
5611 (pow10f): Make into compat symbol.
5612 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
5613 (pow10l): Make into compat symbol.
5614 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
5615 pow10.
5616 (CFLAGS-nldbl-pow10.c): Remove variable..
5617 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
5618 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
5619 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
5620 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
5621 Undefine and redefine.
5622 (pow10l): Make into compat symbol.
5623 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
5624 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
5625 * sysdeps/arm/libm-test-ulps: Likewise.
5626 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
5627 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5628 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5629 * sysdeps/microblaze/libm-test-ulps: Likewise.
5630 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5631 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5632 * sysdeps/nios2/libm-test-ulps: Likewise.
5633 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5634 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5635 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5636 * sysdeps/sh/libm-test-ulps: Likewise.
5637 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5638 * sysdeps/tile/libm-test-ulps: Likewise.
5639 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5640
5641 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5642
5643 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
5644
5645 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
5646
5647 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
5648 "../ChangeLog.old/ChangeLog.8".
5649 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
5650 "../ChangeLog.old/ChangeLog.14".
5651
5652 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
5653
5654 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
5655 Threads Library.
5656
5657 2017-09-01 Joseph Myers <joseph@codesourcery.com>
5658
5659 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
5660
5661 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
5662
5663 * csu/version.c (banner): Remove "by Roland McGrath et al.".
5664 * nptl/Banner: Remove "by Ulrich Drepper et al.".
5665
5666 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
5667
5668 * stdlib/tst-atexit-common.c (do_test): Test support for at least
5669 32 atexit handlers.
5670
5671 2017-09-01 Zack Weinberg <zackw@panix.com>
5672
5673 * math/math.h (HUGE_VAL): Improve commentary.
5674
5675 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5676 Andreas Schwab <schwab@suse.de>
5677
5678 [BZ #21530]
5679 * include/stdio.h (__gen_tempfd): New function.
5680 * stdio-common/Makefile (routines): Add gentempfd.
5681 * stdio-common/gentempfd.c: New file.
5682 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
5683 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
5684 unnamed file first.
5685
5686 2017-09-01 Florian Weimer <fweimer@redhat.com>
5687
5688 [BZ #21915]
5689 [BZ #21922]
5690 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
5691 result to determine success or failure, not the errno value.
5692 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
5693 (tst-nss-files-hosts-erange): Link with -ldl.
5694 * nss/tst-nss-files-hosts-erange.c: New file.
5695 * nss/tst-resolv-basic.c (response): Handle nodata.example.
5696 (do_test): Add NO_DATA tests.
5697 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
5698 (do_test): Call it.
5699
5700 2017-09-01 Florian Weimer <fweimer@redhat.com>
5701
5702 [BZ #21922]
5703 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
5704 coming from gethostbyname2_r.
5705
5706 2017-09-01 Florian Weimer <fweimer@redhat.com>
5707
5708 * support/namespace.h (struct support_chroot_configuration): Add
5709 hosts, host_conf.
5710 (struct support_chroot): Add path_hosts, path_host_conf.
5711 * support/support_chroot.c (write_file): New function.
5712 (support_chroot_create): Call it to process /etc/resolv.conf,
5713 /etc/hosts, /etc/host.conf.
5714 (support_chroot_free): Update.
5715
5716 2017-09-01 Florian Weimer <fweimer@redhat.com>
5717
5718 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
5719 status indicates it is set.
5720
5721 2017-09-01 Florian Weimer <fweimer@redhat.com>
5722
5723 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
5724 function lookup failures more reliable.
5725
5726 2017-09-01 Florian Weimer <fweimer@redhat.com>
5727
5728 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
5729 (getcanonname): Likewise.
5730 (gaih_inet): Likewise.
5731
5732 2017-09-01 Florian Weimer <fweimer@redhat.com>
5733
5734 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
5735 (getcanonname): Likewise.
5736 (gaih_inet): Likewise.
5737
5738 2017-08-31 Steve Ellcey <sellcey@cavium.com>
5739 Richard Henderson <rth@twiddle.net>
5740
5741 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
5742 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
5743 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
5744 (IREG_SIZE, OREG_SIZE): New macros.
5745 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
5746 (IREG_SIZE, OREG_SIZE): New macros.
5747 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
5748 (IREG_SIZE): New macro.
5749 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
5750 (IREG_SIZE): New macro.
5751 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
5752 New includes.
5753 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
5754 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5755 (__CONCATX): Handle exceptions correctly on large values that may
5756 set FE_INVALID.
5757 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
5758 Initialize if not already set.
5759 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5760
5761 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5762
5763 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
5764 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
5765 Likewise.
5766 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
5767 Likewise.
5768 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
5769 Likewise.
5770 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
5771 Likewise.
5772 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
5773 Likewise.
5774 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
5775 Likewise.
5776 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
5777 Likewise.
5778 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
5779 (NO_CANCELLATION): Likewise.
5780 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
5781 Likewise.
5782 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
5783 Likewise.
5784 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
5785 Likewise.
5786 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
5787 (NO_CANCELLATION): Likewise.
5788 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
5789 (NO_CANCELLATION): Likewise.
5790 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
5791 Likewise
5792 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
5793 Likewise.
5794 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
5795 Likewise.
5796 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
5797 Likewise.
5798 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
5799 hidden prototype.
5800 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
5801 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
5802
5803 2017-08-31 Steve Ellcey <sellcey@cavium.com>
5804
5805 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
5806 in resolver call.
5807
5808 2017-08-31 Florian Weimer <fweimer@redhat.com>
5809
5810 * include/libc-symbols.h (internal_function): Remove.
5811
5812 2017-08-31 Florian Weimer <fweimer@redhat.com>
5813
5814 * stdlib/fmtmsg.c (internal_addseverity): Remove
5815 internal_function.
5816
5817 2017-08-31 Florian Weimer <fweimer@redhat.com>
5818
5819 * stdio-common/printf_fp.c (group_number): Remove
5820 internal_function.
5821 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5822
5823 2017-08-31 Florian Weimer <fweimer@redhat.com>
5824
5825 * posix/fnmatch.c (internal_function): Remove definition.
5826 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
5827 * posix/regcomp.c (peek_token, init_word_char)
5828 (duplicate_node_closure, fetch_token, peek_token)
5829 (peek_token_bracket, build_range_exp, build_collating_symbol):
5830 Likewise.
5831 * posix/regex_internal.c (re_string_construct_common)
5832 (create_ci_newstate, create_cd_newstate, re_string_allocate)
5833 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
5834 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
5835 (re_string_translate_buffer, re_string_reconstruct)
5836 (re_string_peek_byte_case, re_string_fetch_byte_case)
5837 (re_string_destruct, re_string_context_at, re_node_set_alloc)
5838 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
5839 (re_node_set_add_intersect, re_node_set_init_union)
5840 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
5841 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
5842 (re_dfa_add_node, calc_state_hash, re_acquire_state)
5843 (re_acquire_state_context): Likewise.
5844 * posix/regex_internal.h (internal_function): Remove definition.
5845 (re_string_realloc_buffers, build_wcs_buffer)
5846 (build_wcs_upper_buffer, build_upper_buffer)
5847 (re_string_translate_buffer, re_string_context_at)
5848 (re_string_char_size_at, re_string_wchar_at)
5849 (re_string_elem_size_at): Likewise.
5850 * posix/regexec.c (match_ctx_init, match_ctx_clean)
5851 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
5852 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
5853 (re_search_internal, re_search_2_stub, re_search_stub)
5854 (re_copy_regs, prune_impossible_nodes, check_matching)
5855 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
5856 (free_fail_stack_return, sift_states_iter_mb)
5857 (sift_states_backward, build_sifted_states)
5858 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
5859 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
5860 (check_subexp_limits, sift_states_bkref, merge_state_array)
5861 (find_recover_state, transit_state, merge_state_with_log)
5862 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
5863 (transit_state_mb, transit_state_bkref, get_subexp)
5864 (get_subexp_sub, find_subexp_node, check_arrival)
5865 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
5866 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
5867 (check_node_accept_bytes, find_collation_sequence_value)
5868 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
5869 (acquire_init_state_context, check_halt_node_context)
5870 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
5871 (sub_epsilon_src_nodes): Likewise.
5872 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
5873 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
5874 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
5875 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
5876 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
5877 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
5878 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
5879 * sysdeps/posix/ttyname.c (getttyname): Likewise.
5880 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
5881 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
5882 (PREADV): Likewise.
5883 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
5884 (PREADV): Likewise.
5885 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
5886 (PWRITEV): Likewise.
5887 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
5888 (PWRITEV): Likewise.
5889 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
5890 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
5891
5892 2017-08-31 Florian Weimer <fweimer@redhat.com>
5893
5894 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
5895 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
5896 Remove internal_function.
5897 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
5898 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
5899 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
5900 (__deallocate_stack, __libc_pthread_init)
5901 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
5902 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
5903 (__libc_disable_asynccancel, __librt_disable_asynccancel):
5904 Likewise.
5905 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
5906 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
5907 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
5908 Likewise.
5909 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
5910 (__pthread_mutex_unlock_usercnt): Likewise.
5911
5912 2017-08-31 Florian Weimer <fweimer@redhat.com>
5913
5914 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
5915 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
5916 (fts_safe_changedir): Remove internal_function.
5917 * io/ftw.c (internal_function): Remove definition.
5918 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
5919
5920 2017-08-31 Florian Weimer <fweimer@redhat.com>
5921
5922 * inet/deadline.c (__deadline_current_time)
5923 (__deadline_from_timeval, __deadline_to_ms): Remove
5924 internal_function.
5925 * inet/getnameinfo.c (nrl_domainname): Likewise.
5926 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
5927 * inet/inet6_option.c (add_pad): Likewise.
5928 * inet/net-internal.h (__deadline_current_time)
5929 (__deadline_from_timeval, __deadline_to_ms): Likewise.
5930 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
5931 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
5932 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
5933
5934 2017-08-31 Joseph Myers <joseph@codesourcery.com>
5935
5936 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
5937 include <bits/nan.h>.
5938 * math/Makefile (headers): Remove bits/nan.h.
5939 * bits/nan.h: Remove.
5940 * sysdeps/ieee754/bits/nan.h: Likewise.
5941 * sysdeps/mips/bits/nan.h: Likewise.
5942
5943 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
5944 not include <bits/inf.h>.
5945 * math/Makefile (headers): Remove bits/inf.h.
5946 * bits/inf.h: Remove.
5947 * sysdeps/ieee754/bits/inf.h: Likewise.
5948
5949 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
5950 bits/huge_vall.h or bits/huge_val_flt128.h.
5951 (HUGE_VAL): Define directly here.
5952 [__USE_ISOC99] (HUGE_VALF): Likewise.
5953 [__USE_ISOC99] (HUGE_VALL): Likewise.
5954 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5955 (HUGE_VAL_F128): Likewise.
5956 * math/Makefile (headers): Remove bits/huge_val.h,
5957 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
5958 * bits/huge_val.h: Remove.
5959 * bits/huge_val_flt128.h: Likewise.
5960 * bits/huge_valf.h: Likewise.
5961 * bits/huge_vall.h: Likewise.
5962 * sysdeps/ia64/bits/huge_vall.h: Likewise.
5963 * sysdeps/ieee754/bits/huge_val.h: Likewise.
5964 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
5965 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
5966 * sysdeps/sh/bits/huge_val.h: Likewise.
5967 * sysdeps/sparc/bits/huge_vall.h: Likewise.
5968 * sysdeps/x86/bits/huge_vall.h: Likewise.
5969
5970 2017-08-31 Florian Weimer <fweimer@redhat.com>
5971
5972 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
5973 internal_function.
5974 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
5975 Likewise.
5976 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
5977 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
5978 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
5979 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
5980 * elf/dl-fini.c (_dl_sort_fini): Likewise.
5981 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
5982 * elf/dl-libc.c (dlerror_run): Likewise.
5983 * elf/dl-load.c (add_name_to_object, decompose_rpath)
5984 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
5985 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
5986 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
5987 Likewise.
5988 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
5989 (_dl_higher_prime_number, _dl_strtoul): Likewise.
5990 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
5991 * elf/dl-profile.c (_dl_start_profile): Likewise.
5992 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
5993 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
5994 Likewise.
5995 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
5996 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
5997 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
5998 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
5999 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
6000 (_dl_allocate_tls_storage): Likewise.
6001 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
6002 (_dl_check_all_versions): Likewise.
6003 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
6004 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
6005 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
6006 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6007 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
6008 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
6009 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
6010 internal_function from __dl_start.
6011 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
6012 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
6013 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
6014 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
6015 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
6016 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
6017 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
6018 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
6019 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
6020 (_dl_next_ld_env_entry, _dl_important_hwcaps)
6021 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
6022 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
6023 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
6024 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
6025 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
6026 Likewise.
6027 (struct rtld_global_ro): Remove internal_function from the
6028 _dl_lookup_symbol_x member.
6029 (_dl_symbol_value): Remove. No longer defined anywhere.
6030 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
6031 internal_function.
6032 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6033 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
6034 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
6035 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
6036 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
6037 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
6038 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
6039 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
6040 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
6041 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
6042 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
6043 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
6044
6045 2017-08-31 Florian Weimer <fweimer@redhat.com>
6046
6047 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
6048 Remove internal_function.
6049 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6050 Likewise.
6051 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
6052 Likewise.
6053
6054 2017-08-31 Florian Weimer <fweimer@redhat.com>
6055
6056 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
6057 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
6058 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
6059
6060 2017-08-31 Florian Weimer <fweimer@redhat.com>
6061
6062 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
6063 (__gai_enqueue_request): Remove internal_function.
6064 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
6065 (__gai_remove_request, __gai_notify, __gai_notify_only)
6066 (__gai_sigqueue): Likewise.
6067 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
6068 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
6069 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
6070 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
6071 Likewise.
6072
6073 2017-08-31 Florian Weimer <fweimer@redhat.com>
6074
6075 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
6076 * include/dirent.h (__opendirat, __getdents, __getdents64)
6077 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
6078 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
6079 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6080 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
6081 Likewise.
6082 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
6083
6084 2017-08-31 Florian Weimer <fweimer@redhat.com>
6085
6086 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
6087 internal_function.
6088 (GETCWD_RETURN_TYPE): Likewise.
6089
6090 2017-08-31 Florian Weimer <fweimer@redhat.com>
6091
6092 * include/time.h (__tz_compute, __strptime_internal): Remove
6093 internal_function.
6094 * time/strptime_l.c (__strptime_internal): Likewise.
6095 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
6096
6097 2017-08-31 Florian Weimer <fweimer@redhat.com>
6098
6099 * iconv/gconv.c (__gconv): Remove internal_function.
6100 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
6101 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
6102 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
6103 (__gconv_release_cache): Likewise.
6104 * iconv/gconv_close.c (__gconv_close): Likewise.
6105 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
6106 (read_conf_file, __gconv_get_path): Likewise.
6107 * iconv/gconv_db.c (derivation_lookup, add_derivation)
6108 (__gconv_release_step, gen_steps, increment_counter)
6109 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
6110 (__gconv_close_transform, free_modules_db): Likewise.
6111 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
6112 Likewise.
6113 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
6114 (__gconv_find_transform, __gconv_lookup_cache)
6115 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
6116 (__gconv_close_transform, __gconv_release_cache)
6117 (__gconv_loaded_object, __gconv_release_shlib)
6118 (__gconv_compare_alias): Likewise.
6119 * iconv/gconv_open.c (__gconv_open): Likewise.
6120 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
6121 * iconv/iconvconfig.c (add_module): Likewise.
6122 * intl/dcigettext.c (plural_lookup, guess_category_value)
6123 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
6124 * intl/eval-plural.h (plural_eval): Likewise.
6125 * intl/finddomain.c (_nl_find_domain): Likewise.
6126 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
6127 (_nl_load_domain, _nl_find_msg): Likewise.
6128 (internal_function): Remove definition.
6129 * intl/loadinfo.h (internal_function): Likewise.
6130 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
6131 internal_function.
6132 * intl/localealias.c (internal_function): Remove definition.
6133 (read_alias_file): Remove internal_function.
6134 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
6135 * intl/plural-exp.h (internal_function): Remove definition.
6136 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
6137 internal_function.
6138 * intl/plural.c: Regenerate.
6139 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
6140 * locale/coll-lookup.c (__collidx_table_lookup)
6141 (__collseq_table_lookup): Likewise.
6142 * locale/coll-lookup.h (__collidx_table_lookup)
6143 (__collseq_table_lookup): Likewise.
6144 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
6145 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6146 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
6147 (_nl_unload_locale): Likewise.
6148 * locale/localeinfo.h (struct __locale_data): Remove
6149 internal_function from cleanup member.
6150 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
6151 (_nl_remove_locale, _nl_load_locale_from_archive)
6152 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
6153 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
6154 (_nl_cleanup_time): Remove internal_function.
6155 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
6156 (_nl_parse_alt_digit): Likewise.
6157 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
6158 (_nl_select_era_entry): Likewise.
6159 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6160 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6161 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6162 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6163 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6164
6165 2017-08-31 Florian Weimer <fweimer@redhat.com>
6166
6167 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
6168 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
6169 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
6170 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
6171 Likewise.
6172 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
6173 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
6174 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
6175 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6176 Likewise.
6177 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
6178
6179 2017-08-31 Florian Weimer <fweimer@redhat.com>
6180
6181 * misc/getttyent.c (skip, value): Remove internal_function.
6182 * misc/syslog.c (openlog_internal): Likewise.
6183 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
6184
6185 2017-08-31 Florian Weimer <fweimer@redhat.com>
6186
6187 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
6188 (__nss_rewrite_field): Remove internal_function.
6189 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6190 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6191 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6192 * nss/nsswitch.c (nss_parse_file, nss_getline)
6193 (nss_parse_service_list, nss_new_service): Likewise.
6194 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
6195 * nss/valid_field.c (__nss_valid_field): Likewise.
6196 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
6197
6198 2017-08-31 Florian Weimer <fweimer@redhat.com>
6199
6200 * malloc/arena.c (__malloc_fork_lock_parent)
6201 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
6202 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
6203 internal_function from defintions.
6204 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
6205 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
6206 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
6207 internal_function from declarations.
6208 * malloc/malloc.c (internal_function): Do not define.
6209 (mem2mem_check): Remove internal_function from declaration.
6210 (munmap_chunk, mremap_chunk): Remove internal_function.
6211 * malloc/mtrace.c (tr_where): Likewise.
6212
6213 2017-08-31 Florian Weimer <fweimer@redhat.com>
6214
6215 * include/rpc/pmap_clnt.h (__get_socket): Remove
6216 internal_function.
6217 * sunrpc/auth_des.c (synchronize): Likewise.
6218 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
6219 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
6220 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
6221 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
6222 (key_call): Likewise.
6223 * sunrpc/pm_getport.c (__get_socket): Likewise.
6224 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
6225 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
6226 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
6227 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
6228 (invalidate): Likewise.
6229 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
6230 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
6231 (set_input_fragment, get_input_bytes): Likewise.
6232
6233 2017-08-31 Florian Weimer <fweimer@redhat.com>
6234
6235 * malloc/malloc.c (_int_free): Remove locked variable and related
6236 asserts.
6237
6238 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
6239
6240 [BZ #22051]
6241 * Makerules (build-module-helper-objlist): Filter out
6242 $(elf-objpfx)sofini.os.
6243 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
6244 needed.
6245
6246 2017-08-31 Florian Weimer <fweimer@redhat.com>
6247
6248 * libio/fcloseall.c: Assume weak_alias is defined.
6249 * libio/feof.c: Likewise.
6250 * libio/fileno.c: Likewise.
6251 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
6252 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6253 definitions.
6254 (_IO_file_open): Call __open directly.
6255 (_IO_new_file_sync): Assume ESPIPE is defined.
6256 (_IO_file_seekoff_maybe_mmap): Call __read directly.
6257 (_IO_new_file_write): Call __write directly.
6258 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
6259 * libio/ftello64.c (__ftello64): Assume EIO is defined.
6260 * libio/genops.c: Assume _LIBC is defined.
6261 (save_for_backup): Remove internal_function.
6262 * libio/getc.c: Assume weak_alias is defined.
6263 * libio/getwc.c: Likewise.
6264 * libio/iofclose.c: Assume _LIBC is defined.
6265 * libio/iofdopen.c: Likewise.
6266 (_IO_fcntl): Remove macro definition.
6267 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
6268 Call __fcntl directly.
6269 * libio/iofflush.c: Assume weak_alias is defined.
6270 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
6271 defined.
6272 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
6273 * libio/iofgets.c: Likewise.
6274 * libio/iofopen.c: Assume _LIBC is defined.
6275 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
6276 * libio/iofputs.c: Assume weak_alias is defined.
6277 * libio/iofread.c: Likewise.
6278 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
6279 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
6280 * libio/ioftell.c: Assume weak_alias is defined.
6281 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
6282 * libio/iofwide.c: Assume _LIBC is defined.
6283 (_IO_fwide): Drop SHARED conditional because it is implied by
6284 SHLIB_COMPAT.
6285 * libio/iofwrite.c: Assume weak_alias is defined.
6286 * libio/iogetdelim.c: Likewise.
6287 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
6288 * libio/iogetwline.c (wmemcpy): Remove macro definition.
6289 (_IO_getwline): Call __wmemcpy directly.
6290 * libio/iopopen.c: Assume _LIBC is defined.
6291 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6292 (_IO_close): Remove macro definitions.
6293 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
6294 _exit directly.
6295 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
6296 directly.
6297 * libio/ioputs.c: Assume weak_alias is defined.
6298 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
6299 * libio/iosetbuffer.c: Assume weak_alias is defined.
6300 * libio/iosetvbuf.c: Likewise.
6301 * libio/ioungetc.c: Likewise.
6302 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
6303 libc_hidden_def, libc_hidden_weak, NULL are defined.
6304 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
6305 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
6306 defined.
6307 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6308 definitions.
6309 (_IO_old_file_init_internal): Drop SHARED conditional because it
6310 is implied by SHLIB_COMPAT.
6311 (_IO_old_file_fopen): Call __open directly.
6312 (_IO_old_file_sync): Assume ESPIPE is defined.
6313 (_IO_old_file_write): Call __write directly.
6314 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
6315 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
6316 Call __fcntl directly.
6317 * libio/oldiofgetpos.c: Assume weak_alias is defined.
6318 (_IO_old_fgetpos): Assume EIO is defined.
6319 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
6320 (_IO_old_fgetpos64): Assume EIO is defined.
6321 * libio/oldiofsetpos.c: Assume weak_alias is defined.
6322 (_IO_old_fsetpos): Assume EIO is defined.
6323 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
6324 (_IO_old_fsetpos64): Assume EIO is defined.
6325 * libio/oldiopopen.c: Assume _LIBC is defined.
6326 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6327 (_IO_close): Remove macro definitions.
6328 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
6329 directly.
6330 (_IO_old_proc_close): Call __close, __waitpid directly.
6331 * libio/put.c: Assume weak_alias is defined.
6332 * libio/stdfiles.c: Assume _LIBC is defined.
6333 * libio/stdio.c: Likewise.
6334 * libio/wfileops.c: Likewise.
6335 (_IO_wfile_sync): Assume ESPIPE is defined.
6336 * libio/wgenops.c: Assume _LIBC is defined.
6337 (save_for_wbackup): Remove internal_function.
6338
6339 2017-08-31 Florian Weimer <fweimer@redhat.com>
6340
6341 * malloc/malloc.c (top_check): Change return type to void. Remove
6342 internal_function.
6343 * malloc/hooks.c (top_check): Likewise.
6344 (malloc_check, realloc_check, memalign_check): Adjust.
6345
6346 2017-08-30 Joseph Myers <joseph@codesourcery.com>
6347
6348 [BZ #21457]
6349 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6350 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6351 sigcontext and namespace requirements.
6352 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6353 * sysdeps/m68k/sys/ucontext.h: Likewise.
6354 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
6355 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
6356 <bits/sigcontext.h>.
6357 (__ctx): Define earlier.
6358 (mcontext_t): Define structure contents rather than using struct
6359 sigcontext.
6360 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
6361 __glibc_reserved1 instead of __reserved.
6362 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
6363 <bits/sigcontext.h>.
6364 (__ctx): Define earlier.
6365 (mcontext_t): Define structure contents rather than using struct
6366 sigcontext.
6367 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
6368 mcontext_t instead of struct sigcontext.
6369 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
6370 <bits/sigcontext.h>.
6371 (__ctx): Define earlier.
6372 (mcontext_t): Define structure contents rather than using struct
6373 sigcontext.
6374 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
6375 <bits/sigcontext.h>.
6376 (__ctx): Define earlier.
6377 (mcontext_t): Define structure contents rather than using struct
6378 sigcontext.
6379 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
6380 mcontext_t instead of struct sigcontext.
6381 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
6382 mcontext_t instead of struct sigcontext.
6383 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6384 <bits/sigcontext.h>.
6385 (__ctx): New macro.
6386 (struct __ia64_fpreg_mcontext): New type.
6387 (mcontext_t): Define structure contents rather than using struct
6388 sigcontext.
6389 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
6390 (uc_sigmask): Define using __ctx.
6391 (uc_stack): Likewise.
6392 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
6393 <bits/sigcontext.h>.
6394 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6395 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
6396 <bits/sigcontext.h>.
6397 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
6398 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
6399 <bits/sigcontext.h>.
6400 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
6401 <bits/sigcontext.h>.
6402 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
6403 <bits/sigcontext.h>.
6404 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
6405 <bits/sigcontext.h>.
6406 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
6407 <bits/sigcontext.h>.
6408 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
6409 <bits/sigcontext.h>.
6410 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
6411 <bits/sigcontext.h>.
6412 (__ctx): Define earlier.
6413 (mcontext_t): Define structure contents rather than using struct
6414 sigcontext.
6415 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
6416 <bits/sigcontext.h>. Include <bits/types.h>.
6417 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
6418 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
6419 (test-xfail-XPG42/ucontext.h/conform): Likewise.
6420 (test-xfail-UNIX98/signal.h/conform): Likewise.
6421 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6422 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6423 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6424 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6425 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6426 (test-xfail-POSIX2008/signal.h/conform): Likewise.
6427 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6428 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6429 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6430
6431 2017-08-30 Florian Weimer <fweimer@redhat.com>
6432
6433 * malloc/dynarray_emplace_enlarge.c
6434 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
6435 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
6436 * malloc/tst-dynarray.c (test_long_overflow): New function.
6437 (do_test): Call it.
6438
6439 2017-08-30 Florian Weimer <fweimer@redhat.com>
6440
6441 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
6442 (set_arena_corrupt): Remove definitions.
6443 (mtrim): Do not check for corrupt arena.
6444 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
6445 Likewise.
6446
6447 2017-08-30 Florian Weimer <fweimer@redhat.com>
6448
6449 [BZ #21754]
6450 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
6451 check_action.
6452 (ptmalloc_init): Do not set or use check_action.
6453 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
6454 call to malloc_printerr. Remove return statement.
6455 (free_check): Likewise. Remove arena unlock.
6456 (top_check): Update comment. Adjust call to malloc_printerr.
6457 Remove heap repair code.
6458 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
6459 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
6460 (sysmalloc): Adjust call to malloc_printerr.
6461 (munmap_chunk, __libc_realloc): Likewise. Remove return
6462 statement.
6463 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
6464 Remove errout label and corresponding gotos.
6465 (_int_free): Likewise. Remove arena unlock.
6466 (do_set_mallopt_check): Do not set check_action.
6467 (malloc_printerr): Adjust parameter list. Do not mark arena as
6468 corrupt.
6469 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
6470 comment.
6471 * manual/probes.texi (Memory Allocation Probes): Remove
6472 memory_mallopt_check_action.
6473
6474 2017-08-30 Steve Ellcey <sellcey@cavium.com>
6475
6476 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
6477 Use pointer to uint64_t instead of long int for sp.
6478
6479 2017-08-30 Florian Weimer <fweimer@redhat.com>
6480
6481 [BZ #21754]
6482 * malloc/malloc.c (malloc_printerr): Always terminate the process,
6483 without printing a backtrace. Do not leak any information in the
6484 error message.
6485 * manual/memory.texi (Heap Consistency Checking): Update.
6486 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
6487
6488 2017-08-30 Florian Weimer <fweimer@redhat.com>
6489
6490 Do not scale NPTL tests with available number of CPUs.
6491 * nptl/tst-cond16.c (count): Set to constant value of 8.
6492 * nptl/tst-cond18.c (count): Likewise.
6493
6494 2017-08-29 Joseph Myers <joseph@codesourcery.com>
6495
6496 [BZ #22035]
6497 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
6498 Define to take a second argument that is a macro that
6499 concatentates a suffix, not the suffix itself.
6500 (__CONCAT_d): New macro.
6501 (__CONCAT_f): Likewise.
6502 (__CONCAT_l): Likewise.
6503
6504 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
6505
6506 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
6507 by child.
6508
6509 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6510 Aurelien Jarno <aurelien@aurel32.net>
6511 Maciej W. Rozycki <macro@imgtec.com>
6512
6513 [BZ #21956]
6514 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
6515 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
6516 `mips16-syscall6' and `mips16-syscall7'.
6517 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
6518 (CFLAGS-mips16-syscall7.c): Remove.
6519 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
6520 Remove `__mips16_syscall5', `__mips16_syscall6' and
6521 `__mips16_syscall7'.
6522 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
6523 (__mips16_syscall0): Rename `__mips16_syscall_return' to
6524 `__mips_syscall_return'.
6525 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
6526 (__mips16_syscall1): Likewise.
6527 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
6528 (__mips16_syscall2): Likewise.
6529 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
6530 (__mips16_syscall3): Likewise.
6531 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
6532 (__mips16_syscall4): Likewise.
6533 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
6534 Remove.
6535 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
6536 Remove.
6537 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
6538 Remove.
6539 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
6540 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
6541 `__mips16_syscall5'. Remove prototype.
6542 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
6543 `__mips16_syscall6'. Remove prototype.
6544 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
6545 `__mips16_syscall7'. Remove prototype.
6546 (__nomips16, __mips16_syscall_return): Move to...
6547 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
6548 (__nomips16, __mips_syscall_return): ... here.
6549 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
6550 `__mips16_syscall_return' to `__mips_syscall_return'.
6551 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
6552 `internal_syscall##nr'.
6553 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
6554 `internal_syscall##nr'.
6555 (FORCE_FRAME_POINTER): Remove.
6556 (__mips_syscall5): New prototype.
6557 (internal_syscall5): Rewrite to call `__mips_syscall5'.
6558 (__mips_syscall6): New prototype.
6559 (internal_syscall6): Rewrite to call `__mips_syscall6'.
6560 (__mips_syscall7): New prototype.
6561 (internal_syscall7): Rewrite to call `__mips_syscall7'.
6562 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
6563 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
6564 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
6565 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
6566 (sysdep_routines): Add libc-do-syscall.
6567 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
6568 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
6569
6570 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6571
6572 [BZ #21672]
6573 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
6574 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
6575 (advise_stack_range): New function.
6576 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
6577 stack non required to advise_stack_range at allocatestack.c
6578
6579 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
6580
6581 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
6582
6583 2017-08-29 Florian Weimer <fweimer@redhat.com>
6584
6585 [BZ #22026]
6586 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
6587 __end_fct. Mangle __end_fct after setting it to NULL.
6588 * iconv/Makefile (tests): Add tst-gconv-init-failure.
6589 (modules-names, modules-names-tests): Add
6590 tst-gconv-init-failure-mod.
6591 (gconv-modules): New target.
6592 (tst-gconv-init-failure-mod.so): Link against libsupport.
6593 (tst-gconv-init-failure): Depend on gconv-modules,
6594 tst-gconv-init-failure-mod.so.
6595 * iconv/tst-gconv-init-failure-mod.c: New file.
6596 * iconv/tst-gconv-init-failure.c: Likewise.
6597 * iconv/test-gconv-modules: Likewise.
6598
6599 2017-08-29 Florian Weimer <fweimer@redhat.com>
6600
6601 [BZ #22025]
6602 * iconv/gconv_db.c (free_derivation): Remove redundant
6603 parentheses.
6604 (gen_steps): Unconditionally mangle __btowc_fct after
6605 initialization.
6606 (increment_counter): Likewise. Do not call init_fct for internal
6607 modules.
6608
6609 2017-08-29 Joseph Myers <joseph@codesourcery.com>
6610
6611 [BZ #22028]
6612 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6613 (_MSUF_): Remove macro.
6614 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
6615 Likewise.
6616 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6617 (__REDIRFROM_X): New macro.
6618 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
6619 Likewise.
6620 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
6621 (__REDIRTO_X): Likewise.
6622 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
6623 arguments.
6624 (__MATH_REDIRCALL_2): Likewise.
6625 (__MATH_REDIRCALL_INTERNAL): Likewise.
6626 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6627 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
6628 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
6629 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6630 * math/test-finite-macros.c: New file.
6631 * math/Makefile (tests): Add test-finite-macros.
6632 (CFLAGS-test-finite-macros.c): New variable.
6633
6634 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
6635 Jeff Law <law@redhat.com>
6636
6637 [BZ #22025]
6638 Mangle NULL pointers in iconv/gconv.
6639 * iconv/gconv_cache.c (find_module): Demangle init_fct before
6640 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
6641 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
6642 is non-NULL before demangling the end_fct. Check for NULL
6643 end_fct after demangling.
6644 (__gconv_release_step): Demangle the end_fct before checking
6645 it for NULL. Remove assert on __shlibc_handle != NULL.
6646 (gen_steps): Don't check btowc_fct for NULL before mangling.
6647 Demangle init_fct before checking for NULL.
6648 (increment_counter): Likewise.
6649 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
6650 end_fct for NULL before mangling.
6651 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
6652 for NULL.
6653
6654 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
6655
6656 [BZ #21971]
6657 * locale/iso-639.def: add Morisyen.
6658
6659 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6660
6661 [BZ #21930]
6662 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
6663 (iszero): New C++ implementation that does not use
6664 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
6665 signaling nans are enabled, since __builtin_types_compatible_p
6666 is a C-only feature.
6667 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
6668 defined, include ieee754_float128.h for access to the union and
6669 member ieee854_float128.ieee.
6670 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
6671 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
6672 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
6673 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
6674 options of test-math-zero on powerpc64le.
6675
6676 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
6677
6678 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
6679 Change double to float.
6680
6681 2017-08-28 Joseph Myers <joseph@codesourcery.com>
6682
6683 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
6684 unconditional.
6685 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
6686 conditional code; define contents only for [LIBM_SVID_COMPAT].
6687
6688 2017-08-28 Florian Weimer <fweimer@redhat.com>
6689
6690 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
6691 (abi-lp64_be-options): Remove.
6692 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
6693 (abi-hard-options): Likewise.
6694 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
6695 (abi-o32_hard-options, abi-o32_soft_2008-options)
6696 (abi-o32_hard_2008-options, abi-n32_soft-options)
6697 (abi-n32_hard-options, abi-n32_soft_2008-options)
6698 (abi-n32_hard_2008-options, abi-n64_soft-options)
6699 (abi-n64_hard-options, abi-n64_soft_2008-options)
6700 (abi-n64_hard_2008-options): Likewise.
6701 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
6702 (abi-64-v1-options, abi-64-v2-options): Likewise.
6703 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
6704 (abi-64-options): Likewise.
6705 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
6706 (abi-64-options): Likewise.
6707 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
6708 (abi-64-options): Likewise.
6709 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
6710 (abi-64-options, abi-x32-options): Likewise.
6711
6712 2017-08-28 Florian Weimer <fweimer@redhat.com>
6713
6714 Store supported list of SYS_* system calls in the source tree.
6715 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6716 (bits/syscall.h): Generate from list file.
6717 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
6718 [$(subdir) = misc] (tests): Add tst-syscall-list.
6719 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
6720 [$(subdir) = misc] (tst-syscall-list-macros.list)
6721 [$(subdir) = misc] (tst-syscall-list-nr.list)
6722 (tst-syscall-list-sys.list): Helper targets for new
6723 tst-syscall-list test.
6724 [$(subdir) = misc] (tst-syscall-list.out): Run test script
6725 tst-syscall-list.sh.
6726 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
6727 target. Do not include bits/syscall.d.
6728 [$(subdir) = misc] (generated): Do not update.
6729 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
6730 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
6731 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
6732 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
6733
6734 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
6735
6736 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
6737 (tst-cxa_atexit, tst-on_exit): Likewise.
6738 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
6739 tst-cxa_atexit, and tst-on_exit.
6740 * stdlib/tst-atexit-common.c: New file.
6741 * stdlib/tst-atexit.c: New file.
6742 * stdlib/tst-at_quick_exit.c: New file.
6743 * stdlib/tst-cxa_atexit.c: New file.
6744 * stdlib/tst-on_exit.c: New file.
6745
6746 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
6747
6748 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
6749 * mach/stack_chk_fail_local.c: New file.
6750 * hurd/stack_chk_fail_local.c: New file.
6751 * mach/Machrules ($(interface-library)-routines): Add
6752 stack_chk_fail_local.
6753 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
6754 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
6755 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
6756 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
6757 * hurd/Makefile (CFLAGS-hurdstartup.o,
6758 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
6759
6760 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
6761
6762 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
6763 (index_cpu_*, index_arch_*): Removed.
6764
6765 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
6766
6767 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
6768 Use uint64_t instead of unsigned long.
6769
6770 2017-08-25 Joseph Myers <joseph@codesourcery.com>
6771
6772 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
6773 [__HAVE_DISTINCT_FLOAT128].
6774
6775 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
6776 of <bits/math-finite.h>.
6777 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
6778 inclusion of <bits/math-finite.h>.
6779 * math/bits/math-finite.h (__REDIRTO_X): Do not define
6780 conditionally on [__MATH_DECLARING_LDOUBLE && defined
6781 __NO_LONG_DOUBLE_MATH].
6782 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
6783 (__MATH_REDIRCALL_2): Likewise.
6784 (__MATH_REDIRCALL_INTERNAL): Likewise.
6785 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6786 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
6787 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6788
6789 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
6790 Remove file.
6791 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
6792 Likewise.
6793 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
6794 Likewise.
6795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
6796 Likewise.
6797 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
6798 Likewise.
6799 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
6800 Likewise.
6801 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6802 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6803 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6804 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6805 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6806 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
6807 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
6808 w_sqrtf_compat-ppc32.
6809
6810 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6811
6812 * math/math.h [defined __cplusplus] (issignaling): In the long
6813 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
6814 is not defined. Call __issignaling, otherwise.
6815
6816 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6817
6818 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
6819 syscall definitions and replace __builtin_expect with __glibc_likely.
6820 * sysdeps/unix/syscall-template.S: Update comment about cancellable
6821 syscall.
6822 (SYSCALL_CANCELLABLE): Removedefinition
6823 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
6824 definition.
6825 (PSEUDO_END): Likewise.
6826 [IS_IN (libpthread)] (CENABLE): Likewise.
6827 [IS_IN (libpthread)] (CDISABLE): Likewise.
6828 [IS_IN (libc)] (CENABLE): Likewise.
6829 [IS_IN (libc)] (CENABLE): Likewise.
6830 [IS_IN (librt)] (CDISABLE): Likewise.
6831 [IS_IN (librt)] (CDISABLE): Likewise.
6832 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6833 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
6834 definition.
6835 (PSEUDO_END): Likewise.
6836 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
6837 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
6838 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6839 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6840 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6841 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6842 (CENABLE): Likewise.
6843 (CDISABLE): Likewise.
6844 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6845 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
6846 defintion.
6847 (PSEUDO_END): Likewise.
6848 [IS_IN (libpthread)] (CENABLE): Likewise.
6849 [IS_IN (libpthread)] (CDISABLE): Likewise.
6850 [IS_IN (libc)] (CENABLE): Likewise.
6851 [IS_IN (libc)] (CENABLE): Likewise.
6852 [IS_IN (librt)] (CDISABLE): Likewise.
6853 [IS_IN (librt)] (CDISABLE): Likewise.
6854 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6855 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
6856 definition.
6857 (PSEUDO_END): Likewise.
6858 [IS_IN (libpthread)] (CENABLE): Likewise.
6859 [IS_IN (libpthread)] (CDISABLE): Likewise.
6860 [IS_IN (libc)] (CENABLE): Likewise.
6861 [IS_IN (libc)] (CENABLE): Likewise.
6862 [IS_IN (librt)] (CDISABLE): Likewise.
6863 [IS_IN (librt)] (CDISABLE): Likewise.
6864 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6865 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
6866 definition.
6867 (PSEUDO_END): Likewise.
6868 [IS_IN (libpthread)] (CENABLE): Likewise.
6869 [IS_IN (libpthread)] (CDISABLE): Likewise.
6870 [IS_IN (libc)] (CENABLE): Likewise.
6871 [IS_IN (libc)] (CENABLE): Likewise.
6872 [IS_IN (librt)] (CDISABLE): Likewise.
6873 [IS_IN (librt)] (CDISABLE): Likewise.
6874 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6875 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
6876 definition.
6877 (PSEUDO_END): Likewise.
6878 [IS_IN (libpthread)] (CENABLE): Likewise.
6879 [IS_IN (libpthread)] (CDISABLE): Likewise.
6880 [IS_IN (libc)] (CENABLE): Likewise.
6881 [IS_IN (libc)] (CENABLE): Likewise.
6882 [IS_IN (librt)] (CDISABLE): Likewise.
6883 [IS_IN (librt)] (CDISABLE): Likewise.
6884 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6885 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
6886 definition.
6887 (PSEUDO_END): Likewise.
6888 [IS_IN (libpthread)] (CENABLE): Likewise.
6889 [IS_IN (libpthread)] (CDISABLE): Likewise.
6890 [IS_IN (libc)] (CENABLE): Likewise.
6891 [IS_IN (libc)] (CENABLE): Likewise.
6892 [IS_IN (librt)] (CDISABLE): Likewise.
6893 [IS_IN (librt)] (CDISABLE): Likewise.
6894 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6895 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
6896 definition.
6897 (PSEUDO_END): Likewise.
6898 [IS_IN (libpthread)] (CENABLE): Likewise.
6899 [IS_IN (libpthread)] (CDISABLE): Likewise.
6900 [IS_IN (libc)] (CENABLE): Likewise.
6901 [IS_IN (libc)] (CENABLE): Likewise.
6902 [IS_IN (librt)] (CDISABLE): Likewise.
6903 [IS_IN (librt)] (CDISABLE): Likewise.
6904 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6905 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
6906 Remove definition.
6907 (PSEUDO_END): Likewise.
6908 [IS_IN (libpthread)] (CENABLE): Likewise.
6909 [IS_IN (libpthread)] (CDISABLE): Likewise.
6910 [IS_IN (libc)] (CENABLE): Likewise.
6911 [IS_IN (libc)] (CENABLE): Likewise.
6912 [IS_IN (librt)] (CDISABLE): Likewise.
6913 [IS_IN (librt)] (CDISABLE): Likewise.
6914 (SINGLE_THREAD_P): Likewise.
6915 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
6916 definition.
6917 (PSEUDO_END): Likewise.
6918 [IS_IN (libpthread)] (CENABLE): Likewise.
6919 [IS_IN (libpthread)] (CDISABLE): Likewise.
6920 [IS_IN (libc)] (CENABLE): Likewise.
6921 [IS_IN (libc)] (CENABLE): Likewise.
6922 [IS_IN (librt)] (CDISABLE): Likewise.
6923 [IS_IN (librt)] (CDISABLE): Likewise.
6924 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6925 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
6926 definition.
6927 (PSEUDO_END): Likewise.
6928 [IS_IN (libpthread)] (CENABLE): Likewise.
6929 [IS_IN (libpthread)] (CDISABLE): Likewise.
6930 [IS_IN (libc)] (CENABLE): Likewise.
6931 [IS_IN (libc)] (CENABLE): Likewise.
6932 [IS_IN (librt)] (CDISABLE): Likewise.
6933 [IS_IN (librt)] (CDISABLE): Likewise.
6934 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6935 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
6936 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6937 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
6938 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
6939 definition.
6940 (PSEUDO_END): Likewise.
6941 [IS_IN (libpthread)] (CENABLE): Likewise.
6942 [IS_IN (libpthread)] (CDISABLE): Likewise.
6943 [IS_IN (libc)] (CENABLE): Likewise.
6944 [IS_IN (libc)] (CENABLE): Likewise.
6945 [IS_IN (librt)] (CDISABLE): Likewise.
6946 [IS_IN (librt)] (CDISABLE): Likewise.
6947 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6948 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
6949 definition.
6950 (PSEUDO_END): Likewise.
6951 [IS_IN (libpthread)] (CENABLE): Likewise.
6952 [IS_IN (libpthread)] (CDISABLE): Likewise.
6953 [IS_IN (libc)] (CENABLE): Likewise.
6954 [IS_IN (libc)] (CENABLE): Likewise.
6955 [IS_IN (librt)] (CDISABLE): Likewise.
6956 [IS_IN (librt)] (CDISABLE): Likewise.
6957 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6958 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
6959 definition.
6960 (PSEUDO_END): Likewise.
6961 [IS_IN (libpthread)] (CENABLE): Likewise.
6962 [IS_IN (libpthread)] (CDISABLE): Likewise.
6963 [IS_IN (libc)] (CENABLE): Likewise.
6964 [IS_IN (libc)] (CENABLE): Likewise.
6965 [IS_IN (librt)] (CDISABLE): Likewise.
6966 [IS_IN (librt)] (CDISABLE): Likewise.
6967 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6968 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
6969 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6970 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
6971 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
6972 definition.
6973 (PSEUDO_END): Likewise.
6974 [IS_IN (libpthread)] (CENABLE): Likewise.
6975 [IS_IN (libpthread)] (CDISABLE): Likewise.
6976 [IS_IN (libc)] (CENABLE): Likewise.
6977 [IS_IN (libc)] (CENABLE): Likewise.
6978 [IS_IN (librt)] (CDISABLE): Likewise.
6979 [IS_IN (librt)] (CDISABLE): Likewise.
6980 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6981 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
6982 definition.
6983 (PSEUDO_END): Likewise.
6984 [IS_IN (libpthread)] (CENABLE): Likewise.
6985 [IS_IN (libpthread)] (CDISABLE): Likewise.
6986 [IS_IN (libc)] (CENABLE): Likewise.
6987 [IS_IN (libc)] (CENABLE): Likewise.
6988 [IS_IN (librt)] (CDISABLE): Likewise.
6989 [IS_IN (librt)] (CDISABLE): Likewise.
6990 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6991
6992 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
6993
6994 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
6995
6996 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
6997
6998 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6999
7000 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
7001
7002 [BZ #21982]
7003 * string/stratcliff.c (do_test): Declare size, nchars, inner,
7004 middle and outer with size_t instead of int. Repleace %d and
7005 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
7006 "MAX (outer, nchars - 64)" to support unsigned outer and
7007 nchars. Also exit loop when outer == 0.
7008
7009 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7010
7011 * include/fcntl.h (__fcntl_nocancel): Remove definition.
7012 * include/signal.h (__sigsuspend_nocancel): Likewise.
7013 * include/time.h (__nanosleep_nocancel): Likewise.
7014 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
7015 * login/utmp_file.c: Include non cancellable syscall header.
7016 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
7017 prototype.
7018
7019 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
7020
7021 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
7022 .byte sequences with AVX512F instructions.
7023 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
7024 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
7025 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
7026 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
7027 Likewise.
7028 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
7029 Likewise.
7030
7031 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
7032 Steve Ellcey <sellcey@cavium.com>
7033
7034 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
7035 Use PTR_REG macro in cmp instruction.
7036
7037 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7038
7039 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
7040 Change the return type of the ifunc resolver to match the return
7041 type of the target function.
7042
7043 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7044
7045 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
7046 (preadv64): Likewise.
7047 (pwrite64(: Likewise.
7048 (pwritev64): Likewise.
7049
7050 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7051 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
7052 (LOAD_ARGS_0): Likewise.
7053 (LOAD_ARGS_1): Likewise.
7054 (LOAD_ARGS_2): Likewise.
7055 (LOAD_ARGS_3): Likewise.
7056 (LOAD_ARGS_4): Likewise.
7057 (LOAD_ARGS_5): Likewise.
7058 (LOAD_ARGS_6): Likewise.
7059 (LOAD_REGS_0): Likewise.
7060 (LOAD_REGS_1): Likewise.
7061 (LOAD_REGS_2): Likewise.
7062 (LOAD_REGS_3): Likewise.
7063 (LOAD_REGS_4): Likewise.
7064 (LOAD_REGS_5): Likewise.
7065 (LOAD_REGS_6): Likewise.
7066 (ASM_ARGS_0): Likewise.
7067 (ASM_ARGS_1): Likewise.
7068 (ASM_ARGS_2): Likewise.
7069 (ASM_ARGS_3): Likewise.
7070 (ASM_ARGS_4): Likewise.
7071 (ASM_ARGS_5): Likewise.
7072 (ASM_ARGS_6): Likewise.
7073 (LOAD_ARGS_TYPES_1): Likewise.
7074 (LOAD_ARGS_TYPES_2): Likewise.
7075 (LOAD_ARGS_TYPES_3): Likewise.
7076 (LOAD_ARGS_TYPES_4): Likewise.
7077 (LOAD_ARGS_TYPES_5): Likewise.
7078 (LOAD_ARGS_TYPES_6): Likewise.
7079 (LOAD_REGS_TYPES_1): Likewise.
7080 (LOAD_REGS_TYPES_2): Likewise.
7081 (LOAD_REGS_TYPES_3): Likewise.
7082 (LOAD_REGS_TYPES_4): Likewise.
7083 (LOAD_REGS_TYPES_5): Likewise.
7084 (LOAD_REGS_TYPES_6): Likewise.
7085 (TYPEFY): New define.
7086 (ARGIFY): Likewise.
7087 (internal_syscall0): Likewise.
7088 (internal_syscall1): Likewise.
7089 (internal_syscall2): Likewise.
7090 (internal_syscall3): Likewise.
7091 (internal_syscall4): Likewise.
7092 (internal_syscall5): Likewise.
7093 (internal_syscall6): Likewise.
7094 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
7095 (INTERNAL_SYSCALL_NCS): Remove define.
7096 (internal_syscall1): Add define.
7097
7098 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7099
7100 * math/w_remainder_compat.c: Remove duplicate inclusion of
7101 math-svid-compat.h.
7102 * math/w_remainderf_compat.c: Likewise.
7103 * math/w_remainderl_compat.c: Likewise.
7104
7105 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7106
7107 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7108
7109 2017-08-22 Joseph Myers <joseph@codesourcery.com>
7110
7111 [BZ #21684]
7112 * math/tgmath.h (__floating_type): Simplify definitions.
7113 (__real_integer_type): New macro.
7114 (__complex_integer_type): Likewise.
7115 (__expr_is_real): Likewise.
7116 (__tgmath_real_type_sub): Update comment to describe handling of
7117 complex types.
7118 (__tgmath_complex_type_sub): New macro.
7119 (__tgmath_complex_type): Likewise.
7120 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7121 (__TGMATH_CF128): Use __expr_is_real.
7122 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
7123 __expr_is_real.
7124 (__TGMATH_BINARY_REAL_IMAG): Likewise.
7125 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
7126 * math/gen-tgmath-tests.py (Type.create_type): Create complex
7127 integer types.
7128
7129 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7130
7131 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
7132 macro.
7133 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
7134 alias.
7135 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
7136 Likewise.
7137
7138 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
7139 nanosleep_not_cancel with __nanosleep_nocancel.
7140 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
7141 (__nanosleep_nocancel): New macro.
7142 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
7143 function.
7144 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
7145 macro.
7146 (__nanosleep_nocancel): New prototype.
7147
7148 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
7149 pause_not_cancel with __pause_nocancel.
7150 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
7151 (__pause_nocancel): New macro.
7152 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
7153 macro.
7154 (__pause_nocancel): New prototype.
7155 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
7156
7157 2017-08-22 Martin Sebor <msebor@redhat.com>
7158
7159 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
7160 to return a pointer to the same type as the target function.
7161
7162 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
7163
7164 [BZ #18822]
7165 [BZ #21986]
7166 * include/printf.h (__printf_fphex): Add attribute_hidden.
7167 (__guess_grouping): New prototype.
7168 * stdio-common/printf_fp.c (__guess_grouping): Removed.
7169 * stdio-common/reg-printf.c (__register_printf_specifier): Add
7170 libc_hidden_proto and libc_hidden_def.
7171 * stdlib/strfmon_l.c (__guess_grouping): Removed.
7172 (__vstrfmon_l): Remove the third argument passed to
7173 __guess_grouping.
7174
7175 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7176
7177 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
7178 definition for issignaling that does not rely on __MATH_TG,
7179 since __MATH_TG uses __builtin_types_compatible_p, which is only
7180 available in C mode.
7181 (CFLAGS-test-math-issignaling.cc): New variable.
7182 * math/Makefile [CXX] (tests): Add test-math-issignaling.
7183 * math/test-math-issignaling.cc: New test for C++ implementation
7184 of type-generic issignaling.
7185 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7186 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
7187 options of test-math-issignaling on powerpc64le.
7188
7189 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
7190
7191 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7192 building libc.a.
7193 (hidden_proto): Likewise.
7194 (hidden_tls_proto): Likewise.
7195 (__hidden_proto): Likewise.
7196
7197 2017-08-22 Florian Weimer <fweimer@redhat.com>
7198
7199 math: Statically link tests of internal functionality.
7200 * math/Makefile (tests): Remove atest-exp, atest-sincos,
7201 atest-exp2.
7202 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
7203 (gmp-objs): Remove assignment.
7204 (atest-exp, atest-sincos, atest-exp2): Remove targets.
7205
7206 2017-08-22 Joseph Myers <joseph@codesourcery.com>
7207
7208 [BZ #21987]
7209 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
7210 and copy to ...
7211 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
7212 ... here.
7213 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
7214 ... and here.
7215
7216 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
7217 variable definitions above inclusion of ../Rules.
7218
7219 2017-08-21 Joseph Myers <joseph@codesourcery.com>
7220
7221 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
7222 case calling __builtin_unreachable.
7223
7224 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7225
7226 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
7227 __waitpid_nocancel.
7228 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
7229 (__waitpid_nocancel): New macro.
7230 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
7231 macro.
7232 (__waitpid_nocancel): Replace macro with a function.
7233 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
7234 function.
7235
7236 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
7237 __fcntl_nocancel.
7238 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
7239 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
7240
7241 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
7242 __writev_nocancel_nostatus.
7243 (write_call_graph): Likewise.
7244 (write_bb_counts): Likewise.
7245 * resolv/herror.c (herror): Likewise.
7246 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
7247 macro.
7248 (__writev_nocancel_nostatus): New macro.
7249 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
7250 Remove macro.
7251 (__writev_nocancel_nostatus): New function.
7252
7253 2017-08-21 Joseph Myers <joseph@codesourcery.com>
7254
7255 Revert:
7256 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7257
7258 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7259 building libc.a.
7260 (hidden_proto): Likewise.
7261 (hidden_tls_proto): Likewise.
7262 (__hidden_proto): Likewise.
7263
7264 [BZ #21973]
7265 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
7266 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7267 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7268 Likewise.
7269 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
7270 Likewise.
7271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7272 Likewise.
7273 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
7274 Likewise.
7275 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
7276 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7277 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7278 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7279 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7280 GLIBC_2.0 sqrtl symbol.
7281
7282 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
7283 [__USE_MISC] (_LIB_VERSION): Likewise.
7284 [__USE_MISC] (struct exception): Likewise.
7285 [__USE_MISC] (matherr): Likewise.
7286 [__USE_MISC] (DOMAIN): Likewise.
7287 [__USE_MISC] (SING): Likewise.
7288 [__USE_MISC] (OVERFLOW): Likewise.
7289 [__USE_MISC] (UNDERFLOW): Likewise.
7290 [__USE_MISC] (TLOSS): Likewise.
7291 [__USE_MISC] (PLOSS): Likewise.
7292 [__USE_MISC] (HUGE): Likewise.
7293 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
7294 * math/math-svid-compat.h: New file.
7295 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
7296 and matherrl.
7297 * include/math.h [!_ISOMAC] (__matherr): Remove.
7298 * manual/arith.texi (FP Exceptions): Do not document matherr.
7299 * math/Makefile (tests): Change test-matherr to test-matherr-3.
7300 (tests-internal): New variable.
7301 (install-lib): Do not add libieee.a.
7302 (non-lib.a): Likewise.
7303 (extra-objs): Do not add libieee.a and ieee-math.o.
7304 (CPPFLAGS-s_lib_version.c): Remove variable.
7305 ($(objpfx)libieee.a): Remove rule.
7306 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
7307 * math/ieee-math.c: Remove.
7308 * math/libm-test-support.c (matherr): Remove.
7309 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
7310 and license notices. Include <math-svid-compat.h> and
7311 <shlib-compat.h>.
7312 (matherr): Undefine as macro. Use compat_symbol_reference.
7313 (_LIB_VERSION): Likewise.
7314 * math/test-matherr-2.c: New file.
7315 * math/test-matherr-3.c: Likewise.
7316 * sysdeps/generic/math_private.h (__kernel_standard): Remove
7317 declaration.
7318 (__kernel_standard_f): Likewise.
7319 (__kernel_standard_l): Likewise.
7320 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
7321 <math_private.h>. Include <math-svid-compat.h>.
7322 (_LIB_VERSION): Undefine as macro.
7323 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
7324 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
7325 [LIBM_SVID_COMPAT], use compat_symbol.
7326 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
7327 <math_private.h>. Include <math-svid-compat.h>.
7328 (matherr): Undefine as macro.
7329 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
7330 compat_symbol.
7331 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
7332 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
7333 compat_symbol_reference.
7334 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
7335 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
7336 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
7337 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
7338 (MATHERR_D): Remove declaration.
7339 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
7340 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
7341 [LIBM_BUILD] (pmatherrf): Likewise.
7342 [LIBM_BUILD] (pmatherr): Likewise.
7343 [LIBM_BUILD] (pmatherrl): Likewise.
7344 (DOMAIN): Likewise.
7345 (SING): Likewise.
7346 (OVERFLOW): Likewise.
7347 (UNDERFLOW): Likewise.
7348 (TLOSS): Likewise.
7349 (PLOSS): Likewise.
7350 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
7351 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
7352 compat_symbol.
7353 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
7354 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
7355 compat_symbol.
7356 * math/lgamma-compat.h: Include <math-svid-compat.h>.
7357 * math/w_acos_compat.c: Likewise.
7358 * math/w_acosf_compat.c: Likewise.
7359 * math/w_acosh_compat.c: Likewise.
7360 * math/w_acoshf_compat.c: Likewise.
7361 * math/w_acoshl_compat.c: Likewise.
7362 * math/w_acosl_compat.c: Likewise.
7363 * math/w_asin_compat.c: Likewise.
7364 * math/w_asinf_compat.c: Likewise.
7365 * math/w_asinl_compat.c: Likewise.
7366 * math/w_atan2_compat.c: Likewise.
7367 * math/w_atan2f_compat.c: Likewise.
7368 * math/w_atan2l_compat.c: Likewise.
7369 * math/w_atanh_compat.c: Likewise.
7370 * math/w_atanhf_compat.c: Likewise.
7371 * math/w_atanhl_compat.c: Likewise.
7372 * math/w_cosh_compat.c: Likewise.
7373 * math/w_coshf_compat.c: Likewise.
7374 * math/w_coshl_compat.c: Likewise.
7375 * math/w_exp10_compat.c: Likewise.
7376 * math/w_exp10f_compat.c: Likewise.
7377 * math/w_exp10l_compat.c: Likewise.
7378 * math/w_exp2_compat.c: Likewise.
7379 * math/w_exp2f_compat.c: Likewise.
7380 * math/w_exp2l_compat.c: Likewise.
7381 * math/w_fmod_compat.c: Likewise.
7382 * math/w_fmodf_compat.c: Likewise.
7383 * math/w_fmodl_compat.c: Likewise.
7384 * math/w_hypot_compat.c: Likewise.
7385 * math/w_hypotf_compat.c: Likewise.
7386 * math/w_hypotl_compat.c: Likewise.
7387 * math/w_j0_compat.c: Likewise.
7388 * math/w_j0f_compat.c: Likewise.
7389 * math/w_j0l_compat.c: Likewise.
7390 * math/w_j1_compat.c: Likewise.
7391 * math/w_j1f_compat.c: Likewise.
7392 * math/w_j1l_compat.c: Likewise.
7393 * math/w_jn_compat.c: Likewise.
7394 * math/w_jnf_compat.c: Likewise.
7395 * math/w_jnl_compat.c: Likewise.
7396 * math/w_lgamma_main.c: Likewise.
7397 * math/w_lgamma_r_compat.c: Likewise.
7398 * math/w_lgammaf_main.c: Likewise.
7399 * math/w_lgammaf_r_compat.c: Likewise.
7400 * math/w_lgammal_main.c: Likewise.
7401 * math/w_lgammal_r_compat.c: Likewise.
7402 * math/w_log10_compat.c: Likewise.
7403 * math/w_log10f_compat.c: Likewise.
7404 * math/w_log10l_compat.c: Likewise.
7405 * math/w_log2_compat.c: Likewise.
7406 * math/w_log2f_compat.c: Likewise.
7407 * math/w_log2l_compat.c: Likewise.
7408 * math/w_log_compat.c: Likewise.
7409 * math/w_logf_compat.c: Likewise.
7410 * math/w_logl_compat.c: Likewise.
7411 * math/w_pow_compat.c: Likewise.
7412 * math/w_powf_compat.c: Likewise.
7413 * math/w_powl_compat.c: Likewise.
7414 * math/w_remainder_compat.c: Likewise.
7415 * math/w_remainderf_compat.c: Likewise.
7416 * math/w_remainderl_compat.c: Likewise.
7417 * math/w_scalb_compat.c: Likewise.
7418 * math/w_scalbf_compat.c: Likewise.
7419 * math/w_scalbl_compat.c: Likewise.
7420 * math/w_sinh_compat.c: Likewise.
7421 * math/w_sinhf_compat.c: Likewise.
7422 * math/w_sinhl_compat.c: Likewise.
7423 * math/w_sqrt_compat.c: Likewise.
7424 * math/w_sqrtf_compat.c: Likewise.
7425 * math/w_sqrtl_compat.c: Likewise.
7426 * math/w_tgamma_compat.c: Likewise.
7427 * math/w_tgammaf_compat.c: Likewise.
7428 * math/w_tgammal_compat.c: Likewise.
7429 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
7430 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7431 * sysdeps/ieee754/k_standard.c: Likewise.
7432 * sysdeps/ieee754/k_standardf.c: Likewise.
7433 * sysdeps/ieee754/k_standardl.c: Likewise.
7434 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7435 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7436 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7437 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7438 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7439 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7440 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7441 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
7442 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7443 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7444 Likewise.
7445 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7446 Likewise.
7447 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
7448 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7449 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7450 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7451
7452 2017-08-21 Florian Weimer <fweimer@redhat.com>
7453
7454 [BZ #21864]
7455 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
7456 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
7457 Move before inclusion of ../Rules.
7458
7459 2017-08-21 Florian Weimer <fweimer@redhat.com>
7460
7461 [BZ #21972]
7462 * assert/assert.h (assert): Use static_cast (bool) for C++.
7463 Use the ternary operator in the warning branch for GNU C.
7464 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
7465 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
7466 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
7467 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
7468 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
7469
7470 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7471
7472 [BZ #18822]
7473 * sysdeps/unix/sysv/linux/x86_64/init-first.c
7474 (__syscall_clock_gettime): Add attribute_hidden.
7475 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
7476 (__start_context): Likewise.
7477
7478 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7479
7480 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7481 building libc.a.
7482 (hidden_proto): Likewise.
7483 (hidden_tls_proto): Likewise.
7484 (__hidden_proto): Likewise.
7485
7486 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7487
7488 * include/libc-symbols.h (attribute_hidden): Enable hidden
7489 visibility in libc.a compiled with PIE.
7490
7491 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7492
7493 [BZ #18822]
7494 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
7495 Add attribute_hidden.
7496
7497 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7498
7499 [BZ #21864]
7500 * Makerules (all-nonlib): Add $(others-extras).
7501 * catgets/Makefile (others-extras): New.
7502 * elf/Makefile (others-extras): Likewise.
7503 * nss/Makefile (others-extras): Likewise.
7504
7505 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7506
7507 [BZ #18822]
7508 * csu/libc-start.c (__libc_multiple_libcs): Removed.
7509 * elf/dl-open.c: Include <libc-internal.h>.
7510 (__libc_multiple_libcs): Removed.
7511 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
7512 <hp-timing.h>.
7513 * include/libc-internal.h (__libc_multiple_libcs): New.
7514 * misc/sbrk.c: Include <libc-internal.h>.
7515 (__libc_multiple_libcs): Removed.
7516
7517 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
7518
7519 [BZ #18822]
7520 * grp/initgroups.c (__nss_group_database): Removed.
7521 (__nss_initgroups_database): Likewise.
7522 * nscd/gai.c (__nss_hosts_database): Likewise.
7523 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
7524 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7525 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7526 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7527 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
7528 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
7529 attribute_hidden.
7530 * nss/nsswitch.c (__nss_database_custom): Define only if
7531 USE_NSCD is defined.
7532 (__nss_configure_lookup): Use __nss_database_custom only if
7533 USE_NSCD is defined.
7534 * nss/nsswitch.h (__nss_database_custom): Declare only if
7535 USE_NSCD is defined. Add attribute_hidden.
7536 (__nss_setent): Add attribute_hidden.
7537 (__nss_endent): Likewise.
7538 (__nss_getent_r): Likewise.
7539 (__nss_getent): Likewise.
7540 (DEFINE_DATABASE): Declare __nss_##arg##_database.
7541
7542 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7543
7544 [BZ #18822]
7545 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
7546 libc_hidden_proto and libc_hidden_def.
7547
7548 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7549
7550 [BZ #18822]
7551 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
7552 Add libc_hidden_proto.
7553 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
7554 Add libc_hidden_def.
7555
7556 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7557
7558 [BZ #21974]
7559 * gmon/Makefile (routines): Remove bb_init_func and
7560 bb_exit_func.
7561 (elide-routines.os): Removed.
7562 * gmon/bb_exit_func.c: Likewise.
7563 * gmon/bb_init_func.c: Likewise.
7564 * include/sys/gmon.h (__bb): Likewise.
7565 (__bb_init_func): Likewise.
7566 (__bb_exit_func): Likewise.
7567 * sysdeps/alpha/bb_init_func.S: Likewise.
7568
7569 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
7570
7571 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
7572 * include/setjmp.h (____longjmp_chk): Here. Add
7573 attribute_hidden.
7574
7575 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
7576
7577 [BZ #18822]
7578 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
7579 attribute_hidden.
7580 (__strspn_sse2): Likewise.
7581
7582 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7583
7584 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
7585 (close_not_cancel_no_status): Likewise.
7586 (__close_nocancel): New macro.
7587 (__close_nocancel_nostatus): Likewise.
7588 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
7589 macro.
7590 (close_not_cancel): Likewise.
7591 (close_not_cancel_no_status): Likewise.
7592 (__close_nocancel): New prototype.
7593 (__close_nocancel_nostatus): New function.
7594 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
7595 * catgets/open_catalog.c (__open_catalog): Replace
7596 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
7597 * gmon/gmon.c (write_gmon): Likewise.
7598 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7599 * intl/loadmsgcat.c (close): Likewise.
7600 * io/ftw.c (open_dir_stream): Likewise.
7601 (ftw_startup): Likewise.
7602 * libio/fileops.c (_IO_file_open): Likewise.
7603 (_IO_file_close_mmap): Likewise.
7604 (_IO_file_close): Likewise.
7605 * libio/iopopen.c (_IO_dup2): Likewise.
7606 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7607 * locale/loadlocale.c (_nl_load_locale): Likewise.
7608 * login/utmp_file.c (pututline_file): Likewise.
7609 (endutent_file): Likewise.
7610 * misc/daemon.c (daemon): Likewise.
7611 * nscd/nscd_getai.c (__nscd_getai): Likewise.
7612 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7613 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7614 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7615 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7616 * nscd/nscd_helper.c (open_socket): Likewise.
7617 (__nscd_open_socket): Likewise.
7618 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7619 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
7620 (__nscd_innetgr): Likewise.
7621 * nss/nss_db/db-open.c (internal_setent): Likewise.
7622 * resolv/res-close.c (__res_iclose): Likewise.
7623 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
7624 * sysdeps/posix/closedir.c (__closedir): Likewise.
7625 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
7626 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7627 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7628 (opendir_tail): Likewise.
7629 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7630 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
7631 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7632 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
7633 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7634 (gethostid): Likewise.
7635 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7636 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7637 Likewise.
7638 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7639 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
7640 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7641 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7642 Likewise.
7643 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
7644 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
7645 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7646 Likewise.
7647 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
7648 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7649 Likewise.
7650 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7651 Likewise.
7652 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7653 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7654 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7655 __close_nocancel.
7656
7657 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
7658 (openat_not_cancel_3): Likewise.
7659 (openat64_not_cancel_3): Likewise).
7660 (openat_not_cancel_3): Likewise).
7661 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
7662 macro.
7663 (openat_not_cancel_3): Likewise.
7664 (openat64_not_cancel): Likewise.
7665 (openat64_not_cancel_3): Likewise.
7666 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
7667 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
7668 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
7669 __open{64}_nocancel.
7670 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7671 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7672 * sysdeps/posix/opendir.c (__opendirat): Likewise.
7673
7674 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
7675
7676 [BZ #18822]
7677 * include/argz.h (__argz_create_sep): New function prototype.
7678 (__argz_append): Likewise.
7679 (__argz_add): Likewise.
7680 (__argz_add_sep): Likewise.
7681 (__argz_delete): Likewise.
7682 (__argz_insert): Likewise.
7683 (__argz_replace): Likewise.
7684 * string/argz.h (__argz_create_sep): Removed.
7685 (__argz_append): Likewise.
7686 (__argz_add): Likewise.
7687 (__argz_add_sep): Likewise.
7688 (__argz_delete): Likewise.
7689 (__argz_insert): Likewise.
7690 (__argz_replace): Likewise.
7691
7692 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
7693
7694 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
7695 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
7696 (GNU_PROPERTY_STACK_SIZE): Likewie.
7697 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
7698 (GNU_PROPERTY_LOPROC): Likewise.
7699 (GNU_PROPERTY_HIPROC): Likewise.
7700 (GNU_PROPERTY_LOUSER): Likewise.
7701 (GNU_PROPERTY_HIUSER): Likewise.
7702 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
7703 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
7704 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
7705 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
7706 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
7707 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
7708 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
7709 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
7710 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
7711 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
7712 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
7713 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
7714 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
7715 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
7716 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
7717 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
7718 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
7719 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
7720 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
7721 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
7722 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
7723 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
7724 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
7725
7726 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7727
7728 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
7729 in C++ mode.
7730
7731 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
7732
7733 [BZ #21930]
7734 * math/math.h (isinf): Check if in C or C++ mode before using
7735 __builtin_types_compatible_p, since this is a C mode feature.
7736
7737 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7738
7739 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
7740 (__write_nocancel): New macro.
7741 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
7742 Rewrite as a function prototype.
7743 (write_not_cancel): Remove macro.
7744 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
7745 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
7746 (write_gmon): Likewise.
7747 * libio/fileops.c (_IO_new_file_write): Likewise.
7748 * login/utmp_file.c (pututline_file): Likewise.
7749 (updwtmp_file): Likewise.
7750 * stdio-common/psiginfo.c (psiginfo): Likewise.
7751 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7752 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7753 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7754 Likewise.
7755 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7756 Likewise.
7757
7758 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
7759 (__read_nocancel): New macro.
7760 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7761 __read_nocancel.
7762 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
7763 macro.
7764 (__read_nocancel): New prototype.
7765 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
7766 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
7767 with __read_nocancel.
7768 * intl/loadmsgcat.c (read): Likewise.
7769 * libio/fileops.c (_IO_file_read): Likewise.
7770 * locale/loadlocale.c (_nl_load_locale): Likewise.
7771 * login/utmp_file.c (getutent_r_file): Likewise.
7772 (internal_getut_r): Likewise.
7773 (getutline_r_file): Likewise.
7774 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7775 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7776 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7777 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7778 Likewise.
7779 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
7780 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7781 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7782 Likewise.
7783 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7784 Likewise.
7785 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7786 Likewise.
7787 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7788 Likewise.
7789 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7790
7791 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
7792
7793 [BZ #21966]
7794 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
7795 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
7796 usable.
7797
7798 2017-08-17 DJ Delorie <dj@redhat.com>
7799
7800 * bug17079.c: Update to new test harness.
7801 * test-digits-dots.c: Likewise.
7802 * test-netdb.c: Likewise.
7803 * tst-field.c: Likewise.
7804 * tst-nss-getpwent.c: Likewise.
7805 * tst-nss-static.c: Likewise.
7806 * tst-nss-test1.c: Likewise.
7807 * tst-nss-test2.c: Likewise.
7808 * tst-nss-test3.c: Likewise.
7809 * tst-nss-test4.c: Likewise.
7810 * tst-nss-test5.c: Likewise.
7811
7812 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7813
7814 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
7815 (open_not_cancel_2): Likewise.
7816 (open_nocancel): New macro.
7817 (open64_nocancel): Likewise.
7818 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
7819 (open_not_cancel_2): Likewise.
7820 (__open_nocancel): New prototype.
7821 (__open64_nocancel): Likewise.
7822 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7823 __open_nocancel.
7824 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
7825 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
7826 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
7827 with __open_nocancel.
7828 * csu/check_fds.c (check_one_fd): Likewise.
7829 * gmon/gmon.c (write_gmon): Likewise.
7830 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
7831 * intl/loadmsgcat.c (open): Likewise.
7832 * libio/fileops.c (_IO_file_open): Likewise.
7833 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7834 * locale/loadlocale.c (_nl_load_locale): Likewise.
7835 * login/utmp_file.c (setutent_file): Likewise.
7836 * misc/daemon.c (daemon): Likewise.
7837 * nss/nss_db/db-open.c (internal_setent): Likewise.
7838 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7839 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
7840 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7841 (__opendir): Likewise.
7842 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7843 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7844 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7845 (gethostid): Likewise.
7846 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7847 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7848 Likewise.
7849 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7850 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
7851 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7852 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7853 Likewise.
7854 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7855 Likewise.
7856 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7857 Likewise.
7858 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
7859 Likewise.
7860 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7861 Likewise.
7862 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7863 Likewise.
7864 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7865 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7866
7867 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
7868
7869 * benchtests/bench-skeleton.c (main): Add support for
7870 latency benchmarking.
7871 * benchtests/scripts/bench.py: Add support for latency benchmarking.
7872
7873 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
7874
7875 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
7876 the startup object.
7877
7878 2017-08-17 Florian Weimer <fweimer@redhat.com>
7879
7880 * include/sys/socket.h (__opensock): Remove internal_function.
7881 * socket/opensock.c (__opensock): Likewise.
7882 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
7883
7884 2017-08-16 Joseph Myers <joseph@codesourcery.com>
7885
7886 [BZ #21944]
7887 * signal/bits/types/__sigval_t.h: New file.
7888 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
7889 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
7890 and define sigval_t using __sigval_t.
7891 * include/bits/types/__sigval_t.h: New file.
7892 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
7893 instead of <bits/types/__sigval_t.h>.
7894 (struct sigevent): Use __sigval_t instead of sigval_t.
7895 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
7896 instead of <bits/types/__sigval_t.h>.
7897 (siginfo_t): Use __sigval_t instead of sigval_t.
7898 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
7899 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
7900 (struct sigevent): Use __sigval_t instead of sigval_t.
7901 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
7902 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
7903 (siginfo_t): Use __sigval_t instead of sigval_t.
7904 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
7905
7906 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
7907
7908 * NEWS: Remove "[Add new features here]" for 2.27.
7909
7910 2017-08-16 Joseph Myers <joseph@codesourcery.com>
7911
7912 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
7913 libc.so.
7914
7915 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
7916
7917 * NEWS: Mention x86-64 FMA optimization.
7918
7919 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
7920
7921 [BZ #21912]
7922 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7923 Add e_expf-fma.
7924 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
7925 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
7926 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
7927
7928 2017-08-16 Andreas Schwab <schwab@suse.de>
7929
7930 [BZ #16750]
7931 CVE-2009-5064
7932 * elf/ldd.bash.in: Never run file directly.
7933
7934 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
7935
7936 [BZ #21955]
7937 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
7938 (L(SP_INF_0)): Likewise.
7939
7940 2017-08-15 Florian Weimer <fweimer@redhat.com>
7941
7942 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
7943 run-built-tests.
7944
7945 2017-08-15 Florian Weimer <fweimer@redhat.com>
7946
7947 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
7948 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
7949 BROKEN_THREAD_SIGNALS code.
7950 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
7951 request_list): Remove caller_pid member used for
7952 BROKEN_THREAD_SIGNALS.
7953 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
7954 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7955 Remove BROKEN_THREAD_SIGNALS support.
7956 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7957 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
7958
7959 2017-08-15 Florian Weimer <fweimer@redhat.com>
7960
7961 * gmon/Makefile (tests): Add tst-gmon.
7962 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
7963 Set.
7964 (tests-special): Add tst-gmon-prof.out.
7965 (tst-gmon.out): Depend on clean-tst-gmon-data.
7966 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
7967 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
7968 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
7969 startup object.
7970 * aclocal.m4 (GPROF): Set and substitute.
7971 * config.amke.in (GPROF): Set.
7972 * configure: Regenerate.
7973
7974 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
7975
7976 * elf/elf.h A (NT_PPC_TAR): New macro.
7977 (NT_PPC_PPR): Likewise.
7978 (NT_PPC_DSCR): Likewise.
7979 (NT_PPC_EBB): Likewise.
7980 (NT_PPC_PMU): Likewise.
7981 (NT_PPC_TM_CGPR): Likewise.
7982 (NT_PPC_TM_CFPR): Likewise.
7983 (NT_PPC_TM_CVMX): Likewise.
7984 (NT_PPC_TM_CVSX): Likewise.
7985 (NT_PPC_TM_SPR): Likewise.
7986 (NT_PPC_TM_CTAR): Likewise.
7987 (NT_PPC_TM_CPPR): Likewise.
7988 (NT_PPC_TM_CDSCR): Likewise.
7989
7990 2017-08-15 Florian Weimer <fweimer@redhat.com>
7991
7992 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
7993 regparm (2) instead of internal_function.
7994 (_MCOUNT_DECL): Adjust.
7995
7996 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
7997
7998 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
7999 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
8000
8001 2017-08-14 Joseph Myers <joseph@codesourcery.com>
8002
8003 * conform/data/sys/wait.h-data (si_value): Do not expect for
8004 XPG42.
8005
8006 2017-08-14 Florian Weimer <fweimer@redhat.com>
8007
8008 [BZ #21962]
8009 NSS: Create stubs for accidentally exported lookup functions.
8010 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
8011 Remove declaration.
8012 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
8013 (ether_hostton): Call __nss_ethers_lookup2 instead.
8014 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
8015 (ether_ntohost): Call __nss_ethers_lookup2 instead.
8016 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
8017 (setup): Call __nss_netgroup_lookup2 instead.
8018 * nss/Makefile (routines): Add compat-lookup.
8019 * nss/Versions (GLIBC_2.27): Add symbol version.
8020 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
8021 (DB_COMPAT_FCT): Remove.
8022 * nss/compat-lookup.c: New file.
8023 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
8024 from databases.def.
8025 * nss/service-lookup.c (NO_COMPAT): Remove definition.
8026 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
8027 (netname2user): Call __nss_publickey_lookup2 instead.
8028 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
8029 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
8030 instead.
8031
8032 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8033 Sergei Trofimovich <slyfox@inbox.ru>
8034
8035 [BZ #21908]
8036 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
8037 Rename to MMAP2_PAGE_UNIT.
8038 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
8039 __OFF_T_MATCHES_OFF64_T is not defined.
8040 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
8041 uint64_t.
8042 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
8043 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
8044
8045 2017-08-14 Florian Weimer <fweimer@redhat.com>
8046
8047 i386: Do not set internal_function.
8048 * config.h.in (USE_REGPARMS, internal_function): Remove.
8049 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
8050 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
8051
8052 2017-08-14 Florian Weimer <fweimer@redhat.com>
8053
8054 * elf/dl-init.c (_dl_init): Remove internal_function.
8055 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
8056 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
8057
8058 2017-08-14 Florian Weimer <fweimer@redhat.com>
8059
8060 * elf/rtld.c (_dl_start): Remove internal_function.
8061 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
8062 _dl_start.
8063
8064 2017-08-14 Florian Weimer <fweimer@redhat.com>
8065
8066 * elf/dl-fini.c (_dl_fini): Remove internal_function
8067 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8068
8069 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
8070
8071 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
8072 (bit_cpu_SHSTK): Likewise.
8073 (index_cpu_IBT): Likewise.
8074 (index_cpu_SHSTK): Likewise.
8075 (reg_IBT): Likewise.
8076 (reg_SHSTK): Likewise.
8077 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8078 Handle index_cpu_IBT and index_cpu_SHSTK.
8079
8080 2017-08-14 Mike FABIAN <mfabian@redhat.com>
8081
8082 [BZ #19982]
8083 * po/fr.po: Fix spelling mistake.
8084
8085 2017-08-13 Florian Weimer <fweimer@redhat.com>
8086
8087 * elf/dl-addr.c (_dl_addr): Remove internal_function.
8088 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
8089 (_dl_catch_error, _dl_receive_error): Likewise.
8090 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
8091 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
8092 (_dl_deallocate_tls): Likewise.
8093 * include/dlfcn.h (_dl_addr): Likewise.
8094 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
8095 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
8096 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
8097 Likewise.
8098
8099 2017-08-13 Florian Weimer <fweimer@redhat.com>
8100
8101 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
8102 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
8103 internal_function.
8104 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
8105
8106 2017-08-13 Florian Weimer <fweimer@redhat.com>
8107
8108 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
8109 internal_function.
8110 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
8111 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
8112 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
8113 internal_function from _dl_make_stack_executable_hook member.
8114 (_dl_make_stack_executable): Remove internal_function.
8115 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
8116 Likewise.
8117 * sysdeps/unix/sysv/linux/dl-execstack.c
8118 (_dl_make_stack_executable): Likewise.
8119
8120 2017-08-13 Florian Weimer <fweimer@redhat.com>
8121
8122 * sysdeps/unix/sysv/linux/netlinkaccess.h
8123 (__netlink_assert_response): Remove internal_function.
8124 * sysdeps/unix/sysv/linux/netlink_assert_response.c
8125 (__netlink_assert_response): Likewise.
8126
8127 2017-08-13 Florian Weimer <fweimer@redhat.com>
8128
8129 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
8130 internal_function.
8131 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
8132
8133 2017-08-13 Florian Weimer <fweimer@redhat.com>
8134
8135 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
8136 internal_function.
8137 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
8138 * inet/netgroup.h (__internal_setnetgrent)
8139 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8140 * inet/getnetgrent_r.c (__internal_setnetgrent)
8141 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8142 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
8143 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
8144 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
8145 * nss/nsswitch.h (db_lookup_function): Likewise.
8146
8147 2017-08-13 Florian Weimer <fweimer@redhat.com>
8148
8149 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
8150 Remove internal_function.
8151 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
8152 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
8153 message argument on the stack.
8154 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
8155 Likeweise.
8156
8157 2017-08-12 Mike FABIAN <mfabian@redhat.com>
8158
8159 Adapt test case data to the changes in the thousands
8160 separators.
8161
8162 [BZ #20756]
8163 * localedata/tst-langinfo.sh: Adapt test case data.
8164 * stdlib/tst-strfmon_l.c: Likewise.
8165 * stdlib/tst-strtod4.c: Likewise.
8166 * stdlib/tst-strtod5i.c: Likewise.
8167
8168 2017-08-11 Florian Weimer <fweimer@redhat.com>
8169
8170 [BZ #21242]
8171 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
8172 Suppress pedantic warning resulting from statement expression.
8173 (__ASSERT_FUNCTION): Add missing __extension__.
8174
8175 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8176
8177 * benchtests/bench-memmove-large.c: Print output in JSON
8178 format.
8179 * benchtests/bench-memmove.c: Likewise.
8180
8181 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
8182 * benchtests/bench-memchr.c (do_one_test): Likewise.
8183 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
8184 * benchtests/bench-memcpy.c (do_one_test): Likewise.
8185 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
8186 * benchtests/bench-memmove.c (do_one_test): Likewise.
8187 * benchtests/bench-memset-large.c (do_one_test): Likewise.
8188 * benchtests/bench-memset.c (do_one_test): Likewise.
8189 * benchtests/bench-string.h (test_init): Remove memsets.
8190
8191 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
8192
8193 * manual/lang.texi
8194 (Computing the Width of an Integer Data Type): Rename section to
8195 "Width of an Integer Type". Remove inaccurate statement regarding
8196 lack of C language facilities for determining width of integer
8197 types, and reorder content to improve flow and context of
8198 discussion.
8199
8200 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
8201
8202 * lang.texi (va_copy): Change standard from ISO to C99.
8203 (__va_copy): Add standard and header annotation.
8204 Update description for clarity of origins and current use.
8205
8206 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
8207
8208 [BZ #21941]
8209 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
8210 xssqrtqp requires operands to be in Vector Registers
8211 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
8212 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
8213 (__ieee754_sqrtf128): Likewise.
8214
8215 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8216
8217 * sysdeps/aarch64/memcmp.S (memcmp):
8218 Rewrite of optimized memcmp.
8219
8220 2017-08-10 Florian Weimer <fweimer@redhat.com>
8221
8222 Introduce ld.so exceptions.
8223 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
8224 (_dl_exception_create, _dl_exception_create_format)
8225 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
8226 (_dl_catch_exception): Declare.
8227 (_dl_catch_error): Update comment.
8228 * elf/dl-error-skeleton.c (struct catch): Replace objname,
8229 errstring, malloced members with exception member.
8230 (_dl_out_of_memory): Remove.
8231 (fatal_error): New function, extracted from _dl_signal_error.
8232 (_dl_signal_exception, _dl_signal_cexception): New functions.
8233 (_dl_signal_error): Call _dl_exception_create to allocate an
8234 exception object.
8235 (_dl_catch_exception): New function, based on _dl_catch_error.
8236 (_dl_catch_error): Implement using _dl_catch_exception.
8237 * elf/dl-exception.c: New file.
8238 * elf/Makefile (dl-routines): Add dl-exception.
8239 (elide-routines.os): Likewise.
8240 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
8241 _dl_exception_create_format, _dl_exception_free.
8242 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
8243 _dl_signal_exception.
8244 * elf/dl-lookup.c (make_string): Remove.
8245 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
8246 _dl_signal_cexception, _dl_exception_free.
8247 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
8248 _dl_signal_exception.
8249 * elf/dl-sym.c (do_sym): Likewise.
8250 * elf/dl-version.c (make_string): Remove.
8251 (match_symbol): Use _dl_exception_create_format,
8252 _dl_signal_cexception, _dl_exception_free.
8253 (_dl_check_map_versions): Likewise.
8254 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
8255 _dl_catch_exception.
8256 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8257 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8258 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8259 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8260 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8261 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8262 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8263 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8264 Likewise.
8265 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8267 (ld.so): Likewise.
8268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8269 (ld.so): Likewise.
8270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8271 Likewise.
8272 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8273 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8274 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8275 Likewise.
8276 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8277 Likewise.
8278 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8279
8280 2017-08-10 Florian Weimer <fweimer@redhat.com>
8281
8282 * inet/net-internal.h (__inet6_scopeid_pton): Remove
8283 attribute_hidden, internal_function.
8284 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
8285 internal_function.
8286
8287 2017-08-10 Florian Weimer <fweimer@redhat.com>
8288
8289 * malloc/malloc.c (get_max_fast): Reimplement as an inline
8290 function which calls __builtin_unreachable.
8291
8292 2017-08-10 Mike FABIAN <mfabian@redhat.com>
8293
8294 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
8295 Indian monetary formatting
8296 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
8297 test cases.
8298
8299 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
8300
8301 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
8302 Fix typo in comment.
8303
8304 [BZ #21928]
8305 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
8306 PTRACE_SEIZE_DEVEL): Remove.
8307 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
8308 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8309 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8310 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8311 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8312
8313 2017-08-09 Joseph Myers <joseph@codesourcery.com>
8314
8315 * posix/bits/types.h (__qaddr_t): Remove.
8316
8317 [BZ #21457]
8318 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
8319 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8320 __glibc_reserved1.
8321 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
8322 (ucontext_t): Use __ctx with uc_flags.
8323 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
8324 (__ctxt): Likewise.
8325 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8326 __glibc_reserved1.
8327 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
8328 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8329 __glibc_reserved1.
8330 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
8331 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8332 __glibc_reserved1.
8333 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
8334 macro.
8335 (ucontext_t): Use __ctx with uc_flags.
8336 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
8337 (ucontext_t): Use __ctx with uc_flags.
8338 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
8339 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
8340 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
8341 (ucontext_t): Use __ctx with uc_flags.
8342 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
8343 undefine further down.
8344 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
8345 __glibc_reserved1.
8346 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
8347 undefine further down.
8348 (ucontext_t): Use __ctx with uc_flags.
8349 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
8350 undefine further down.
8351 (ucontext_t): Use __ctx with uc_flags.
8352 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
8353 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
8354 Rename uc_pad to __glibc_reserved1.
8355 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
8356 undefine further down.
8357 (ucontext_t): Use __ctx with uc_flags.
8358 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
8359 further down.
8360 (ucontext_t): Use __ctx with uc_flags.
8361 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
8362 __ctx with uc_flags.
8363 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
8364 (ucontext_t): Use __ctx with uc_flags.
8365 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
8366 __ctx with uc_flags.
8367
8368 2017-08-09 Florian Weimer <fweimer@redhat.com>
8369
8370 [BZ #21932]
8371 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
8372 before early return.
8373
8374 2017-08-09 Andreas Schwab <schwab@suse.de>
8375
8376 [BZ #21041]
8377 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
8378 renamed alias.
8379
8380 [BZ #21041]
8381 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
8382 tst-compat-forwarder.
8383 (modules-names): Add tst-compat-forwarder-mod.
8384 ($(objpfx)tst-compat-forwarder): Depend on
8385 $(objpfx)tst-compat-forwarder-mod.so.
8386 * nptl/tst-compat-forwarder.c: New file.
8387 * nptl/tst-compat-forwarder-mod.c: New file.
8388
8389 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
8390
8391 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
8392 comments.
8393
8394 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
8395 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8396 memcpy_falkor.
8397 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8398 Bump.
8399 (__libc_ifunc_impl_list): Add __memcpy_falkor.
8400 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
8401 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
8402 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8403 Add falkor.
8404 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
8405 New macro.
8406
8407 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8408
8409 [BZ #759]
8410 * manual/setjmp.texi (getcontex): Document uc_stack value
8411 compatibility differences.
8412
8413 2017-08-08 Joseph Myers <joseph@codesourcery.com>
8414
8415 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
8416 (old_malloc_hook): Likewise.
8417 (old_memalign_hook): Likewise.
8418 (old_realloc_hook): Likewise.
8419 (struct hdr): Likewise.
8420 (flood): Likewise.
8421 (freehook): Likewise.
8422 (mallochook): Likewise.
8423 (memalignhook): Likewise.
8424 (reallochook): Likewise.
8425 (mprobe): Likewise.
8426 * malloc/mtrace.c (mallwatch): Likewise.
8427 (tr_old_free_hook): Likewise.
8428 (tr_old_malloc_hook): Likewise.
8429 (tr_old_realloc_hook): Likewise.
8430 (tr_old_memalign_hook): Likewise.
8431 (tr_where): Likewise.
8432 (lock_and_info): Likewise.
8433 (tr_freehook): Likewise.
8434 (tr_mallochook): Likewise.
8435 (tr_reallochook): Likewise.
8436 (tr_memalignhook): Likewise.
8437 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
8438 * misc/mmap.c (__mmap): Likewise.
8439 * misc/mmap64.c (__mmap64): Likewise.
8440 * misc/mprotect.c (__mprotect): Likewise.
8441 * misc/msync.c (msync): Likewise.
8442 * misc/munmap.c (__munmap): Likewise.
8443 * posix/posix_madvise.c (posix_madvise): Likewise.
8444 * socket/send.c (__send): Likewise.
8445 * socket/sendto.c (__sendto): Likewise.
8446 * socket/setsockopt.c (__setsockopt): Likewise.
8447 * string/memcmp.c (__ptr_t): Remove macro.
8448 (MEMCMP): Use void * instead of ptr_t.
8449 * string/memrchr.c (__ptr_t): Remove macro.
8450 (__memrchr): Use void * instead of ptr_t.
8451 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
8452 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
8453 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
8454 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
8455 * sysdeps/mach/msync.c (msync): Likewise.
8456 * sysdeps/mach/munmap.c (__munmap): Likewise.
8457 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
8458 Likewise.
8459 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8460 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
8461 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
8462 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
8463 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
8464 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
8465 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
8466 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
8467 Likewise.
8468 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
8469 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
8470 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
8471 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
8472 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
8473 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
8474 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
8475 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
8476 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
8477 Likewise.
8478 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
8479 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
8480 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
8481 (MEMCMP): Use void * instead of ptr_t.
8482 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
8483 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
8484
8485 2017-08-08 Florian Weimer <fweimer@redhat.com>
8486
8487 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
8488 return statement.
8489
8490 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
8491
8492 [BZ #21913]
8493 * csu/libc-tls.c: Include <startup.h> first.
8494 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
8495 * elf/dl-tunables.c: Include <startup.h> first.
8496 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
8497 * sysdeps/generic/startup.h: New file.
8498 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
8499 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
8500 (I386_USE_SYSENTER): New. Defined to 0.
8501
8502 2017-08-08 Andreas Schwab <schwab@suse.de>
8503
8504 [BZ #21041]
8505 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
8506 * nptl/pt-system.c (system): Likewise.
8507
8508 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8509
8510 [BZ #21780]
8511 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
8512 EOPNOTSUPP.
8513 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
8514 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
8515 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
8516 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
8517 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8518 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8519 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8520
8521 2017-08-07 Joseph Myers <joseph@codesourcery.com>
8522
8523 [BZ #21899]
8524 * bits/sigaction.h (struct sigaction): Define sa_handler and
8525 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
8526 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8527 [__USE_XOPEN_EXTENDED].
8528 (SA_RESTART): Likewise.
8529 (SA_NODEFER): Likewise.
8530 (SA_RESETHAND): Likewise.
8531 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
8532 (struct sigaction): Define sa_handler and sa_sigaction using union
8533 also for [__USE_XOPEN_EXTENDED].
8534 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8535 [__USE_XOPEN_EXTENDED].
8536 (SA_RESTART): Likewise.
8537 (SA_NODEFER): Likewise.
8538 (SA_RESETHAND): Likewise.
8539 * sysdeps/unix/sysv/linux/bits/sigaction.h
8540 (struct sigaction): Define sa_handler and sa_sigaction using union
8541 also for [__USE_XOPEN_EXTENDED].
8542 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8543 [__USE_XOPEN_EXTENDED].
8544 (SA_RESTART): Likewise.
8545 (SA_NODEFER): Likewise.
8546 (SA_RESETHAND): Likewise.
8547 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
8548 (struct sigaction): Define sa_handler and sa_sigaction using union
8549 also for [__USE_XOPEN_EXTENDED].
8550 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8551 [__USE_XOPEN_EXTENDED].
8552 (SA_RESTART): Likewise.
8553 (SA_NODEFER): Likewise.
8554 (SA_RESETHAND): Likewise.
8555 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
8556 (struct sigaction): Define sa_handler and sa_sigaction using union
8557 also for [__USE_XOPEN_EXTENDED].
8558 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8559 [__USE_XOPEN_EXTENDED].
8560 (SA_RESTART): Likewise.
8561 (SA_NODEFER): Likewise.
8562 (SA_RESETHAND): Likewise.
8563 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
8564 (struct sigaction): Define sa_handler and sa_sigaction using union
8565 also for [__USE_XOPEN_EXTENDED].
8566 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8567 [__USE_XOPEN_EXTENDED].
8568 (SA_RESTART): Likewise.
8569 (SA_NODEFER): Likewise.
8570 (SA_RESETHAND): Likewise.
8571 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
8572 (struct sigaction): Define sa_handler and sa_sigaction using union
8573 also for [__USE_XOPEN_EXTENDED].
8574 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8575 [__USE_XOPEN_EXTENDED].
8576 (SA_RESTART): Likewise.
8577 (SA_NODEFER): Likewise.
8578 (SA_RESETHAND): Likewise.
8579 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
8580 (struct sigaction): Define sa_handler and sa_sigaction using union
8581 also for [__USE_XOPEN_EXTENDED].
8582 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8583 [__USE_XOPEN_EXTENDED].
8584 (SA_RESTART): Likewise.
8585 (SA_NODEFER): Likewise. Define directly rather than as alias.
8586 (SA_RESETHAND): Likewise.
8587 (SA_INTERRUPT): Define only for [__USE_MISC].
8588 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
8589 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
8590 [__USE_MISC].
8591 (SA_STACK): Define only for [__USE_MISC].
8592 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
8593 (struct sigaction): Define sa_handler and sa_sigaction using union
8594 also for [__USE_XOPEN_EXTENDED].
8595 (SA_ONSTACK): Change [__USE_UNIX98] condition to
8596 [__USE_XOPEN_EXTENDED].
8597 (SA_RESTART): Likewise.
8598 (SA_NODEFER): Likewise.
8599 (SA_RESETHAND): Likewise.
8600 (SA_NOPTRACE): Define only for [__USE_MISC].
8601
8602 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
8603 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
8604 (struct catalog_info): Likewise.
8605 * inet/htontest.c (lo): Likewise.
8606 (foo): Likewise.
8607 * inet/inet_lnaof.c (inet_lnaof): Likewise.
8608 * inet/inet_net.c (inet_network): Likewise.
8609 * inet/inet_netof.c (inet_netof): Likewise.
8610 * inet/rcmd.c (__ivaliduser): Likewise.
8611 (iruserok): Likewise.
8612 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
8613 * locale/programs/locale-spec.c (locale_special): Likewise.
8614 * nis/nis_findserv.c (struct findserv_req): Likewise.
8615 (__nis_findfastest_with_timeout): Likewise.
8616 * nss/test-netdb.c (test_network): Likewise.
8617 * resolv/inet_neta.c (inet_neta): Likewise.
8618 * resolv/ns_date.c (ns_datetosecs): Likewise.
8619 (SECS_PER_DAY): Likewise.
8620 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
8621 Likewise.
8622 * resolv/res_comp.c (__putlong): Likewise.
8623 (__putshort): Likewise.
8624 (_getlong): Likewise.
8625 (_getshort): Likewise.
8626 * resolv/res_debug.c (p_time): Likewise.
8627 (precsize_ntoa): Likewise.
8628 (precsize_aton): Likewise.
8629 (latlon2ul): Likewise.
8630 (loc_aton): Likewise.
8631 (loc_ntoa): Likewise.
8632 * resolv/res_hconf.c (struct netaddr): Likewise.
8633 (_res_hconf_reorder_addrs): Likewise.
8634 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8635 (clnttcp_control): Likewise.
8636 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8637 (clntudp_control): Likewise.
8638 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8639 (clntunix_control): Likewise.
8640 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8641 * sunrpc/rpc/auth.h (union des_block): Likewise.
8642 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
8643 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
8644 (xdrrec_create): Likewise.
8645 (xdrrec_endofrecord): Likewise.
8646 (flush_out): Likewise.
8647 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
8648 (xdrstdio_putlong): Likewise.
8649 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
8650 Likewise.
8651
8652 * misc/sys/cdefs.h (__long_double_t): Remove.
8653 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
8654 instead of __long_double_t,
8655 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
8656
8657 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8658
8659 * benchtests/scripts/compare_strings.py: Avoid display error when
8660 running on a text terminal.
8661
8662 * benchtests/scripts/compare_strings.py (main): Add an
8663 optional -base option.
8664 (process_results): New argument base_func.
8665
8666 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
8667 hardcoding memcpy.
8668 * benchtests/bench-memcpy-large.c (test_name): Likewise.
8669 * benchtests/bench-memcpy-random.c (test_name): Likewise.
8670
8671 2017-08-07 Andreas Schwab <schwab@suse.de>
8672
8673 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
8674 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
8675 * intl/Makefile ($(objpfx)tst-gettext.out)
8676 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
8677 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
8678 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
8679 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
8680 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
8681 * posix/Makefile ($(objpfx)globtest.out)
8682 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
8683 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
8684 ($(objpfx)tst-printf.out): Likewise.
8685 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
8686 ($(objpfx)tst-setcontext3.out): Likewise.
8687
8688 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
8689
8690 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8691 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
8692 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
8693 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
8694 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
8695 and mptan-fma.
8696 (CFLAGS-doasin-fma.c): New.
8697 (CFLAGS-dosincos-fma.c): Likewise.
8698 (CFLAGS-e_asin-fma.c): Likewise.
8699 (CFLAGS-e_atan2-fma.c): Likewise.
8700 (CFLAGS-e_exp-fma.c): Likewise.
8701 (CFLAGS-e_log-fma.c): Likewise.
8702 (CFLAGS-e_pow-fma.c): Likewise.
8703 (CFLAGS-halfulp-fma.c): Likewise.
8704 (CFLAGS-mpa-fma.c): Likewise.
8705 (CFLAGS-mpatan-fma.c): Likewise.
8706 (CFLAGS-mpatan2-fma.c): Likewise.
8707 (CFLAGS-mpexp-fma.c): Likewise.
8708 (CFLAGS-mplog-fma.c): Likewise.
8709 (CFLAGS-mpsqrt-fma.c): Likewise.
8710 (CFLAGS-mptan-fma.c): Likewise.
8711 (CFLAGS-s_atan-fma.c): Likewise.
8712 (CFLAGS-sincos32-fma.c): Likewise.
8713 (CFLAGS-slowexp-fma.c): Likewise.
8714 (CFLAGS-slowpow-fma.c): Likewise.
8715 (CFLAGS-s_sin-fma.c): Likewise.
8716 (CFLAGS-s_tan-fma.c): Likewise.
8717 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
8718 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
8719 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
8720 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
8721 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
8722 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8723 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
8724 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
8725 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
8726 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
8727 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
8728 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
8729 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
8730 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8731 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8732 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
8733 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
8734 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
8735 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
8736 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
8737 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
8738 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
8739 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8740 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
8741 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8742 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8743 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8744 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
8745 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8746 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8747 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8748
8749 2017-08-04 Joseph Myers <joseph@codesourcery.com>
8750
8751 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
8752 (min_of_type_f): New macro.
8753 (min_of_type_): Likewise.
8754 (min_of_type_l): Likewise.
8755 (min_of_type_f128): Likewise.
8756 (min_of_type): Define using __MATH_TG and taking an expression
8757 argument.
8758 (math_check_force_underflow): Pass expression instead of type to
8759 min_of_type.
8760 (math_check_force_underflow_nonneg): Likewise.
8761
8762 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8763
8764 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8765 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
8766 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
8767
8768 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8769
8770 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8771 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
8772 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
8773 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
8774 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
8775 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
8776 memcpy_chk-nonshared, mempcpy_chk-nonshared,
8777 memmove_chk-nonshared and memset_chk-nonshared
8778 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
8779 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
8780 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
8781 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
8782 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
8783 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
8784 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
8785 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
8786 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
8787 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
8788 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
8789 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
8790 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
8791 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
8792 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
8793 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
8794 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
8795 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
8796 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
8797 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
8798 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
8799 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
8800 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
8801 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
8802 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
8803 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
8804 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
8805 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
8806 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
8807 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
8808 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
8809 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
8810 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
8811 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8812 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8813 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
8814 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
8815 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
8816 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
8817 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
8818 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
8819 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
8820 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
8821 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
8822 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
8823 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
8824 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
8825 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
8826 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
8827 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
8828 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
8829 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
8830 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
8831 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
8832 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
8833 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
8834 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
8835 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
8836 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
8837 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
8838 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
8839 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
8840 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
8841 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
8842 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
8843 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
8844 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
8845 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
8846 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
8847 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
8848 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
8849 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8850 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8851 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8852 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8853 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8854 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8855 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8856 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8857 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8858 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8859 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8860 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8861 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8862 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8863 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8864 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8865 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8866 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8867 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8868 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8869 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8870 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8871 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8872 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8873 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8874 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8875 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8876 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8877 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8878 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8879 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8880 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8881 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8882 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8883 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8884 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8885 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8886
8887 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
8888
8889 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
8890 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
8891 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
8892 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
8893 svml_d_log2_core-sse2, svml_d_log4_core-sse,
8894 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
8895 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
8896 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
8897 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
8898 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
8899 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
8900 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
8901 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
8902 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
8903 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
8904 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
8905 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
8906 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
8907 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
8908 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
8909 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
8910 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
8911 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
8912 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
8913 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
8914 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
8915 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
8916 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
8917 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
8918 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
8919 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
8920 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
8921 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
8922 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
8923 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
8924 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
8925 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
8926 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
8927 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
8928 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
8929 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
8930 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
8931 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
8932 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
8933 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
8934 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
8935 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
8936 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
8937 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
8938 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
8939 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
8940 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
8941 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
8942 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
8943 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
8944 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
8945 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
8946 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
8947 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
8948 ...
8949 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
8950 Don't include <sysdep.h> nor <init-arch.h>.
8951 (_ZGVbN2v_cos): Removed.
8952 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
8953 ...
8954 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
8955 Don't include <sysdep.h> nor <init-arch.h>.
8956 (_ZGVdN4v_cos): Removed.
8957 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
8958 ...
8959 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
8960 Don't include <sysdep.h> nor <init-arch.h>.
8961 (_ZGVeN8v_cos): Removed.
8962 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
8963 ...
8964 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
8965 Don't include <sysdep.h> nor <init-arch.h>.
8966 (_ZGVbN2v_exp): Removed.
8967 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
8968 ...
8969 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
8970 Don't include <sysdep.h> nor <init-arch.h>.
8971 (_ZGVdN4v_exp): Removed.
8972 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
8973 ...
8974 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
8975 Don't include <sysdep.h> nor <init-arch.h>.
8976 (_ZGVeN8v_exp): Removed.
8977 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
8978 ...
8979 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
8980 Don't include <sysdep.h> nor <init-arch.h>.
8981 (_ZGVbN2v_log): Removed.
8982 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
8983 ...
8984 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
8985 Don't include <sysdep.h> nor <init-arch.h>.
8986 (_ZGVdN4v_log): Removed.
8987 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
8988 ...
8989 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
8990 Don't include <sysdep.h> nor <init-arch.h>.
8991 (_ZGVeN8v_log): Removed.
8992 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
8993 ...
8994 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
8995 Don't include <sysdep.h> nor <init-arch.h>.
8996 (_ZGVbN2vv_pow): Removed.
8997 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
8998 ...
8999 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
9000 Don't include <sysdep.h> nor <init-arch.h>.
9001 (_ZGVdN4vv_pow): Removed.
9002 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
9003 ...
9004 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
9005 Don't include <sysdep.h> nor <init-arch.h>.
9006 (_ZGVeN8vv_pow): Removed.
9007 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
9008 ...
9009 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
9010 Don't include <sysdep.h> nor <init-arch.h>.
9011 (_ZGVbN2v_sin): Removed.
9012 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
9013 ...
9014 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
9015 Don't include <sysdep.h> nor <init-arch.h>.
9016 (_ZGVbN4v_sin): Removed.
9017 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
9018 ...
9019 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
9020 Don't include <sysdep.h> nor <init-arch.h>.
9021 (_ZGVbN8v_sin): Removed.
9022 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
9023 ...
9024 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
9025 Don't include <sysdep.h> nor <init-arch.h>.
9026 (_ZGVbN2vvv_sincos): Removed.
9027 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
9028 ...
9029 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
9030 Don't include <sysdep.h> nor <init-arch.h>.
9031 (_ZGVdN4vvv_sincos): Removed.
9032 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
9033 ...
9034 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
9035 Don't include <sysdep.h> nor <init-arch.h>.
9036 (_ZGVeN8vvv_sincos): Removed.
9037 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
9038 ...
9039 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
9040 Don't include <sysdep.h> nor <init-arch.h>.
9041 (_ZGVeN16v_cosf): Removed.
9042 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
9043 ...
9044 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
9045 Don't include <sysdep.h> nor <init-arch.h>.
9046 (_ZGVbN4v_cosf): Removed.
9047 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
9048 ...
9049 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
9050 Don't include <sysdep.h> nor <init-arch.h>.
9051 (_ZGVdN8v_cosf): Removed.
9052 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
9053 ...
9054 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
9055 Don't include <sysdep.h> nor <init-arch.h>.
9056 (_ZGVeN16v_expf): Removed.
9057 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
9058 ...
9059 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
9060 Don't include <sysdep.h> nor <init-arch.h>.
9061 (_ZGVbN4v_expf): Removed.
9062 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
9063 ...
9064 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
9065 Don't include <sysdep.h> nor <init-arch.h>.
9066 (_ZGVdN8v_expf): Removed.
9067 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
9068 ...
9069 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
9070 Don't include <sysdep.h> nor <init-arch.h>.
9071 (_ZGVeN16v_logf): Removed.
9072 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
9073 ...
9074 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
9075 Don't include <sysdep.h> nor <init-arch.h>.
9076 (_ZGVbN4v_logf): Removed.
9077 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
9078 ...
9079 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
9080 Don't include <sysdep.h> nor <init-arch.h>.
9081 (_ZGVdN8v_logf): Removed.
9082 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
9083 ...
9084 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
9085 Don't include <sysdep.h> nor <init-arch.h>.
9086 (_ZGVeN16vv_powf): Removed.
9087 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
9088 ...
9089 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
9090 Don't include <sysdep.h> nor <init-arch.h>.
9091 (_ZGVbN4vv_powf): Removed.
9092 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
9093 ...
9094 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
9095 Don't include <sysdep.h> nor <init-arch.h>.
9096 (_ZGVdN8vv_powf): Removed.
9097 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
9098 ...
9099 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
9100 Don't include <sysdep.h> nor <init-arch.h>.
9101 (_ZGVeN16vvv_sincosf): Removed.
9102 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
9103 ...
9104 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
9105 Don't include <sysdep.h> nor <init-arch.h>.
9106 (_ZGVbN4vvv_sincosf): Removed.
9107 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
9108 ...
9109 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
9110 Don't include <sysdep.h> nor <init-arch.h>.
9111 (_ZGVdN8vvv_sincosf): Removed.
9112 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
9113 ...
9114 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
9115 Don't include <sysdep.h> nor <init-arch.h>.
9116 (_ZGVeN16v_sinf): Removed.
9117 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
9118 ...
9119 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
9120 Don't include <sysdep.h> nor <init-arch.h>.
9121 (_ZGVbN4v_sinf): Removed.
9122 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
9123 ...
9124 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
9125 Don't include <sysdep.h> nor <init-arch.h>.
9126 (_ZGVdN8v_sinf): Removed.
9127
9128 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9129
9130 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9131 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
9132 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
9133 s_rint-sse4_1 and s_rintf-sse4_1.
9134 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
9135 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9136 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9137 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9138 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9139 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
9140 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
9141 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9142 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9143 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
9144 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
9145 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9146 (__ceil): Removed.
9147 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
9148 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
9149 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9150 (__ceilf): Removed.
9151 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
9152 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
9153 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9154 (__floor): Removed.
9155 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
9156 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
9157 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9158 (__floorf): Removed.
9159 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
9160 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
9161 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9162 (__nearbyint): Removed.
9163 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
9164 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
9165 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9166 (__nearbyintf): Removed.
9167 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
9168 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
9169 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9170 (__rint): Removed.
9171 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
9172 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
9173 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
9174 (__rintf): Removed.
9175
9176 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9177
9178 * sysdeps/i386/start.S (_start): Check Check PIC instead of
9179 SHARED. Avoid dynamic relocation against main in static PIE.
9180
9181 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9182
9183 [BZ #21815]
9184 * elf/Makefile (CFLAGS-tst-prelink.c): New.
9185 (LDFLAGS-tst-prelink): Likewise.
9186
9187 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9188
9189 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9190 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
9191 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
9192 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9193 (INTERNAL_SYSCALL_NCS): Likewise.
9194 (LOADARGS_1): Likewise.
9195 (LOADARGS_5): Likewise.
9196 (RESTOREARGS_1): Likewise.
9197 (RESTOREARGS_5): Likewise.
9198
9199 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9200
9201 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
9202 (MEMPCPY_SYMBOL): Likewise.
9203 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9204 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
9205 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
9206 in libc.a.
9207 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9208 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
9209 Likewise.
9210 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
9211 (__hidden_ver1): Don't use in libc.a.
9212 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9213 (__mempcpy): Don't create a weak alias in libc.a.
9214 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
9215 libc.a.
9216 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
9217 (__hidden_ver1): Don't use in libc.a.
9218
9219 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9220
9221 * config.make.in (have-insert): New.
9222 * configure.ac (libc_cv_insert): New. Set to yes if linker
9223 supports INSERT in linker script.
9224 (AC_SUBST(libc_cv_insert): New.
9225 * configure: Regenerated.
9226 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
9227 if $(have-insert) == yes.
9228
9229 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9230
9231 * elf/Makefile (tests): Add vismain only if
9232 $(have-protected-data) == yes.
9233 (tests-pie): Likewise.
9234
9235 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9236
9237 [BZ #21871]
9238 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
9239 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
9240
9241 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
9242
9243 [BZ #21790]
9244 * sysdeps/i386/i586/memset.S
9245 (__memset_zero_constant_len_parameter): Removed.
9246 * sysdeps/i386/i686/memset.S
9247 (__memset_zero_constant_len_parameter): Likewise.
9248 * sysdeps/i386/i686/multiarch/memset_chk.S
9249 (__memset_zero_constant_len_parameter): Likewise.
9250 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
9251 Likewise.
9252
9253 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
9254
9255 * stdlib/getentropy.c (getentropy): Change return type to int.
9256
9257 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
9258
9259 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
9260
9261 2017-08-03 Joseph Myers <joseph@codesourcery.com>
9262
9263 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
9264 u_intN_t.
9265 * math/s_nexttowardf.c (__nexttowardf): Likewise.
9266 * sysdeps/generic/math_private.h (ieee_double_shape_type):
9267 Likewise.
9268 (ieee_float_shape_type): Likewise.
9269 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
9270 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
9271 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
9272 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9273 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
9274 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
9275 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
9276 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9277 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9278 Likewise.
9279 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9280 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9281 (__ieee754_yn): Likewise.
9282 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9283 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9284 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
9285 Likewise.
9286 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9287 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
9288 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
9289 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
9290 (__erfc): Likewise.
9291 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
9292 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
9293 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
9294 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
9295 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
9296 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
9297 Likewise.
9298 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
9299 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
9300 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9301 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
9302 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9303 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
9304 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
9305 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
9306 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
9307 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
9308 (__issignaling): Likewise.
9309 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
9310 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
9311 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9312 Likewise.
9313 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9314 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
9315 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
9316 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
9317 Likewise.
9318 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
9319 Likewise.
9320 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
9321 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
9322 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
9323 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
9324 (__erfcf): Likewise.
9325 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
9326 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
9327 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
9328 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
9329 Likewise.
9330 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
9331 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
9332 Likewise.
9333 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9334 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
9335 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9336 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
9337 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
9338 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
9339 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
9340 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
9341 Likewise.
9342 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
9343 Likewise.
9344 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
9345 Likewise.
9346 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
9347 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9348 Likewise.
9349 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9350 Likewise.
9351 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9352 (__ieee754_ynl): Likewise.
9353 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9354 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
9355 Likewise.
9356 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
9357 Likewise.
9358 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
9359 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
9360 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9361 Likewise.
9362 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
9363 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
9364 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
9365 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
9366 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
9367 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
9368 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
9369 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
9370 Likewise.
9371 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
9372 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
9373 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
9374 Likewise.
9375 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9376 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
9377 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9378 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
9379 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
9380 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9381 Likewise.
9382 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
9383 Likewise.
9384 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9385 Likewise.
9386 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9387 Likewise.
9388 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
9389 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
9390 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9391 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
9392 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
9393 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
9394 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
9395 Likewise.
9396 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9397 Likewise.
9398 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9399 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9400 Likewise.
9401 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
9402 (__ieee754_remainderl): Likewise.
9403 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9404 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9405 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
9406 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
9407 Likewise.
9408 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
9409 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9410 Likewise.
9411 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
9412 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
9413 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
9414 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
9415 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
9416 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9417 Likewise.
9418 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
9419 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
9420 (__ieee754_y0l): Likewise.
9421 (pzero): Likewise.
9422 (qzero): Likewise.
9423 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9424 (__ieee754_y1l): Likewise.
9425 (pone): Likewise.
9426 (qone): Likewise.
9427 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9428 (__ieee754_ynl): Likewise.
9429 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9430 (__ieee754_lgammal_r): Likewise.
9431 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
9432 Likewise.
9433 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
9434 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
9435 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
9436 (__erfcl): Likewise.
9437 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
9438 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
9439 Likewise.
9440 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9441 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
9442 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9443 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
9444 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
9445 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9446 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9447 Likewise.
9448 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
9449 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
9450 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
9451 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
9452 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9453 Likewise.
9454 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
9455 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
9456 Likewise.
9457 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
9458 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
9459 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
9460 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
9461 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9462
9463 2017-08-03 Florian Weimer <fweimer@redhat.com>
9464
9465 [BZ #21885]
9466 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
9467 on memory allocation failure.
9468
9469 2017-08-03 Alan Modra <amodra@gmail.com>
9470
9471 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
9472 tst-tlsopt-powerpc.c with function name change and no test harness.
9473 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
9474 Call tls_get_addr_opt_test.
9475 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
9476 (modules-names): Add mod-tlsopt-powerpc.
9477 (mod-tlsopt-powerpc.so-no-z-defs): Define.
9478 (tst-tlsopt-powerpc): Depend on .so.
9479 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
9480 define. Expand use in TLS_GD and TLS_LD.
9481
9482 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9483
9484 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
9485 function.
9486 * sysdeps/posix/shm_open.c: Include <pthread.h>.
9487
9488 2017-08-02 Joseph Myers <joseph@codesourcery.com>
9489
9490 [BZ #21686]
9491 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
9492 comparing size with that of double.
9493 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9494 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9495 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9496 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9497 (__TGMATH_BINARY_REAL_IMAG): Likewise.
9498 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
9499 unsigned __int128 types.
9500
9501 2017-08-02 Steve Ellcey <sellcey@cavium.com>
9502
9503 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
9504 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
9505 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
9506 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
9507 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
9508
9509 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
9510
9511 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
9512
9513 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
9514
9515 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
9516 of SHARED.
9517 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
9518 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9519 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9520 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9521 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9522 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9523 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9524
9525 2017-08-02 Joseph Myers <joseph@codesourcery.com>
9526
9527 [BZ #21685]
9528 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
9529 bit-field expressions passed to sizeof or typeof.
9530 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9531 (__TGMATH_F128): Likewise.
9532 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9533 (__TGMATH_CF128): Likewise.
9534 (__TGMATH_UNARY_REAL_ONLY): Likewise.
9535 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
9536 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
9537 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
9538 (__TGMATH_BINARY_REAL_ONLY): Likewise.
9539 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9540 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9541 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9542 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9543 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
9544 (__TGMATH_UNARY_REAL_IMAG): Likewise.
9545 (__TGMATH_UNARY_IMAG): Likewise.
9546 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9547 (__TGMATH_BINARY_REAL_IMAG): Likewise.
9548 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
9549 type.
9550 (define_vars_for_type): Handle bit_field type specially.
9551 (Tests.__init__): Declare structure with bit-field element.
9552
9553 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
9554
9555 [BZ #21791]
9556 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
9557 (MEMCPY_CHK): Define only if SHARED is defined.
9558 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
9559 Likewise.
9560 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
9561 Likewise.
9562
9563 See ChangeLog.18 for earlier changes.