<array_length.h>: New array_length and array_end macros
[glibc.git] / ChangeLog
blob4a912422ef6a2c6808b5cfc9272aa5df2c43fb37
1 2017-11-02  Florian Weimer  <fweimer@redhat.com>
3         Add array_length and array_end macros.
4         * include/array_length.h: New file.
6 2017-11-02  Florian Weimer  <fweimer@redhat.com>
8         [BZ #22332]
9         * posix/tst-glob-tilde.c (do_noescape): New variable.
10         (one_test): Process it.
11         (do_test): Set do_noescape.  Add unescaping test case.
13 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
15         * math/complex.h
16         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
17         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
18         with appropriate macros defined and undefined.
19         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
20         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
24         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
27         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
28         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
30         * math/complex.h
31         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
32         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
33         that for long double.  Do not condition define and undefine of
34         _Mdouble_complex_ on [__CFLOAT128].
36 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
38         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
39         of <sysdeps/generic/sysdep.h>.
40         (ALIGNARG): Removed.
41         (ASM_SIZE_DIRECTIVE): Likewise.
42         (ENTRY): Likewise.
43         (END): Likewise.
44         (ENTRY_CHK): Likewise.
45         (END_CHK): Likewise.
46         (syscall_error): Likewise.
47         (mcount): Likewise.
48         (PSEUDO_END): Likewise.
49         (L): Likewise.
50         (atom_text_section): Likewise.
51         * sysdeps/x86/sysdep.h: New file.
52         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
53         of <sysdeps/generic/sysdep.h>.
54         (ALIGNARG): Removed.
55         (ASM_SIZE_DIRECTIVE): Likewise.
56         (ENTRY): Likewise.
57         (END): Likewise.
58         (ENTRY_CHK): Likewise.
59         (END_CHK): Likewise.
60         (syscall_error): Likewise.
61         (mcount): Likewise.
62         (PSEUDO_END): Likewise.
63         (L): Likewise.
64         (atom_text_section): Likewise.
66 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
68         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
69         category of LC_CTYPE set to "i18n:2012".
70         * localedata/locales/i18n_ctype: Regenerate.
72 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
74         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
75         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
76         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
77         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
79         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
80         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
81         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
82         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
84 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
86         * math/complex.h
87         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
88         New macro.
89         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
90         Likewise.
91         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
92         Likewise.
93         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
94         (CMPLXF32X): Likewise.
95         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
96         (CMPLXF64X): Likewise.
97         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
98         (CMPLXF128X): Likewise.
100         * math/math.h
101         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
102         (__MATH_EVAL_FMT2): Define to add 0.0f.
104 2017-10-31  Alan Modra  <amodra@gmail.com>
106         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
107         include sysdep.h.
108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
113         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
122         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
123         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
124         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
125         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
126         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
127         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
128         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
129         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
130         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
131         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
132         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
133         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
134         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
135         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
136         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
137         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
138         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
139         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
140         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
141         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
142         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
143         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
144         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
145         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
146         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
147         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
148         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
149         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
150         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
151         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
152         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
153         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
154         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
155         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
156         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
157         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
158         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
159         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
160         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
161         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
162         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
163         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
164         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
165         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
166         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
167         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
168         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
169         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
170         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
171         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
172         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
173         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
174         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
175         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
176         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
179         include sysdep.h and math_ldbl_opt.h.
181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
182         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
183         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
198         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
205         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
208 2017-10-31  Alan Modra  <amodra@gmail.com>
210         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
211         string/strncase_l.c, not string/strncase.c.
212         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
213         (libc_hidden_def): Redefine.
215 2017-10-31  Alan Modra  <amodra@gmail.com>
217         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
218         (__STRCMP, STRCMP, __strcasecmp_l): Define.
219         (__strcasecmp): Don't define.
221 2017-10-31  Alan Modra  <amodra@gmail.com>
223         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
224         IS_IN (libc).
225         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
226         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
227         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
229 2017-10-31  Alan Modra  <amodra@gmail.com>
231         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
232         USE_AS_STPNCPY.
234 2017-10-31  Alan Modra  <amodra@gmail.com>
236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
237         Redefine only when SHARED.
239 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
241         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
242         Include <bits/math-finite.h> with appropriate macros defined and
243         undefined.
244         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
245         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
246         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
247         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
248         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
250         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
251         [!_Mlong_double_] (_Mlong_double_): Likewise.
252         [!_Mfloat16_] (_Mfloat16_): Likewise.
253         [!_Mfloat32_] (_Mfloat32_): Likewise.
254         [!_Mfloat64_] (_Mfloat64_): Likewise.
255         [!_Mfloat128_] (_Mfloat128_): Likewise.
256         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
257         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
258         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
259         (_Mdouble_): Define without indirection through those macros.
260         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
261         [!_Mfloat128_] (_Mfloat128_): Likewise.
262         [_Mlong_double_] (_Mlong_double_): Likewise.
263         (_Mdouble_): Define without indirection through those macros.
264         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
265         not add -D_Mlong_double_=double.
266         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
267         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
269 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
271         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
273 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
275         * sysdeps/x86/libc-start.c: Reformat.
277 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
279         [BZ #22353]
280         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
281         (1): Renamed to ...
282         (L(Src0)): This.
283         (L(Src1)): New.
284         (L(Src2)): Likewise.
285         (L(1)): Renamed to ...
286         (L(Src3)): This.
288 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
290         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
291         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
292         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
293         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
294         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
295         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
296         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
297         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
298         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
299         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
300         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
301         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
302         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
303         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
304         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
305         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
306         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
307         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
308         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
309         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
310         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
311         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
312         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
313         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
314         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
315         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
316         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
317         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
318         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
319         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
320         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
321         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
322         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
323         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
324         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
325         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
326         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
327         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
328         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
329         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
330         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
331         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
332         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
333         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
334         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
335         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
336         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
337         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
338         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
339         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
340         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
341         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
342         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
343         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
344         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
345         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
346         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
347         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
348         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
349         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
350         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
351         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
352         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
353         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
354         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
355         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
357 2017-10-30  Florian Weimer  <fweimer@redhat.com>
359         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
360         always defined.
361         * io/tst-mkdirat.c (do_test): Likewise.
362         * io/tst-mkfifoat.c (do_test): Likewise.
363         * io/tst-mknodat.c (do_test): Likewise.
364         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
365         * locale/programs/locale.c (select_dirs): Likewise.
366         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
367         * posix/bug-glob2.c (my_readdir): Likewise.
368         * posix/tst-dir.c (main): Likewise.
369         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
370         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
372 2017-10-30  Florian Weimer  <fweimer@redhat.com>
374         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
375         just __USE_GNU.
377 2017-10-30  Florian Weimer  <fweimer@redhat.com>
379         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
380         Convert to support/test-driver.c.
381         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
382         New macro parameters.
383         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
384         * posix/tst-gnuglob.c: New file.
385         * posix/tst-gnuglob64.c: Likewise.
386         * posix/Makefile (tests): Add tst-gnuglob64.
388 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
390         [BZ #19485]
391         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
392         and use a better translation for March in “mon”.
393         * localedata/locales/csb_PL: Use more ASCII to improve the
394         readability of the source.
396 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
398         [BZ #13953]
399         * localedata/locales/km_KH: Use ASCII as much
400         as possible for better readability of the source and
401         remove useless comments.
402         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
403         was commented out and apparently wrong anyway because it was
404         using Lao characters. If Buddhist era should be used
405         for km_KH, a native speaker should write the correct formaat
406         for Khmer.
407         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
408         (According to CLDR, the first weekday for Cambodia is Sunday).
409         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
410         (These were using Lao characters which must be wrong. If we get
411         the correct data from a native speaker, we could add it back, until
412         then it is better not to have name_mr and name_mrs at all than
413         having it wrong).
415 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
417         * locale/loadlocale.c: Correct size of
418         _nl_value_type_LC_<category> arrays.
420 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
422         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
423         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
424         with appropriate macros defined and undefined.
425         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
426         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
427         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
428         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
429         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
431 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
433         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
434         "-O2 -march=i586".
436 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
438         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
439         with lowercase letters to make it agree with CLDR.
441 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
443         [BZ #15260]
444         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
445         first letters of yesstr and nostr in yesexpr and noexpr,
446         not for the full words.
447         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
448         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
449         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
450         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
451         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
452         first letters of yesstr and nostr in yesexpr and noexpr,
453         until now only English was matched in yesexpr and noexpr.
454         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
455         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
456         fil but not for tl. As tl and fil are very similar, using fil
457         is probably better than using English.
459 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
461         [BZ #21706]
462         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
463         in yesstr and nostr.
465 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
467         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
468         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
469         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
470         Likewise.
471         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
472         Likewise.
473         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
474         Likewise.
475         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
476         Likewise.
477         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
478         (SNANF128X): Likewise.
480         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
481         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
482         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
483         (HUGE_VAL_F32): Likewise.
484         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
485         (HUGE_VAL_F64): Likewise.
486         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
487         (HUGE_VAL_F32X): Likewise.
488         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
489         (HUGE_VAL_F64X): Likewise.
490         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
491         (HUGE_VAL_F128X): Likewise.
493 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
495         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
496         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
497         for the br_FR locale.
499 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
501         [BZ #21706]
502         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
504 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
506         * locale/programs/record-status.h: Define globals, and function
507         prototypes. Move function bodies...
508         * locale/programs/record-status.c: ... to here. New file.
509         * iconv/Makefile (iconv_prog-modules): Add record-status.
510         * locale/Makefile (lib-modules): Likewise.
511         * iconv/iconv_prog.c: Remove verbose.
512         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
513         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
514         record a warning about ASCII compatibility.
515         * locale/programs/ld-monetary.c (monetary_finish): If
516         warn_int_curr_symbol is true then record a warning about the symbol
517         not being in our ISO 4217 list.
518         * locale/programs/locale.c: Include record-status.h. Remove verbose.
519         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
520         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
521         (OPT_NO_WARN): Define.
522         (OPT_WARN): Define.
523         (options): Add entry for --no-warnings, and --warnings.
524         (set_warnings): New function to enable/disable warnings.
525         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
526         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
527         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
528         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
529         Pass flags to generate_locale.
530         (generate_locale): Accept new flag argument and pass it to localedef
531         invocation.
532         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
533         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
535         * localedata/Makefile (test-input-data): Use full file name.
536         * localedata/da_DK.in: Rename to...
537         * localedata/da_DK.ISO-8859-1.in: ...this.
538         * localedata/de_DE.in: Rename to...
539         * localedata/de_DE.ISO-8859-1.in: ...this.
540         * localedata/en_US.in: Rename to...
541         * localedata/en_US.ISO-8859-1.in: ...this.
542         * localedata/fr_FR.in: Rename to...
543         * localedata/fr_FR.UTF-8.in: ... this.
544         * localedata/hr_HR.in: Rename to...
545         * localedata/hr_HR.ISO-8859-2.in: ...this.
546         * localedata/hu_HU.in: Rename to...
547         * localedata/hu_HU.UTF-8.in: ...this.
548         * localedata/si_LK.in: Rename to...
549         * localedata/si_LK.UTF-8.in: ...this.
550         * localedata/sv_SE.in: Rename to...
551         * localedata/sv_SE.ISO-8859-1.in: ...this.
552         * localedata/tr_TR.in: Rename to...
553         * localedata/tr_TR.UTF-8.in: ...this.
554         * localedata/uk_UA.in: Rename to...
555         * localedata/uk_UA.UTF-8.in: ...this.
556         * localedata/sort-test.sh: Test file is locale name with the
557         suffix.
559         * localedata/unicode-gen/Makefile (check_i18n): Rename to
560         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
561         file.
562         * localedata/locales/i18n_ctype: Regenerate.
563         * localedata/locales/tr_TR: Likewise.
564         * localedata/locales/translit_circle: Likewise.
565         * localedata/locales/translit_cjk_compat: Likewise.
566         * localedata/locales/translit_combining: Likewise.
567         * localedata/locales/translit_compat: Likewise.
568         * localedata/locales/translit_font: Likewise.
569         * localedata/locales/translit_fraction: Likewise.
571 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
573         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
574         lxvd2x/stxvd2x with lvx/stvx.
575         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
577 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
579         * include/alloc_buffer.h: Replace "if if " with "if " in
580         comments.
581         * sysdeps/mips/memcpy.S: Likkewise.
582         * sysdeps/mips/memset.S: Likewise.
583         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
584         Likewise.
585         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
586         Likewise.
587         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
588         Likewise.
590 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
592         [BZ #15261]
593         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
594         yesexpr and noexpr.
595         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
596         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
597         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
598         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
599         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
600         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
601         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
603 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
605         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
606         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
607         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
608         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
609         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
610         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
611         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
612         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
613         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
614         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
615         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
616         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
618 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
620         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
621         as possible for better readability of the source.
622         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
623         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
624         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
625         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
626         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
627         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
628         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
629         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
630         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
631         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
632         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
633         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
634         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
635         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
636         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
637         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
638         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
639         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
640         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
641         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
642         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
643         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
644         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
645         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
646         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
647         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
648         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
649         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
650         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
651         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
652         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
653         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
654         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
655         * localedata/locales/en_US (LC_MESSAGES): Likewise.
656         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
657         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
658         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
659         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
660         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
661         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
662         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
663         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
664         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
665         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
666         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
667         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
668         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
669         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
670         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
671         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
672         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
673         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
674         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
675         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
676         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
677         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
678         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
679         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
680         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
681         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
682         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
683         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
684         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
685         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
686         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
687         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
688         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
689         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
690         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
691         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
692         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
693         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
694         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
695         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
696         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
697         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
698         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
699         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
700         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
701         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
702         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
703         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
704         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
705         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
706         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
707         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
708         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
709         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
710         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
711         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
712         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
713         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
714         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
715         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
716         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
717         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
718         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
719         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
720         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
721         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
722         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
723         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
724         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
725         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
726         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
727         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
728         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
729         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
730         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
731         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
732         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
733         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
734         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
735         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
736         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
737         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
738         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
739         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
740         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
741         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
742         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
743         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
744         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
745         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
746         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
747         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
748         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
749         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
750         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
751         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
752         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
753         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
754         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
755         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
756         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
757         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
758         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
759         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
760         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
761         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
762         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
763         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
764         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
765         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
766         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
767         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
768         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
769         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
770         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
771         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
772         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
773         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
774         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
775         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
776         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
777         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
778         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
779         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
780         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
781         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
782         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
783         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
784         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
785         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
786         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
787         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
788         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
789         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
790         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
791         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
792         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
793         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
794         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
795         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
797 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
799         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
800         (Use first letters of yesstr and nostr correctly instead of using
801         full words).
803 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
805         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
806         (Use first letters of yesstr and nostr correctly).
808 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
810         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
811         also check for the first characters of yesstr and nostr.
812         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
813         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
815 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
817         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
818         also check for Chinese characters.
820 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
822         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
823         match also for the contents of yesstr and nostr. As the first letter
824         of yesstr and nostr is equal, checking only for the first letter
825         is not enough.
827 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
829         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
830         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
832 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
834         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
835         of main contributor.
837 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
839         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
840         instead of using English.
842 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
844         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
845         by including the first letters of nostr and yesexpr in the regexp.
846         Also make it more readable by using ASCII where possible.
848 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
850         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
851         the first letter of nostr in the regexp. It agrees with CLDR now.
852         Also make it more readable by using ASCII where possible.
854 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
856         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
857         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
858         these strings contain a U+17D6 (which somewhat looks like a colon)
859         instead of a real colon to separate the full words for “yes”
860         and “no” from the single letter responses.
862 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
864         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
865         it agree with CLDR (include the first letter of yesstr).
866         Also make it more readable by using ASCII where possible.
868 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
870         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
871         and improve yesexpr and noexpr. The yesstr and nostr apparently
872         came from CLDR. And CLDR has a bug there: these strings contain
873         a U+0903 (which looks like a colon) instead of a real colon
874         to separate the full words for “yes” and “no” from the single
875         letter responses.
877 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
879         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
880         letters of the full yesstr and nostr in yesexpr and noexpr.
882 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
884         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
885         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
886         * localedata/locales/an_ES: Make source more readable by using ASCII
887         where possible.
889 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
891         [BZ #20952]
892         * localedata/locales/yuw_PG: New file.
893         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
894         * locale/iso-639.def: Add Yau (Uruwa).
896 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
898         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
900 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
902         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
903         (__libc_realloc): Likewise.
904         (_mid_memalign): Likewise.
905         (__libc_calloc): Likewise.
907 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
909         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
910         by adding the generic +1 and -0 as in all other locales.
911         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
912         day names and make it more readable by using ASCII where possible.
914 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
916         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
917         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
919 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
921         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
922         WNOHANG in waitpid call.
924 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
926         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
927         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
929         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
930         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
931         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
932         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
933         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
934         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
935         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
936         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
937         variables.
939 2017-10-23  Michael Collison  <michael.collison@arm.com>
941         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
942         with __builtin_sqrt.
943         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
944         with __builtin_sqrtf.
945         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
946         with __builtin_ceil.
947         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
948         with __builtin_ceilf.
949         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
950         with __builtin_floor.
951         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
952         with __builtin_floorf.
953         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
954         with __builtin_fma.
955         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
956         with __builtin_fmaf.
957         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
958         with __builtin_fmax.
959         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
960         with __builtin_fmaxf.
961         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
962         with __builtin_fmin.
963         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
964         with __builtin_fminf.
965         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
966         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
967         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
968         with builtin_rint and conversion to int.
969         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
970         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
971         with builtin_llround.
972         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
973         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
974         with builtin_rint and conversion to long int.
975         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
976         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
977         with builtin_lround.
978         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
979         with builtin_lroundf.
980         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
981         statements with __builtin_nearbyint.
982         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
983         statements with __builtin_nearbyintf.
984         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
985         with __builtin_rint.
986         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
987         with __builtin_rintf.
988         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
989         with __builtin_round.
990         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
991         with __builtin_roundf.
992         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
993         with __builtin_trunc.
994         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
995         with __builtin_truncf.
996         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
997         and s_l[l]round[f].c too.
999 2017-10-23  Alan Modra  <amodra@gmail.com>
1001         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
1002         Adjust stack after restoring regs.  Add missing LR cfi_restore.
1004 2017-10-23  Alan Modra  <amodra@gmail.com>
1006         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
1007         Move LR save and frame setup/teardown and LR restore to
1008         immediately around memset call.  Provide cfi.
1010 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1012         * sysdeps/i386/fpu/e_powf.S: Removed.
1013         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
1014         * sysdeps/i386/fpu/w_powf.c: Likewise.
1015         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
1016         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1017         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1018         Add e_powf-sse2.
1019         (CFLAGS-e_powf-sse2.c): New.
1020         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
1021         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
1023 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1025         * sysdeps/i386/fpu/e_log2f.S: Removed.
1026         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
1027         * sysdeps/i386/fpu/w_log2f.c: Likewise.
1028         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
1029         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1030         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1031         Add e_log2f-sse2.
1032         (CFLAGS-e_log2f-sse2.c): New.
1033         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
1034         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
1036 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1038         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1039         Add e_powf-fma.
1040         (CFLAGS-e_powf-fma.c): New.
1041         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
1042         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
1044 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1046         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1047         Add e_log2f-fma.
1048         (CFLAGS-e_log2f-fma.c): New.
1049         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
1050         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
1052 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1054         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1055         Add e_logf-fma.
1056         (CFLAGS-e_logf-fma.c): New.
1057         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
1058         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
1060 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1062         * sysdeps/i386/fpu/e_logf.S: Removed.
1063         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
1064         * sysdeps/i386/fpu/w_logf.c: Likewise.
1065         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
1066         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
1067         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1068         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1069         Add e_logf-sse2.
1070         (CFLAGS-e_logf-sse2.c): New.
1071         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
1072         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
1074 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1076         * sysdeps/i386/fpu/e_exp2f.S: Removed.
1077         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
1078         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
1079         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1080         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1081         Add e_exp2f-sse2.
1082         (CFLAGS-e_exp2f-sse2.c): New.
1083         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
1084         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
1086 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1088         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1089         Add e_exp2f-fma.
1090         (CFLAGS-e_exp2f-fma.c): New.
1091         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
1092         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
1094 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1096         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
1097         * sysdeps/i386/fpu/e_expf.S: Likewise.
1098         * sysdeps/i386/fpu/math_errf.c: Likewise.
1099         * sysdeps/i386/fpu/w_expf.c: Likewise.
1100         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
1101         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1102         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
1103         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
1104         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
1105         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
1106         Remove e_expf-ia32.
1107         (CFLAGS-e_expf-sse2.c): New.
1108         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
1109         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
1111 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
1113         * sysdeps/x86_64/fpu/e_expf.S: Removed.
1114         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
1115         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
1116         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
1117         e_expf.c.
1118         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
1119         New.
1120         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
1121         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
1122         Renamed to ...
1123         (__redirect_expf): This.
1124         (SYMBOL_NAME): Changed to expf.
1125         (__ieee754_expf): Renamed to ...
1126         (__expf): This.
1127         (__GI___expf): This.
1128         (__ieee754_expf): Add strong_alias.
1129         (__expf_finite): Likewise.
1130         (__expf): New.
1131         Include <sysdeps/ieee754/flt-32/e_expf.c>.
1133 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
1135         [BZ #22332]
1136         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
1137         unescaping.
1139 2017-10-21  Florian Weimer  <fweimer@redhat.com>
1141         * posix/Makefile (tests): Add tst-glob-tilde.
1142         (tests-special): Add tst-glob-tilde-mem.out
1143         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
1144         (tst-glob-tilde-mem.out): Add mtrace check.
1145         * posix/tst-glob-tilde.c: New file.
1147 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
1149         * bits/floatn-common.h: New file.
1150         * math/Makefile (headers): Add bits/floatn-common.h.
1151         * bits/floatn.h: Include <bits/floatn-common.h>.
1152         * sysdeps/ia64/bits/floatn.h: Likewise.
1153         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1154         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
1155         * sysdeps/powerpc/bits/floatn.h: Likewise.
1156         * sysdeps/x86/bits/floatn.h: Likewise.
1158 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1160         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
1161         indicates whether compiler emits an warning for alias for
1162         functions with incompatible types.
1164         [BZ #22273]
1165         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
1166         the auxiliary process is terminated by a signal before calling _exit
1167         or execve.
1169 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1171         [BZ #21265]
1172         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
1173         New.
1174         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
1175         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
1176         and bit_arch_XSAVEC_Usable if needed.
1177         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
1178         and bit_arch_Use_dl_runtime_resolve_opt.
1179         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
1180         Removed.
1181         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
1182         (bit_arch_Prefer_No_AVX512): Updated.
1183         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
1184         (bit_arch_XSAVEC_Usable): New.
1185         (STATE_SAVE_OFFSET): Likewise.
1186         (STATE_SAVE_MASK): Likewise.
1187         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
1188         (cpu_features): Add xsave_state_size and xsave_state_full_size.
1189         (index_arch_Use_dl_runtime_resolve_opt): Removed.
1190         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
1191         (index_arch_XSAVEC_Usable): New.
1192         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
1193         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
1194         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
1195         is enabled.
1196         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
1197         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
1198         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
1199         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
1200         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
1201         _dl_runtime_resolve_xsavec.
1202         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
1203         Removed.
1204         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
1205         instead of VEC_SIZE.
1206         (REGISTER_SAVE_BND0): Removed.
1207         (REGISTER_SAVE_BND1): Likewise.
1208         (REGISTER_SAVE_BND3): Likewise.
1209         (REGISTER_SAVE_RAX): Always defined to 0.
1210         (VMOV): Removed.
1211         (_dl_runtime_resolve_avx): Likewise.
1212         (_dl_runtime_resolve_avx_slow): Likewise.
1213         (_dl_runtime_resolve_avx_opt): Likewise.
1214         (_dl_runtime_resolve_avx512): Likewise.
1215         (_dl_runtime_resolve_avx512_opt): Likewise.
1216         (_dl_runtime_resolve_sse): Likewise.
1217         (_dl_runtime_resolve_sse_vex): Likewise.
1218         (USE_FXSAVE): New.
1219         (_dl_runtime_resolve_fxsave): Likewise.
1220         (USE_XSAVE): Likewise.
1221         (_dl_runtime_resolve_xsave): Likewise.
1222         (USE_XSAVEC): Likewise.
1223         (_dl_runtime_resolve_xsavec): Likewise.
1224         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
1225         Removed.
1226         (_dl_runtime_resolve_avx512_opt): Likewise.
1227         (_dl_runtime_resolve_avx): Likewise.
1228         (_dl_runtime_resolve_avx_opt): Likewise.
1229         (_dl_runtime_resolve_sse): Likewise.
1230         (_dl_runtime_resolve_sse_vex): Likewise.
1231         (_dl_runtime_resolve_fxsave): New.
1232         (_dl_runtime_resolve_xsave): Likewise.
1233         (_dl_runtime_resolve_xsavec): Likewise.
1235 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
1237         [BZ #22320]
1238         CVE-2017-15670
1239         * posix/glob.c (__glob): Fix one-byte overflow.
1241 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1243         * malloc/malloc.c (sysdep-cancel.h): Add include.
1245 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
1247         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
1249 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
1251         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
1252         (tests): Remove $(objpfx)ga_test depdendency.
1253         * resolv/ga_test.c: Remove file.
1255 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1257         [BZ #18812]
1258         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
1259         * localedata/locales/kab_DZ: New file.
1261 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1263         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
1264         _dl_relocate_static_pie instead of _dl_start to compute load
1265         address in static PIE.
1267 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1269         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
1271 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
1273         [BZ #13605]
1274         * localedata/SUPPORTED: Add shn_MM/UTF-8.
1275         * localedata/locales/shn_MM: New file.
1277 2017-10-20  Florian Weimer  <fweimer@redhat.com>
1279         [BZ #22321]
1280         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
1281         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
1282         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
1283         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
1284         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
1285         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
1287 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1289         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1291 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
1293         * sysdeps/mips/ieee754/bits/floatn.h: New file.
1295         [BZ #22322]
1296         * sysdeps/mips/bits/long-double.h: Move to ....
1297         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
1299 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
1301         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
1303 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
1304             H.J. Lu  <hongjiu.lu@intel.com>
1306         [BZ #22299]
1307         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
1308         GLRO(dl_platform) to NULL.
1309         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
1310         (modules-names): Add tst-platformmod-1 and
1311         x86_64/tst-platformmod-2.
1312         (CFLAGS-tst-platform-1.c): New.
1313         (CFLAGS-tst-platformmod-1.c): Likewise.
1314         (CFLAGS-tst-platformmod-2.c): Likewise.
1315         (LDFLAGS-tst-platformmod-2.so): Likewise.
1316         ($(objpfx)tst-platform-1): Likewise.
1317         ($(objpfx)tst-platform-1.out): Likewise.
1318         (tst-platform-1-ENV): Likewise.
1319         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
1320         * sysdeps/x86_64/tst-platform-1.c: New file.
1321         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
1322         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
1324 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
1326         [BZ #13994]
1327         * locale/iso-639.def: Add Karbi.
1328         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
1329         * localedata/locales/mjw_IN: New file.
1331 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
1333         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
1334         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1335         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
1336         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
1337         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1338         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1339         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
1340         <bits/floatn.h>.
1341         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1342         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1343         * manual/math.texi (Mathematics): Document additional architecture
1344         support for _Float128.
1345         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1346         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1347         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1348         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1349         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1350         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1351         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1352         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1353         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1354         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1355         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1356         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1357         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1358         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1359         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1361 2017-10-18  Renlin Li  <renlin.li@arm.com>
1363         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
1364         _DYNAMIC symbol to calculate load address.
1366 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
1368         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
1369         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
1370         summary bits.
1371         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
1372         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
1374 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
1376         [BZ #16777]
1377         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
1378         and improve readability by using more ASCII.
1379         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
1380         and improve readability by using more ASCII.
1382 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
1384         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
1385         not all targets support atomics on bool.
1387 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
1389         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
1390         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
1391         __f128.
1392         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1393         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
1394         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1395         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
1396         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1397         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
1399 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1401         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
1402         defines.
1404 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1406         [BZ #22159]
1407         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
1408         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
1409         (do_check_remalloced_chunk): Fix build bug.
1410         (do_check_malloc_state): Add assert that checks arena->top.
1411         (malloc_consolidate): Remove initialization.
1412         (int_mallinfo): Remove call to malloc_consolidate.
1413          (__libc_mallopt): Clarify why malloc_consolidate is needed.
1415 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1417         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
1418         (have_fastchunks): Remove.
1419         (clear_fastchunks): Remove.
1420         (set_fastchunks): Remove.
1421         (malloc_state): Add have_fastchunks.
1422         (malloc_init_state): Use have_fastchunks.
1423         (do_check_malloc_state): Remove incorrect invariant checks.
1424         (_int_malloc): Use have_fastchunks.
1425         (_int_free): Likewise.
1426         (malloc_consolidate): Likewise.
1428 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1430         * malloc/malloc.c (tcache_put): Inline.
1431         (tcache_get): Inline.
1433 2017-10-17  Jordi Mallach  <jordi@gnu.org>
1435         Aurelien Jarno  <aurelien@aurel32.net>
1436         [BZ #2522]
1437         * localedata/locales/ca_ES@valencia: New file.
1438         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
1440 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
1442         [BZ #22296]
1443         * math/math.h: Let signbit use the builtin in C++ mode with gcc
1444         < 6.x
1446 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1448         * scripts/build-many-glibcs.py (Context.add_all_configs):
1449         Add arm-linux-gnueabihf multiarch extra_glibcs.
1451         * sysdeps/generic/ifunc-init.h: New file.
1452         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
1454 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
1456         [BZ #22019]
1457         * localedata/locales/el_GR: Set n_cs_precedes to 0.
1458         * localedata/locales/el_CY: copy "el_GR" because it is identical.
1459         * stdlib/tst-strfmon_l.c: adapt test case.
1461 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
1463         * sysdeps/generic/float128-abi.h: New file.
1464         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
1465         non-__prefixed symbols to ....
1466         * math/Versions: ... here.  Include <float128-abi.h>.
1467         * stdlib/Versions ... and here.  Include <float128-abi.h>
1469 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1471         * version.h (VERSION): Switch to ".9000" as the development
1472         version suffix.
1474 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1476         [BZ #22050]
1477         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
1478         compat_symbol_reference to access non-default version.
1480 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1482         * malloc/Makefile (others-extras): Set to mcheck-init.o.
1484 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
1486         * include/shlib-compat.h (compat_symbol_reference): Update
1487         comment.
1489 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
1491         * math/Makefile (test-types): Add
1492         $(type-float128-$(float128-alias-fcts)).
1493         * math/test-float128.h (TYPE_STR): Define conditional on
1494         [FLT128_MANT_DIG == LDBL_MANT_DIG].
1495         (ULP_IDX): Likewise.
1496         (ULP_I_IDX): Likewise.
1498         * stdlib/strtold.c: Include <bits/floatn.h>
1499         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
1500         and later undefine as macro.  Define as weak alias if
1501         [!USE_WIDE_CHAR].
1502         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
1503         and later undefine as macro.  Define as weak alias if
1504         [USE_WIDE_CHAR].
1505         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
1506         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
1507         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
1508         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1509         Define and later undefine as macro.  Define as weak alias if
1510         [USE_WIDE_CHAR].
1511         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
1512         <bits/floatn.h>.
1513         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
1514         Define and later undefine as macro.  Define as weak alias if
1515         [!USE_WIDE_CHAR].
1516         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1517         Define and later undefine as macro.  Define as weak alias if
1518         [USE_WIDE_CHAR].
1520 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
1522         * localedata/collate-test.c (allocate_arrays): Don't use \n in
1523         record_verbose messages.
1525 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1527         [BZ #22052]
1528         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
1529         to silence -O3 -Wall warning with GCC 7.
1531 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1533         * Makeconfig (+link-static-before-libc): Use the first of
1534         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
1535         * gmon/Makefile (tests): Add tst-gmon-static.
1536         (tests-static): Likewise.
1537         (CFLAGS-tst-gmon-static.c): New.
1538         (CRT-tst-gmon-static): Likewise.
1539         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
1540         (tst-gmon-static-ENV): Likewise.
1541         (tests-special): Likewise.
1542         ($(objpfx)tst-gmon-static.out): Likewise.
1543         (clean-tst-gmon-static-data): Likewise.
1544         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
1545         * gmon/tst-gmon-static-gprof.sh: New file.
1546         * gmon/tst-gmon-static.c: Likewise.
1548 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
1550         [BZ #22295]
1551         * locale/programs/linereader.c (get_string): Don't warn on
1552         non-symbolic character.
1554         [BZ #22294]
1555         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
1556         int_curr_symbol.
1558         [BZ #22292]
1559         * locale/programs/record-status.h: New file
1560         * locale/programs/locale.c: Add comment.
1561         * locale/programs/charmap-dir.c: Don't include error.h.
1562         (charmap_opendir): Use record_error.
1563         * locale/programs/charmap.c: Don't include error.h.
1564         (charmap_read): Use record_error, and record_warning.
1565         (parse_charmap): Likewise.
1566         * locale/programs/ld-address.c: Don't include error.h.
1567         (address_finish): Use record_error, and record_warning.
1568         * locale/programs/ld-collate.c: Don't include error.h.
1569         (collate_finish): Use record_error, and record_error_at_line.
1570         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
1571         (ctype_class_new): Likewise.
1572         (ctype_map_new): Likewise.
1573         (set_one_default): Likewise.
1574         (set_class_defaults): Likewise.
1575         (translit_flatten): Likewise.
1576         (allocate_arrays): Use record_error, and record_verbose.
1577         * locale/programs/ld-identification.c: Don't include error.h.
1578         (indentation_finish): Use record_error and record_warning.
1579         * locale/programs/ld-measurement.c: Don't include error.h.
1580         (measurement_finish): Use record_error.
1581         * locale/programs/ld-messages.c
1582         (message_finish): Likewise.
1583         * locale/programs/ld-monetary.c
1584         (monetary_finish): Likewise.
1585         * locale/programs/ld-name.c (name_finish): Use record_error
1586         and record_warning.
1587         * locale/programs/ld-numeric.c
1588         (numeric_finish): Use record_error.
1589         * locale/programs/ld-paper.c: Don't include error.h.
1590         (paper_finish): Use record_error.
1591         * locale/programs/ld-telephone.c: Don't include error.h.
1592         (telephone_finish): Use record_error.
1593         * locale/programs/ld-time.c (time_finish): Likewise.
1594         * locale/programs/linereader.h (lr_error): Make inline func.
1595         * locale/programs/localedef.c: Define recorded_warning_count,
1596         and recorded_error_count.
1597         (main): Use record_error. Use recorded_error_count and
1598         recorded_warning_count to issue correct error returns.
1599         (add_to_readlist): Use record_error.
1600         (find_locale): Likewise.
1601         (load_locale): Likewise.
1602         * locale/programs/localedef.h: Remove be_quiet
1603         and WITH_CUR_LOCALE.
1604         * locale/programs/locarchive.c (compare_from_file): Use
1605         record_error.
1606         * locale/programs/locfile.c (write_locale_data): Use
1607         record_error.
1608         * locale/programs/repertoire.c: Dont include error.h.
1609         (repertoire_complain): Use record_error.
1610         * localedata/tst-fmon.sh: Expect failures from localedef.
1611         * localedata/tst-locale.sh: Likewise.
1612         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
1614         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
1615         (REPORTS): Likewise.
1616         (check): Likewise.
1617         (i18n): Rename to...
1618         (i18n_ctype): ...this.
1619         (i18n-report): Rename to...
1620         (i18n_ctype-report): ...this.
1621         * localedata/locales/i18n_ctype: Regenerate.
1622         * localedata/locales/i18n: copy i18n_ctype.
1624 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
1626         * stdlib/strfroml.c: Include <bits/floatn.h>.
1627         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
1628         Define before include of <stdlib.h> and undefine afterwards, then
1629         define as weak alias.
1631         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
1632         Undefine and restore default definition.  Use
1633         libm_alias_ldouble_other.
1635 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
1637         [BZ #22153]
1638         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
1639         in coredumps.
1641 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
1643         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
1644         Assign sym_map to be map for local symbols, as TLS relocations
1645         use sym_map to determine whether the symbol is defined and to
1646         extract the TLS information.
1647         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1648         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1650 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1652         [BZ #22189]
1653         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
1654         (math_force_eval): Add powerpc version.
1656         [BZ #22142]
1657         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
1658         -DBL_MAX.
1659         (do_test): Likewise.
1660         * stdio-common/tst-printf.sh: Likewise.
1661         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
1662         ifdef clause in order to set the carry bit right.  Replace r0 by
1663         0 without changing the behavior.
1665 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
1667         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
1668         <libm-alias-ldouble.h>.
1669         (fabsl): Define using libm_alias_ldouble.
1670         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
1671         <libm-alias-ldouble.h>.
1672         (fabsl): Define using libm_alias_ldouble.
1674         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
1675         Remove conditional code.
1677         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
1678         Rename to __clog10_internal_l.
1679         (__clog10_internal_l): Define aliases using
1680         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
1681         with __clog10.
1683 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1685         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
1686         * benchtests/sincosf-inputs: New file.
1687         * benchtests/cosf-inputs: New file.
1688         * benchtests/sinf-inputs: New file.
1690 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1692         * posix/tst-spawn.c (do_test): Wait for both children.
1694 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1696         [BZ #22284]
1697         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
1698         tests-pie): Add tst-gmon-pie.
1699         (CFLAGS-tst-gmon-pie.c): New.
1700         (CRT-tst-gmon-pie): Likewise.
1701         (tst-gmon-pie-ENV): Likewise.
1702         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
1703         ($(objpfx)tst-gmon-pie.out): Likewise.
1704         (clean-tst-gmon-pie-data): Likewise.
1705         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
1706         * gmon/gmon.c [PIC]: Include <link.h>.
1707         [PIC] (callback): New function.
1708         (write_hist): Add an argument for load address.  Subtract load
1709         address from PCs.
1710         (write_call_graph): Likewise.
1711         (write_gmon): Call __dl_iterate_phdr to get load address, pass
1712         it to write_hist and write_call_graph.
1713         * gmon/tst-gmon-pie.c: New file.
1715 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
1717         * math/Makefile (test-types-basic): New variable.
1718         (test-types): Likewise.
1719         (libm-test-support): Use $(test-types) instead of $(types).
1720         (libm-tests-base-normal): Likewise.
1721         (libm-tests-base-finite): Likewise.
1722         (libm-tests-base-inline): Likewise.
1723         (generated): Likewise.
1724         ($(objpfx)libm-test-support-$(t).c): Likewise.
1725         (libm-tests-for-type iterator): Likewise.
1726         (libm-test-support iterator): Likewise.
1727         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
1728         (ulp_idx): Use ULP_IDX.
1729         * math/test-ldouble.h: Include <float.h>.
1730         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
1731         (ULP_IDX): New macro.
1732         (ULP_I_IDX): Likewise.
1733         * math/test-double.h (ULP_IDX): Likewise.
1734         (ULP_I_IDX): Likewise.
1735         * math/test-float.h (ULP_IDX): Likewise.
1736         (ULP_I_IDX): Likewise.
1737         * math/test-float128.h (ULP_IDX): Likewise.
1738         (ULP_I_IDX): Likewise.
1740 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1742         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
1743         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1744         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1745         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
1746         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1747         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
1748         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
1749         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1750         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1751         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1752         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
1753         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
1754         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1755         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1756         (SINGLE_THREAD_BY_GLOBAL): Define.
1757         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1758         Likewise.
1759         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1760         Likewise.
1761         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1762         Likewise.
1763         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1764         Likewise.
1765         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
1766         (SINGLE_THREAD_BY_GLOBAL): Likewise.
1767         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1768         Likewise.
1770 2017-10-11  Andreas Schwab  <schwab@suse.de>
1772         * nis/Makefile (aux): Remove.
1773         * nscd/Makefile (aux): Add nscd_hash.
1774         (nscd-modules): Likewise.
1775         ($(objpfx)nscd): Don't depend on libnsl.
1776         * nscd/nscd_hash.c: New file.
1777         * nscd/nscd_hash.h: Likewise.
1778         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
1779         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
1780         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
1781         instead of <nis/rpcsvc/nis.h>.
1782         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
1784 2017-10-11  Florian Weimer  <fweimer@redhat.com>
1786         [BZ #22078]
1787         Avoid large NSS buffers with many addresses, aliases.
1788         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
1789         using dynarrays and struct alloc_buffer.
1790         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
1791         (tst-nss-files-hosts-multi): Link with -ldl.
1792         * nss/tst-nss-files-hosts-multi.c: New file.
1794 2017-10-11  Florian Weimer  <fweimer@redhat.com>
1796         [BZ #18023]
1797         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
1798         scratch_buffer.  Eliminate gotos.
1800 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
1802         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
1803         libm_alias_ldouble_other.
1804         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
1805         undefine and redefine.
1806         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
1807         (exp10l): Do not define here.
1808         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
1809         (weak_alias): Undefine and redefine.
1810         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
1811         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
1812         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
1813         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
1815         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
1816         [!__fma] (fma): Define using libm_alias_double.
1817         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
1818         [!__fmaf] (fmaf): Define using libm_alias_float.
1819         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
1820         (fmal): Define using libm_alias_ldouble.
1822 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
1824         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
1825         New macro.
1826         (libm_alias_double_other): Likewise.
1827         (libm_alias_double_r): Use libm_alias_double_other_r.
1828         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
1829         New macro.
1830         (libm_alias_float_other): Likewise.
1831         (libm_alias_float_r): Use libm_alias_float_other_r.
1832         * sysdeps/generic/libm-alias-float128.h
1833         (libm_alias_float128_other_r): New macro.
1834         (libm_alias_float128_other): Likewise.
1835         (libm_alias_float128_r): Use libm_alias_float128_other_r.
1836         * sysdeps/generic/libm-alias-ldouble.h
1837         (libm_alias_ldouble_other_r): New macro.
1838         (libm_alias_ldouble_other): Likewise.
1839         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
1840         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
1841         (libm_alias_double_other_r): New macro.
1842         (libm_alias_double_other): Likewise.
1843         (libm_alias_double_r): Use libm_alias_double_other_r.
1844         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
1845         (libm_alias_ldouble_other_r): New macro.
1846         (libm_alias_ldouble_other): Likewise.
1847         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
1848         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
1849         [!USE_AS_COMPAT]: Use libm_alias_double_other.
1850         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
1851         [!USE_AS_COMPAT]: Use libm_alias_float_other.
1852         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
1853         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
1854         * math/w_exp2f.c: Use libm_alias_float_other.
1855         * math/w_expf.c: Likewise.
1856         * math/w_log2f.c: Likewise.
1857         * math/w_logf.c: Likewise.
1858         * math/w_powf.c: Likewise.
1859         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
1860         [!__exp2f]: Use libm_alias_float_other.
1861         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
1862         [!__expf]: Use libm_alias_float_other.
1863         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
1864         [!__log2f]: Use libm_alias_float_other.
1865         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
1866         [!__logf]: Use libm_alias_float_other.
1867         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
1868         [!__powf]: Use libm_alias_float_other.
1870 2017-10-10  Florian Weimer  <fweimer@redhat.com>
1872         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
1873         function.
1874         (_nss_files_gethostbyname3_r): Call it.
1876 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
1878         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
1879         error.  Remove default definition of declare_mgen_alias.
1880         [!declare_mgen_alias_r]: Likewise.
1881         * sysdeps/generic/math-type-macros-double.h
1882         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
1883         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
1884         (declare_mgen_alias_r): Likewise.
1885         * sysdeps/generic/math-type-macros-float128.h
1886         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1887         * sysdeps/generic/math-type-macros-ldouble.h
1888         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1889         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
1890         macro.
1891         (declare_mgen_alias_r_s): Likewise.
1892         (declare_mgen_alias_r): Likewise.
1893         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
1894         (lgamma_r): Define using libm_alias_double_r.
1895         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
1896         (lgammaf_r): Define using libm_alias_float_r.
1897         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
1898         (lgammal_r): Define using libm_alias_ldouble_r.
1899         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
1900         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
1902 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1904         * lib/glob.c (__glob_pattern_type): Remove now-spurious
1905         extern declaration.
1907 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
1909         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
1911 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
1913         [BZ #21326]
1914         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
1915         [__cplusplus >= 201103] (__USE_ISOC99): Define.
1916         * math/Makefile (test-math-cxx11): New test.
1917         * math/test-math-cxx11.cc: New file.
1919 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
1921         * login/openpty.c (openpty): Close slave pty file descriptor on error.
1923         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
1924         call to allocate the slave pty file descriptor.
1926 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
1928         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
1929         [!__fma] (fma): Define using libm_alias_double.
1930         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
1931         [!__fma] (fma): Define using libm_alias_double.
1933         * sysdeps/ieee754/float128/float128_private.h: Include
1934         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
1935         (libm_alias_ldouble_r): Undefine and redefine.
1936         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
1937         <libm-alias-ldouble.h>.
1938         (asinhl): Define using libm_alias_ldouble.
1939         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
1940         <libm-alias-ldouble.h>.
1941         (atanl): Define using libm_alias_ldouble.
1942         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
1943         <libm-alias-ldouble.h>.
1944         (cbrtl): Define using libm_alias_ldouble.
1945         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
1946         <libm-alias-ldouble.h>.
1947         (ceill): Define using libm_alias_ldouble.
1948         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
1949         <libm-alias-ldouble.h>.
1950         (copysignl): Define using libm_alias_ldouble.
1951         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
1952         <libm-alias-ldouble.h>.
1953         (cosl): Define using libm_alias_ldouble.
1954         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
1955         <libm-alias-ldouble.h>.
1956         (erfl): Define using libm_alias_ldouble.
1957         (erfcl): Likewise.
1958         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
1959         <libm-alias-ldouble.h>.
1960         (expm1l): Define using libm_alias_ldouble.
1961         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
1962         <libm-alias-ldouble.h>.
1963         (fabsl): Define using libm_alias_ldouble.
1964         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
1965         <libm-alias-ldouble.h>.
1966         (floorl): Define using libm_alias_ldouble.
1967         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
1968         <libm-alias-ldouble.h>.
1969         (fmal): Define using libm_alias_ldouble.
1970         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
1971         <libm-alias-ldouble.h>.
1972         (frexpl): Define using libm_alias_ldouble.
1973         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
1974         libm_alias_ldouble.
1975         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
1976         <libm-alias-ldouble.h>.
1977         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
1978         libm_alias_ldouble.
1979         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
1980         <libm-alias-ldouble.h>.
1981         (getpayloadl): Define using libm_alias_ldouble.
1982         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
1983         <libm-alias-ldouble.h>.
1984         (llrintl): Define using libm_alias_ldouble.
1985         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
1986         <libm-alias-ldouble.h>.
1987         (llroundl): Define using libm_alias_ldouble.
1988         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
1989         <libm-alias-ldouble.h>.
1990         (logbl): Define using libm_alias_ldouble.
1991         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
1992         <libm-alias-ldouble.h>.
1993         (lrintl): Define using libm_alias_ldouble.
1994         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
1995         <libm-alias-ldouble.h>.
1996         (lroundl): Define using libm_alias_ldouble.
1997         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
1998         <libm-alias-ldouble.h>.
1999         (modfl): Define using libm_alias_ldouble.
2000         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
2001         <libm-alias-ldouble.h>.
2002         (nearbyintl): Define using libm_alias_ldouble.
2003         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
2004         <libm-alias-ldouble.h>.
2005         (nextafterl): Define using libm_alias_ldouble.
2006         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
2007         <libm-alias-ldouble.h>.
2008         (nextupl): Define using libm_alias_ldouble.
2009         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
2010         <libm-alias-ldouble.h>.
2011         (remquol): Define using libm_alias_ldouble.
2012         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
2013         <libm-alias-ldouble.h>.
2014         (rintl): Define using libm_alias_ldouble.
2015         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
2016         <libm-alias-ldouble.h>.
2017         (roundevenl): Define using libm_alias_ldouble.
2018         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
2019         <libm-alias-ldouble.h>.
2020         (roundl): Define using libm_alias_ldouble.
2021         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
2022         using libm_alias_ldouble.
2023         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
2024         <libm-alias-ldouble.h>.
2025         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
2026         Define using libm_alias_ldouble.
2027         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
2028         <libm-alias-ldouble.h>.
2029         (sincosl): Define using libm_alias_ldouble.
2030         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
2031         <libm-alias-ldouble.h>.
2032         (sinl): Define using libm_alias_ldouble.
2033         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
2034         <libm-alias-ldouble.h>.
2035         (tanhl): Define using libm_alias_ldouble.
2036         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
2037         <libm-alias-ldouble.h>.
2038         (tanl): Define using libm_alias_ldouble.
2039         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
2040         <libm-alias-ldouble.h>.
2041         (totalorderl): Define using libm_alias_ldouble.
2042         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
2043         <libm-alias-ldouble.h>.
2044         (totalordermagl): Define using libm_alias_ldouble.
2045         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
2046         <libm-alias-ldouble.h>.
2047         (truncl): Define using libm_alias_ldouble.
2048         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
2049         libm_alias_ldouble.
2050         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
2051         libm_alias_ldouble.
2052         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
2053         <libm-alias-ldouble.h>.
2054         (weak_alias): Do not undefine and redefine.
2055         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2056         (copysignl): Define with long_double_symbol only if [IS_IN
2057         (libc)].
2058         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
2059         <libm-alias-ldouble.h>.
2060         (weak_alias): Do not undefine and redefine.
2061         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2062         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
2063         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
2064         <libm-alias-ldouble.h>.
2065         (weak_alias): Do not undefine and redefine.
2066         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
2067         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
2068         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
2069         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
2070         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
2071         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
2072         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
2073         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
2074         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
2075         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
2076         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
2077         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
2078         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
2079         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
2080         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
2081         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
2082         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
2083         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
2084         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
2085         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
2086         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
2087         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
2088         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
2089         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
2090         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
2091         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
2093 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
2095         [BZ #22111]
2096         * malloc/malloc.c (tcache_shutting_down): Use bool type.
2097         (tcache_thread_freeres): Set tcache_shutting_down before
2098         freeing the tcache.
2099         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
2100         * malloc/tst-malloc-tcache-leak.c: New file.
2102 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2104         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
2105         back to powerpc32 file.
2106         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2107         (memrchr): Add __memrchr_power8 to ifunc list.
2108         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
2109         extra bytes for unaligned inputs.
2111 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
2113         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
2114         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
2115         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
2116         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
2117         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
2119 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2121         * sysdeps/arm/libm-test-ulps: Update.
2123         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
2124         <libm-alias-ldouble.h>.
2125         (asinhl): Define using libm_alias_ldouble.
2126         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
2127         <libm-alias-ldouble.h>.
2128         (cbrtl): Define using libm_alias_ldouble.
2129         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
2130         <libm-alias-ldouble.h>.
2131         (copysignl): Define using libm_alias_ldouble.
2132         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
2133         <libm-alias-ldouble.h>.
2134         (cosl): Define using libm_alias_ldouble.
2135         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
2136         <libm-alias-ldouble.h>.
2137         (erfl): Define using libm_alias_ldouble.
2138         (erfcl): Likewise.
2139         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
2140         <libm-alias-ldouble.h>.
2141         (fmal): Define using libm_alias_ldouble.
2142         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
2143         <libm-alias-ldouble.h>.
2144         (frexpl): Define using libm_alias_ldouble.
2145         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
2146         libm_alias_ldouble.
2147         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
2148         <libm-alias-ldouble.h>.
2149         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
2150         libm_alias_ldouble.
2151         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
2152         <libm-alias-ldouble.h>.
2153         (getpayloadl): Define using libm_alias_ldouble.
2154         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
2155         <libm-alias-ldouble.h>.
2156         (llrintl): Define using libm_alias_ldouble.
2157         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
2158         <libm-alias-ldouble.h>.
2159         (llroundl): Define using libm_alias_ldouble.
2160         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
2161         <libm-alias-ldouble.h>.
2162         (lrintl): Define using libm_alias_ldouble.
2163         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
2164         <libm-alias-ldouble.h>.
2165         (lroundl): Define using libm_alias_ldouble.
2166         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
2167         <libm-alias-ldouble.h>.
2168         (modfl): Define using libm_alias_ldouble.
2169         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
2170         <libm-alias-ldouble.h>.
2171         (nextupl): Define using libm_alias_ldouble.
2172         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
2173         <libm-alias-ldouble.h>.
2174         (remquol): Define using libm_alias_ldouble.
2175         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
2176         <libm-alias-ldouble.h>.
2177         (roundevenl): Define using libm_alias_ldouble.
2178         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
2179         <libm-alias-ldouble.h>.
2180         (roundl): Define using libm_alias_ldouble.
2181         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
2182         using libm_alias_ldouble.
2183         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
2184         <libm-alias-ldouble.h>.
2185         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
2186         <libm-alias-ldouble.h>.
2187         (setpayloadsigl): Define using libm_alias_ldouble.
2188         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
2189         <libm-alias-ldouble.h>.
2190         (sincosl): Define using libm_alias_ldouble.
2191         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
2192         <libm-alias-ldouble.h>.
2193         (sinl): Define using libm_alias_ldouble.
2194         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
2195         <libm-alias-ldouble.h>.
2196         (tanhl): Define using libm_alias_ldouble.
2197         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
2198         <libm-alias-ldouble.h>.
2199         (tanl): Define using libm_alias_ldouble.
2200         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
2201         <libm-alias-ldouble.h>.
2202         (totalorderl): Define using libm_alias_ldouble.
2203         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
2204         <libm-alias-ldouble.h>.
2205         (totalordermagl): Define using libm_alias_ldouble.
2206         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
2207         libm_alias_ldouble.
2208         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
2209         libm_alias_ldouble.
2211 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2213         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2214         memmove_falkor.
2215         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2216         (__libc_ifunc_impl_list): Likewise.
2217         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
2218         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
2220         * benchtests/bench-memmove-walk.c: New file.
2221         * benchtests/Makefile (string-benchset): Add it.
2223         * benchtests/bench-memset-walk.c: New file.
2224         * benchtests/Makefile (string-benchset): Add it.
2226         * benchtests/bench-memcpy-walk.c: New file.
2227         * benchtests/Makefile (string-benchset): Add it.
2229 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2231         nscd: Eliminate compilation time dependency in the build output.
2232         * nscd/nscd_stat.c (STATDATA_VERSION)
2233         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
2234         (STATDATA_VERSION_FULL): New macro definitions.
2235         (compilation): Remove.
2236         (struct statdata): Adjust version member.
2237         (send_stats): Set version from STATDATA_VERSION_FULL.
2238         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
2240 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
2242         * configure.ac (--enable-add-ons): Remove option.
2243         (machine): Do not mention add-ons in comment.
2244         (LIBC_PRECONFIGURE): Likewise.
2245         (add_ons): Remove variable and sanity checks and logic to locate
2246         add-ons.
2247         (add_ons_automatic): Remove variable.
2248         (configured_add_ons): Likewise.
2249         (add_ons_sfx): Likewise.
2250         (add_ons_pfx): Likewise.
2251         (add_on_subdirs): Likewise.
2252         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
2253         consideration of add-ons in Implies handling.
2254         (sysdeps_add_ons): Likewise.
2255         * configure: Regenerated.
2256         * libidn/configure.ac: Remove.
2257         * libidn/configure: Likewise.
2258         * sysdeps/unix/inet/configure.ac: New file.
2259         * sysdeps/unix/inet/configure: New generated file.
2260         * sysdeps/unix/inet/Subdirs: Add libidn.
2261         * Makeconfig (sysdeps-srcdirs): Remove variable.
2262         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
2263         ($(common-objpfx)config.status): Do not depend on add-on files.
2264         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
2265         comment.
2266         (all-subdirs): Do not include $(add-on-subdirs).
2267         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
2268         * config.make.in (add-ons): Remove variable.
2269         (add-on-subdirs): Likewise.
2270         (sysdeps-add-ons): Likewise.
2271         * manual/Makefile (add-chapters): Remove.
2272         ($(objpfx)texis): Do not depend on $(add-chapters).
2273         (nonexamples): Do not handle $(add-chapters).
2274         (examples): Do not handle $(add-ons).
2275         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
2276         libc-texinfo.sh.
2277         * manual/install.texi (Installation): Do not mention add-ons.
2278         (--enable-add-ons): Do not document configure option.
2279         * INSTALL: Regenerated.
2280         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
2281         * manual/maint.texi (Hierarchy Conventions): Do not mention
2282         add-ons.
2283         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
2284         --enable-add-ons.
2285         * scripts/gen-sorted.awk: Do not handle Subdirs files from
2286         add-ons.
2287         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
2288         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
2290 2017-10-05  Andreas Schwab  <schwab@suse.de>
2292         [BZ #15142]
2293         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
2294         (_IO_flush_all_lockp): Always lock list_all_lock.
2295         (_IO_flush_all_linebuffered): Likewise.
2296         (_IO_unbuffer_all): Likewise.
2298 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2300         [BZ #15436]
2301         Do not flush stdio streams on abort.
2302         * stdlib/abort.c (fflush): Remove macro definition.
2303         (abort): Remove stages related to stdio flushing.
2305 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2307         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
2309 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
2311         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2313 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2315         * support/support_format_hostent.c (support_format_hostent): Add
2316         more error information for NETDB_INTERNAL.
2318 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2320         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
2321         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
2322         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
2323         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
2324         AC_DEFINE if multi-arch is enabled.
2325         * sysdeps/i386/configure: Regenerated.
2327 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2329         * Makeconfig (+link-static-before-libc): Use
2330         $(DEFAULT-LDFLAGS-$(@F)).
2331         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
2332         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
2333         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
2335 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2337         * elf/Makefile (tests): Add tst-main1.
2338         (modules-names): Add tst-main1mod.
2339         ($(objpfx)tst-main1): New.
2340         (CRT-tst-main1): Likewise.
2341         (LDFLAGS-tst-main1): Likewise.
2342         (LDLIBS-tst-main1): Likewise.
2343         (tst-main1mod.so-no-z-defs): Likewise.
2344         * elf/tst-main1.c: New file.
2345         * elf/tst-main1mod.c: Likewise.
2347 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2349         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
2351 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2353         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
2354         (fma): Define using libm_alias_double.
2355         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
2356         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
2357         <math_ldbl_opt.h>.
2358         (fmal): Do not define as compat symbol here.
2359         * sysdeps/alpha/fpu/s_fma.c: New file.
2361 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2363         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
2365 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2367         [BZ #22229]
2368         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
2369         <math_ldbl_opt.h>
2370         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2371         and libc.
2372         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
2373         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2374         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
2375         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
2376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2377         Include <math_ldbl_opt.h>
2378         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2379         and libc.
2380         (compat_symbol): Undefine and redefine.
2381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
2382         <math_ldbl_opt.h>
2383         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2384         (compat_symbol): Undefine and redefine.
2385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
2386         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
2387         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
2388         GLIBC_2_1 for libm.
2389         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
2390         GLIBC_2.0 copysignl symbol.
2391         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
2392         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
2394         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
2396 2017-10-04  Florian Weimer  <fweimer@redhat.com>
2398         * scripts/check-local-headers.sh: Ignore nspr4 header file
2399         directory in addition to nspr.
2401 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
2403         [BZ #17956]
2404         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
2405         * configure: Regenerate.
2406         * crypt/Makefile (nss-cpp-flags): New variable.
2407         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
2408         (CPPFLAGS-md5-crypt.c): Use it.
2409         * scripts/check-local-headers.sh: Ignore nspr header file
2410         directory.
2412 2017-10-04  Andreas Schwab  <schwab@suse.de>
2414         * nis/Makefile (services): Remove compat.
2415         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
2416         ($(objpfx)libnss_compat.so): Remove rule.
2417         * nis/Versions (libnss_compat): Remove.
2418         * nss/Makefile (services): Add compat.
2419         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
2420         * nss/Versions (libnss_compat): Define.
2421         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
2422         Don't include <rpc/types.h>.  Replace bool_t by bool.
2423         * nss/nss_compat/compat-initgroups.c: Likewise.
2424         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
2425         instead of <rpcsrv/ypclnt.h>.
2426         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
2427         yp_get_default_domain.
2428         * nss/nss_compat/compat-pwd.c: Likewise.
2429         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
2430         yp_get_default_domain.
2431         * nss/nss_compat/nisdomain.c: New file.
2432         * nss/nss_compat/nisdomain.h: Likewise.
2434 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2436         [BZ #22244]
2437         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
2438         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2440 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2442         [BZ #22243]
2443         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
2444         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
2446 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2448         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
2449         "movl main@GOTOFF(%ebx), %eax".
2451 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2453         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
2454         allow undefined _DYNAMIC in PIE libc.a.
2455         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2456         Likewse.
2458 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2460         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
2461         check _DYNAMIC.
2463 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2465         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
2466         check _DYNAMIC.
2468 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2470         * math/test-math-iscanonical.cc (error): Replace bool with int.
2472 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2474         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
2475         (modf): Define using libm_alias_double, only if [!__modf].
2476         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
2477         <libm-alias-double.h>.
2478         (modf): Define using libm_alias_double, only if [!__modf].
2479         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
2480         compat symbol here.
2481         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
2482         (weak_alias): Do not undefine and redefine.
2483         (strong_alias): Likewise.
2484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
2485         (weak_alias): Likewise.
2486         (strong_alias): Likewise.
2488         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
2489         (logb): Define using libm_alias_double, only if [!__logb].
2490         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
2491         <libm-alias-double.h>.
2492         (logb): Define using libm_alias_double, only if [!__logb].
2493         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
2494         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
2495         (weak_alias): Do not undefine and redefine.
2496         (strong_alias): Likewise.
2497         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
2498         (weak_alias): Likewise.
2499         (strong_alias): Likewise.
2501 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2503         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
2504         Check SHARED instead PIC.
2506 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2508         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
2509         [!__fmaf] (fmaf): Define using libm_alias_float.
2511         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
2512         (frexp): Define using libm_alias_double.
2513         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
2514         <libm-alias-double.h>.
2515         (frexp): Define using libm_alias_double.
2516         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
2517         compat symbol here.
2519 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2521         [BZ #22235]
2522         * math/math.h: Trivial fix for unbalanced parentheses in comment.
2523         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
2524         (CFLAGS-test-math-iscanonical.cc): New variable.
2525         * math/test-math-iscanonical.cc: New file.
2526         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
2527         Provide a C++ implementation based on function overloading,
2528         rather than using __MATH_TG, which uses C-only builtins.
2529         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
2530         Likewise.
2531         * sysdeps/powerpc/powerpc64le/Makefile
2532         (CFLAGS-test-math-iscanonical.cc): New variable.
2534 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2536         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
2537         (ceil): Define using libm_alias_double.
2538         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
2539         (floor): Define using libm_alias_double.
2540         * sysdeps/ieee754/dbl-64/s_llround.c: Include
2541         <libm-alias-double.h>.
2542         (llround): Define using libm_alias_double.
2543         * sysdeps/ieee754/dbl-64/s_lround.c: Include
2544         <libm-alias-double.h>.
2545         (lround): Define using libm_alias_double.
2546         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
2547         <libm-alias-double.h>.
2548         (nearbyint): Define using libm_alias_double.
2549         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
2550         <libm-alias-double.h>.
2551         (remquo): Define using libm_alias_double.
2552         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
2553         (rint): Define using libm_alias_double.
2554         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
2555         (round): Define using libm_alias_double.
2556         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
2557         (trunc): Define using libm_alias_double.
2558         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
2559         <libm-alias-double.h>.
2560         (ceil): Define using libm_alias_double.
2561         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
2562         <libm-alias-double.h>.
2563         (floor): Define using libm_alias_double.
2564         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
2565         <libm-alias-double.h>.
2566         (llround): Define using libm_alias_double.
2567         [_LP64] (lround): Likewise.
2568         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
2569         <libm-alias-double.h>.
2570         [!_LP64] (lround): Define using libm_alias_double.
2571         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
2572         <libm-alias-double.h>.
2573         (nearbyint): Define using libm_alias_double.
2574         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
2575         <libm-alias-double.h>.
2576         (remquo): Define using libm_alias_double.
2577         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
2578         <libm-alias-double.h>.
2579         (rint): Define using libm_alias_double.
2580         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
2581         <libm-alias-double.h>.
2582         (round): Define using libm_alias_double.
2583         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
2584         <libm-alias-double.h>.
2585         (trunc): Define using libm_alias_double.
2586         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
2587         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
2588         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
2589         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
2590         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
2591         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
2592         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
2593         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
2594         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
2596 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2598         * math/w_remainder.c: New file.
2599         * math/w_remainderf.c: New file.
2600         * math/w_remainderl.c: New file.
2602 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2604         * elf/rtld.c (BOOTSTRAP_MAP): New.
2605         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
2606         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2607         Likewise.
2608         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2609         Likewise.
2610         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2611         Likewise.
2613 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2615         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
2616         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
2617         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
2618         rtld_hidden_data_ver): Define to empty.
2619         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
2620         __assert_perror_fail): Likewise.
2621         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2622         (__rewinddir): Likewise.
2623         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2624         (__profile_frequency): Likewise.
2625         * include/setjmp.h (__sigsetjmp): Likewise.
2626         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
2627         __libc_sigaction): Likewise.
2628         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
2629         not set hidden attribute.
2630         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
2631         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
2632         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
2633         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
2634         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
2635         __fxstatat64): Likewise.
2636         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2637         (__uname): Likewise.
2638         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2639         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
2640         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
2641         (NO_RTLD_HIDDEN): Set.
2642         * sysdeps/mach/hurd/configure: Refresh.
2643         * config.h.in: Refresh.
2645 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
2647         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
2648         (atan): Define using libm_alias_double.
2649         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
2650         (tan): Define using libm_alias_double.
2651         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
2652         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
2654         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
2655         define as weak alias of __atan.  Do not define any aliases if
2656         [__atan].
2657         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
2658         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
2659         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
2660         as weak alias of __tan.  Do not define any aliases if [__tan].
2661         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
2662         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
2663         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
2664         __atan.
2665         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
2666         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
2667         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
2668         and define as weak alias of __atan.
2669         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
2670         __atan.
2671         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
2672         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
2673         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
2674         define as weak alias of __tan.
2676 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2678         * math/w_lgamma.c: New file.
2679         * math/w_lgammaf.c: New file.
2680         * math/w_lgammal.c: New file.
2682 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2684         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
2685         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
2686         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
2687         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
2688         * sysdeps/ieee754/flt-32/w_logf.c: New file.
2689         * sysdeps/ieee754/flt-32/w_powf.c: New file.
2690         * sysdeps/i386/fpu/w_log2f.c: New file.
2691         * sysdeps/i386/fpu/w_logf.c: New file.
2692         * sysdeps/i386/fpu/w_powf.c: New file.
2693         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
2694         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
2695         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
2697 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2698             H.J. Lu  <hongjiu.lu@intel.com>
2700         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
2701         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
2702         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
2703         * sysdeps/ieee754/flt-32/w_expf.c: New file.
2704         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
2705         the new expf code.
2706         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
2707         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
2708         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
2709         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
2710         * sysdeps/i386/fpu/w_exp2f.c: New file.
2711         * sysdeps/i386/fpu/w_expf.c: New file.
2712         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
2713         * sysdeps/x86_64/fpu/w_expf.c: New file.
2715 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2717         * math/Versions (logf): New libm symbol at GLIBC_2.27.
2718         (log2f): Likewise.
2719         (powf): Likewise.
2720         * math/w_log2f.c: New file.
2721         * math/w_logf.c: New file.
2722         * math/w_powf.c: New file.
2723         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
2724         * math/w_logf_compat.c (__logf_compat): Likewise.
2725         * math/w_powf_compat.c (__powf_compat): Likewise.
2726         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
2727         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2728         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2729         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2730         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2731         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2732         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2733         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2734         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2735         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2736         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2737         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2738         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2739         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2740         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2742         Likewise.
2743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2744         Likewise.
2745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2746         Likewise.
2747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2748         Likewise.
2749         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2750         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2751         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2752         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2753         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2754         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2755         Likewise.
2756         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2757         Likewise.
2758         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2759         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2760         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2762 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2764         * sysdeps/powerpc/powerpc64/multiarch/Makefile
2765         (sysdep_routines): Add memrchr_power8.
2766         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2767         (memrchr): Add __memrchr_power8 to list of memrchr functions.
2768         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
2769         New file.
2770         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2771         (memrchr): Add __memrchr_power8 to ifunc list.
2772         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
2774 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2776         [BZ #18822]
2777         * sysdeps/unix/sysv/linux/posix_fadvise64.c
2778         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
2779         libc_hidden_def.
2780         * sysdeps/unix/sysv/linux/posix_fallocate64.c
2781         (__posix_fallocate64_l64): Likewise.
2783 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2785         [BZ #18822]
2786         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2787         (__sched_setaffinity_new): Add libc_hidden_proto and
2788         libc_hidden_def.
2790 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2792         [BZ #18822]
2793         * include/glob.h (__glob64): Add libc_hidden_proto.
2794         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
2795         libc_hidden_def.
2797 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2799         [BZ #18822]
2800         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
2801         attribute_hidden.
2803 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2805         [BZ #18822]
2806         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
2808 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2810         [BZ #18822]
2811         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
2812         libc_hidden_def.
2814 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2816         [BZ #18822]
2817         * csu/version.c (__libc_print_version): Add attribute_hidden.
2819 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2821         [BZ #18822]
2822         * include/libc-internal.h (__init_misc): Add attribute_hidden.
2824 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2826         [BZ #18822]
2827         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
2829 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2831         [BZ #18822]
2832         * nscd/nscd_helper.c (__nis_hash): New prototype.
2834 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2836         [BZ #18822]
2837         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
2838         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
2839         libc_hidden_def.
2840         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
2841         * termios/tcgetattr.c (__tcgetattr): Likewise.
2843 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2845         [BZ #18822]
2846         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
2847         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
2848         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
2849         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
2850         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
2852 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2854         [BZ #18822]
2855         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
2857 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2859         [BZ #18822]
2860         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
2861         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
2863 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2865         [BZ #18822]
2866         * intl/hash-string.h (__hash_string): Add attribute_hidden.
2868 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2870         [BZ #18822]
2871         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
2872         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
2874 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2876         [BZ #18822]
2877         * include/ifreq.h: New file.
2878         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
2879         (__ifreq): Likewise.
2880         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
2881         (__ifreq): Likewise.
2883 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2885         [BZ #18822]
2886         * include/idna.h: New file.
2887         * inet/getnameinfo.c: Include <idna.h> instead of
2888         <libidn/idna.h>.
2889         (__idna_to_unicode_lzlz): Removed.
2890         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
2891         <libidn/idna.h>.
2892         (__idna_to_ascii_lz): Removed.
2893         (__idna_to_unicode_lzlz): Likewise.
2895 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2897         [BZ #18822]
2898         * include/plural-exp.h: New file.
2899         * intl/plural-exp.c: Include <plural-exp.h> instead of
2900         "plural-exp.h".
2902 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2904         [BZ #18822]
2905         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
2906         "getsourcefilter.h".
2907         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
2908         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
2909         "getsourcefilter.h".
2910         (__get_sol): Removed.
2912 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2914         [BZ #18822]
2915         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
2916         to ...
2917         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
2919 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2921         [BZ #18822]
2922         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
2923         attribute_hidden.
2925 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2927         [BZ #18822]
2928         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
2930 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2932         [BZ #18822]
2933         * include/search.h (__tdestroy): Add libc_hidden_proto.
2934         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
2936 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2938         [BZ #18822]
2939         * include/assert.h (__assert_fail_base): Add attribute_hidden.
2941 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2943         [BZ #18822]
2944         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
2945         attribute_hidden.
2947 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2949         [BZ #18822]
2950         * include/signal.h (__kill): Add libc_hidden_proto.
2951         (__sigblock): Likewise.
2952         (__sigprocmask): Likewise.
2953         (__sigaltstack): Likewise.
2954         * signal/kill.c (__kill): Add libc_hidden_def.
2955         * signal/sigblock.c (__sigblock): Likewise.
2956         * signal/sigprocmask.c (__sigprocmask): Likewise.
2957         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2958         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2959         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
2960         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
2961         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
2962         Likewise.
2963         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
2964         Likewise.
2965         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
2966         (__sigprocmask): Likewise.
2967         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
2968         Likewise.
2969         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
2970         (__sigprocmask): Likewise.
2971         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
2972         Likewise.
2974 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2976         [BZ #18822]
2977         * include/string.h (__strsep): Add libc_hidden_proto.
2978         * string/strsep.c (__strsep): Add libc_hidden_def.
2980 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2982         [BZ #18822]
2983         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
2984         attribute_hidden.
2985         (__spawni): Likewise.
2987 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2989         [BZ #18822]
2990         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
2991         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
2992         libc_hidden_def.
2994 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2996         [BZ #18822]
2997         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
2999 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3001         [BZ #18822]
3002         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
3003         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
3004         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
3005         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
3006         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
3007         Likewise.
3008         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
3009         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
3011 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3013         [BZ #18822]
3014         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
3015         (__dcigettext): Likewise.
3017 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3019         [BZ #18822]
3020         * include/sys/sysinfo.h (__get_nprocs_conf): Add
3021         libc_hidden_proto.
3022         (__get_nprocs): Likewise.
3023         (__get_phys_pages): Likewise.
3024         (__get_avphys_pages): Likewise.
3025         (__get_child_max): Add attribute_hidden.
3026         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
3027         (__get_nprocs): Likewise.
3028         (__get_phys_pages): Likewise.
3029         (__get_avphys_pages): Likewise.
3030         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
3031         libc_hidden_def.
3032         (__get_nprocs): Likewise.
3033         (__get_phys_pages): Likewise.
3034         (__get_avphys_pages): Likewise.
3035         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
3036         libc_hidden_def.
3037         (__get_nprocs_conf): Likewise.
3038         (__get_phys_pages): Likewise.
3039         (__get_avphys_pages): Likewise.
3041 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3043         [BZ #18822]
3044         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
3045         attribute_hidden.
3046         (__netlink_close): Likewise.
3047         (__netlink_free_handle): Likewise.
3048         (__netlink_request): Likewise.
3050 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3052         [BZ #18822]
3053         * include/rpc/rpc.h (__rpc_thread_variables): Add
3054         attribute_hidden.
3055         (__rpc_thread_svc_cleanup): Likewise.
3056         (__rpc_thread_clnt_cleanup): Likewise.
3057         (__rpc_thread_key_cleanup): Likewise.
3059 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3061         [BZ #18822]
3062         * include/sys/uio.h (__readv): Add libc_hidden_proto.
3063         (__writev): Likewise.
3064         * misc/readv.c (__readv): Add libc_hidden_def.
3065         * misc/writev.c (__writev): Likewise.
3066         * sysdeps/posix/readv.c (__readv): Likewise.
3067         * sysdeps/posix/writev.c (__writev): Likewise.
3068         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
3069         (__readv): Likewise.
3070         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
3071         (__writev): Likewise.
3073 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3075         [BZ #18822]
3076         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
3077         (__regcomp): Add libc_hidden_proto.
3078         (__regexec): Likewise.
3079         (__regfree): Likewise.
3080         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
3081         (__regfree): Likewise.
3082         * posix/regexec.c (__regexec): Likewise.
3084 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3086         [BZ #18822]
3087         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
3088         (__getutent): Likewise.
3089         (__getutid): Likewise.
3090         (__getutline): Likewise.
3091         (__pututline): Likewise.
3092         (__getutent_r): Likewise.
3093         (__getutid_r): Likewise.
3094         (__getutline_r): Likewise.
3095         (__utmpname): Add attribute_hidden.
3096         (__setutent): Likewise.
3097         (__endutent): Likewise.
3098         * login/getutent.c (__getutent): Add libc_hidden_def.
3099         * login/getutent_r.c (__getutent_r): Likewise.
3100         (__pututline): Likewise.
3101         * login/getutid.c (__getutid): Likewise.
3102         * login/getutid_r.c (__getutid_r): Likewise.
3103         * login/getutline.c (__getutline): Likewise.
3104         * login/getutline_r.c (__getutline_r): Likewise.
3105         * login/updwtmp.c (__updwtmp): Likewise.
3107 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3109         [BZ #18822]
3110         * include/dirent.h (__opendir): Always add attribute_hidden.
3111         (__fdopendir): Likewise.
3112         (__closedir): Likewise.
3113         (__readdir): Likewise.
3114         (__readdir64): Add libc_hidden_proto.
3115         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
3116         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
3117         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
3118         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
3119         New alias.
3121 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3123         [BZ #18822]
3124         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
3125         * include/netdb.h (__gethostbyaddr_r): Likewise.
3126         (__gethostbyname_r): Likewise.
3127         (__gethostbyname2_r): Likewise.
3128         (__getnetbyaddr_r): Likewise.
3129         (__getnetbyname_r): Likewise.
3130         (__getservbyname_r): Likewise.
3131         (__getservbyport_r): Likewise.
3132         (__getprotobyname_r): Likewise.
3133         (__getprotobynumber_r): Likewise.
3134         (__getnetgrent_r): Likewise.
3135         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
3136         (__getrpcbynumber_r): Likewise.
3137         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
3139 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3141         [BZ #18822]
3142         * include/stdio.h (__fcloseall): Add attribute_hidden.
3143         (__getline): Likewise.
3144         (__path_search): Likewise.
3145         (__gen_tempname): Likewise.
3146         (__libc_message): Likewise.
3147         (__flockfile): Likewise.
3148         (__funlockfile): Likewise.
3149         (__fxprintf): Likewise.
3150         (__fxprintf_nocancel): Likewise.
3152 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3154         [BZ #18822]
3155         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
3156         (__sgetsgent_r): Likewise.
3158 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3160         [BZ #18822]
3161         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
3162         (__statfs64): Likewise.
3163         (__fstatfs64): Likewise.
3164         * include/sys/statvfs.h (__statvfs64): Likewise.
3165         (__fstatvfs64): Likewise.
3166         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
3167         (__statfs_filesize_max): Likewise.
3168         (__statfs_symlinks): Likewise.
3169         (__statfs_chown_restricted): Likewise.
3171 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3173         [BZ #18822]
3174         * include/time.h (__tzstring): Add attribute_hidden.
3175         (__tzfile_read): Likewise.
3176         (__tzfile_compute): Likewise.
3177         (__tzfile_default): Likewise.
3178         (__tzset_parse_tz): Likewise.
3179         (__offtime): Likewise.
3180         (__asctime_r): Likewise.
3181         (__tzset): Likewise.
3182         (__tz_convert): Likewise.
3183         (__getdate_r): Likewise.
3184         (__getclktck): Likewise.
3186 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3188         [BZ #18822]
3189         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
3190         (__nscd_unmap): Likewise.
3191         (__nscd_cache_search): Likewise.
3192         (__nscd_get_nl_timestamp): Likewise.
3193         (__nscd_getpwnam_r): Likewise.
3194         (__nscd_getpwuid_r): Likewise.
3195         (__nscd_getgrnam_r): Likewise.
3196         (__nscd_getgrgid_r): Likewise.
3197         (__nscd_gethostbyname_r): Likewise.
3198         (__nscd_gethostbyname2_r): Likewise.
3199         (__nscd_gethostbyaddr_r): Likewise.
3200         (__nscd_getai): Likewise.
3201         (__nscd_getgrouplist): Likewise.
3202         (__nscd_getservbyname_r): Likewise.
3203         (__nscd_getservbyport_r): Likewise.
3204         (__nscd_innetgr): Likewise.
3205         (__nscd_setnetgrent): Likewise.
3207 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3209         [BZ #18822]
3210         * include/gmp.h: Declare internal functions only if _ISOMAC is
3211         undefined.
3212         (__mpn_extract_double): Add attribute_hidden.
3213         (__mpn_extract_long_double): Likewise.
3214         (__mpn_extract_float128): Likewise.
3215         (__mpn_construct_float): Likewise.
3216         (__mpn_construct_double): Likewise.
3217         (__mpn_construct_long_double): Likewise.
3218         (__mpn_construct_float128): Likewise.
3219         (mpn_add_1): Likewise.
3220         (mpn_addmul_1): Likewise.
3221         (mpn_add_n): Likewise.
3222         (mpn_cmp): Likewise.
3223         (mpn_divrem): Likewise.
3224         (mpn_lshift): Likewise.
3225         (mpn_mul): Likewise.
3226         (mpn_mul_1): Likewise.
3227         (mpn_rshift): Likewise.
3228         (mpn_sub_1): Likewise.
3229         (mpn_submul_1): Likewise.
3230         (mpn_sub_n): Likewise.
3232 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3234         [BZ #18822]
3235         * include/wchar.h (__wcsnlen): Add attribute_hidden.
3236         (__wcscat): Likewise.
3237         (__btowc): Likewise.
3238         (__wcrtomb): Likewise.
3239         (__mbsrtowcs): Likewise.
3240         (__wcsrtombs): Likewise.
3241         (__mbsnrtowcs): Likewise.
3242         (__wcsnrtombs): Likewise.
3243         (__wcsncpy): Likewise.
3244         (__wcpncpy): Likewise.
3245         (__wmemcpy): Likewise.
3246         (__wmempcpy): Likewise.
3247         (__wmemmove): Likewise.
3248         (__wcschrnul): Likewise.
3249         (__vfwscanf): Likewise.
3250         (__vswprintf): Likewise.
3251         (__fwprintf): Likewise.
3252         (__vfwprintf): Likewise.
3254 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3256         [BZ #18822]
3257         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
3258         (__getgrgid_r): Likewise.
3259         (__getgrnam_r): Likewise.
3260         * include/pwd.h (__getpwuid_r): Likewise.
3261         (__getpwnam_r): Likewise.
3262         (__fgetpwent_r): Likewise.
3263         * include/shadow.h (__getspnam_r): Likewise.
3264         (__sgetspent_r): Likewise.
3265         (__fgetspent_r): Likewise.
3267 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3269         [BZ #18822]
3270         * include/unistd.h (__access): Add attribute_hidden.
3271         (__lseek64): Likewise.
3272         (__libc_pread64): Likewise.
3273         (__pipe2): Likewise.
3274         (__sleep): Likewise.
3275         (__chdir): Likewise.
3276         (__fchdir): Likewise.
3277         (__getcwd): Likewise.
3278         (__rmdir): Likewise.
3279         (__execvpe): Likewise.
3280         (__execve): Likewise.
3281         (__setsid): Likewise.
3282         (__getuid): Likewise.
3283         (__geteuid): Likewise.
3284         (__getgid): Likewise.
3285         (__getegid): Likewise.
3286         (__getgroups): Likewise.
3287         (__group_member): Likewise.
3288         (__ttyname_r): Likewise.
3289         (__isatty): Likewise.
3290         (__readlink): Likewise.
3291         (__unlink): Likewise.
3292         (__gethostname): Likewise.
3293         (__profil): Likewise.
3294         (__getdtablesize): Likewise.
3295         (__brk): Likewise.
3296         (__ftruncate): Likewise.
3297         (__ftruncate64): Likewise.
3299 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3301         [BZ #18822]
3302         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
3303         * argp/argp-fs-xinl.c: Likewise.
3304         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
3305         * argp/argp-parse.c: Include <argp.h>.
3306         * argp/argp-xinl.c: Likewise.
3307         * include/argp-fmtstream.h: New file.
3308         * include/argp.h (__argp_error): Add attribute_hidden.
3309         (__argp_failure): Likewise.
3310         (__argp_input): Likewise.
3311         (__argp_state_help): Likewise.
3313 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3315         [BZ #18822]
3316         * include/wchar.h (____wcstof_l_internal): New prototype.
3317         (____wcstod_l_internal): Likewise.
3318         (____wcstold_l_internal): Likewise.
3319         (____wcstol_l_internal): Likewise.
3320         (____wcstoul_l_internal): Likewise.
3321         (____wcstoll_l_internal): Likewise.
3322         (____wcstoull_l_internal): Likewise.
3323         (____wcstof128_l_internal): Likewise.
3324         * sysdeps/ieee754/float128/wcstof128.c
3325         (____wcstof128_l_internal): Removed.
3326         * sysdeps/ieee754/float128/wcstof128_l.c
3327         (____wcstof128_l_internal): Likewise.
3328         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
3329         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
3330         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
3331         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
3332         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
3333         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
3334         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
3335         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
3336         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
3337         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
3339 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3341         [BZ #18822]
3342         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
3343         instead of <sys/statvfs.h>.
3344         (__internal_statvfs): Removed.
3345         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
3346         instead of <sys/statvfs.h>.
3347         (__internal_statvfs64): Removed.
3348         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
3349         "internal_statvfs.h" instead of <sys/statvfs.h>.
3350         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
3351         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
3352         instead of <sys/statvfs.h>.
3353         (__internal_statvfs): Removed.
3354         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
3355         instead of <sys/statvfs.h>.
3356         (__internal_statvfs64): Removed.
3358 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3360         [BZ #18822]
3361         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
3362         (__gconv_close): Likewise.
3363         (__gconv): Likewise.
3364         (__gconv_find_transform): Likewise.
3365         (__gconv_lookup_cache): Likewise.
3366         (__gconv_compare_alias_cache): Likewise.
3367         (__gconv_load_cache): Likewise.
3368         (__gconv_get_path): Likewise.
3369         (__gconv_close_transform): Likewise.
3370         (__gconv_release_cache): Likewise.
3371         (__gconv_find_shlib): Likewise.
3372         (__gconv_release_shlib): Likewise.
3373         (__gconv_get_builtin_trans): Likewise.
3374         (__gconv_compare_alias): Likewise.
3375         * include/dlfcn.h (_dlerror_run): Likewise.
3376         * include/stdio.h (__fortify_fail_abort): Likewise.
3377         * include/time.h (__tz_compute): Likewise.
3378         (__strptime_internal): Likewise.
3379         * intl/gettextP.h (_nl_find_domain): Likewise.
3380         (_nl_load_domain): Likewise.
3381         (_nl_find_msg): Likewise.
3382         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
3383         (EXTRACT_PLURAL_EXPRESSION): Likewise.
3384         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
3385         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
3386         (__gai_find_request): Likewise.
3387         (__gai_remove_request): Likewise.
3388         (__gai_notify): Likewise.
3389         (__gai_notify_only): Likewise.
3390         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
3391         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
3392         (_dl_non_dynamic_init): Likewise.
3393         (_dl_aux_init): Likewise.
3394         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
3395         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
3396         Likewise.
3397         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
3398         (__wcsmbs_clone_conv): Likewise.
3399         (__wcsmbs_named_conv): Likewise.
3401 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3403         [BZ #18822]
3404         * include/stdlib.h (__random): Add attribute_hidden.
3405         (__random_r): Likewise.
3406         (__srandom_r): Likewise.
3407         (__initstate_r): Likewise.
3408         (__setstate_r): Likewise.
3409         (__erand48_r): Likewise.
3410         (__nrand48_r): Likewise.
3411         (__jrand48_r): Likewise.
3412         (__srand48_r): Likewise.
3413         (__seed48_r): Likewise.
3414         (__lcong48_r): Likewise.
3415         (__drand48_iterate): Likewise.
3416         (__setenv): Likewise.
3417         (__unsetenv): Likewise.
3418         (__clearenv): Likewise.
3419         (__ptsname_r): Likewise.
3420         (__posix_openpt): Likewise.
3421         (__add_to_environ): Likewise.
3422         (__realpath): Add libc_hidden_proto.
3423         (__ecvt_r): Likewise.
3424         (__fcvt_r): Likewise.
3425         (__qecvt_r): Likewise.
3426         (__qfcvt_r): Likewise.
3427         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
3428         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
3430 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3432         [BZ #18822]
3433         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
3434         * include/time.h (__mktime_internal): Likewise.
3435         * libio/iolibio.h (__fopen_internal): Likewise.
3437 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
3439         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
3440         pointer in frame.
3441         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
3442         Correct offset used to restore PIC register.
3444 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
3446         [BZ libc/22165]
3447         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
3448         code to load address of __getcontext_ret when generating PIC code.
3450 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
3452         * elf/Makefile (tests-static-internal): Add
3453         tst-tls1-static-non-pie.
3454         (LDFLAGS-tst-tls1-static-non-pie): New.
3455         * elf/tst-tls1-static-non-pie.c: New file.
3457 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
3459         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
3460         (asinh): Define using libm_alias_double.
3461         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
3462         (cbrt): Define using libm_alias_double.
3463         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
3464         <libm-alias-double.h>.
3465         (copysign): Define using libm_alias_double.
3466         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
3467         (erf): Define using libm_alias_double.
3468         (erfc): Likewise.
3469         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
3470         (expm1): Define using libm_alias_double.
3471         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
3472         (fabs): Define using libm_alias_double.
3473         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
3474         libm_alias_double.
3475         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
3476         <libm-alias-double.h>.
3477         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
3478         libm_alias_double.
3479         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
3480         <libm-alias-double.h>.
3481         (getpayload): Define using libm_alias_double.
3482         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
3483         <libm-alias-double.h>.
3484         (llrint): Define using libm_alias_double.
3485         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
3486         (lrint): Define using libm_alias_double.
3487         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
3488         <libm-alias-double.h>.
3489         (nextup): Define using libm_alias_double.
3490         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
3491         <libm-alias-double.h>.
3492         (roundeven): Define using libm_alias_double.
3493         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
3494         libm_alias_double.
3495         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
3496         <libm-alias-double.h>.
3497         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
3498         using libm_alias_double.
3499         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
3500         (cos): Define using libm_alias_double.
3501         (sin): Likewise.
3502         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
3503         <libm-alias-double.h>.
3504         (sincos): Define using libm_alias_double.
3505         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
3506         (tanh): Define using libm_alias_double.
3507         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
3508         <libm-alias-double.h>.
3509         (totalorder): Define using libm_alias_double.
3510         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
3511         <libm-alias-double.h>.
3512         (totalordermag): Define using libm_alias_double.
3513         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
3514         libm_alias_double.
3515         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
3516         libm_alias_double.
3517         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
3518         <libm-alias-double.h>.
3519         (getpayload): Define using libm_alias_double.
3520         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
3521         <libm-alias-double.h>.
3522         (roundeven): Define using libm_alias_double.
3523         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
3524         <libm-alias-double.h>.
3525         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
3526         <libm-alias-double.h>.
3527         (totalorder): Define using libm_alias_double.
3528         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
3529         <libm-alias-double.h>.
3530         (totalordermag): Define using libm_alias_double.
3531         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
3532         libc compat symbol here.
3533         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
3534         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
3535         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
3536         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
3537         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
3538         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
3539         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
3540         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
3541         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
3542         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
3544 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3546         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
3547         _dl_relocate_static_pie instead of _dl_start to compute load
3548         address in static PIE.  Return 0 if _DYNAMIC is undefined for
3549         static executable.
3551 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3553         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
3554         _DYNAMIC is undefined for static executable.
3556 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3558         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
3560 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
3562         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3564 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
3566         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
3567         (__ieee754_lgamma_r): Use fabs rather than __fabs.
3568         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
3569         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3570         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
3571         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
3572         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3573         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3574         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
3575         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3576         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3577         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3578         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
3579         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3580         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3581         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3582         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
3584 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
3586         * math/bits/cmathcalls.h (cimag): Remove inline.
3587         (creal): Remove inline.
3588         (conj): Remove inline.
3590 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3592         * math/Makefile (type-float-routines): Add e_powf_log2_data.
3593         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
3594         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
3595         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
3596         (issignalingf_inline): Likewise.
3597         (POWF_LOG2_TABLE_BITS): Likewise.
3598         (POWF_LOG2_POLY_ORDER): Likewise.
3599         (POWF_SCALE_BITS): Likewise.
3600         (POWF_SCALE): Likewise.
3601         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
3602         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
3603         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
3605 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3607         * math/Makefile (type-float-routines): Add e_log2f_data.
3608         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
3609         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
3610         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
3611         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
3612         * sysdeps/i386/fpu/e_log2f_data.c: New file.
3613         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
3614         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
3616 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3618         * math/Makefile (type-float-routines): Add e_logf_data.
3619         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
3620         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
3621         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
3622         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
3623         * sysdeps/i386/fpu/e_logf_data.c: New file.
3624         * sysdeps/ia64/fpu/e_logf_data.c: New file.
3625         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
3627 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
3629         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
3630         undefined _DYNAMIC in PIE libc.a.
3631         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3632         Likewse.
3634 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3636         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
3637         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
3638         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
3639         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
3640         (__signbit): Remove.
3641         (__signbitl): Remove.
3642         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
3643         (__signbit): Remove.
3644         (__signbitl): Remove.
3645         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
3646         (__signbit): Remove.
3647         (__signbitl): Remove.
3648         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
3649         (__signbit): Remove.
3650         (__signbitl): Remove.
3651         * sysdeps/tile/bits/mathinline.h: Delete file.
3652         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
3653         (__signbit): Remove.
3654         (__signbitl): Remove.
3656 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3658         * math/math.h: Improve handling of C99 isgreater macros.
3659         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
3660         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
3661         * sysdeps/powerpc/bits/mathinline.h: Likewise.
3662         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3663         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
3665 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3667         * sysdeps/aarch64/libm-test-ulps: Update.
3669 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
3671         [BZ #22225]
3672         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3673         math_opt_barrier on argument when doing arithmetic on it.
3674         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3675         Likewise.  Use math_force_eval not math_opt_barrier after
3676         arithmetic.
3677         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
3678         math_opt_barrier on argument when doing arithmetic on it.
3679         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3680         Likewise.
3682 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
3684         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
3685         libc_hidden_def.
3686         (__freeifaddrs): Likewise.
3688 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3690         * include/dirent.h (__dirfd): New declaration.
3691         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
3692         alias.
3693         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
3694         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
3695         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
3696         * include/unistd.h (__revoke): New declaration.
3697         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
3698         alias.
3699         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
3700         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
3701         revoke.
3702         * include/dirent.h (__seekdir): New declaration.
3703         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
3704         redefine as weak alias.
3705         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
3706         of seekdir.
3707         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
3708         and use libc_hidden_def on them.
3709         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
3710         them.
3711         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
3712         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
3713         instead of getifaddrs and freeifaddrs.
3715 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
3717         [BZ #18822]
3718         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
3719         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
3720         (__dso_handle): Remove declaration.
3721         * dlfcn/tstatexit.c (__dso_handle): Removed.
3722         (main): Don't check __dso_handle.
3723         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
3724         (main): Don't check __dso_handle.
3725         * include/dso_handle.h: New file.
3726         * malloc/mtrace.c: Include <dso_handle.h>.
3727         (mtrace): Pass __dso_handle directly.
3728         * nptl/pthread_atfork.c: Include <dso_handle.h>.
3729         (__dso_handle): Remove declaration.
3730         (__pthread_atfork): Pass __dso_handle directly.
3731         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
3732         (__dso_handle): Removed.
3733         * posix/wordexp-test.c: Include <dso_handle.h>.
3734         (__dso_handle): Remove declaration.
3735         (__app_register_atfork): Pass __dso_handle directly.
3736         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
3737         (__dso_handle): Remove declaration.
3738         (at_quick_exit): Pass __dso_handle directly.
3739         * stdlib/atexit.c: Include <dso_handle.h>.
3740         (__dso_handle): Remove declaration.
3741         (atexit): Pass __dso_handle directly.
3742         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
3743         (__dso_handle): Removed.
3745 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
3747         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
3748         using VDSO.
3750 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
3752         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
3753         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
3754         values to correct default value for given type.
3756 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
3758         [BZ #22101]
3759         * elf/Makefile (tests): Add tst-debug1.
3760         ($(objpfx)tst-debug1): New.
3761         ($(objpfx)tst-debug1.out): Likewise.
3762         ($(objpfx)tst-debug1mod1.so): Likewise.
3763         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
3764         with p_filesz == 0.
3765         * elf/tst-debug1.c: New file.
3767 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
3769         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
3770         Define using __ifunc.
3772 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3774         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
3775         exp2f() values.
3777 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
3779         [BZ #22156]
3780         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
3782 2017-09-26  Florian Weimer  <fweimer@redhat.com>
3784         * resolv/Makefile (tests-internal): Fix typo in comment.
3786 2017-09-26  Florian Weimer  <fweimer@redhat.com>
3788         * resolv/nss_dns/dns-host.c: Fix typo in comment.
3790 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3792         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
3793         Use an union instead of a max_align_t array for __space,
3794         so that __space is the same size on all platforms.
3795         * malloc/scratch_buffer_grow_preserve.c
3796         (__libc_scratch_buffer_grow_preserve): Likewise.
3798         [BZ #22183]
3799         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
3800         version to 2.
3801         * posix/Makefile (routines): Add glob-lstat-compat and
3802         glob64-lstat-compat.
3803         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
3804         * posix/glob-lstat-compat.c: New file.
3805         * posix/glob64-lstat-compat.c: Likewise.
3806         * posix/tst-glob_lstat_compat.c: Likewise.
3807         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
3808         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
3809         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
3810         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
3811         Likewise.
3812         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
3813         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
3814         * posix/glob.c (glob_lstat): New function.
3815         (glob): Rename to __glob and add versioned symbol to 2.27.
3816         (glob_in_dir): Use glob_lstat.
3817         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
3818         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3819         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
3820         2.27.
3821         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
3822         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
3823         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
3824         gl_lstat on glob call.
3825         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
3826         and glob64 symbols.
3827         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3828         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3829         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3830         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3831         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3832         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3833         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3834         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3835         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
3836         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3837         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3838         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3840         Likewise.
3841         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
3842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
3843         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3844         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3845         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3846         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3847         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3848         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
3849         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
3850         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
3851         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3852         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3854 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
3856         * configure.ac (AS): Require binutils 2.25 or later.
3857         * configure: Regenerated.
3859 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
3861         [BZ #22207]
3862         * stdlib/test-atexit-race-common.c (do_test): Minimize required
3863         VM size.
3865 2017-09-25  DJ Delorie  <dj@redhat.com>
3867         [BZ #22161]
3868         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
3869         resetting timeout.
3871 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
3873         * sysdeps/ieee754/dbl-64/sincos32.h
3874         [SINCCOS32_H]: Remove define.
3875         [SINCOS32_H]: Define.
3877 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3879         * math/Versions (expf): New libm symbol at GLIBC_2.27.
3880         (exp2f): Likewise.
3881         * math/w_exp2f.c: New file.
3882         * math/w_expf.c: New file.
3883         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
3884         * math/w_expf_compat.c (__expf_compat): Likewise.
3885         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
3886         * sysdeps/ia64/fpu/e_expf.S: Likewise.
3887         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3888         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3889         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3890         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3891         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3892         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3893         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3894         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3895         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3896         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3897         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3898         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3900         Likewise.
3901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3902         Likewise.
3903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3904         Likewise.
3905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3906         Likewise.
3907         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3908         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3909         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3910         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3911         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3913         Likewise.
3914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3915         Likewise.
3916         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3917         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3918         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3920 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3922         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
3923         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
3924         (roundtoint, converttoint): Likewise.
3925         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
3926         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
3927         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
3928         * sysdeps/ieee754/flt-32/math_config.h: New file.
3929         * sysdeps/ieee754/flt-32/math_errf.c: New file.
3930         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
3931         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
3932         * sysdeps/i386/fpu/math_errf.c: New file.
3933         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
3934         * sysdeps/ia64/fpu/math_errf.c: New file.
3935         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
3936         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
3938 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3940         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
3941         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
3942         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
3943         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
3944         to make sure that these symbols are defined.
3945         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
3946         of <limits.h>
3947         (__need_NULL): Do not define.
3948         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
3949         alignment.
3950         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
3951         CMGROUP_MAX, cmsgcred): Do not define.
3952         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
3953         NULL.
3954         * bits/socket.h: Likewise.
3955         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
3956         __gettimeofday instead of gettimeofday.
3957         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
3958         instead of settimeofday.
3960 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
3962         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
3963         (asinhf): Define using libm_alias_float.
3964         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
3965         (atanf): Define using libm_alias_float.
3966         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
3967         (cbrtf): Define using libm_alias_float.
3968         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
3969         (ceilf): Define using libm_alias_float.
3970         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
3971         <libm-alias-float.h>.
3972         (copysignf): Define using libm_alias_float.
3973         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
3974         (cosf): Define using libm_alias_float.
3975         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
3976         (erff): Define using libm_alias_float.
3977         (erfcf): Likewise.
3978         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
3979         (expm1f): Define using libm_alias_float.
3980         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
3981         (fabsf): Define using libm_alias_float.
3982         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
3983         (floorf): Define using libm_alias_float.
3984         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
3985         (frexpf): Define using libm_alias_float.
3986         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
3987         libm_alias_float.
3988         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
3989         <libm-alias-float.h>.
3990         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
3991         libm_alias_float.
3992         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
3993         <libm-alias-float.h>.
3994         (getpayloadf): Define using libm_alias_float.
3995         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
3996         <libm-alias-float.h>.
3997         (llrintf): Define using libm_alias_float.
3998         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
3999         <libm-alias-float.h>.
4000         (llroundf): Define using libm_alias_float.
4001         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
4002         (logbf): Define using libm_alias_float.
4003         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
4004         (lrintf): Define using libm_alias_float.
4005         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
4006         (lroundf): Define using libm_alias_float.
4007         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
4008         (modff): Define using libm_alias_float.
4009         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
4010         <libm-alias-float.h>.
4011         (nearbyintf): Define using libm_alias_float.
4012         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
4013         <libm-alias-float.h>.
4014         (nextafterf): Define using libm_alias_float.
4015         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
4016         <libm-alias-float.h>.
4017         (nextupf): Define using libm_alias_float.
4018         * sysdeps/ieee754/flt-32/s_remquof.c: Include
4019         <libm-alias-float.h>.
4020         (remquof): Define using libm_alias_float.
4021         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
4022         (rintf): Define using libm_alias_float.
4023         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
4024         <libm-alias-float.h>.
4025         (roundevenf): Define using libm_alias_float.
4026         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
4027         (roundf): Define using libm_alias_float.
4028         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
4029         using libm_alias_float.
4030         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
4031         <libm-alias-float.h>.
4032         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
4033         Define using libm_alias_float.
4034         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
4035         <libm-alias-float.h>.
4036         (sincosf): Define using libm_alias_float.
4037         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
4038         (sinf): Define using libm_alias_float.
4039         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
4040         (tanf): Define using libm_alias_float.
4041         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
4042         (tanhf): Define using libm_alias_float.
4043         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
4044         <libm-alias-float.h>.
4045         (totalorderf): Define using libm_alias_float.
4046         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
4047         <libm-alias-float.h>.
4048         (totalordermagf): Define using libm_alias_float.
4049         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
4050         (truncf): Define using libm_alias_float.
4051         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
4052         libm_alias_float.
4053         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
4054         libm_alias_float.
4056 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4058         [BZ #22146]
4059         math/math.h: Let fpclassify use the builtin in C++ mode, even
4060         when optimazing for size.
4062 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
4064         * csu/Makefile (generated): Do not add version-info.h.
4065         (before-compile): Likewise.
4066         (all-Banner-files): Remove variable.
4067         ($(objpfx)version-info.h): Remove rule.
4068         * csu/version.c (banner): Do not include "version-info.h".
4069         * libidn/Banner: Remove.
4070         * manual/contrib.texi (Simon Josefsson): New entry.
4072 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4074         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4075         Remove conditionals on LDBL_MANT_DIG.
4076         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
4077         (__ieee754_lgammal_r): Likewise.
4079 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4081         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
4082         _Float128 and L().
4083         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
4084         _Float128 and L(). Replace _Float128 with long double and L(x)
4085         with xL, throughout the file.
4086         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4087         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4088         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4089         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4091 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4093         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
4094         sysdeps/ieee754/ldbl-128ibm.
4095         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
4096         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
4097         of including it.  Keep _Float128 and L() intact.  These will be
4098         reviewed by a separate patch.
4099         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4100         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
4101         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
4102         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
4104 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4106         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
4107         (__finitef128): Define to __redirect___finitef128.
4108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
4109         (__isinff128): Define to __redirect___isinff128.
4110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
4111         (__isnanf128): Define to __redirect___isnanf128.
4113 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4115         * sysdeps/powerpc/powerpc64le/Makefile
4116         (CFLAGS-tst-strtod-nan-locale.c): New variable.
4117         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
4119 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
4120             Carlos O'Donell  <carlos@redhat.com>
4122         [BZ #22180]
4123         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
4124         * stdlib/test-dlclose-exit-race.c: New file.
4125         * stdlib/test-dlclose-exit-race-helper.c: New file.
4126         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
4128 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
4130         * crypt/Banner: Remove file.
4131         * nptl/Banner: Likewise.
4132         * resolv/Banner: Likewise.
4133         * soft-fp/Banner: Likewise.
4134         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
4135         ($(objpfx)version.d): Remove dependency on banner.h.
4136         ($(objpfx)version.os): Likewise.
4137         * nptl/version.c (banner): Do not include banner.h.
4138         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
4139         Jelinek and BIND code.
4141 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4142             Carlos O'Donell  <carlos@redhat.com>
4144         * support/xdlfcn.h: New file.
4145         * support/xdlfcn.c: New file.
4146         * support/Makefile (libsupport-routines): Add xdlfcn.
4147         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
4149 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
4151         [BZ #20142]
4152         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4153         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
4154         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
4155         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
4156         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
4157         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
4158         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
4159         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
4161 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
4162             Ricky Zhou  <rickyz@google.com>
4163             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
4165         [BZ #14333]
4166         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
4167         Remove atomics.
4168         (__new_exitfn): Fail registration when we finished at_exit processing.
4169         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
4170         * stdlib/on_exit.c (__on_exit): Likewise.
4171         * stdlib/exit.c (__exit_funcs_done): New variable.
4172         (__run_exit_handlers): Use __exit_funcs_lock.
4173         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
4174         declarations.
4175         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
4176         (test-cxa_atexit-race, test-on_exit-race): New tests.
4177         * stdlib/test-atexit-race-common.c: New file.
4178         * stdlib/test-atexit-race.c: New file.
4179         * stdlib/test-at_quick_exit-race.c: New file.
4180         * stdlib/test-cxa_atexit-race.c: New file.
4181         * stdlib/test-on_exit-race.c: New file.
4183 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4185         * benchtests/Makefile: Add exp2f and log2f benchmarks.
4186         * benchtests/exp2f-inputs: Copy of expf-inputs.
4187         * benchtests/log2f-inputs: Copy of logf-inputs.
4189 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4191         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
4192         Explicitly take address of first element of array arguments in
4193         call to INLINE_SYSCALL.
4195 2017-09-19  Andreas Schwab  <schwab@suse.de>
4197         [BZ #22134]
4198         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
4199         execveat first.
4200         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
4201         unimplemented.
4202         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
4203         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
4204         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4205         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
4206         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4207         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4208         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4209         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
4210         * posix/Makefile (tests): Add tst-fexecve.
4211         * posix/tst-fexecve.c: New file.
4213 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4215         * benchtests/Makefile: Add logf benchmark.
4216         * benchtests/logf-inputs: Add reduced trace from wrf_r.
4218 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4220         * benchtests/Makefile: Add expf benchmark.
4221         * benchtests/expf-inputs: Add reduced trace from wrf_r.
4223 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
4225         * csu/Makefile: Add -funwind-tables to libc-start.c.
4226         * debug/Makefile: Add -funwind-tables to backtrace.c.
4227         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
4228         * sysdeps/arm/Makefile: Likewise.
4229         * sysdeps/i386/Makefile: Likewise.
4230         * sysdeps/m68k/Makefile: Likewise.
4231         * sysdeps/mips/Makefile: Likewise.
4232         * sysdeps/nios2/Makefile: Likewise.
4233         * sysdeps/sh/Makefile: Likewise.
4234         * sysdeps/sparc/Makefile: Likewise.
4236 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
4238         * benchtests/Makefile (bench-math): Add trunc and truncf.
4239         (CFLAGS-bench-trunc.c): New variable.
4240         (CFLAGS-bench-truncf.c): Likewise.
4241         * benchtests/trunc-inputs: New file.
4242         * benchtests/truncf-inputs: Likewise.
4244 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4246         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
4248 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
4250         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
4251         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
4252         redefine.
4253         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
4254         (exp10l): Define as weak alias.
4255         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
4256         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
4257         and redefine.
4258         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
4259         (remainderl): Define as weak alias.
4261         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
4262         (fmal): Define using libm_alias_ldouble.
4263         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
4264         (acoshl): Define using libm_alias_ldouble.
4265         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
4266         (acosl): Define using libm_alias_ldouble.
4267         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
4268         (asinl): Define using libm_alias_ldouble.
4269         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
4270         (atan2l): Define using libm_alias_ldouble.
4271         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
4272         (atanhl): Define using libm_alias_ldouble.
4273         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
4274         (coshl): Define using libm_alias_ldouble.
4275         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
4276         (exp10l): Define using libm_alias_ldouble.
4277         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
4278         (exp2l): Define using libm_alias_ldouble.
4279         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
4280         (expl): Define using libm_alias_ldouble.
4281         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
4282         (fmodl): Define using libm_alias_ldouble.
4283         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
4284         (hypotl): Define using libm_alias_ldouble.
4285         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
4286         (j0l): Define using libm_alias_ldouble.
4287         (y0l): Likewise.
4288         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
4289         (j1l): Define using libm_alias_ldouble.
4290         (y1l): Likewise.
4291         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
4292         (jnl): Define using libm_alias_ldouble.
4293         (ynl): Likewise.
4294         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
4295         (log10l): Define using libm_alias_ldouble.
4296         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
4297         (log2l): Define using libm_alias_ldouble.
4298         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
4299         (logl): Define using libm_alias_ldouble.
4300         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
4301         (powl): Define using libm_alias_ldouble.
4302         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
4303         (remainderl): Define using libm_alias_ldouble.
4304         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
4305         (sinhl): Define using libm_alias_ldouble.
4306         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
4307         (sqrtl): Define using libm_alias_ldouble.
4308         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
4309         (tgammal): Define using libm_alias_ldouble.
4310         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
4311         (exp10l): Do not use long_double_symbol here.
4312         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
4313         [LIBM_SVID_COMPAT] (remainderl): Likewise.
4314         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
4315         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4316         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4317         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4318         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4319         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4320         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4321         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4322         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4323         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4324         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4325         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4326         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4327         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4328         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4329         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4330         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4331         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4332         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4333         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4335 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
4337         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
4338         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
4340 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4342         * io/read.c (read): Add libc_hidden_weak.
4343         * sysdeps/mach/hurd/read.c (read): Likewise.
4344         * io/write.c (write): Likewise.
4345         * sysdeps/mach/hurd/write.c (write): Likewise.
4346         * io/pread64.c (__pread64): Likewise.
4347         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
4348         * posix/pread64.c (__pread64): Add libc_hidden_def.
4350 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4352         * benchtests/scripts/compare_strings.py: New option -g.
4353         (draw_graph): Print a message that a graph is being generated.
4354         (process_results): Generate graph only if -g is passed.
4355         (main): Process option -g.
4357         * benchtests/scripts/compare_strings.py (process_results):
4358         Better spacing for output.
4360         * benchtests/scripts/compare_strings.py: Use argparse.
4361         * benchtests/README: Document existence of compare_strings.py.
4363 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
4365         * math/s_fma.c: Include <libm-alias-double.h>.
4366         (fma): Define using libm_alias_double.
4367         * math/s_nextafter.c: Include <libm-alias-double.h>.
4368         (nextafter): Define using libm_alias_double.
4369         * math/w_acos_compat.c: Include <libm-alias-double.h>.
4370         (acos): Define using libm_alias_double.
4371         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
4372         (aocsh): Define using libm_alias_double.
4373         * math/w_asin_compat.c: Include <libm-alias-double.h>.
4374         (asin): Define using libm_alias_double.
4375         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
4376         (atan2): Define using libm_alias_double.
4377         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
4378         (atanh): Define using libm_alias_double.
4379         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
4380         (cosh): Define using libm_alias_double.
4381         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
4382         (exp10): Define using libm_alias_double.
4383         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
4384         (exp2): Define using libm_alias_double.
4385         * math/w_exp_compat.c: Include <libm-alias-double.h>.
4386         (exp): Define using libm_alias_double.
4387         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
4388         (fmod): Define using libm_alias_double.
4389         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
4390         (hypot): Define using libm_alias_double.
4391         * math/w_j0_compat.c: Include <libm-alias-double.h>.
4392         (j0): Define using libm_alias_double.
4393         (y0): Likewise.
4394         * math/w_j1_compat.c: Include <libm-alias-double.h>.
4395         (j1): Define using libm_alias_double.
4396         (y1): Likewise.
4397         * math/w_jn_compat.c: Include <libm-alias-double.h>.
4398         (jn): Define using libm_alias_double.
4399         (yn): Likewise.
4400         * math/w_log10_compat.c: Include <libm-alias-double.h>.
4401         (log10): Define using libm_alias_double.
4402         * math/w_log2_compat.c: Include <libm-alias-double.h>.
4403         (log2): Define using libm_alias_double.
4404         * math/w_log_compat.c: Include <libm-alias-double.h>.
4405         (log): Define using libm_alias_double.
4406         * math/w_pow_compat.c: Include <libm-alias-double.h>.
4407         (pow): Define using libm_alias_double.
4408         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
4409         (remainder): Define using libm_alias_double.
4410         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
4411         (sinh): Define using libm_alias_double.
4412         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
4413         (sqrt): Define using libm_alias_double.
4414         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
4415         (tgamma): Define using libm_alias_double.
4416         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
4417         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
4418         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
4419         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
4420         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
4421         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
4422         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
4423         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
4424         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
4425         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
4426         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
4427         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
4428         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
4429         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
4430         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
4431         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
4432         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
4433         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
4434         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
4435         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
4436         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
4437         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
4438         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
4439         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
4440         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
4442         * math/e_acoshl.c: Remove.
4443         * math/e_acosl.c: Likewise.
4444         * math/e_asinl.c: Likewise.
4445         * math/e_atan2l.c: Likewise.
4446         * math/e_atanhl.c: Likewise.
4447         * math/e_coshl.c: Likewise.
4448         * math/e_expl.c: Likewise.
4449         * math/e_fmodl.c: Likewise.
4450         * math/e_gammal_r.c: Likewise.
4451         * math/e_hypotl.c: Likewise.
4452         * math/e_j0l.c: Likewise.
4453         * math/e_j1l.c: Likewise.
4454         * math/e_jnl.c: Likewise.
4455         * math/e_lgammal_r.c: Likewise.
4456         * math/e_log10l.c: Likewise.
4457         * math/e_log2l.c: Likewise.
4458         * math/e_logl.c: Likewise.
4459         * math/e_powl.c: Likewise.
4460         * math/e_rem_pio2l.c: Likewise.
4461         * math/e_sinhl.c: Likewise.
4462         * math/e_sqrtf128.c: Likewise.
4463         * math/e_sqrtl.c: Likewise.
4464         * math/k_cosl.c: Likewise.
4465         * math/k_sinl.c: Likewise.
4466         * math/k_tanl.c: Likewise.
4467         * math/s_asinhl.c: Likewise.
4468         * math/s_atanl.c: Likewise.
4469         * math/s_cbrtl.c: Likewise.
4470         * math/s_erfl.c: Likewise.
4471         * math/s_expm1l.c: Likewise.
4472         * math/s_log1pl.c: Likewise.
4473         * math/s_tanhl.c: Likewise.
4475 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4477         [BZ #21745]
4478         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
4479         [$(subdir) = math] (sysdep_calls): New variable.  Has the
4480         previous contents of sysdep_routines, but re-sorted..
4481         [$(subdir) = math] (sysdep_routines): Re-use the contents from
4482         sysdep_calls.
4483         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
4484         defined in sysdep_calls and replace by the respective m_* names.
4485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
4486         (compat_symbol): Undefine to avoid duplicated compat symbols in
4487         libc.
4489 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
4491         * math/s_fmaf.c: Include <libm-alias-float.h>.
4492         (fmaf): Define using libm_alias_float.
4493         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
4494         (acosf): Define using libm_alias_float.
4495         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
4496         (acoshf): Define using libm_alias_float.
4497         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
4498         (asinf): Define using libm_alias_float.
4499         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
4500         (atan2f): Define using libm_alias_float.
4501         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
4502         (atanhf): Define using libm_alias_float.
4503         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
4504         (coshf): Define using libm_alias_float.
4505         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
4506         (exp10f): Define using libm_alias_float.
4507         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
4508         (fmodf): Define using libm_alias_float.
4509         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
4510         (hypotf): Define using libm_alias_float.
4511         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
4512         (j0f): Define using libm_alias_float.
4513         (y0f): Likewise.
4514         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
4515         (j1f): Define using libm_alias_float.
4516         (y1f): Likewise.
4517         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
4518         (jnf): Define using libm_alias_float.
4519         (ynf): Likewise.
4520         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
4521         (log10f): Define using libm_alias_float.
4522         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
4523         (log2f): Define using libm_alias_float.
4524         * math/w_logf_compat.c: Include <libm-alias-float.h>.
4525         (logf): Define using libm_alias_float.
4526         * math/w_powf_compat.c: Include <libm-alias-float.h>.
4527         (powf): Define using libm_alias_float.
4528         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
4529         (remainderf): Define using libm_alias_float.
4530         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
4531         (sinhf): Define using libm_alias_float.
4532         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
4533         (sqrtf): Define using libm_alias_float.
4534         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
4535         (tgammaf): Define using libm_alias_float.
4537 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
4539         * include/math.h (roundeven): Change hidden_proto call to
4540         __roundeven.
4541         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
4542         alias.
4543         [NO_LONG_DOUBLE] (__j0l): New strong alias.
4544         (y0): Rename to __y0 and define as weak alias.
4545         [NO_LONG_DOUBLE] (__y0l): New strong alias.
4546         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
4547         alias.
4548         (y0f): Rename to __y0f and define as weak alias.
4549         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
4550         alias.
4551         [NO_LONG_DOUBLE] (__j1l): New strong alias.
4552         (y1): Rename to __y1 and define as weak alias.
4553         [NO_LONG_DOUBLE] (__y1l): New strong alias.
4554         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
4555         alias.
4556         (y1f): Rename to __y1f and define as weak alias.
4557         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
4558         alias.
4559         [NO_LONG_DOUBLE] (__jnl): New strong alias.
4560         (yn): Rename to __yn and define as weak alias.
4561         [NO_LONG_DOUBLE] (__ynl): New strong alias.
4562         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
4563         alias.
4564         (ynf): Rename to __ynf and define as weak alias.
4565         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
4566         (fromfp): Define as weak alias.
4567         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
4568         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
4569         (fromfpx): Define as weak alias.
4570         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
4571         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
4572         __getpayload and define as weak alias.
4573         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4574         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
4575         __roundeven and define as weak alias.
4576         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4577         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
4578         __setpayload.
4579         (setpayload): Define as weak alias.
4580         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
4581         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
4582         __setpayloadsig.
4583         (setpayloadsig): Define as weak alias.
4584         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
4585         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
4586         __totalorder and define as weak alias.
4587         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4588         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
4589         to __totalordermag and define as weak alias.
4590         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4591         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
4592         (ufromfp): Define as weak alias.
4593         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
4594         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
4595         __ufromfpx.
4596         (ufromfpx): Define as weak alias.
4597         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
4598         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
4599         Rename to __getpayload and define as weak alias.
4600         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4601         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
4602         Rename to __roundeven and define as weak alias.
4603         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4604         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
4605         Rename to __totalorder and define as weak alias.
4606         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4607         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
4608         (totalordermag): Rename to __totalordermag and define as weak
4609         alias.
4610         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4611         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
4612         macro.
4613         (__roundevenl): Likewise.
4614         (__totalorderl): Likewise.
4615         (__totalordermagl): Likewise
4616         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
4617         __fromfpf128.
4618         (fromfpf128): Define as weak alias.
4619         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
4620         __fromfpxf128.
4621         (fromfpxf128): Define as weak alias.
4622         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
4623         __setpayloadf128.
4624         (setpayloadf128): Define as weak alias.
4625         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
4626         __setpayloadsigf128.
4627         (setpayloadsigf128): Define as weak alias.
4628         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
4629         __ufromfpf128.
4630         (ufromfpf128): Define as weak alias.
4631         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
4632         __ufromfpxf128.
4633         (ufromfpxf128): Define as weak alias.
4634         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
4635         (fromfpf): Define as weak alias.
4636         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
4637         __fromfpxf.
4638         (fromfpxf): Define as weak alias.
4639         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
4640         __getpayloadf and define as weak alias.
4641         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
4642         __roundevenf and define as weak alias.
4643         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
4644         __setpayloadf.
4645         (setpayloadf): Define as weak alias.
4646         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
4647         __setpayloadsigf.
4648         (setpayloadsigf): Define as weak alias.
4649         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
4650         __totalorderf and define as weak alias.
4651         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
4652         Rename to __totalordermagf and define as weak alias.
4653         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
4654         __ufromfpf.
4655         (ufromfpf): Define as weak alias.
4656         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
4657         __ufromfpxf.
4658         (ufromfpxf): Define as weak alias.
4659         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
4660         __fromfpl.
4661         (fromfpl): Define as weak alias.
4662         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
4663         __fromfpxl.
4664         (fromfpxl): Define as weak alias.
4665         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
4666         to __getpayloadl and define as weak alias.
4667         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
4668         __roundevenl and define as weak alias.
4669         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
4670         __setpayloadl.
4671         (setpayloadl): Define as weak alias.
4672         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
4673         __setpayloadsigl.
4674         (setpayloadsigl): Define as weak alias.
4675         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
4676         to __totalorderl and define as weak alias.
4677         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
4678         Rename to __totalordermagl and define as weak alias.
4679         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
4680         __ufromfpl.
4681         (ufromfpl): Define as weak alias.
4682         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
4683         __ufromfpxl.
4684         (ufromfpxl): Define as weak alias.
4685         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
4686         __fromfpl.
4687         (fromfpl): Define as weak alias.
4688         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
4689         __fromfpxl.
4690         (fromfpxl): Define as weak alias.
4691         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
4692         Rename to __getpayloadl and define as weak alias.
4693         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
4694         to __roundevenl and define as weak alias.  Call __roundeven
4695         instead of roundeven.
4696         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
4697         __setpayloadl.
4698         (setpayloadl): Define as weak alias.
4699         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
4700         __setpayloadsigl.
4701         (setpayloadsigl): Define as weak alias.
4702         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
4703         Rename to __totalorderl and define as weak alias.
4704         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
4705         Rename to __totalordermagl and define as weak alias.
4706         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
4707         __ufromfpl.
4708         (ufromfpl): Define as weak alias.
4709         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
4710         __ufromfpxl.
4711         (ufromfpxl): Define as weak alias.
4712         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
4713         __fromfpl.
4714         (fromfpl): Define as weak alias.
4715         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
4716         __fromfpxl.
4717         (fromfpxl): Define as weak alias.
4718         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
4719         __getpayloadl and define as weak alias.
4720         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
4721         __roundevenl and define as weak alias.
4722         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
4723         __setpayloadl.
4724         (setpayloadl): Define as weak alias.
4725         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
4726         __setpayloadsigl.
4727         (setpayloadsigl): Define as weak alias.
4728         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
4729         __totalorderl and define as weak alias.
4730         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
4731         Rename to __totalordermagl and define as weak alias.
4732         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
4733         __ufromfpl.
4734         (ufromfpl): Define as weak alias.
4735         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
4736         __ufromfpxl.
4737         (ufromfpxl): Define as weak alias.
4739 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4741         * benchtests/bench-string.h (realloc_bufs): New function.
4742         (test_init): Call it.
4743         * benchtests/bench-memset-large.c (do_test): Likewise.
4744         * benchtests/bench-memset.c (do_test): Likewise.
4746         * benchtests/bench-memset-large.c: Print output in JSON
4747         format.
4748         * benchtests/bench-memset.c: Likewise.
4750 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
4752         [BZ #21084]
4753         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
4754         * iconvdata/Makefile: Add IBM858.
4755         * iconvdata/gconv-modules: Likewise.
4756         * iconvdata/tst-tables.sh: Likewise.
4757         * iconvdata/ibm858.c: New file.
4758         * localedata/charmaps/IBM858: Likewise.
4760 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
4762         [BZ #22023]
4763         * locales/niu_NZ (LC_TIME): copy "niu_NU".
4764         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
4766 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
4768         [BZ #22112]
4769         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
4770         and add tel_int_fmt.
4772 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
4774         * sysdeps/generic/libm-alias-float128.h: New file.
4775         * sysdeps/generic/math-type-macros-float128.h: Include
4776         <libm-alias-float128.h>.
4777         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
4779 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
4781         * sysdeps/generic/libm-alias-ldouble.h: New file.
4782         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
4783         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
4784         * sysdeps/generic/math-type-macros-ldouble.h: Include
4785         <libm-alias-ldouble.h>.
4786         [!declare_mgen_alias] (declare_mgen_alias): Define to use
4787         libm_alias_ldouble.
4789 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4791         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
4792         * math/w_exp_compat.c: ... here.
4793         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
4794         * math/w_expf_compat.c: ... here.
4795         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
4796         * math/w_expl_compat.c: ... here.
4797         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
4798         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
4799         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
4800         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4802 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
4804         * math/w_scalbln_template.c (strong_alias): Do not undefine and
4805         redefine.
4806         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
4807         macro.
4808         (ldexpl): Only define as compat symbol for libc, not libm.
4809         (scalbnl): Define as compat symbol for libc here.
4810         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
4811         define for [IS_IN (libc)].
4812         (__ldexpl_2): Remove alias.
4813         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
4814         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
4815         name in long_double_symbol call.
4816         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
4817         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
4818         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
4819         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
4820         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
4821         Remove macro.
4822         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
4823         Define as compat symbol.
4825 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4827         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
4828         * sysdeps/unix/sysv/linux/alpha/Makefile
4829         [$(subdir) = csu] (sysdep_routines): Remove rule.
4831 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
4833         * sysdeps/generic/libm-alias-double.h: New file.
4834         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
4835         * sysdeps/generic/math-type-macros-double.h: Include
4836         <libm-alias-double.h>.
4837         [declare_mgen_alias] (declare_mgen_alias): Define to use
4838         libm_alias_double.
4839         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
4840         (M_LIBM_NEED_COMPAT): Remove macro.
4841         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
4842         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
4843         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
4844         code.
4845         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4846         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4847         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4848         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4849         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4850         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4851         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4852         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4853         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4854         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4855         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4856         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4857         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4858         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4859         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4860         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4861         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4862         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4863         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4864         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4865         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4866         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4867         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4868         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4869         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4870         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4871         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4872         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
4873         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
4874         macro.
4875         (declare_mgen_alias): New macro.
4876         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
4877         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
4878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
4879         (M_LIBM_NEED_COMPAT): Remove macro.
4880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
4881         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
4882         <first-versions.h>.
4883         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
4884         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
4886 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
4888         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
4889         (declare_mgen_alias_2): Remove.
4890         * sysdeps/generic/math-type-macros-double.h
4891         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
4892         Likewise.
4893         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
4894         alias.
4895         (ldexp): Define with declare_mgen_alias.
4896         (scalbn): Likewise.
4898 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
4900         * grp/initgroups.c: Include config.h.
4901         (DEFAULT_CONFIG): New macro.
4902         (internal_getgrouplist): Use DEFAULT_CONFIG.
4903         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4904         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
4905         (DEFAULT_DEFCONFIG): New macro.
4906         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
4907         * nss/grp-lookup.c: Include config.h
4908         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
4909         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
4910         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
4911         * manual/nss.texi: Update default values section.
4913 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
4915         [BZ #21967]
4916         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
4917         New.
4918         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
4919         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4920         Handle MathVec_Prefer_No_AVX512.
4921         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
4922         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
4923         is set.
4925 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4927         * posix/sched_primax.c (__sched_get_priority_max): Add
4928         libc_hidden_def.
4929         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
4930         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
4931         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
4932         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
4933         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
4934         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
4935         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
4936         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
4937         Add aliases.
4939 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
4941         * sysdeps/generic/libm-alias-float.h: New file.
4942         * sysdeps/generic/math-type-macros-float.h: Include
4943         <libm-alias-float.h>.
4944         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
4946 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
4948         [BZ #22093]
4949         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
4950         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
4951         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
4952         (HWCAP_IMPORTANT): Likewise.
4953         (HWCAP_X86_64): New enum.
4954         (HWCAP_X86_AVX512_1): Updated.
4955         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
4956         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
4957         (modules-names): Add x86_64/tst-x86_64mod-1.
4958         (LDFLAGS-tst-x86_64mod-1.so): New.
4959         ($(objpfx)tst-x86_64-1): Likewise.
4960         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
4961         (tst-x86_64-1-clean): Likewise.
4962         * sysdeps/x86_64/tst-x86_64-1.c: New file.
4963         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
4965 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4967         * po/sv.po: Update translations.
4968         * po/fr.po: Likewise.
4970 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4972         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
4973         seconds.
4974         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
4975         seconds.
4976         * elf/rtld-Rules: Fix $(error) use.
4978 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
4980         [BZ #14925]
4981         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
4982         * locale/iso-639.def: Change “Bengali” to “Bangla”.
4983         * localedata/locales/bn_BD: “Bengali” was still used in some
4984         comments. Change it to “Bangla”.
4986 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
4988         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
4990 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
4992         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
4993         thunderx2t99p1 to list of cpu names.
4994         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4995         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
4997 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
4999         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
5000         Use strcmp instead of tunable_is_name.
5002 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
5004         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5005         (F_GET_RW_HINT): New macro.
5006         [__USE_GNU] (F_SET_RW_HINT): Likewise.
5007         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
5008         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
5009         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
5010         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
5011         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
5012         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
5013         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
5014         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
5016         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
5017         (F_ADD_SEALS): New macro.
5018         [__USE_GNU] (F_GET_SEALS): Likewise.
5019         [__USE_GNU] (F_SEAL_SEAL): Likewise.
5020         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
5021         [__USE_GNU] (F_SEAL_GROW): Likewise.
5022         [__USE_GNU] (F_SEAL_WRITE): Likewise.
5024 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5026         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5027         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5028         * posix/glob_internal.h (__glob_pattern_type):
5029         * posix/glob.c (glob):
5030         * posix/glob_pattern_p.c (__glob_pattern_p):
5031         Use them.
5033         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
5034         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5035         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
5036         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
5037         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
5039         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
5040         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
5041         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5042         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
5043         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5044         * sysdeps/wordsize-64/glob.c: Likewise.
5045         * sysdeps/wordsize-64/glob64.c: Likewise.
5046         * sysdeps/wordsize-64/globfree.c: Likewise.
5047         * sysdeps/wordsize-64/globfree64.c: Likewise.
5048         * sysdeps/unix/sysv/linux/glob.c: New file.
5049         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
5050         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
5051         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
5052         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
5053         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
5054         adds !GLOB_NO_OLD_VERSION as an extra condition.
5055         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
5056         using relative path instead of absolute one.
5057         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5058         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5059         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5060         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5061         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
5062         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
5064         [BZ #1062]
5065         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
5066         (glob): Use the same scratch buffer for both getlogin_r and
5067         getpwnam_r.  Don’t require preallocation of the login name.  This
5068         simplifies storage allocation, and corrects the handling of
5069         long login names.
5071         [BZ #1062]
5072         * posix/glob.c (glob): Port recent patches to platforms
5073         lacking getpwnam_r.
5074         (glob): Fix longstanding misuse of errno after getpwnam_r, which
5075         returns an error number rather than setting errno.
5077         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
5078         instead of GCC extension.
5079         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
5080         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
5081         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
5083         [BZ #866]
5084         [BZ #1062]
5085         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
5086         * posix/bug-glob1.c: Remove file.
5087         * posix/tst-glob_symlinks.c: New file.
5088         * posix/glob.c (__lstat64): New macro.
5089         (is_dir): New function.
5090         (glob, glob_in_dir): Match symlinks even if they are dangling.
5091         (link_stat, link_exists_p): Remove.  All uses removed.
5093         [BZ #1062]
5094         [BZ #19971]
5095         * posix/glob.c (struct readdir_result): Remove skip_entry member.
5096         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5097         All uses removed.
5099         [BZ #1062]
5100         CVE-2017-15671
5101         * posix/Makefile (routines): Add globfree, globfree64, and
5102         glob_pattern_p.
5103         * posix/flexmember.h: New file.
5104         * posix/glob_internal.h: Likewise.
5105         * posix/glob_pattern_p.c: Likewise.
5106         * posix/globfree.c: Likewise.
5107         * posix/globfree64.c: Likewise.
5108         * sysdeps/gnu/globfree64.c: Likewise.
5109         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
5110         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
5111         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
5112         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
5113         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
5114         * sysdeps/wordsize-64/globfree.c: Likewise.
5115         * sysdeps/wordsize-64/globfree64.c: Likewise.
5116         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
5117         [NDEBUG): Remove comments.
5118         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
5119         (dirent_type): New type.  Use uint_fast8_t not
5120         uint8_t, as C99 does not require uint8_t.
5121         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
5122         (struct readdir_result): Use dirent_type.  Do not define skip_entry
5123         unless it is needed; this saves a byte on platforms lacking d_ino.
5124         (readdir_result_type, readdir_result_skip_entry):
5125         New functions, replacing ...
5126         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5127          these functions, which were removed.  This makes the callers
5128         easier to read.  All callers changed.
5129         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5130         (size_add_wrapv, glob_use_alloca): New static functions.
5131         (glob, glob_in_dir): Check for size_t overflow in several places,
5132         and fix some size_t checks that were not quite right.
5133         Remove old code using SHELL since Bash no longer
5134         uses this.
5135         (glob, prefix_array): Separate MS code better.
5136         (glob_in_dir): Remove old Amiga and VMS code.
5137         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5138         separate files.
5139         (glob_in_dir): Do not rely on undefined behavior in accessing
5140         struct members beyond their bounds.  Use a flexible array member
5141         instead
5142         (link_stat): Rename from link_exists2_p and return -1/0 instead of
5143         0/1.  Caller changed.
5144         (glob): Fix memory leaks.
5145         * posix/glob64 (globfree64): Move to separate file.
5146         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
5147         (globfree64): Remove hidden alias.
5148         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
5149         oldglob.
5150         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
5151         separate file.
5152         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
5153         define.
5154         Move compat code to separate file.
5155         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
5156         separate file.
5158 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
5160         * resolv/tst-resolv-qtypes.c (domain): Changed to
5161         "const char domain[] =".
5163 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
5165         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
5166         version to 3.1.6.
5168         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
5169         (TCP_MD5SIG_EXT): Likewise.
5170         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
5171         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
5172         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
5174         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
5176 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
5178         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
5180 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
5182         [BZ #22100]
5183         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
5185 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5187         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
5188         before assuming that the file is empty.  Avoid testing buffer content
5189         when nread == 0.
5191 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5193         [BZ #18858]
5194         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5195         Remove define.
5196         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
5197         Likewise.
5198         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
5199         Likewise.
5200         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
5201         Likewise.
5202         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
5203         Likewise.
5204         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
5205         Likewise.
5206         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
5207         Likewise.
5209 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5211         * malloc/dynarray_emplace_enlarge.c
5212         (__libc_dynarray_emplace_enlarge): Add missing else.
5214 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5216         [BZ #22096]
5217         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
5218         case of failure to obtain the global conf object.
5220 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5222         [BZ #22095]
5223         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
5224         dynarray allocation failure.
5226 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5228         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
5229         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
5230         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
5231         New functions.
5232         (response): Call them.  Add 'p', '6' flag processing.
5233         (test_reverse): New function.
5234         (test_get2_any): Call it.
5235         (test_no_inet6): Add 'p' test.
5236         (test_inet6): Likewise.
5238 2017-09-06  Florian Weimer  <fweimer@redhat.com>
5240         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
5241         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
5242         the QNAME.
5243         (test_gai): Adjust query names.  Add additional tests.
5244         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
5245         test_get2.  Adjust query names.  Add additional tests.
5246         (test_no_inet6): New function, extracted from threadfunc.
5247         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
5248         Add additional tests.
5250 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5252         [BZ #22070]
5253         * localedata/unicode-gen/utf8_gen.py: Set the width for
5254         characters with Prepended_Concatenation_Mark property to 1
5255         * localedata/charmaps/UTF-8: Updated using the improved script.
5257 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
5259         [BZ #21750]
5260         * localedata/unicode-gen/utf8_gen.py: Improve the script to
5261         use the range notation for all ranges of neighbouring characters
5262         with the same width.
5264 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
5266         * sysdeps/generic/math-type-macros-double.h: Include
5267         <math-svid-compat.h>.
5268         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5269         * sysdeps/generic/math-type-macros-float.h: Include
5270         <math-svid-compat.h>.
5271         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5272         * sysdeps/generic/math-type-macros-ldouble.h: Include
5273         <math-svid-compat.h>.
5274         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
5275         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
5276         condition.
5277         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
5278         * math/w_acosf_compat.c: Likewise.
5279         * math/w_acosh_compat.c: Likewise.
5280         * math/w_acoshf_compat.c: Likewise.
5281         * math/w_acoshl_compat.c: Likewise.
5282         * math/w_acosl_compat.c: Likewise.
5283         * math/w_asin_compat.c: Likewise.
5284         * math/w_asinf_compat.c: Likewise.
5285         * math/w_asinl_compat.c: Likewise.
5286         * math/w_atan2_compat.c: Likewise.
5287         * math/w_atan2f_compat.c: Likewise.
5288         * math/w_atan2l_compat.c: Likewise.
5289         * math/w_atanh_compat.c: Likewise.
5290         * math/w_atanhf_compat.c: Likewise.
5291         * math/w_atanhl_compat.c: Likewise.
5292         * math/w_cosh_compat.c: Likewise.
5293         * math/w_coshf_compat.c: Likewise.
5294         * math/w_coshl_compat.c: Likewise.
5295         * math/w_exp10_compat.c: Likewise.
5296         * math/w_exp10f_compat.c: Likewise.
5297         * math/w_exp10l_compat.c: Likewise.
5298         * math/w_exp2_compat.c: Likewise.
5299         * math/w_exp2f_compat.c: Likewise.
5300         * math/w_exp2l_compat.c: Likewise.
5301         * math/w_fmod_compat.c: Likewise.
5302         * math/w_fmodf_compat.c: Likewise.
5303         * math/w_fmodl_compat.c: Likewise.
5304         * math/w_hypot_compat.c: Likewise.
5305         * math/w_hypotf_compat.c: Likewise.
5306         * math/w_hypotl_compat.c: Likewise.
5307         * math/w_j0_compat.c: Likewise.
5308         * math/w_j0f_compat.c: Likewise.
5309         * math/w_j0l_compat.c: Likewise.
5310         * math/w_j1_compat.c: Likewise.
5311         * math/w_j1f_compat.c: Likewise.
5312         * math/w_j1l_compat.c: Likewise.
5313         * math/w_jn_compat.c: Likewise.
5314         * math/w_jnf_compat.c: Likewise.
5315         * math/w_jnl_compat.c: Likewise.
5316         * math/w_lgamma_r_compat.c: Likewise.
5317         * math/w_lgammaf_r_compat.c: Likewise.
5318         * math/w_lgammal_r_compat.c: Likewise.
5319         * math/w_log10_compat.c: Likewise.
5320         * math/w_log10f_compat.c: Likewise.
5321         * math/w_log10l_compat.c: Likewise.
5322         * math/w_log2_compat.c: Likewise.
5323         * math/w_log2f_compat.c: Likewise.
5324         * math/w_log2l_compat.c: Likewise.
5325         * math/w_log_compat.c: Likewise.
5326         * math/w_logf_compat.c: Likewise.
5327         * math/w_logl_compat.c: Likewise.
5328         * math/w_pow_compat.c: Likewise.
5329         * math/w_powf_compat.c: Likewise.
5330         * math/w_powl_compat.c: Likewise.
5331         * math/w_remainder_compat.c: Likewise.
5332         * math/w_remainderf_compat.c: Likewise.
5333         * math/w_remainderl_compat.c: Likewise.
5334         * math/w_sinh_compat.c: Likewise.
5335         * math/w_sinhf_compat.c: Likewise.
5336         * math/w_sinhl_compat.c: Likewise.
5337         * math/w_sqrt_compat.c: Likewise.
5338         * math/w_sqrtf_compat.c: Likewise.
5339         * math/w_sqrtl_compat.c: Likewise.
5340         * math/w_tgamma_compat.c: Likewise.
5341         * math/w_tgammaf_compat.c: Likewise.
5342         * math/w_tgammal_compat.c: Likewise.
5343         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
5344         [LIBM_SVID_COMPAT].
5345         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
5346         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
5347         [LIBM_SVID_COMPAT].
5348         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
5349         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
5350         [LIBM_SVID_COMPAT].
5351         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
5352         * sysdeps/i386/fpu/w_sqrt.c: New file.
5353         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5354         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5355         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5356         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5357         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5358         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5359         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5360         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5361         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5362         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5363         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5364         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5365         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5366         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5367         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5368         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5369         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5370         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5371         * sysdeps/ia64/fpu/w_exp.c: Likewise.
5372         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5373         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5374         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5375         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5376         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5377         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5378         * sysdeps/ia64/fpu/w_expf.c: Likewise.
5379         * sysdeps/ia64/fpu/w_expl.c: Likewise.
5380         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5381         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5382         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5383         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5384         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5385         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5386         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
5387         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
5388         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
5389         * sysdeps/ia64/fpu/w_log.c: Likewise.
5390         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5391         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5392         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5393         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5394         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5395         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5396         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5397         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5398         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5399         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5400         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5401         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5402         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5403         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5404         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5405         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5406         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5407         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5408         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5409         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5410         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
5411         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
5412         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
5413         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
5414         [LIBM_SVID_COMPAT].
5415         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
5416         * sysdeps/ieee754/k_standard.c: Likewise.
5417         * sysdeps/ieee754/k_standardf.c: Likewise.
5418         * sysdeps/ieee754/k_standardl.c: Likewise.
5419         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
5420         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
5421         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
5422         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
5423         long_double_symbol call on [LIBM_SVID_COMPAT].
5424         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5425         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5426         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5427         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5428         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5429         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5430         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5431         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5432         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5433         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5434         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5435         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
5436         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5437         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5438         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5439         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5440         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5441         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5442         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5443         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5444         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
5445         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
5447 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
5449         * include/shlib-compat.h (TEST_COMPAT): New Macro.
5450         * malloc/tst-mallocstate.c: Convert from test-skeleton
5451         to test-driver.  Ifdef code using TEST_COMPAT macro.
5452         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
5453         * math/test-matherr.c: Likewise.
5455 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
5457         [BZ #22086]
5458         * debug/pcprofiledump.c (main): Use byte-swapped mask when
5459         comparing word with byte-swapped constant.
5461 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
5463         [BZ #20498]
5464         * locale/iso-639.def: add Miskito.
5465         * localedata/SUPPORTED: Add miq_NI/UTF-8.
5466         * localedata/locales/miq_NI: New file.
5468 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
5470         [BZ #18822]
5471         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
5472         (__mkdir): Likewise.
5473         * io/chmod.c (__chmod): Add libc_hidden_def.
5474         * io/mkdir.c (__mkdir): Likewise.
5475         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
5476         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
5477         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
5478         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
5480 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
5482         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5483         version to 4.13.
5485         [BZ #22082]
5486         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
5487         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5489 2017-09-04  Florian Weimer  <fweimer@redhat.com>
5491         * math/math.h: Issue warning if log is defined.
5493 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
5495         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5496         kernel version to 4.13.
5498 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5500         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
5501         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
5502         parameter.
5503         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
5504         just <bits/types.h>.
5505         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
5506         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
5507         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
5508         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
5509         * misc/preadv2.c: Include <errno.h>.
5510         * misc/preadv64v2.c: Include <errno.h>.
5511         * misc/pwritev2.c: Include <errno.h>.
5512         * misc/pwritev64v2.c: Include <errno.h>.
5513         * sysdeps/posix/preadv2.c: Include <errno.h>.
5514         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
5515         Fix <unistd.h> inclusion.
5516         * sysdeps/posix/pwritev2.c: Include <errno.h>.
5517         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
5518         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
5519         __strtoul_internal): New functions.
5520         * sysdeps/posix/pause.c: Include <sigsetops.h>.
5521         * sysdeps/posix/system.c: Include <sigsetops.h>.
5522         * sysdeps/mach/hurd/i386/Makefile
5523         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
5524         [$(subdir) = csu] (sysdep-only-routines): Likewise.
5525         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
5526         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
5527         __feraiseexcept_renamed to feraiseexcept instead of
5528         __GI_feraiseexcept.
5529         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
5530         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
5531         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
5532         RWF_NOWAIT): Define to 0 if undefined already.
5533         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
5534         boils down to 0.
5535         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
5536         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
5538 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
5540         * manual/math.texi (pow10): Do not document.
5541         (pow10f): Likewise.
5542         (pow10l): Likewise.
5543         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
5544         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
5545         * math/libm-test-exp10.inc (pow10_test): Remove.
5546         (do_test): Do not call pow10.
5547         * math/w_exp10_compat.c (pow10): Make into compat symbol.
5548         [NO_LONG_DOUBLE] (pow10l): Likewise.
5549         * math/w_exp10f_compat.c (pow10f): Likewise.
5550         * math/w_exp10l_compat.c (pow10l): Likewise.
5551         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
5552         (pow10): Make into compat symbol.
5553         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
5554         (pow10f): Make into compat symbol.
5555         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
5556         (pow10l): Make into compat symbol.
5557         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
5558         pow10.
5559         (CFLAGS-nldbl-pow10.c): Remove variable..
5560         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
5561         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
5562         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
5563         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
5564         Undefine and redefine.
5565         (pow10l): Make into compat symbol.
5566         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
5567         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
5568         * sysdeps/arm/libm-test-ulps: Likewise.
5569         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
5570         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5571         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5572         * sysdeps/microblaze/libm-test-ulps: Likewise.
5573         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5574         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5575         * sysdeps/nios2/libm-test-ulps: Likewise.
5576         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5577         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5578         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5579         * sysdeps/sh/libm-test-ulps: Likewise.
5580         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5581         * sysdeps/tile/libm-test-ulps: Likewise.
5582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5584 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
5586         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
5588 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5590         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
5591         "../ChangeLog.old/ChangeLog.8".
5592         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
5593         "../ChangeLog.old/ChangeLog.14".
5595 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5597         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
5598         Threads Library.
5600 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
5602         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
5604 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5606         * csu/version.c (banner): Remove "by Roland McGrath et al.".
5607         * nptl/Banner: Remove "by Ulrich Drepper et al.".
5609 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
5611         * stdlib/tst-atexit-common.c (do_test): Test support for at least
5612         32 atexit handlers.
5614 2017-09-01  Zack Weinberg  <zackw@panix.com>
5616         * math/math.h (HUGE_VAL): Improve commentary.
5618 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5619             Andreas Schwab  <schwab@suse.de>
5621         [BZ #21530]
5622         * include/stdio.h (__gen_tempfd): New function.
5623         * stdio-common/Makefile (routines): Add gentempfd.
5624         * stdio-common/gentempfd.c: New file.
5625         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
5626         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
5627         unnamed file first.
5629 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5631         [BZ #21915]
5632         [BZ #21922]
5633         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
5634         result to determine success or failure, not the errno value.
5635         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
5636         (tst-nss-files-hosts-erange): Link with -ldl.
5637         * nss/tst-nss-files-hosts-erange.c: New file.
5638         * nss/tst-resolv-basic.c (response): Handle nodata.example.
5639         (do_test): Add NO_DATA tests.
5640         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
5641         (do_test): Call it.
5643 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5645         [BZ #21922]
5646         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
5647         coming from gethostbyname2_r.
5649 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5651         * support/namespace.h (struct support_chroot_configuration): Add
5652         hosts, host_conf.
5653         (struct support_chroot): Add path_hosts, path_host_conf.
5654         * support/support_chroot.c (write_file): New function.
5655         (support_chroot_create): Call it to process /etc/resolv.conf,
5656         /etc/hosts, /etc/host.conf.
5657         (support_chroot_free): Update.
5659 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5661         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
5662         status indicates it is set.
5664 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5666         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
5667         function lookup failures more reliable.
5669 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5671         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
5672         (getcanonname): Likewise.
5673         (gaih_inet): Likewise.
5675 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5677         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
5678         (getcanonname): Likewise.
5679         (gaih_inet): Likewise.
5681 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
5682             Richard Henderson <rth@twiddle.net>
5684         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
5685         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
5686         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
5687         (IREG_SIZE, OREG_SIZE): New macros.
5688         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
5689         (IREG_SIZE, OREG_SIZE): New macros.
5690         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
5691         (IREG_SIZE): New macro.
5692         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
5693         (IREG_SIZE): New macro.
5694         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
5695         New includes.
5696         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
5697         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5698         (__CONCATX): Handle exceptions correctly on large values that may
5699         set FE_INVALID.
5700         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
5701         Initialize if not already set.
5702         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5704 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5706         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
5707         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
5708         Likewise.
5709         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
5710         Likewise.
5711         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
5712         Likewise.
5713         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
5714         Likewise.
5715         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
5716         Likewise.
5717         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
5718         Likewise.
5719         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
5720         Likewise.
5721         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
5722         (NO_CANCELLATION): Likewise.
5723         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
5724         Likewise.
5725         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
5726         Likewise.
5727         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
5728         Likewise.
5729         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
5730         (NO_CANCELLATION): Likewise.
5731         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
5732         (NO_CANCELLATION): Likewise.
5733         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
5734         Likewise
5735         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
5736         Likewise.
5737         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
5738         Likewise.
5739         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
5740         Likewise.
5741         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
5742         hidden prototype.
5743         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
5744         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
5746 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
5748         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
5749         in resolver call.
5751 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5753         * include/libc-symbols.h (internal_function): Remove.
5755 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5757         * stdlib/fmtmsg.c (internal_addseverity): Remove
5758         internal_function.
5760 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5762         * stdio-common/printf_fp.c (group_number): Remove
5763         internal_function.
5764         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5766 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5768         * posix/fnmatch.c (internal_function): Remove definition.
5769         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
5770         * posix/regcomp.c (peek_token, init_word_char)
5771         (duplicate_node_closure, fetch_token, peek_token)
5772         (peek_token_bracket, build_range_exp, build_collating_symbol):
5773         Likewise.
5774         * posix/regex_internal.c (re_string_construct_common)
5775         (create_ci_newstate, create_cd_newstate, re_string_allocate)
5776         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
5777         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
5778         (re_string_translate_buffer, re_string_reconstruct)
5779         (re_string_peek_byte_case, re_string_fetch_byte_case)
5780         (re_string_destruct, re_string_context_at, re_node_set_alloc)
5781         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
5782         (re_node_set_add_intersect, re_node_set_init_union)
5783         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
5784         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
5785         (re_dfa_add_node, calc_state_hash, re_acquire_state)
5786         (re_acquire_state_context): Likewise.
5787         * posix/regex_internal.h (internal_function): Remove definition.
5788         (re_string_realloc_buffers, build_wcs_buffer)
5789         (build_wcs_upper_buffer, build_upper_buffer)
5790         (re_string_translate_buffer, re_string_context_at)
5791         (re_string_char_size_at, re_string_wchar_at)
5792         (re_string_elem_size_at): Likewise.
5793         * posix/regexec.c (match_ctx_init, match_ctx_clean)
5794         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
5795         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
5796         (re_search_internal, re_search_2_stub, re_search_stub)
5797         (re_copy_regs, prune_impossible_nodes, check_matching)
5798         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
5799         (free_fail_stack_return, sift_states_iter_mb)
5800         (sift_states_backward, build_sifted_states)
5801         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
5802         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
5803         (check_subexp_limits, sift_states_bkref, merge_state_array)
5804         (find_recover_state, transit_state, merge_state_with_log)
5805         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
5806         (transit_state_mb, transit_state_bkref, get_subexp)
5807         (get_subexp_sub, find_subexp_node, check_arrival)
5808         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
5809         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
5810         (check_node_accept_bytes, find_collation_sequence_value)
5811         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
5812         (acquire_init_state_context, check_halt_node_context)
5813         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
5814         (sub_epsilon_src_nodes): Likewise.
5815         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
5816         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
5817         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
5818         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
5819         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
5820         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
5821         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
5822         * sysdeps/posix/ttyname.c (getttyname): Likewise.
5823         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
5824         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
5825         (PREADV): Likewise.
5826         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
5827         (PREADV): Likewise.
5828         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
5829         (PWRITEV): Likewise.
5830         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
5831         (PWRITEV): Likewise.
5832         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
5833         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
5835 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5837         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
5838         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
5839         Remove internal_function.
5840         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
5841         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
5842         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
5843         (__deallocate_stack, __libc_pthread_init)
5844         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
5845         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
5846         (__libc_disable_asynccancel, __librt_disable_asynccancel):
5847         Likewise.
5848         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
5849         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
5850         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
5851         Likewise.
5852         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
5853         (__pthread_mutex_unlock_usercnt): Likewise.
5855 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5857         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
5858         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
5859         (fts_safe_changedir): Remove internal_function.
5860         * io/ftw.c (internal_function): Remove definition.
5861         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
5863 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5865         * inet/deadline.c (__deadline_current_time)
5866         (__deadline_from_timeval, __deadline_to_ms): Remove
5867         internal_function.
5868         * inet/getnameinfo.c (nrl_domainname): Likewise.
5869         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
5870         * inet/inet6_option.c (add_pad): Likewise.
5871         * inet/net-internal.h (__deadline_current_time)
5872         (__deadline_from_timeval, __deadline_to_ms): Likewise.
5873         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
5874         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
5875         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
5877 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
5879         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
5880         include <bits/nan.h>.
5881         * math/Makefile (headers): Remove bits/nan.h.
5882         * bits/nan.h: Remove.
5883         * sysdeps/ieee754/bits/nan.h: Likewise.
5884         * sysdeps/mips/bits/nan.h: Likewise.
5886         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
5887         not include <bits/inf.h>.
5888         * math/Makefile (headers): Remove bits/inf.h.
5889         * bits/inf.h: Remove.
5890         * sysdeps/ieee754/bits/inf.h: Likewise.
5892         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
5893         bits/huge_vall.h or bits/huge_val_flt128.h.
5894         (HUGE_VAL): Define directly here.
5895         [__USE_ISOC99] (HUGE_VALF): Likewise.
5896         [__USE_ISOC99] (HUGE_VALL): Likewise.
5897         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5898         (HUGE_VAL_F128): Likewise.
5899         * math/Makefile (headers): Remove bits/huge_val.h,
5900         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
5901         * bits/huge_val.h: Remove.
5902         * bits/huge_val_flt128.h: Likewise.
5903         * bits/huge_valf.h: Likewise.
5904         * bits/huge_vall.h: Likewise.
5905         * sysdeps/ia64/bits/huge_vall.h: Likewise.
5906         * sysdeps/ieee754/bits/huge_val.h: Likewise.
5907         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
5908         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
5909         * sysdeps/sh/bits/huge_val.h: Likewise.
5910         * sysdeps/sparc/bits/huge_vall.h: Likewise.
5911         * sysdeps/x86/bits/huge_vall.h: Likewise.
5913 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5915         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
5916         internal_function.
5917         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
5918         Likewise.
5919         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
5920         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
5921         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
5922         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
5923         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5924         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
5925         * elf/dl-libc.c (dlerror_run): Likewise.
5926         * elf/dl-load.c (add_name_to_object, decompose_rpath)
5927         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
5928         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
5929         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
5930         Likewise.
5931         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
5932         (_dl_higher_prime_number, _dl_strtoul): Likewise.
5933         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
5934         * elf/dl-profile.c (_dl_start_profile): Likewise.
5935         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
5936         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
5937         Likewise.
5938         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
5939         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
5940         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
5941         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
5942         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
5943         (_dl_allocate_tls_storage): Likewise.
5944         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
5945         (_dl_check_all_versions): Likewise.
5946         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
5947         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
5948         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
5949         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5950         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
5951         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
5952         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
5953         internal_function from __dl_start.
5954         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
5955         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
5956         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
5957         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
5958         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
5959         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
5960         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
5961         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
5962         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
5963         (_dl_next_ld_env_entry, _dl_important_hwcaps)
5964         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
5965         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
5966         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
5967         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
5968         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
5969         Likewise.
5970         (struct rtld_global_ro): Remove internal_function from the
5971         _dl_lookup_symbol_x member.
5972         (_dl_symbol_value): Remove.  No longer defined anywhere.
5973         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
5974         internal_function.
5975         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5976         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
5977         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
5978         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
5979         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
5980         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
5981         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
5982         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
5983         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
5984         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
5985         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5986         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
5988 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5990         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
5991         Remove internal_function.
5992         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
5993         Likewise.
5994         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
5995         Likewise.
5997 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5999         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
6000         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
6001         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
6003 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6005         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
6006         (__gai_enqueue_request): Remove internal_function.
6007         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
6008         (__gai_remove_request, __gai_notify, __gai_notify_only)
6009         (__gai_sigqueue): Likewise.
6010         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
6011         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
6012         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
6013         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
6014         Likewise.
6016 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6018         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
6019         * include/dirent.h (__opendirat, __getdents, __getdents64)
6020         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
6021         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
6022         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6023         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
6024         Likewise.
6025         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
6027 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6029         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
6030         internal_function.
6031         (GETCWD_RETURN_TYPE): Likewise.
6033 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6035         * include/time.h (__tz_compute, __strptime_internal): Remove
6036         internal_function.
6037         * time/strptime_l.c (__strptime_internal): Likewise.
6038         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
6040 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6042         * iconv/gconv.c (__gconv): Remove internal_function.
6043         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
6044         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
6045         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
6046         (__gconv_release_cache): Likewise.
6047         * iconv/gconv_close.c (__gconv_close): Likewise.
6048         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
6049         (read_conf_file, __gconv_get_path): Likewise.
6050         * iconv/gconv_db.c (derivation_lookup, add_derivation)
6051         (__gconv_release_step, gen_steps, increment_counter)
6052         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
6053         (__gconv_close_transform, free_modules_db): Likewise.
6054         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
6055         Likewise.
6056         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
6057         (__gconv_find_transform, __gconv_lookup_cache)
6058         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
6059         (__gconv_close_transform, __gconv_release_cache)
6060         (__gconv_loaded_object, __gconv_release_shlib)
6061         (__gconv_compare_alias): Likewise.
6062         * iconv/gconv_open.c (__gconv_open): Likewise.
6063         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
6064         * iconv/iconvconfig.c (add_module): Likewise.
6065         * intl/dcigettext.c (plural_lookup, guess_category_value)
6066         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
6067         * intl/eval-plural.h (plural_eval): Likewise.
6068         * intl/finddomain.c (_nl_find_domain): Likewise.
6069         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
6070         (_nl_load_domain, _nl_find_msg): Likewise.
6071         (internal_function): Remove definition.
6072         * intl/loadinfo.h (internal_function): Likewise.
6073         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
6074         internal_function.
6075         * intl/localealias.c (internal_function): Remove definition.
6076         (read_alias_file): Remove internal_function.
6077         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
6078         * intl/plural-exp.h (internal_function): Remove definition.
6079         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
6080         internal_function.
6081         * intl/plural.c: Regenerate.
6082         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
6083         * locale/coll-lookup.c (__collidx_table_lookup)
6084         (__collseq_table_lookup): Likewise.
6085         * locale/coll-lookup.h (__collidx_table_lookup)
6086         (__collseq_table_lookup): Likewise.
6087         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
6088         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6089         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
6090         (_nl_unload_locale): Likewise.
6091         * locale/localeinfo.h (struct __locale_data): Remove
6092         internal_function from cleanup member.
6093         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
6094         (_nl_remove_locale, _nl_load_locale_from_archive)
6095         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
6096         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
6097         (_nl_cleanup_time): Remove internal_function.
6098         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
6099         (_nl_parse_alt_digit): Likewise.
6100         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
6101         (_nl_select_era_entry): Likewise.
6102         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
6103         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6104         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6105         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
6106         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
6108 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6110         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
6111         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
6112         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
6113         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
6114         Likewise.
6115         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
6116         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
6117         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
6118         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6119         Likewise.
6120         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
6122 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6124         * misc/getttyent.c (skip, value): Remove internal_function.
6125         * misc/syslog.c (openlog_internal): Likewise.
6126         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
6128 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6130         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
6131         (__nss_rewrite_field): Remove internal_function.
6132         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6133         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6134         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6135         * nss/nsswitch.c (nss_parse_file, nss_getline)
6136         (nss_parse_service_list, nss_new_service): Likewise.
6137         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
6138         * nss/valid_field.c (__nss_valid_field): Likewise.
6139         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
6141 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6143         * malloc/arena.c (__malloc_fork_lock_parent)
6144         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
6145         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
6146         internal_function from defintions.
6147         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
6148         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
6149         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
6150         internal_function from declarations.
6151         * malloc/malloc.c (internal_function): Do not define.
6152         (mem2mem_check): Remove internal_function from declaration.
6153         (munmap_chunk, mremap_chunk): Remove internal_function.
6154         * malloc/mtrace.c (tr_where): Likewise.
6156 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6158         * include/rpc/pmap_clnt.h (__get_socket): Remove
6159         internal_function.
6160         * sunrpc/auth_des.c (synchronize): Likewise.
6161         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
6162         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
6163         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
6164         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
6165         (key_call): Likewise.
6166         * sunrpc/pm_getport.c (__get_socket): Likewise.
6167         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
6168         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
6169         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
6170         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
6171         (invalidate): Likewise.
6172         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
6173         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
6174         (set_input_fragment, get_input_bytes): Likewise.
6176 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6178         * malloc/malloc.c (_int_free): Remove locked variable and related
6179         asserts.
6181 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
6183         [BZ #22051]
6184         * Makerules (build-module-helper-objlist): Filter out
6185         $(elf-objpfx)sofini.os.
6186         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
6187         needed.
6189 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6191         * libio/fcloseall.c: Assume weak_alias is defined.
6192         * libio/feof.c: Likewise.
6193         * libio/fileno.c: Likewise.
6194         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
6195         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6196         definitions.
6197         (_IO_file_open): Call __open directly.
6198         (_IO_new_file_sync): Assume ESPIPE is defined.
6199         (_IO_file_seekoff_maybe_mmap): Call __read directly.
6200         (_IO_new_file_write): Call __write directly.
6201         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
6202         * libio/ftello64.c (__ftello64): Assume EIO is defined.
6203         * libio/genops.c: Assume _LIBC is defined.
6204         (save_for_backup): Remove internal_function.
6205         * libio/getc.c: Assume weak_alias is defined.
6206         * libio/getwc.c: Likewise.
6207         * libio/iofclose.c: Assume _LIBC is defined.
6208         * libio/iofdopen.c: Likewise.
6209         (_IO_fcntl): Remove macro definition.
6210         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
6211         Call __fcntl directly.
6212         * libio/iofflush.c: Assume weak_alias is defined.
6213         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
6214         defined.
6215         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
6216         * libio/iofgets.c: Likewise.
6217         * libio/iofopen.c: Assume _LIBC is defined.
6218         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
6219         * libio/iofputs.c: Assume weak_alias is defined.
6220         * libio/iofread.c: Likewise.
6221         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
6222         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
6223         * libio/ioftell.c: Assume weak_alias is defined.
6224         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
6225         * libio/iofwide.c: Assume _LIBC is defined.
6226         (_IO_fwide): Drop SHARED conditional because it is implied by
6227         SHLIB_COMPAT.
6228         * libio/iofwrite.c: Assume weak_alias is defined.
6229         * libio/iogetdelim.c: Likewise.
6230         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
6231         * libio/iogetwline.c (wmemcpy): Remove macro definition.
6232         (_IO_getwline): Call __wmemcpy directly.
6233         * libio/iopopen.c: Assume _LIBC is defined.
6234         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6235         (_IO_close): Remove macro definitions.
6236         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
6237         _exit directly.
6238         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
6239         directly.
6240         * libio/ioputs.c: Assume weak_alias is defined.
6241         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
6242         * libio/iosetbuffer.c: Assume weak_alias is defined.
6243         * libio/iosetvbuf.c: Likewise.
6244         * libio/ioungetc.c: Likewise.
6245         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
6246         libc_hidden_def, libc_hidden_weak, NULL are defined.
6247         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
6248         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
6249         defined.
6250         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
6251         definitions.
6252         (_IO_old_file_init_internal): Drop SHARED conditional because it
6253         is implied by SHLIB_COMPAT.
6254         (_IO_old_file_fopen): Call __open directly.
6255         (_IO_old_file_sync): Assume ESPIPE is defined.
6256         (_IO_old_file_write): Call __write directly.
6257         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
6258         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
6259         Call __fcntl directly.
6260         * libio/oldiofgetpos.c: Assume weak_alias is defined.
6261         (_IO_old_fgetpos): Assume EIO is defined.
6262         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
6263         (_IO_old_fgetpos64): Assume EIO is defined.
6264         * libio/oldiofsetpos.c: Assume weak_alias is defined.
6265         (_IO_old_fsetpos): Assume EIO is defined.
6266         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
6267         (_IO_old_fsetpos64): Assume EIO is defined.
6268         * libio/oldiopopen.c:  Assume _LIBC is defined.
6269         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
6270         (_IO_close): Remove macro definitions.
6271         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
6272         directly.
6273         (_IO_old_proc_close): Call __close, __waitpid directly.
6274         * libio/put.c: Assume weak_alias is defined.
6275         * libio/stdfiles.c: Assume _LIBC is defined.
6276         * libio/stdio.c: Likewise.
6277         * libio/wfileops.c: Likewise.
6278         (_IO_wfile_sync): Assume ESPIPE is defined.
6279         * libio/wgenops.c: Assume _LIBC is defined.
6280         (save_for_wbackup): Remove internal_function.
6282 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6284         * malloc/malloc.c (top_check): Change return type to void.  Remove
6285         internal_function.
6286         * malloc/hooks.c (top_check): Likewise.
6287         (malloc_check, realloc_check, memalign_check): Adjust.
6289 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
6291         [BZ #21457]
6292         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6293         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6294         sigcontext and namespace requirements.
6295         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6296         * sysdeps/m68k/sys/ucontext.h: Likewise.
6297         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
6298         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
6299         <bits/sigcontext.h>.
6300         (__ctx): Define earlier.
6301         (mcontext_t): Define structure contents rather than using struct
6302         sigcontext.
6303         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
6304         __glibc_reserved1 instead of __reserved.
6305         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
6306         <bits/sigcontext.h>.
6307         (__ctx): Define earlier.
6308         (mcontext_t): Define structure contents rather than using struct
6309         sigcontext.
6310         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
6311         mcontext_t instead of struct sigcontext.
6312         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
6313         <bits/sigcontext.h>.
6314         (__ctx): Define earlier.
6315         (mcontext_t): Define structure contents rather than using struct
6316         sigcontext.
6317         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
6318         <bits/sigcontext.h>.
6319         (__ctx): Define earlier.
6320         (mcontext_t): Define structure contents rather than using struct
6321         sigcontext.
6322         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
6323         mcontext_t instead of struct sigcontext.
6324         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
6325         mcontext_t instead of struct sigcontext.
6326         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6327         <bits/sigcontext.h>.
6328         (__ctx): New macro.
6329         (struct __ia64_fpreg_mcontext): New type.
6330         (mcontext_t): Define structure contents rather than using struct
6331         sigcontext.
6332         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
6333         (uc_sigmask): Define using __ctx.
6334         (uc_stack): Likewise.
6335         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
6336         <bits/sigcontext.h>.
6337         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6338         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
6339         <bits/sigcontext.h>.
6340         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
6341         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
6342         <bits/sigcontext.h>.
6343         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
6344         <bits/sigcontext.h>.
6345         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
6346         <bits/sigcontext.h>.
6347         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
6348         <bits/sigcontext.h>.
6349         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
6350         <bits/sigcontext.h>.
6351         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
6352         <bits/sigcontext.h>.
6353         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
6354         <bits/sigcontext.h>.
6355         (__ctx): Define earlier.
6356         (mcontext_t): Define structure contents rather than using struct
6357         sigcontext.
6358         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
6359         <bits/sigcontext.h>.  Include <bits/types.h>.
6360         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
6361         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
6362         (test-xfail-XPG42/ucontext.h/conform): Likewise.
6363         (test-xfail-UNIX98/signal.h/conform): Likewise.
6364         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6365         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6366         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6367         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6368         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6369         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6370         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6371         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6372         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6374 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6376         * malloc/dynarray_emplace_enlarge.c
6377         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
6378         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
6379         * malloc/tst-dynarray.c (test_long_overflow): New function.
6380         (do_test): Call it.
6382 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6384         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
6385         (set_arena_corrupt): Remove definitions.
6386         (mtrim): Do not check for corrupt arena.
6387         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
6388         Likewise.
6390 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6392         [BZ #21754]
6393         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
6394         check_action.
6395         (ptmalloc_init): Do not set or use check_action.
6396         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
6397         call to malloc_printerr.  Remove return statement.
6398         (free_check): Likewise.  Remove arena unlock.
6399         (top_check): Update comment.  Adjust call to malloc_printerr.
6400         Remove heap repair code.
6401         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
6402         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
6403         (sysmalloc): Adjust call to malloc_printerr.
6404         (munmap_chunk, __libc_realloc): Likewise.  Remove return
6405         statement.
6406         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
6407         Remove errout label and corresponding gotos.
6408         (_int_free): Likewise.  Remove arena unlock.
6409         (do_set_mallopt_check): Do not set check_action.
6410         (malloc_printerr): Adjust parameter list.  Do not mark arena as
6411         corrupt.
6412         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
6413         comment.
6414         * manual/probes.texi (Memory Allocation Probes): Remove
6415         memory_mallopt_check_action.
6417 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
6419         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
6420         Use pointer to uint64_t instead of long int for sp.
6422 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6424         [BZ #21754]
6425         * malloc/malloc.c (malloc_printerr): Always terminate the process,
6426         without printing a backtrace.  Do not leak any information in the
6427         error message.
6428         * manual/memory.texi (Heap Consistency Checking): Update.
6429         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
6431 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6433         Do not scale NPTL tests with available number of CPUs.
6434         * nptl/tst-cond16.c (count): Set to constant value of 8.
6435         * nptl/tst-cond18.c (count): Likewise.
6437 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
6439         [BZ #22035]
6440         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
6441         Define to take a second argument that is a macro that
6442         concatentates a suffix, not the suffix itself.
6443         (__CONCAT_d): New macro.
6444         (__CONCAT_f): Likewise.
6445         (__CONCAT_l): Likewise.
6447 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
6449         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
6450         by child.
6452 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6453             Aurelien Jarno  <aurelien@aurel32.net>
6454             Maciej W. Rozycki  <macro@imgtec.com>
6456         [BZ #21956]
6457         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
6458         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
6459         `mips16-syscall6' and `mips16-syscall7'.
6460         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
6461         (CFLAGS-mips16-syscall7.c): Remove.
6462         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
6463         Remove `__mips16_syscall5', `__mips16_syscall6' and
6464         `__mips16_syscall7'.
6465         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
6466         (__mips16_syscall0): Rename `__mips16_syscall_return' to
6467         `__mips_syscall_return'.
6468         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
6469         (__mips16_syscall1): Likewise.
6470         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
6471         (__mips16_syscall2): Likewise.
6472         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
6473         (__mips16_syscall3): Likewise.
6474         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
6475         (__mips16_syscall4): Likewise.
6476         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
6477         Remove.
6478         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
6479         Remove.
6480         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
6481         Remove.
6482         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
6483         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
6484         `__mips16_syscall5'.  Remove prototype.
6485         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
6486         `__mips16_syscall6'.  Remove prototype.
6487         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
6488         `__mips16_syscall7'.  Remove prototype.
6489         (__nomips16, __mips16_syscall_return): Move to...
6490         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
6491         (__nomips16, __mips_syscall_return): ... here.
6492         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
6493         `__mips16_syscall_return' to `__mips_syscall_return'.
6494         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
6495         `internal_syscall##nr'.
6496         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
6497         `internal_syscall##nr'.
6498         (FORCE_FRAME_POINTER): Remove.
6499         (__mips_syscall5): New prototype.
6500         (internal_syscall5): Rewrite to call `__mips_syscall5'.
6501         (__mips_syscall6): New prototype.
6502         (internal_syscall6): Rewrite to call `__mips_syscall6'.
6503         (__mips_syscall7): New prototype.
6504         (internal_syscall7): Rewrite to call `__mips_syscall7'.
6505         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
6506         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
6507         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
6508         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
6509         (sysdep_routines): Add libc-do-syscall.
6510         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
6511         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
6513 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6515         [BZ #21672]
6516         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
6517         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
6518         (advise_stack_range): New function.
6519         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
6520         stack non required to advise_stack_range at allocatestack.c
6522 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6524         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
6526 2017-08-29  Florian Weimer  <fweimer@redhat.com>
6528         [BZ #22026]
6529         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
6530         __end_fct.  Mangle __end_fct after setting it to NULL.
6531         * iconv/Makefile (tests): Add tst-gconv-init-failure.
6532         (modules-names, modules-names-tests): Add
6533         tst-gconv-init-failure-mod.
6534         (gconv-modules): New target.
6535         (tst-gconv-init-failure-mod.so): Link against libsupport.
6536         (tst-gconv-init-failure): Depend on gconv-modules,
6537         tst-gconv-init-failure-mod.so.
6538         * iconv/tst-gconv-init-failure-mod.c: New file.
6539         * iconv/tst-gconv-init-failure.c: Likewise.
6540         * iconv/test-gconv-modules: Likewise.
6542 2017-08-29  Florian Weimer  <fweimer@redhat.com>
6544         [BZ #22025]
6545         * iconv/gconv_db.c (free_derivation): Remove redundant
6546         parentheses.
6547         (gen_steps): Unconditionally mangle __btowc_fct after
6548         initialization.
6549         (increment_counter): Likewise.  Do not call init_fct for internal
6550         modules.
6552 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
6554         [BZ #22028]
6555         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6556         (_MSUF_): Remove macro.
6557         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
6558         Likewise.
6559         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6560         (__REDIRFROM_X): New macro.
6561         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
6562         Likewise.
6563         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
6564         (__REDIRTO_X): Likewise.
6565         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
6566         arguments.
6567         (__MATH_REDIRCALL_2): Likewise.
6568         (__MATH_REDIRCALL_INTERNAL): Likewise.
6569         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6570         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
6571         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
6572         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6573         * math/test-finite-macros.c: New file.
6574         * math/Makefile (tests): Add test-finite-macros.
6575         (CFLAGS-test-finite-macros.c): New variable.
6577 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
6578             Jeff Law  <law@redhat.com>
6580         [BZ #22025]
6581         Mangle NULL pointers in iconv/gconv.
6582         * iconv/gconv_cache.c (find_module): Demangle init_fct before
6583         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
6584         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
6585         is non-NULL before demangling the end_fct.  Check for NULL
6586         end_fct after demangling.
6587         (__gconv_release_step): Demangle the end_fct before checking
6588         it for NULL.   Remove assert on __shlibc_handle != NULL.
6589         (gen_steps): Don't check btowc_fct for NULL before mangling.
6590         Demangle init_fct before checking for NULL.
6591         (increment_counter): Likewise.
6592         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
6593         end_fct for NULL before mangling.
6594         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
6595         for NULL.
6597 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
6599         [BZ #21971]
6600         * locale/iso-639.def: add Morisyen.
6602 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6604         [BZ #21930]
6605         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
6606         (iszero): New C++ implementation that does not use
6607         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
6608         signaling nans are enabled, since __builtin_types_compatible_p
6609         is a C-only feature.
6610         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
6611         defined, include ieee754_float128.h for access to the union and
6612         member ieee854_float128.ieee.
6613         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
6614         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
6615         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
6616         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
6617         options of test-math-zero on powerpc64le.
6619 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
6621         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
6622         Change double to float.
6624 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
6626         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
6627         unconditional.
6628         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
6629         conditional code; define contents only for [LIBM_SVID_COMPAT].
6631 2017-08-28  Florian Weimer  <fweimer@redhat.com>
6633         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
6634         (abi-lp64_be-options): Remove.
6635         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
6636         (abi-hard-options): Likewise.
6637         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
6638         (abi-o32_hard-options, abi-o32_soft_2008-options)
6639         (abi-o32_hard_2008-options, abi-n32_soft-options)
6640         (abi-n32_hard-options, abi-n32_soft_2008-options)
6641         (abi-n32_hard_2008-options, abi-n64_soft-options)
6642         (abi-n64_hard-options, abi-n64_soft_2008-options)
6643         (abi-n64_hard_2008-options): Likewise.
6644         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
6645         (abi-64-v1-options, abi-64-v2-options): Likewise.
6646         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
6647         (abi-64-options): Likewise.
6648         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
6649         (abi-64-options): Likewise.
6650         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
6651         (abi-64-options): Likewise.
6652         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
6653         (abi-64-options, abi-x32-options): Likewise.
6655 2017-08-28  Florian Weimer  <fweimer@redhat.com>
6657         Store supported list of SYS_* system calls in the source tree.
6658         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6659         (bits/syscall.h): Generate from list file.
6660         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
6661         [$(subdir) = misc] (tests): Add tst-syscall-list.
6662         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
6663         [$(subdir) = misc] (tst-syscall-list-macros.list)
6664         [$(subdir) = misc] (tst-syscall-list-nr.list)
6665         (tst-syscall-list-sys.list): Helper targets for new
6666         tst-syscall-list test.
6667         [$(subdir) = misc] (tst-syscall-list.out): Run test script
6668         tst-syscall-list.sh.
6669         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
6670         target. Do not include bits/syscall.d.
6671         [$(subdir) = misc] (generated): Do not update.
6672         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
6673         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
6674         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
6675         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
6677 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
6679         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
6680         (tst-cxa_atexit, tst-on_exit): Likewise.
6681         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
6682         tst-cxa_atexit, and tst-on_exit.
6683         * stdlib/tst-atexit-common.c: New file.
6684         * stdlib/tst-atexit.c: New file.
6685         * stdlib/tst-at_quick_exit.c: New file.
6686         * stdlib/tst-cxa_atexit.c: New file.
6687         * stdlib/tst-on_exit.c: New file.
6689 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6691         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
6692         * mach/stack_chk_fail_local.c: New file.
6693         * hurd/stack_chk_fail_local.c: New file.
6694         * mach/Machrules ($(interface-library)-routines): Add
6695         stack_chk_fail_local.
6696         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
6697         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
6698         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
6699         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
6700         * hurd/Makefile (CFLAGS-hurdstartup.o,
6701         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
6703 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
6705         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
6706         (index_cpu_*, index_arch_*): Removed.
6708 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6710         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
6711         Use uint64_t instead of unsigned long.
6713 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
6715         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
6716         [__HAVE_DISTINCT_FLOAT128].
6718         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
6719         of <bits/math-finite.h>.
6720         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
6721         inclusion of <bits/math-finite.h>.
6722         * math/bits/math-finite.h (__REDIRTO_X): Do not define
6723         conditionally on [__MATH_DECLARING_LDOUBLE && defined
6724         __NO_LONG_DOUBLE_MATH].
6725         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
6726         (__MATH_REDIRCALL_2): Likewise.
6727         (__MATH_REDIRCALL_INTERNAL): Likewise.
6728         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6729         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
6730         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
6733         Remove file.
6734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
6735         Likewise.
6736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
6737         Likewise.
6738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
6739         Likewise.
6740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
6741         Likewise.
6742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
6743         Likewise.
6744         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6745         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6746         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6747         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6749         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
6750         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
6751         w_sqrtf_compat-ppc32.
6753 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6755         * math/math.h [defined __cplusplus] (issignaling): In the long
6756         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
6757         is not defined.  Call __issignaling, otherwise.
6759 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6761         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
6762         syscall definitions and replace __builtin_expect with __glibc_likely.
6763         * sysdeps/unix/syscall-template.S: Update comment about cancellable
6764         syscall.
6765          (SYSCALL_CANCELLABLE): Removedefinition
6766         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
6767         definition.
6768         (PSEUDO_END): Likewise.
6769         [IS_IN (libpthread)] (CENABLE): Likewise.
6770         [IS_IN (libpthread)] (CDISABLE): Likewise.
6771         [IS_IN (libc)] (CENABLE): Likewise.
6772         [IS_IN (libc)] (CENABLE): Likewise.
6773         [IS_IN (librt)] (CDISABLE): Likewise.
6774         [IS_IN (librt)] (CDISABLE): Likewise.
6775         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6776         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
6777         definition.
6778         (PSEUDO_END): Likewise.
6779         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
6780         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
6781         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6782         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6783         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6784         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6785         (CENABLE): Likewise.
6786         (CDISABLE): Likewise.
6787         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6788         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
6789         defintion.
6790         (PSEUDO_END): Likewise.
6791         [IS_IN (libpthread)] (CENABLE): Likewise.
6792         [IS_IN (libpthread)] (CDISABLE): Likewise.
6793         [IS_IN (libc)] (CENABLE): Likewise.
6794         [IS_IN (libc)] (CENABLE): Likewise.
6795         [IS_IN (librt)] (CDISABLE): Likewise.
6796         [IS_IN (librt)] (CDISABLE): Likewise.
6797         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6798         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
6799         definition.
6800         (PSEUDO_END): Likewise.
6801         [IS_IN (libpthread)] (CENABLE): Likewise.
6802         [IS_IN (libpthread)] (CDISABLE): Likewise.
6803         [IS_IN (libc)] (CENABLE): Likewise.
6804         [IS_IN (libc)] (CENABLE): Likewise.
6805         [IS_IN (librt)] (CDISABLE): Likewise.
6806         [IS_IN (librt)] (CDISABLE): Likewise.
6807         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6808         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
6809         definition.
6810         (PSEUDO_END): Likewise.
6811         [IS_IN (libpthread)] (CENABLE): Likewise.
6812         [IS_IN (libpthread)] (CDISABLE): Likewise.
6813         [IS_IN (libc)] (CENABLE): Likewise.
6814         [IS_IN (libc)] (CENABLE): Likewise.
6815         [IS_IN (librt)] (CDISABLE): Likewise.
6816         [IS_IN (librt)] (CDISABLE): Likewise.
6817         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6818         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
6819         definition.
6820         (PSEUDO_END): Likewise.
6821         [IS_IN (libpthread)] (CENABLE): Likewise.
6822         [IS_IN (libpthread)] (CDISABLE): Likewise.
6823         [IS_IN (libc)] (CENABLE): Likewise.
6824         [IS_IN (libc)] (CENABLE): Likewise.
6825         [IS_IN (librt)] (CDISABLE): Likewise.
6826         [IS_IN (librt)] (CDISABLE): Likewise.
6827         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6828         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
6829         definition.
6830         (PSEUDO_END): Likewise.
6831         [IS_IN (libpthread)] (CENABLE): Likewise.
6832         [IS_IN (libpthread)] (CDISABLE): Likewise.
6833         [IS_IN (libc)] (CENABLE): Likewise.
6834         [IS_IN (libc)] (CENABLE): Likewise.
6835         [IS_IN (librt)] (CDISABLE): Likewise.
6836         [IS_IN (librt)] (CDISABLE): Likewise.
6837         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6838         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
6839         definition.
6840         (PSEUDO_END): Likewise.
6841         [IS_IN (libpthread)] (CENABLE): Likewise.
6842         [IS_IN (libpthread)] (CDISABLE): Likewise.
6843         [IS_IN (libc)] (CENABLE): Likewise.
6844         [IS_IN (libc)] (CENABLE): Likewise.
6845         [IS_IN (librt)] (CDISABLE): Likewise.
6846         [IS_IN (librt)] (CDISABLE): Likewise.
6847         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6848         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
6849         Remove definition.
6850         (PSEUDO_END): Likewise.
6851         [IS_IN (libpthread)] (CENABLE): Likewise.
6852         [IS_IN (libpthread)] (CDISABLE): Likewise.
6853         [IS_IN (libc)] (CENABLE): Likewise.
6854         [IS_IN (libc)] (CENABLE): Likewise.
6855         [IS_IN (librt)] (CDISABLE): Likewise.
6856         [IS_IN (librt)] (CDISABLE): Likewise.
6857         (SINGLE_THREAD_P): Likewise.
6858         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
6859         definition.
6860         (PSEUDO_END): Likewise.
6861         [IS_IN (libpthread)] (CENABLE): Likewise.
6862         [IS_IN (libpthread)] (CDISABLE): Likewise.
6863         [IS_IN (libc)] (CENABLE): Likewise.
6864         [IS_IN (libc)] (CENABLE): Likewise.
6865         [IS_IN (librt)] (CDISABLE): Likewise.
6866         [IS_IN (librt)] (CDISABLE): Likewise.
6867         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6868         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
6869         definition.
6870         (PSEUDO_END): Likewise.
6871         [IS_IN (libpthread)] (CENABLE): Likewise.
6872         [IS_IN (libpthread)] (CDISABLE): Likewise.
6873         [IS_IN (libc)] (CENABLE): Likewise.
6874         [IS_IN (libc)] (CENABLE): Likewise.
6875         [IS_IN (librt)] (CDISABLE): Likewise.
6876         [IS_IN (librt)] (CDISABLE): Likewise.
6877         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6878         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
6879         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6880         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
6881         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
6882         definition.
6883         (PSEUDO_END): Likewise.
6884         [IS_IN (libpthread)] (CENABLE): Likewise.
6885         [IS_IN (libpthread)] (CDISABLE): Likewise.
6886         [IS_IN (libc)] (CENABLE): Likewise.
6887         [IS_IN (libc)] (CENABLE): Likewise.
6888         [IS_IN (librt)] (CDISABLE): Likewise.
6889         [IS_IN (librt)] (CDISABLE): Likewise.
6890         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6891         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
6892         definition.
6893         (PSEUDO_END): Likewise.
6894         [IS_IN (libpthread)] (CENABLE): Likewise.
6895         [IS_IN (libpthread)] (CDISABLE): Likewise.
6896         [IS_IN (libc)] (CENABLE): Likewise.
6897         [IS_IN (libc)] (CENABLE): Likewise.
6898         [IS_IN (librt)] (CDISABLE): Likewise.
6899         [IS_IN (librt)] (CDISABLE): Likewise.
6900         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6901         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
6902         definition.
6903         (PSEUDO_END): Likewise.
6904         [IS_IN (libpthread)] (CENABLE): Likewise.
6905         [IS_IN (libpthread)] (CDISABLE): Likewise.
6906         [IS_IN (libc)] (CENABLE): Likewise.
6907         [IS_IN (libc)] (CENABLE): Likewise.
6908         [IS_IN (librt)] (CDISABLE): Likewise.
6909         [IS_IN (librt)] (CDISABLE): Likewise.
6910         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6911         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
6912         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6913         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
6914         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
6915         definition.
6916         (PSEUDO_END): Likewise.
6917         [IS_IN (libpthread)] (CENABLE): Likewise.
6918         [IS_IN (libpthread)] (CDISABLE): Likewise.
6919         [IS_IN (libc)] (CENABLE): Likewise.
6920         [IS_IN (libc)] (CENABLE): Likewise.
6921         [IS_IN (librt)] (CDISABLE): Likewise.
6922         [IS_IN (librt)] (CDISABLE): Likewise.
6923         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6924         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
6925         definition.
6926         (PSEUDO_END): Likewise.
6927         [IS_IN (libpthread)] (CENABLE): Likewise.
6928         [IS_IN (libpthread)] (CDISABLE): Likewise.
6929         [IS_IN (libc)] (CENABLE): Likewise.
6930         [IS_IN (libc)] (CENABLE): Likewise.
6931         [IS_IN (librt)] (CDISABLE): Likewise.
6932         [IS_IN (librt)] (CDISABLE): Likewise.
6933         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6935 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6937         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
6939 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
6941         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6943 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
6945         [BZ #21982]
6946         * string/stratcliff.c (do_test): Declare size, nchars, inner,
6947         middle and outer with size_t instead of int.  Repleace %d and
6948         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
6949         "MAX (outer, nchars - 64)" to support unsigned outer and
6950         nchars.  Also exit loop when outer == 0.
6952 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6954         * include/fcntl.h (__fcntl_nocancel): Remove definition.
6955         * include/signal.h (__sigsuspend_nocancel): Likewise.
6956         * include/time.h (__nanosleep_nocancel): Likewise.
6957         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
6958         * login/utmp_file.c: Include non cancellable syscall header.
6959         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
6960         prototype.
6962 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
6964         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
6965         .byte sequences with AVX512F instructions.
6966         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
6967         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6968         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
6969         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
6970         Likewise.
6971         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6972         Likewise.
6974 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6975             Steve Ellcey  <sellcey@cavium.com>
6977         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
6978         Use PTR_REG macro in cmp instruction.
6980 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6982         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
6983         Change the return type of the ifunc resolver to match the return
6984         type of the target function.
6986 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6988         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
6989         (preadv64): Likewise.
6990         (pwrite64(: Likewise.
6991         (pwritev64): Likewise.
6993         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6994         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
6995         (LOAD_ARGS_0): Likewise.
6996         (LOAD_ARGS_1): Likewise.
6997         (LOAD_ARGS_2): Likewise.
6998         (LOAD_ARGS_3): Likewise.
6999         (LOAD_ARGS_4): Likewise.
7000         (LOAD_ARGS_5): Likewise.
7001         (LOAD_ARGS_6): Likewise.
7002         (LOAD_REGS_0): Likewise.
7003         (LOAD_REGS_1): Likewise.
7004         (LOAD_REGS_2): Likewise.
7005         (LOAD_REGS_3): Likewise.
7006         (LOAD_REGS_4): Likewise.
7007         (LOAD_REGS_5): Likewise.
7008         (LOAD_REGS_6): Likewise.
7009         (ASM_ARGS_0): Likewise.
7010         (ASM_ARGS_1): Likewise.
7011         (ASM_ARGS_2): Likewise.
7012         (ASM_ARGS_3): Likewise.
7013         (ASM_ARGS_4): Likewise.
7014         (ASM_ARGS_5): Likewise.
7015         (ASM_ARGS_6): Likewise.
7016         (LOAD_ARGS_TYPES_1): Likewise.
7017         (LOAD_ARGS_TYPES_2): Likewise.
7018         (LOAD_ARGS_TYPES_3): Likewise.
7019         (LOAD_ARGS_TYPES_4): Likewise.
7020         (LOAD_ARGS_TYPES_5): Likewise.
7021         (LOAD_ARGS_TYPES_6): Likewise.
7022         (LOAD_REGS_TYPES_1): Likewise.
7023         (LOAD_REGS_TYPES_2): Likewise.
7024         (LOAD_REGS_TYPES_3): Likewise.
7025         (LOAD_REGS_TYPES_4): Likewise.
7026         (LOAD_REGS_TYPES_5): Likewise.
7027         (LOAD_REGS_TYPES_6): Likewise.
7028         (TYPEFY): New define.
7029         (ARGIFY): Likewise.
7030         (internal_syscall0): Likewise.
7031         (internal_syscall1): Likewise.
7032         (internal_syscall2): Likewise.
7033         (internal_syscall3): Likewise.
7034         (internal_syscall4): Likewise.
7035         (internal_syscall5): Likewise.
7036         (internal_syscall6): Likewise.
7037         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
7038         (INTERNAL_SYSCALL_NCS): Remove define.
7039         (internal_syscall1): Add define.
7041 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7043         * math/w_remainder_compat.c: Remove duplicate inclusion of
7044         math-svid-compat.h.
7045         * math/w_remainderf_compat.c: Likewise.
7046         * math/w_remainderl_compat.c: Likewise.
7048 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7050         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7052 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7054         [BZ #21684]
7055         * math/tgmath.h (__floating_type): Simplify definitions.
7056         (__real_integer_type): New macro.
7057         (__complex_integer_type): Likewise.
7058         (__expr_is_real): Likewise.
7059         (__tgmath_real_type_sub): Update comment to describe handling of
7060         complex types.
7061         (__tgmath_complex_type_sub): New macro.
7062         (__tgmath_complex_type): Likewise.
7063         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
7064         (__TGMATH_CF128): Use __expr_is_real.
7065         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
7066         __expr_is_real.
7067         (__TGMATH_BINARY_REAL_IMAG): Likewise.
7068         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
7069         * math/gen-tgmath-tests.py (Type.create_type): Create complex
7070         integer types.
7072 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7074         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
7075         macro.
7076         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
7077         alias.
7078         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
7079         Likewise.
7081         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
7082         nanosleep_not_cancel with __nanosleep_nocancel.
7083         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
7084         (__nanosleep_nocancel): New macro.
7085         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
7086         function.
7087         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
7088         macro.
7089         (__nanosleep_nocancel): New prototype.
7091         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
7092         pause_not_cancel with __pause_nocancel.
7093         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
7094         (__pause_nocancel): New macro.
7095         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
7096         macro.
7097         (__pause_nocancel): New prototype.
7098         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
7100 2017-08-22  Martin Sebor  <msebor@redhat.com>
7102         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
7103         to return a pointer to the same type as the target function.
7105 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7107         [BZ #18822]
7108         [BZ #21986]
7109         * include/printf.h (__printf_fphex): Add attribute_hidden.
7110         (__guess_grouping): New prototype.
7111         * stdio-common/printf_fp.c (__guess_grouping): Removed.
7112         * stdio-common/reg-printf.c (__register_printf_specifier): Add
7113         libc_hidden_proto and libc_hidden_def.
7114         * stdlib/strfmon_l.c (__guess_grouping): Removed.
7115         (__vstrfmon_l): Remove the third argument passed to
7116         __guess_grouping.
7118 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7120         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
7121         definition for issignaling that does not rely on __MATH_TG,
7122         since __MATH_TG uses __builtin_types_compatible_p, which is only
7123         available in C mode.
7124         (CFLAGS-test-math-issignaling.cc): New variable.
7125         * math/Makefile [CXX] (tests): Add test-math-issignaling.
7126         * math/test-math-issignaling.cc: New test for C++ implementation
7127         of type-generic issignaling.
7128         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
7129         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
7130         options of test-math-issignaling on powerpc64le.
7132 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7134         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7135         building libc.a.
7136         (hidden_proto): Likewise.
7137         (hidden_tls_proto): Likewise.
7138         (__hidden_proto): Likewise.
7140 2017-08-22  Florian Weimer  <fweimer@redhat.com>
7142         math: Statically link tests of internal functionality.
7143         * math/Makefile (tests): Remove atest-exp, atest-sincos,
7144         atest-exp2.
7145         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
7146         (gmp-objs): Remove assignment.
7147         (atest-exp, atest-sincos, atest-exp2): Remove targets.
7149 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
7151         [BZ #21987]
7152         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
7153         and copy to ...
7154         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
7155         ... here.
7156         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
7157         ... and here.
7159         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
7160         variable definitions above inclusion of ../Rules.
7162 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7164         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
7165         case calling __builtin_unreachable.
7167 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7169         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
7170         __waitpid_nocancel.
7171         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
7172         (__waitpid_nocancel): New macro.
7173         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
7174         macro.
7175         (__waitpid_nocancel): Replace macro with a function.
7176         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
7177         function.
7179         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
7180         __fcntl_nocancel.
7181         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
7182         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
7184         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
7185         __writev_nocancel_nostatus.
7186         (write_call_graph): Likewise.
7187         (write_bb_counts): Likewise.
7188         * resolv/herror.c (herror): Likewise.
7189         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
7190         macro.
7191         (__writev_nocancel_nostatus): New macro.
7192         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
7193         Remove macro.
7194         (__writev_nocancel_nostatus): New function.
7196 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
7198         Revert:
7199         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7201         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7202         building libc.a.
7203         (hidden_proto): Likewise.
7204         (hidden_tls_proto): Likewise.
7205         (__hidden_proto): Likewise.
7207         [BZ #21973]
7208         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
7209         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7211         Likewise.
7212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
7213         Likewise.
7214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7215         Likewise.
7216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
7217         Likewise.
7218         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
7219         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7220         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7221         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7222         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
7223         GLIBC_2.0 sqrtl symbol.
7225         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
7226         [__USE_MISC] (_LIB_VERSION): Likewise.
7227         [__USE_MISC] (struct exception): Likewise.
7228         [__USE_MISC] (matherr): Likewise.
7229         [__USE_MISC] (DOMAIN): Likewise.
7230         [__USE_MISC] (SING): Likewise.
7231         [__USE_MISC] (OVERFLOW): Likewise.
7232         [__USE_MISC] (UNDERFLOW): Likewise.
7233         [__USE_MISC] (TLOSS): Likewise.
7234         [__USE_MISC] (PLOSS): Likewise.
7235         [__USE_MISC] (HUGE): Likewise.
7236         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
7237         * math/math-svid-compat.h: New file.
7238         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
7239         and matherrl.
7240         * include/math.h [!_ISOMAC] (__matherr): Remove.
7241         * manual/arith.texi (FP Exceptions): Do not document matherr.
7242         * math/Makefile (tests): Change test-matherr to test-matherr-3.
7243         (tests-internal): New variable.
7244         (install-lib): Do not add libieee.a.
7245         (non-lib.a): Likewise.
7246         (extra-objs): Do not add libieee.a and ieee-math.o.
7247         (CPPFLAGS-s_lib_version.c): Remove variable.
7248         ($(objpfx)libieee.a): Remove rule.
7249         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
7250         * math/ieee-math.c: Remove.
7251         * math/libm-test-support.c (matherr): Remove.
7252         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
7253         and license notices.  Include <math-svid-compat.h> and
7254         <shlib-compat.h>.
7255         (matherr): Undefine as macro.  Use compat_symbol_reference.
7256         (_LIB_VERSION): Likewise.
7257         * math/test-matherr-2.c: New file.
7258         * math/test-matherr-3.c: Likewise.
7259         * sysdeps/generic/math_private.h (__kernel_standard): Remove
7260         declaration.
7261         (__kernel_standard_f): Likewise.
7262         (__kernel_standard_l): Likewise.
7263         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
7264         <math_private.h>.  Include <math-svid-compat.h>.
7265         (_LIB_VERSION): Undefine as macro.
7266         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
7267         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
7268         [LIBM_SVID_COMPAT], use compat_symbol.
7269         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
7270         <math_private.h>.  Include <math-svid-compat.h>.
7271         (matherr): Undefine as macro.
7272         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
7273         compat_symbol.
7274         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
7275         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
7276         compat_symbol_reference.
7277         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
7278         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
7279         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
7280         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
7281         (MATHERR_D): Remove declaration.
7282         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
7283         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
7284         [LIBM_BUILD] (pmatherrf): Likewise.
7285         [LIBM_BUILD] (pmatherr): Likewise.
7286         [LIBM_BUILD] (pmatherrl): Likewise.
7287         (DOMAIN): Likewise.
7288         (SING): Likewise.
7289         (OVERFLOW): Likewise.
7290         (UNDERFLOW): Likewise.
7291         (TLOSS): Likewise.
7292         (PLOSS): Likewise.
7293         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
7294         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
7295         compat_symbol.
7296         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
7297         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
7298         compat_symbol.
7299         * math/lgamma-compat.h: Include <math-svid-compat.h>.
7300         * math/w_acos_compat.c: Likewise.
7301         * math/w_acosf_compat.c: Likewise.
7302         * math/w_acosh_compat.c: Likewise.
7303         * math/w_acoshf_compat.c: Likewise.
7304         * math/w_acoshl_compat.c: Likewise.
7305         * math/w_acosl_compat.c: Likewise.
7306         * math/w_asin_compat.c: Likewise.
7307         * math/w_asinf_compat.c: Likewise.
7308         * math/w_asinl_compat.c: Likewise.
7309         * math/w_atan2_compat.c: Likewise.
7310         * math/w_atan2f_compat.c: Likewise.
7311         * math/w_atan2l_compat.c: Likewise.
7312         * math/w_atanh_compat.c: Likewise.
7313         * math/w_atanhf_compat.c: Likewise.
7314         * math/w_atanhl_compat.c: Likewise.
7315         * math/w_cosh_compat.c: Likewise.
7316         * math/w_coshf_compat.c: Likewise.
7317         * math/w_coshl_compat.c: Likewise.
7318         * math/w_exp10_compat.c: Likewise.
7319         * math/w_exp10f_compat.c: Likewise.
7320         * math/w_exp10l_compat.c: Likewise.
7321         * math/w_exp2_compat.c: Likewise.
7322         * math/w_exp2f_compat.c: Likewise.
7323         * math/w_exp2l_compat.c: Likewise.
7324         * math/w_fmod_compat.c: Likewise.
7325         * math/w_fmodf_compat.c: Likewise.
7326         * math/w_fmodl_compat.c: Likewise.
7327         * math/w_hypot_compat.c: Likewise.
7328         * math/w_hypotf_compat.c: Likewise.
7329         * math/w_hypotl_compat.c: Likewise.
7330         * math/w_j0_compat.c: Likewise.
7331         * math/w_j0f_compat.c: Likewise.
7332         * math/w_j0l_compat.c: Likewise.
7333         * math/w_j1_compat.c: Likewise.
7334         * math/w_j1f_compat.c: Likewise.
7335         * math/w_j1l_compat.c: Likewise.
7336         * math/w_jn_compat.c: Likewise.
7337         * math/w_jnf_compat.c: Likewise.
7338         * math/w_jnl_compat.c: Likewise.
7339         * math/w_lgamma_main.c: Likewise.
7340         * math/w_lgamma_r_compat.c: Likewise.
7341         * math/w_lgammaf_main.c: Likewise.
7342         * math/w_lgammaf_r_compat.c: Likewise.
7343         * math/w_lgammal_main.c: Likewise.
7344         * math/w_lgammal_r_compat.c: Likewise.
7345         * math/w_log10_compat.c: Likewise.
7346         * math/w_log10f_compat.c: Likewise.
7347         * math/w_log10l_compat.c: Likewise.
7348         * math/w_log2_compat.c: Likewise.
7349         * math/w_log2f_compat.c: Likewise.
7350         * math/w_log2l_compat.c: Likewise.
7351         * math/w_log_compat.c: Likewise.
7352         * math/w_logf_compat.c: Likewise.
7353         * math/w_logl_compat.c: Likewise.
7354         * math/w_pow_compat.c: Likewise.
7355         * math/w_powf_compat.c: Likewise.
7356         * math/w_powl_compat.c: Likewise.
7357         * math/w_remainder_compat.c: Likewise.
7358         * math/w_remainderf_compat.c: Likewise.
7359         * math/w_remainderl_compat.c: Likewise.
7360         * math/w_scalb_compat.c: Likewise.
7361         * math/w_scalbf_compat.c: Likewise.
7362         * math/w_scalbl_compat.c: Likewise.
7363         * math/w_sinh_compat.c: Likewise.
7364         * math/w_sinhf_compat.c: Likewise.
7365         * math/w_sinhl_compat.c: Likewise.
7366         * math/w_sqrt_compat.c: Likewise.
7367         * math/w_sqrtf_compat.c: Likewise.
7368         * math/w_sqrtl_compat.c: Likewise.
7369         * math/w_tgamma_compat.c: Likewise.
7370         * math/w_tgammaf_compat.c: Likewise.
7371         * math/w_tgammal_compat.c: Likewise.
7372         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
7373         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7374         * sysdeps/ieee754/k_standard.c: Likewise.
7375         * sysdeps/ieee754/k_standardf.c: Likewise.
7376         * sysdeps/ieee754/k_standardl.c: Likewise.
7377         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7378         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7379         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7380         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7381         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7382         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7383         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7384         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
7385         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7387         Likewise.
7388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7389         Likewise.
7390         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
7391         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7392         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7393         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7395 2017-08-21  Florian Weimer  <fweimer@redhat.com>
7397         [BZ #21864]
7398         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
7399         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
7400         Move before inclusion of ../Rules.
7402 2017-08-21  Florian Weimer  <fweimer@redhat.com>
7404         [BZ #21972]
7405         * assert/assert.h (assert): Use static_cast (bool) for C++.
7406         Use the ternary operator in the warning branch for GNU C.
7407         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
7408         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
7409         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
7410         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
7411         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
7413 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7415         [BZ #18822]
7416         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7417         (__syscall_clock_gettime): Add attribute_hidden.
7418         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
7419         (__start_context): Likewise.
7421 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7423         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7424         building libc.a.
7425         (hidden_proto): Likewise.
7426         (hidden_tls_proto): Likewise.
7427         (__hidden_proto): Likewise.
7429 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7431         * include/libc-symbols.h (attribute_hidden): Enable hidden
7432         visibility in libc.a compiled with PIE.
7434 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7436         [BZ #18822]
7437         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
7438         Add attribute_hidden.
7440 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7442         [BZ #21864]
7443         * Makerules (all-nonlib): Add $(others-extras).
7444         * catgets/Makefile (others-extras): New.
7445         * elf/Makefile (others-extras): Likewise.
7446         * nss/Makefile (others-extras): Likewise.
7448 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7450         [BZ #18822]
7451         * csu/libc-start.c (__libc_multiple_libcs): Removed.
7452         * elf/dl-open.c: Include <libc-internal.h>.
7453         (__libc_multiple_libcs): Removed.
7454         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
7455         <hp-timing.h>.
7456         * include/libc-internal.h (__libc_multiple_libcs): New.
7457         * misc/sbrk.c: Include <libc-internal.h>.
7458         (__libc_multiple_libcs): Removed.
7460 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7462         [BZ #18822]
7463         * grp/initgroups.c (__nss_group_database): Removed.
7464         (__nss_initgroups_database): Likewise.
7465         * nscd/gai.c (__nss_hosts_database): Likewise.
7466         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
7467         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7468         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7469         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7470         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
7471         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
7472         attribute_hidden.
7473         * nss/nsswitch.c (__nss_database_custom): Define only if
7474         USE_NSCD is defined.
7475         (__nss_configure_lookup): Use __nss_database_custom only if
7476         USE_NSCD is defined.
7477         * nss/nsswitch.h (__nss_database_custom): Declare only if
7478         USE_NSCD is defined.  Add attribute_hidden.
7479         (__nss_setent): Add attribute_hidden.
7480         (__nss_endent): Likewise.
7481         (__nss_getent_r): Likewise.
7482         (__nss_getent): Likewise.
7483         (DEFINE_DATABASE): Declare __nss_##arg##_database.
7485 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7487         [BZ #18822]
7488         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
7489         libc_hidden_proto and libc_hidden_def.
7491 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7493         [BZ #18822]
7494         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
7495         Add libc_hidden_proto.
7496         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
7497         Add libc_hidden_def.
7499 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7501         [BZ #21974]
7502         * gmon/Makefile (routines): Remove bb_init_func and
7503         bb_exit_func.
7504         (elide-routines.os): Removed.
7505         * gmon/bb_exit_func.c: Likewise.
7506         * gmon/bb_init_func.c: Likewise.
7507         * include/sys/gmon.h (__bb): Likewise.
7508         (__bb_init_func): Likewise.
7509         (__bb_exit_func): Likewise.
7510         * sysdeps/alpha/bb_init_func.S: Likewise.
7512 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7514         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
7515         * include/setjmp.h (____longjmp_chk): Here.  Add
7516         attribute_hidden.
7518 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7520         [BZ #18822]
7521         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
7522         attribute_hidden.
7523         (__strspn_sse2): Likewise.
7525 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7527         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
7528         (close_not_cancel_no_status): Likewise.
7529         (__close_nocancel): New macro.
7530         (__close_nocancel_nostatus): Likewise.
7531         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
7532         macro.
7533         (close_not_cancel): Likewise.
7534         (close_not_cancel_no_status): Likewise.
7535         (__close_nocancel): New prototype.
7536         (__close_nocancel_nostatus): New function.
7537         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
7538         * catgets/open_catalog.c (__open_catalog): Replace
7539         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
7540         * gmon/gmon.c (write_gmon): Likewise.
7541         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7542         * intl/loadmsgcat.c (close): Likewise.
7543         * io/ftw.c (open_dir_stream): Likewise.
7544         (ftw_startup): Likewise.
7545         * libio/fileops.c (_IO_file_open): Likewise.
7546         (_IO_file_close_mmap): Likewise.
7547         (_IO_file_close): Likewise.
7548         * libio/iopopen.c (_IO_dup2): Likewise.
7549         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7550         * locale/loadlocale.c (_nl_load_locale): Likewise.
7551         * login/utmp_file.c (pututline_file): Likewise.
7552         (endutent_file): Likewise.
7553         * misc/daemon.c (daemon): Likewise.
7554         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7555         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7556         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7557         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7558         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7559         * nscd/nscd_helper.c (open_socket): Likewise.
7560         (__nscd_open_socket): Likewise.
7561         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7562         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
7563         (__nscd_innetgr): Likewise.
7564         * nss/nss_db/db-open.c (internal_setent): Likewise.
7565         * resolv/res-close.c (__res_iclose): Likewise.
7566         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
7567         * sysdeps/posix/closedir.c (__closedir): Likewise.
7568         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
7569         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7570         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7571         (opendir_tail): Likewise.
7572         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7573         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
7574         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7575         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
7576         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7577         (gethostid): Likewise.
7578         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7579         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7580         Likewise.
7581         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7582         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
7583         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7584         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7585         Likewise.
7586         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
7587         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
7588         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7589         Likewise.
7590         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
7591         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7592         Likewise.
7593         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7594         Likewise.
7595         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7596         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7597         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7598         __close_nocancel.
7600         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
7601         (openat_not_cancel_3): Likewise.
7602         (openat64_not_cancel_3): Likewise).
7603         (openat_not_cancel_3): Likewise).
7604         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
7605         macro.
7606         (openat_not_cancel_3): Likewise.
7607         (openat64_not_cancel): Likewise.
7608         (openat64_not_cancel_3): Likewise.
7609         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
7610         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
7611         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
7612         __open{64}_nocancel.
7613         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7614         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7615         * sysdeps/posix/opendir.c (__opendirat): Likewise.
7617 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7619         [BZ #18822]
7620         * include/argz.h (__argz_create_sep): New function prototype.
7621         (__argz_append): Likewise.
7622         (__argz_add): Likewise.
7623         (__argz_add_sep): Likewise.
7624         (__argz_delete): Likewise.
7625         (__argz_insert): Likewise.
7626         (__argz_replace): Likewise.
7627         * string/argz.h (__argz_create_sep): Removed.
7628         (__argz_append): Likewise.
7629         (__argz_add): Likewise.
7630         (__argz_add_sep): Likewise.
7631         (__argz_delete): Likewise.
7632         (__argz_insert): Likewise.
7633         (__argz_replace): Likewise.
7635 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7637         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
7638         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
7639         (GNU_PROPERTY_STACK_SIZE): Likewie.
7640         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
7641         (GNU_PROPERTY_LOPROC): Likewise.
7642         (GNU_PROPERTY_HIPROC): Likewise.
7643         (GNU_PROPERTY_LOUSER): Likewise.
7644         (GNU_PROPERTY_HIUSER): Likewise.
7645         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
7646         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
7647         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
7648         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
7649         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
7650         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
7651         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
7652         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
7653         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
7654         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
7655         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
7656         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
7657         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
7658         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
7659         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
7660         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
7661         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
7662         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
7663         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
7664         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
7665         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
7666         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
7667         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
7669 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7671         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
7672         in C++ mode.
7674 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7676         [BZ #21930]
7677         * math/math.h (isinf): Check if in C or C++ mode before using
7678         __builtin_types_compatible_p, since this is a C mode feature.
7680 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7682         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
7683         (__write_nocancel): New macro.
7684         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
7685         Rewrite as a function prototype.
7686         (write_not_cancel): Remove macro.
7687         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
7688         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
7689         (write_gmon): Likewise.
7690         * libio/fileops.c (_IO_new_file_write): Likewise.
7691         * login/utmp_file.c (pututline_file): Likewise.
7692         (updwtmp_file): Likewise.
7693         * stdio-common/psiginfo.c (psiginfo): Likewise.
7694         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7695         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7696         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7697         Likewise.
7698         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7699         Likewise.
7701         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
7702         (__read_nocancel): New macro.
7703         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7704         __read_nocancel.
7705         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
7706         macro.
7707         (__read_nocancel): New prototype.
7708         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
7709         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
7710         with __read_nocancel.
7711         * intl/loadmsgcat.c (read): Likewise.
7712         * libio/fileops.c (_IO_file_read): Likewise.
7713         * locale/loadlocale.c (_nl_load_locale): Likewise.
7714         * login/utmp_file.c (getutent_r_file): Likewise.
7715         (internal_getut_r): Likewise.
7716         (getutline_r_file): Likewise.
7717         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7718         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7719         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7720         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7721         Likewise.
7722         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
7723         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7724         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7725         Likewise.
7726         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7727         Likewise.
7728         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7729         Likewise.
7730         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7731         Likewise.
7732         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7734 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7736         [BZ #21966]
7737         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
7738         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
7739         usable.
7741 2017-08-17  DJ Delorie  <dj@redhat.com>
7743         * bug17079.c: Update to new test harness.
7744         * test-digits-dots.c: Likewise.
7745         * test-netdb.c: Likewise.
7746         * tst-field.c: Likewise.
7747         * tst-nss-getpwent.c: Likewise.
7748         * tst-nss-static.c: Likewise.
7749         * tst-nss-test1.c: Likewise.
7750         * tst-nss-test2.c: Likewise.
7751         * tst-nss-test3.c: Likewise.
7752         * tst-nss-test4.c: Likewise.
7753         * tst-nss-test5.c: Likewise.
7755 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7757         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
7758         (open_not_cancel_2): Likewise.
7759         (open_nocancel): New macro.
7760         (open64_nocancel): Likewise.
7761         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
7762         (open_not_cancel_2): Likewise.
7763         (__open_nocancel): New prototype.
7764         (__open64_nocancel): Likewise.
7765         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7766         __open_nocancel.
7767         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
7768         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
7769         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
7770         with __open_nocancel.
7771         * csu/check_fds.c (check_one_fd): Likewise.
7772         * gmon/gmon.c (write_gmon): Likewise.
7773         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
7774         * intl/loadmsgcat.c (open): Likewise.
7775         * libio/fileops.c (_IO_file_open): Likewise.
7776         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7777         * locale/loadlocale.c (_nl_load_locale): Likewise.
7778         * login/utmp_file.c (setutent_file): Likewise.
7779         * misc/daemon.c (daemon): Likewise.
7780         * nss/nss_db/db-open.c (internal_setent): Likewise.
7781         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7782         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
7783         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7784         (__opendir): Likewise.
7785         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7786         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7787         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7788         (gethostid): Likewise.
7789         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7790         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7791         Likewise.
7792         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7793         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
7794         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7795         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7796         Likewise.
7797         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7798         Likewise.
7799         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7800         Likewise.
7801         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
7802         Likewise.
7803         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7804         Likewise.
7805         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7806         Likewise.
7807         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7808         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7810 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
7812         * benchtests/bench-skeleton.c (main): Add support for
7813         latency benchmarking.
7814         * benchtests/scripts/bench.py: Add support for latency benchmarking.
7816 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
7818         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
7819         the startup object.
7821 2017-08-17  Florian Weimer  <fweimer@redhat.com>
7823         * include/sys/socket.h (__opensock): Remove internal_function.
7824         * socket/opensock.c (__opensock): Likewise.
7825         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
7827 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
7829         [BZ #21944]
7830         * signal/bits/types/__sigval_t.h: New file.
7831         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
7832         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
7833         and define sigval_t using __sigval_t.
7834         * include/bits/types/__sigval_t.h: New file.
7835         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
7836         instead of <bits/types/__sigval_t.h>.
7837         (struct sigevent): Use __sigval_t instead of sigval_t.
7838         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
7839         instead of <bits/types/__sigval_t.h>.
7840         (siginfo_t): Use __sigval_t instead of sigval_t.
7841         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
7842         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
7843         (struct sigevent): Use __sigval_t instead of sigval_t.
7844         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
7845         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
7846         (siginfo_t): Use __sigval_t instead of sigval_t.
7847         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
7849 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7851         * NEWS: Remove "[Add new features here]" for 2.27.
7853 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
7855         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
7856         libc.so.
7858 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7860         * NEWS: Mention x86-64 FMA optimization.
7862 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7864         [BZ #21912]
7865         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7866         Add e_expf-fma.
7867         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
7868         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
7869         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
7871 2017-08-16  Andreas Schwab  <schwab@suse.de>
7873         [BZ #16750]
7874         CVE-2009-5064
7875         * elf/ldd.bash.in: Never run file directly.
7877 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
7879         [BZ #21955]
7880         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
7881         (L(SP_INF_0)): Likewise.
7883 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7885         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
7886         run-built-tests.
7888 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7890         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
7891         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
7892         BROKEN_THREAD_SIGNALS code.
7893         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
7894         request_list): Remove caller_pid member used for
7895         BROKEN_THREAD_SIGNALS.
7896         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
7897         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7898         Remove BROKEN_THREAD_SIGNALS support.
7899         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7900         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
7902 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7904         * gmon/Makefile (tests): Add tst-gmon.
7905         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
7906         Set.
7907         (tests-special): Add tst-gmon-prof.out.
7908         (tst-gmon.out): Depend on clean-tst-gmon-data.
7909         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
7910         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
7911         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
7912         startup object.
7913         * aclocal.m4 (GPROF): Set and substitute.
7914         * config.amke.in (GPROF): Set.
7915         * configure: Regenerate.
7917 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
7919         * elf/elf.h A (NT_PPC_TAR): New macro.
7920         (NT_PPC_PPR): Likewise.
7921         (NT_PPC_DSCR): Likewise.
7922         (NT_PPC_EBB): Likewise.
7923         (NT_PPC_PMU): Likewise.
7924         (NT_PPC_TM_CGPR): Likewise.
7925         (NT_PPC_TM_CFPR): Likewise.
7926         (NT_PPC_TM_CVMX): Likewise.
7927         (NT_PPC_TM_CVSX): Likewise.
7928         (NT_PPC_TM_SPR): Likewise.
7929         (NT_PPC_TM_CTAR): Likewise.
7930         (NT_PPC_TM_CPPR): Likewise.
7931         (NT_PPC_TM_CDSCR): Likewise.
7933 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7935         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
7936         regparm (2) instead of internal_function.
7937         (_MCOUNT_DECL): Adjust.
7939 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
7941         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
7942         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
7944 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
7946         * conform/data/sys/wait.h-data (si_value): Do not expect for
7947         XPG42.
7949 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7951         [BZ #21962]
7952         NSS: Create stubs for accidentally exported lookup functions.
7953         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
7954         Remove declaration.
7955         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7956         (ether_hostton): Call __nss_ethers_lookup2 instead.
7957         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
7958         (ether_ntohost): Call __nss_ethers_lookup2 instead.
7959         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
7960         (setup): Call __nss_netgroup_lookup2 instead.
7961         * nss/Makefile (routines): Add compat-lookup.
7962         * nss/Versions (GLIBC_2.27): Add symbol version.
7963         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
7964         (DB_COMPAT_FCT): Remove.
7965         * nss/compat-lookup.c: New file.
7966         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
7967         from databases.def.
7968         * nss/service-lookup.c (NO_COMPAT): Remove definition.
7969         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
7970         (netname2user): Call __nss_publickey_lookup2 instead.
7971         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
7972         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
7973         instead.
7975 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7976             Sergei Trofimovich  <slyfox@inbox.ru>
7978         [BZ #21908]
7979         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
7980         Rename to MMAP2_PAGE_UNIT.
7981         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
7982         __OFF_T_MATCHES_OFF64_T is not defined.
7983         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
7984         uint64_t.
7985         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
7986         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
7988 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7990         i386: Do not set internal_function.
7991         * config.h.in (USE_REGPARMS, internal_function): Remove.
7992         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
7993         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
7995 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7997         * elf/dl-init.c (_dl_init): Remove internal_function.
7998         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
7999         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
8001 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8003         * elf/rtld.c (_dl_start): Remove internal_function.
8004         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
8005         _dl_start.
8007 2017-08-14  Florian Weimer  <fweimer@redhat.com>
8009         * elf/dl-fini.c (_dl_fini): Remove internal_function
8010         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
8012 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
8014         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
8015         (bit_cpu_SHSTK): Likewise.
8016         (index_cpu_IBT): Likewise.
8017         (index_cpu_SHSTK): Likewise.
8018         (reg_IBT): Likewise.
8019         (reg_SHSTK): Likewise.
8020         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8021         Handle index_cpu_IBT and index_cpu_SHSTK.
8023 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
8025         [BZ #19982]
8026         * po/fr.po: Fix spelling mistake.
8028 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8030         * elf/dl-addr.c (_dl_addr): Remove internal_function.
8031         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
8032         (_dl_catch_error, _dl_receive_error): Likewise.
8033         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
8034         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
8035         (_dl_deallocate_tls): Likewise.
8036         * include/dlfcn.h (_dl_addr): Likewise.
8037         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
8038         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
8039         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
8040         Likewise.
8042 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8044         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
8045         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
8046         internal_function.
8047         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
8049 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8051         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
8052         internal_function.
8053         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
8054         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
8055         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
8056         internal_function from _dl_make_stack_executable_hook member.
8057         (_dl_make_stack_executable): Remove internal_function.
8058         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
8059         Likewise.
8060         * sysdeps/unix/sysv/linux/dl-execstack.c
8061         (_dl_make_stack_executable): Likewise.
8063 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8065         * sysdeps/unix/sysv/linux/netlinkaccess.h
8066         (__netlink_assert_response): Remove internal_function.
8067         * sysdeps/unix/sysv/linux/netlink_assert_response.c
8068         (__netlink_assert_response): Likewise.
8070 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8072         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
8073         internal_function.
8074         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
8076 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8078         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
8079         internal_function.
8080         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
8081         * inet/netgroup.h (__internal_setnetgrent)
8082         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8083         * inet/getnetgrent_r.c (__internal_setnetgrent)
8084         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
8085         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
8086         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
8087         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
8088         * nss/nsswitch.h (db_lookup_function): Likewise.
8090 2017-08-13  Florian Weimer  <fweimer@redhat.com>
8092         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
8093         Remove internal_function.
8094         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
8095         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
8096         message argument on the stack.
8097         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
8098         Likeweise.
8100 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
8102         Adapt test case data to the changes in the thousands
8103         separators.
8105         [BZ #20756]
8106         * localedata/tst-langinfo.sh: Adapt test case data.
8107         * stdlib/tst-strfmon_l.c: Likewise.
8108         * stdlib/tst-strtod4.c: Likewise.
8109         * stdlib/tst-strtod5i.c: Likewise.
8111 2017-08-11  Florian Weimer  <fweimer@redhat.com>
8113         [BZ #21242]
8114         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
8115         Suppress pedantic warning resulting from statement expression.
8116         (__ASSERT_FUNCTION): Add missing __extension__.
8118 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8120         * benchtests/bench-memmove-large.c: Print output in JSON
8121         format.
8122         * benchtests/bench-memmove.c: Likewise.
8124         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
8125         * benchtests/bench-memchr.c (do_one_test): Likewise.
8126         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
8127         * benchtests/bench-memcpy.c (do_one_test): Likewise.
8128         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
8129         * benchtests/bench-memmove.c (do_one_test): Likewise.
8130         * benchtests/bench-memset-large.c (do_one_test): Likewise.
8131         * benchtests/bench-memset.c (do_one_test): Likewise.
8132         * benchtests/bench-string.h (test_init): Remove memsets.
8134 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8136         * manual/lang.texi
8137         (Computing the Width of an Integer Data Type): Rename section to
8138         "Width of an Integer Type".  Remove inaccurate statement regarding
8139         lack of C language facilities for determining width of integer
8140         types, and reorder content to improve flow and context of
8141         discussion.
8143 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
8145         * lang.texi (va_copy): Change standard from ISO to C99.
8146         (__va_copy): Add standard and header annotation.
8147         Update description for clarity of origins and current use.
8149 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
8151         [BZ #21941]
8152         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
8153         xssqrtqp requires operands to be in Vector Registers
8154         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
8155         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
8156         (__ieee754_sqrtf128): Likewise.
8158 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8160         * sysdeps/aarch64/memcmp.S (memcmp):
8161         Rewrite of optimized memcmp.
8163 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8165         Introduce ld.so exceptions.
8166         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
8167         (_dl_exception_create, _dl_exception_create_format)
8168         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
8169         (_dl_catch_exception): Declare.
8170         (_dl_catch_error): Update comment.
8171         * elf/dl-error-skeleton.c (struct catch): Replace objname,
8172         errstring, malloced members with exception member.
8173         (_dl_out_of_memory): Remove.
8174         (fatal_error): New function, extracted from _dl_signal_error.
8175         (_dl_signal_exception, _dl_signal_cexception): New functions.
8176         (_dl_signal_error): Call _dl_exception_create to allocate an
8177         exception object.
8178         (_dl_catch_exception): New function, based on _dl_catch_error.
8179         (_dl_catch_error): Implement using _dl_catch_exception.
8180         * elf/dl-exception.c: New file.
8181         * elf/Makefile (dl-routines): Add dl-exception.
8182         (elide-routines.os): Likewise.
8183         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
8184         _dl_exception_create_format, _dl_exception_free.
8185         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
8186         _dl_signal_exception.
8187         * elf/dl-lookup.c (make_string): Remove.
8188         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
8189         _dl_signal_cexception, _dl_exception_free.
8190         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
8191         _dl_signal_exception.
8192         * elf/dl-sym.c (do_sym): Likewise.
8193         * elf/dl-version.c (make_string): Remove.
8194         (match_symbol): Use _dl_exception_create_format,
8195         _dl_signal_cexception, _dl_exception_free.
8196         (_dl_check_map_versions): Likewise.
8197         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
8198         _dl_catch_exception.
8199         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8200         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8201         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8202         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8203         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8204         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8205         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8206         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8207         Likewise.
8208         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8210         (ld.so): Likewise.
8211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8212         (ld.so): Likewise.
8213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8214         Likewise.
8215         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8216         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8217         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8218         Likewise.
8219         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8220         Likewise.
8221         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8223 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8225         * inet/net-internal.h (__inet6_scopeid_pton): Remove
8226         attribute_hidden, internal_function.
8227         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
8228         internal_function.
8230 2017-08-10  Florian Weimer  <fweimer@redhat.com>
8232         * malloc/malloc.c (get_max_fast): Reimplement as an inline
8233         function which calls __builtin_unreachable.
8235 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
8237         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
8238         Indian monetary formatting
8239         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
8240         test cases.
8242 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
8244         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
8245         Fix typo in comment.
8247         [BZ #21928]
8248         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
8249         PTRACE_SEIZE_DEVEL): Remove.
8250         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
8251         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8252         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8253         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8254         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8256 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
8258         * posix/bits/types.h (__qaddr_t): Remove.
8260         [BZ #21457]
8261         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
8262         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8263         __glibc_reserved1.
8264         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
8265         (ucontext_t): Use __ctx with uc_flags.
8266         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
8267         (__ctxt): Likewise.
8268         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8269         __glibc_reserved1.
8270         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
8271         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8272         __glibc_reserved1.
8273         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
8274         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8275         __glibc_reserved1.
8276         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
8277         macro.
8278         (ucontext_t): Use __ctx with uc_flags.
8279         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
8280         (ucontext_t): Use __ctx with uc_flags.
8281         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
8282         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
8283         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
8284         (ucontext_t): Use __ctx with uc_flags.
8285         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
8286         undefine further down.
8287         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8288         __glibc_reserved1.
8289         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
8290         undefine further down.
8291         (ucontext_t): Use __ctx with uc_flags.
8292         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
8293         undefine further down.
8294         (ucontext_t): Use __ctx with uc_flags.
8295         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
8296         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
8297         Rename uc_pad to __glibc_reserved1.
8298         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
8299         undefine further down.
8300         (ucontext_t): Use __ctx with uc_flags.
8301         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
8302         further down.
8303         (ucontext_t): Use __ctx with uc_flags.
8304         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
8305         __ctx with uc_flags.
8306         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
8307         (ucontext_t): Use __ctx with uc_flags.
8308         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
8309         __ctx with uc_flags.
8311 2017-08-09  Florian Weimer  <fweimer@redhat.com>
8313         [BZ #21932]
8314         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
8315         before early return.
8317 2017-08-09  Andreas Schwab  <schwab@suse.de>
8319         [BZ #21041]
8320         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
8321         renamed alias.
8323         [BZ #21041]
8324         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
8325         tst-compat-forwarder.
8326         (modules-names): Add tst-compat-forwarder-mod.
8327         ($(objpfx)tst-compat-forwarder): Depend on
8328         $(objpfx)tst-compat-forwarder-mod.so.
8329         * nptl/tst-compat-forwarder.c: New file.
8330         * nptl/tst-compat-forwarder-mod.c: New file.
8332 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8334         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
8335         comments.
8337         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
8338         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8339         memcpy_falkor.
8340         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8341         Bump.
8342         (__libc_ifunc_impl_list): Add __memcpy_falkor.
8343         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
8344         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
8345         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8346         Add falkor.
8347         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
8348         New macro.
8350 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8352         [BZ #759]
8353         * manual/setjmp.texi (getcontex): Document uc_stack value
8354         compatibility differences.
8356 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
8358         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
8359         (old_malloc_hook): Likewise.
8360         (old_memalign_hook): Likewise.
8361         (old_realloc_hook): Likewise.
8362         (struct hdr): Likewise.
8363         (flood): Likewise.
8364         (freehook): Likewise.
8365         (mallochook): Likewise.
8366         (memalignhook): Likewise.
8367         (reallochook): Likewise.
8368         (mprobe): Likewise.
8369         * malloc/mtrace.c (mallwatch): Likewise.
8370         (tr_old_free_hook): Likewise.
8371         (tr_old_malloc_hook): Likewise.
8372         (tr_old_realloc_hook): Likewise.
8373         (tr_old_memalign_hook): Likewise.
8374         (tr_where): Likewise.
8375         (lock_and_info): Likewise.
8376         (tr_freehook): Likewise.
8377         (tr_mallochook): Likewise.
8378         (tr_reallochook): Likewise.
8379         (tr_memalignhook): Likewise.
8380         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
8381         * misc/mmap.c (__mmap): Likewise.
8382         * misc/mmap64.c (__mmap64): Likewise.
8383         * misc/mprotect.c (__mprotect): Likewise.
8384         * misc/msync.c (msync): Likewise.
8385         * misc/munmap.c (__munmap): Likewise.
8386         * posix/posix_madvise.c (posix_madvise): Likewise.
8387         * socket/send.c (__send): Likewise.
8388         * socket/sendto.c (__sendto): Likewise.
8389         * socket/setsockopt.c (__setsockopt): Likewise.
8390         * string/memcmp.c (__ptr_t): Remove macro.
8391         (MEMCMP): Use void * instead of ptr_t.
8392         * string/memrchr.c (__ptr_t): Remove macro.
8393         (__memrchr): Use void * instead of ptr_t.
8394         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
8395         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
8396         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
8397         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
8398         * sysdeps/mach/msync.c (msync): Likewise.
8399         * sysdeps/mach/munmap.c (__munmap): Likewise.
8400         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
8401         Likewise.
8402         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8403         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
8404         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
8405         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
8406         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
8407         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
8408         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
8409         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
8410         Likewise.
8411         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
8412         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
8413         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
8414         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
8415         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
8416         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
8417         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
8418         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
8419         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
8420         Likewise.
8421         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
8422         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
8423         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
8424         (MEMCMP): Use void * instead of ptr_t.
8425         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
8426         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
8428 2017-08-08  Florian Weimer  <fweimer@redhat.com>
8430         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
8431         return statement.
8433 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
8435         [BZ #21913]
8436         * csu/libc-tls.c: Include <startup.h> first.
8437         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
8438         * elf/dl-tunables.c: Include <startup.h> first.
8439         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
8440         * sysdeps/generic/startup.h: New file.
8441         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
8442         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
8443         (I386_USE_SYSENTER): New.  Defined to 0.
8445 2017-08-08  Andreas Schwab  <schwab@suse.de>
8447         [BZ #21041]
8448         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
8449         * nptl/pt-system.c (system): Likewise.
8451 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8453         [BZ #21780]
8454         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
8455         EOPNOTSUPP.
8456         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
8457         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
8458         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
8459         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
8460         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8461         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8462         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8464 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
8466         [BZ #21899]
8467         * bits/sigaction.h (struct sigaction): Define sa_handler and
8468         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
8469         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8470         [__USE_XOPEN_EXTENDED].
8471         (SA_RESTART): Likewise.
8472         (SA_NODEFER): Likewise.
8473         (SA_RESETHAND): Likewise.
8474         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
8475         (struct sigaction): Define sa_handler and sa_sigaction using union
8476         also for [__USE_XOPEN_EXTENDED].
8477         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8478         [__USE_XOPEN_EXTENDED].
8479         (SA_RESTART): Likewise.
8480         (SA_NODEFER): Likewise.
8481         (SA_RESETHAND): Likewise.
8482         * sysdeps/unix/sysv/linux/bits/sigaction.h
8483         (struct sigaction): Define sa_handler and sa_sigaction using union
8484         also for [__USE_XOPEN_EXTENDED].
8485         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8486         [__USE_XOPEN_EXTENDED].
8487         (SA_RESTART): Likewise.
8488         (SA_NODEFER): Likewise.
8489         (SA_RESETHAND): Likewise.
8490         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
8491         (struct sigaction): Define sa_handler and sa_sigaction using union
8492         also for [__USE_XOPEN_EXTENDED].
8493         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8494         [__USE_XOPEN_EXTENDED].
8495         (SA_RESTART): Likewise.
8496         (SA_NODEFER): Likewise.
8497         (SA_RESETHAND): Likewise.
8498         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
8499         (struct sigaction): Define sa_handler and sa_sigaction using union
8500         also for [__USE_XOPEN_EXTENDED].
8501         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8502         [__USE_XOPEN_EXTENDED].
8503         (SA_RESTART): Likewise.
8504         (SA_NODEFER): Likewise.
8505         (SA_RESETHAND): Likewise.
8506         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
8507         (struct sigaction): Define sa_handler and sa_sigaction using union
8508         also for [__USE_XOPEN_EXTENDED].
8509         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8510         [__USE_XOPEN_EXTENDED].
8511         (SA_RESTART): Likewise.
8512         (SA_NODEFER): Likewise.
8513         (SA_RESETHAND): Likewise.
8514         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
8515         (struct sigaction): Define sa_handler and sa_sigaction using union
8516         also for [__USE_XOPEN_EXTENDED].
8517         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8518         [__USE_XOPEN_EXTENDED].
8519         (SA_RESTART): Likewise.
8520         (SA_NODEFER): Likewise.
8521         (SA_RESETHAND): Likewise.
8522         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
8523         (struct sigaction): Define sa_handler and sa_sigaction using union
8524         also for [__USE_XOPEN_EXTENDED].
8525         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8526         [__USE_XOPEN_EXTENDED].
8527         (SA_RESTART): Likewise.
8528         (SA_NODEFER): Likewise.  Define directly rather than as alias.
8529         (SA_RESETHAND): Likewise.
8530         (SA_INTERRUPT): Define only for [__USE_MISC].
8531         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
8532         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
8533         [__USE_MISC].
8534         (SA_STACK): Define only for [__USE_MISC].
8535         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
8536         (struct sigaction): Define sa_handler and sa_sigaction using union
8537         also for [__USE_XOPEN_EXTENDED].
8538         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8539         [__USE_XOPEN_EXTENDED].
8540         (SA_RESTART): Likewise.
8541         (SA_NODEFER): Likewise.
8542         (SA_RESETHAND): Likewise.
8543         (SA_NOPTRACE): Define only for [__USE_MISC].
8545         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
8546         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
8547         (struct catalog_info): Likewise.
8548         * inet/htontest.c (lo): Likewise.
8549         (foo): Likewise.
8550         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8551         * inet/inet_net.c (inet_network): Likewise.
8552         * inet/inet_netof.c (inet_netof): Likewise.
8553         * inet/rcmd.c (__ivaliduser): Likewise.
8554         (iruserok): Likewise.
8555         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
8556         * locale/programs/locale-spec.c (locale_special): Likewise.
8557         * nis/nis_findserv.c (struct findserv_req): Likewise.
8558         (__nis_findfastest_with_timeout): Likewise.
8559         * nss/test-netdb.c (test_network): Likewise.
8560         * resolv/inet_neta.c (inet_neta): Likewise.
8561         * resolv/ns_date.c (ns_datetosecs): Likewise.
8562         (SECS_PER_DAY): Likewise.
8563         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
8564         Likewise.
8565         * resolv/res_comp.c (__putlong): Likewise.
8566         (__putshort): Likewise.
8567         (_getlong): Likewise.
8568         (_getshort): Likewise.
8569         * resolv/res_debug.c (p_time): Likewise.
8570         (precsize_ntoa): Likewise.
8571         (precsize_aton): Likewise.
8572         (latlon2ul): Likewise.
8573         (loc_aton): Likewise.
8574         (loc_ntoa): Likewise.
8575         * resolv/res_hconf.c (struct netaddr): Likewise.
8576         (_res_hconf_reorder_addrs): Likewise.
8577         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8578         (clnttcp_control): Likewise.
8579         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8580         (clntudp_control): Likewise.
8581         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8582         (clntunix_control): Likewise.
8583         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8584         * sunrpc/rpc/auth.h (union des_block): Likewise.
8585         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
8586         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
8587         (xdrrec_create): Likewise.
8588         (xdrrec_endofrecord): Likewise.
8589         (flush_out): Likewise.
8590         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
8591         (xdrstdio_putlong): Likewise.
8592         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
8593         Likewise.
8595         * misc/sys/cdefs.h (__long_double_t): Remove.
8596         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
8597         instead of __long_double_t,
8598         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
8600 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8602         * benchtests/scripts/compare_strings.py: Avoid display error when
8603         running on a text terminal.
8605         * benchtests/scripts/compare_strings.py (main): Add an
8606         optional -base option.
8607         (process_results): New argument base_func.
8609         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
8610         hardcoding memcpy.
8611         * benchtests/bench-memcpy-large.c (test_name): Likewise.
8612         * benchtests/bench-memcpy-random.c (test_name): Likewise.
8614 2017-08-07  Andreas Schwab  <schwab@suse.de>
8616         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
8617         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
8618         * intl/Makefile ($(objpfx)tst-gettext.out)
8619         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
8620         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
8621         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
8622         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
8623         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
8624         * posix/Makefile ($(objpfx)globtest.out)
8625         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
8626         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
8627         ($(objpfx)tst-printf.out): Likewise.
8628         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
8629         ($(objpfx)tst-setcontext3.out): Likewise.
8631 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8633         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8634         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
8635         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
8636         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
8637         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
8638         and mptan-fma.
8639         (CFLAGS-doasin-fma.c): New.
8640         (CFLAGS-dosincos-fma.c): Likewise.
8641         (CFLAGS-e_asin-fma.c): Likewise.
8642         (CFLAGS-e_atan2-fma.c): Likewise.
8643         (CFLAGS-e_exp-fma.c): Likewise.
8644         (CFLAGS-e_log-fma.c): Likewise.
8645         (CFLAGS-e_pow-fma.c): Likewise.
8646         (CFLAGS-halfulp-fma.c): Likewise.
8647         (CFLAGS-mpa-fma.c): Likewise.
8648         (CFLAGS-mpatan-fma.c): Likewise.
8649         (CFLAGS-mpatan2-fma.c): Likewise.
8650         (CFLAGS-mpexp-fma.c): Likewise.
8651         (CFLAGS-mplog-fma.c): Likewise.
8652         (CFLAGS-mpsqrt-fma.c): Likewise.
8653         (CFLAGS-mptan-fma.c): Likewise.
8654         (CFLAGS-s_atan-fma.c): Likewise.
8655         (CFLAGS-sincos32-fma.c): Likewise.
8656         (CFLAGS-slowexp-fma.c): Likewise.
8657         (CFLAGS-slowpow-fma.c): Likewise.
8658         (CFLAGS-s_sin-fma.c): Likewise.
8659         (CFLAGS-s_tan-fma.c): Likewise.
8660         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
8661         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
8662         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
8663         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
8664         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
8665         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8666         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
8667         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
8668         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
8669         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
8670         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
8671         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
8672         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
8673         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8674         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8675         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
8676         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
8677         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
8678         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
8679         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
8680         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
8681         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
8682         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8683         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
8684         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8685         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8686         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8687         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
8688         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8689         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8690         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8692 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
8694         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
8695         (min_of_type_f): New macro.
8696         (min_of_type_): Likewise.
8697         (min_of_type_l): Likewise.
8698         (min_of_type_f128): Likewise.
8699         (min_of_type): Define using __MATH_TG and taking an expression
8700         argument.
8701         (math_check_force_underflow): Pass expression instead of type to
8702         min_of_type.
8703         (math_check_force_underflow_nonneg): Likewise.
8705 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8707         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8708         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
8709         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
8711 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8713         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8714         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
8715         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
8716         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
8717         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
8718         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
8719         memcpy_chk-nonshared, mempcpy_chk-nonshared,
8720         memmove_chk-nonshared and memset_chk-nonshared
8721         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
8722         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
8723         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
8724         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
8725         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
8726         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
8727         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
8728         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
8729         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
8730         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
8731         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
8732         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
8733         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
8734         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
8735         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
8736         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
8737         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
8738         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
8739         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
8740         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
8741         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
8742         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
8743         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
8744         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
8745         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
8746         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
8747         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
8748         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
8749         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
8750         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
8751         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
8752         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
8753         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
8754         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8755         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8756         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
8757         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
8758         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
8759         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
8760         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
8761         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
8762         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
8763         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
8764         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
8765         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
8766         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
8767         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
8768         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
8769         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
8770         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
8771         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
8772         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
8773         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
8774         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
8775         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
8776         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
8777         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
8778         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
8779         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
8780         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
8781         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
8782         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
8783         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
8784         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
8785         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
8786         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
8787         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
8788         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
8789         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
8790         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
8791         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
8792         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8793         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8794         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8795         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8796         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8797         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8798         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8799         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8800         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8801         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8802         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8803         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8804         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8805         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8806         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8807         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8808         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8809         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8810         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8811         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8812         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8813         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8814         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8815         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8816         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8817         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8818         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8819         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8820         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8821         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8822         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8823         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8824         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8825         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8826         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8827         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8828         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8830 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8832         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
8833         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
8834         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
8835         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
8836         svml_d_log2_core-sse2, svml_d_log4_core-sse,
8837         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
8838         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
8839         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
8840         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
8841         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
8842         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
8843         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
8844         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
8845         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
8846         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
8847         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
8848         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
8849         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
8850         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
8851         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
8852         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
8853         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
8854         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
8855         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
8856         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
8857         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
8858         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
8859         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
8860         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
8861         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
8862         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
8863         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
8864         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
8865         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
8866         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
8867         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
8868         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
8869         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
8870         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
8871         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
8872         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
8873         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
8874         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
8875         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
8876         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
8877         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
8878         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
8879         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
8880         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
8881         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
8882         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
8883         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
8884         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
8885         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
8886         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
8887         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
8888         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
8889         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
8890         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
8891         ...
8892         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
8893         Don't include <sysdep.h> nor <init-arch.h>.
8894         (_ZGVbN2v_cos): Removed.
8895         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
8896         ...
8897         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
8898         Don't include <sysdep.h> nor <init-arch.h>.
8899         (_ZGVdN4v_cos): Removed.
8900         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
8901         ...
8902         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
8903         Don't include <sysdep.h> nor <init-arch.h>.
8904         (_ZGVeN8v_cos): Removed.
8905         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
8906         ...
8907         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
8908         Don't include <sysdep.h> nor <init-arch.h>.
8909         (_ZGVbN2v_exp): Removed.
8910         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
8911         ...
8912         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
8913         Don't include <sysdep.h> nor <init-arch.h>.
8914         (_ZGVdN4v_exp): Removed.
8915         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
8916         ...
8917         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
8918         Don't include <sysdep.h> nor <init-arch.h>.
8919         (_ZGVeN8v_exp): Removed.
8920         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
8921         ...
8922         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
8923         Don't include <sysdep.h> nor <init-arch.h>.
8924         (_ZGVbN2v_log): Removed.
8925         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
8926         ...
8927         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
8928         Don't include <sysdep.h> nor <init-arch.h>.
8929         (_ZGVdN4v_log): Removed.
8930         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
8931         ...
8932         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
8933         Don't include <sysdep.h> nor <init-arch.h>.
8934         (_ZGVeN8v_log): Removed.
8935         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
8936         ...
8937         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
8938         Don't include <sysdep.h> nor <init-arch.h>.
8939         (_ZGVbN2vv_pow): Removed.
8940         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
8941         ...
8942         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
8943         Don't include <sysdep.h> nor <init-arch.h>.
8944         (_ZGVdN4vv_pow): Removed.
8945         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
8946         ...
8947         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
8948         Don't include <sysdep.h> nor <init-arch.h>.
8949         (_ZGVeN8vv_pow): Removed.
8950         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
8951         ...
8952         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
8953         Don't include <sysdep.h> nor <init-arch.h>.
8954         (_ZGVbN2v_sin): Removed.
8955         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
8956         ...
8957         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
8958         Don't include <sysdep.h> nor <init-arch.h>.
8959         (_ZGVbN4v_sin): Removed.
8960         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
8961         ...
8962         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
8963         Don't include <sysdep.h> nor <init-arch.h>.
8964         (_ZGVbN8v_sin): Removed.
8965         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
8966         ...
8967         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
8968         Don't include <sysdep.h> nor <init-arch.h>.
8969         (_ZGVbN2vvv_sincos): Removed.
8970         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
8971         ...
8972         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
8973         Don't include <sysdep.h> nor <init-arch.h>.
8974         (_ZGVdN4vvv_sincos): Removed.
8975         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
8976         ...
8977         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
8978         Don't include <sysdep.h> nor <init-arch.h>.
8979         (_ZGVeN8vvv_sincos): Removed.
8980         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
8981         ...
8982         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
8983         Don't include <sysdep.h> nor <init-arch.h>.
8984         (_ZGVeN16v_cosf): Removed.
8985         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
8986         ...
8987         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
8988         Don't include <sysdep.h> nor <init-arch.h>.
8989         (_ZGVbN4v_cosf): Removed.
8990         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
8991         ...
8992         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
8993         Don't include <sysdep.h> nor <init-arch.h>.
8994         (_ZGVdN8v_cosf): Removed.
8995         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
8996         ...
8997         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
8998         Don't include <sysdep.h> nor <init-arch.h>.
8999         (_ZGVeN16v_expf): Removed.
9000         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
9001         ...
9002         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
9003         Don't include <sysdep.h> nor <init-arch.h>.
9004         (_ZGVbN4v_expf): Removed.
9005         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
9006         ...
9007         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
9008         Don't include <sysdep.h> nor <init-arch.h>.
9009         (_ZGVdN8v_expf): Removed.
9010         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
9011         ...
9012         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
9013         Don't include <sysdep.h> nor <init-arch.h>.
9014         (_ZGVeN16v_logf): Removed.
9015         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
9016         ...
9017         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
9018         Don't include <sysdep.h> nor <init-arch.h>.
9019         (_ZGVbN4v_logf): Removed.
9020         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
9021         ...
9022         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
9023         Don't include <sysdep.h> nor <init-arch.h>.
9024         (_ZGVdN8v_logf): Removed.
9025         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
9026         ...
9027         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
9028         Don't include <sysdep.h> nor <init-arch.h>.
9029         (_ZGVeN16vv_powf): Removed.
9030         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
9031         ...
9032         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
9033         Don't include <sysdep.h> nor <init-arch.h>.
9034         (_ZGVbN4vv_powf): Removed.
9035         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
9036         ...
9037         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
9038         Don't include <sysdep.h> nor <init-arch.h>.
9039         (_ZGVdN8vv_powf): Removed.
9040         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
9041         ...
9042         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
9043         Don't include <sysdep.h> nor <init-arch.h>.
9044         (_ZGVeN16vvv_sincosf): Removed.
9045         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
9046         ...
9047         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
9048         Don't include <sysdep.h> nor <init-arch.h>.
9049         (_ZGVbN4vvv_sincosf): Removed.
9050         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
9051         ...
9052         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
9053         Don't include <sysdep.h> nor <init-arch.h>.
9054         (_ZGVdN8vvv_sincosf): Removed.
9055         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
9056         ...
9057         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
9058         Don't include <sysdep.h> nor <init-arch.h>.
9059         (_ZGVeN16v_sinf): Removed.
9060         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
9061         ...
9062         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
9063         Don't include <sysdep.h> nor <init-arch.h>.
9064         (_ZGVbN4v_sinf): Removed.
9065         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
9066         ...
9067         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
9068         Don't include <sysdep.h> nor <init-arch.h>.
9069         (_ZGVdN8v_sinf): Removed.
9071 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9073         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9074         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
9075         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
9076         s_rint-sse4_1 and s_rintf-sse4_1.
9077         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
9078         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9079         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9080         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9081         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9082         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
9083         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
9084         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9085         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9086         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
9087         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
9088         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9089         (__ceil): Removed.
9090         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
9091         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
9092         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9093         (__ceilf): Removed.
9094         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
9095         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
9096         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9097         (__floor): Removed.
9098         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
9099         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
9100         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9101         (__floorf): Removed.
9102         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
9103         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
9104         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9105         (__nearbyint): Removed.
9106         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
9107         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
9108         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9109         (__nearbyintf): Removed.
9110         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
9111         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
9112         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9113         (__rint): Removed.
9114         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
9115         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
9116         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
9117         (__rintf): Removed.
9119 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9121         * sysdeps/i386/start.S (_start): Check Check PIC instead of
9122         SHARED.  Avoid dynamic relocation against main in static PIE.
9124 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9126         [BZ #21815]
9127         * elf/Makefile (CFLAGS-tst-prelink.c): New.
9128         (LDFLAGS-tst-prelink): Likewise.
9130 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9132         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
9133         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
9134         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
9135         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
9136         (INTERNAL_SYSCALL_NCS): Likewise.
9137         (LOADARGS_1): Likewise.
9138         (LOADARGS_5): Likewise.
9139         (RESTOREARGS_1): Likewise.
9140         (RESTOREARGS_5): Likewise.
9142 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9144         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
9145         (MEMPCPY_SYMBOL): Likewise.
9146         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
9147         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
9148         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
9149         in libc.a.
9150         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9151         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
9152         Likewise.
9153         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
9154         (__hidden_ver1): Don't use in libc.a.
9155         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
9156         (__mempcpy): Don't create a weak alias in libc.a.
9157         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
9158         libc.a.
9159         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
9160         (__hidden_ver1): Don't use in libc.a.
9162 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9164         * config.make.in (have-insert): New.
9165         * configure.ac (libc_cv_insert): New.  Set to yes if linker
9166         supports INSERT in linker script.
9167         (AC_SUBST(libc_cv_insert): New.
9168         * configure: Regenerated.
9169         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
9170         if $(have-insert) == yes.
9172 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9174         * elf/Makefile (tests): Add vismain only if
9175         $(have-protected-data) == yes.
9176         (tests-pie): Likewise.
9178 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9180         [BZ #21871]
9181         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
9182         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
9184 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
9186         [BZ #21790]
9187         * sysdeps/i386/i586/memset.S
9188         (__memset_zero_constant_len_parameter): Removed.
9189         * sysdeps/i386/i686/memset.S
9190         (__memset_zero_constant_len_parameter): Likewise.
9191         * sysdeps/i386/i686/multiarch/memset_chk.S
9192         (__memset_zero_constant_len_parameter): Likewise.
9193         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
9194         Likewise.
9196 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9198         * stdlib/getentropy.c (getentropy): Change return type to int.
9200 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
9202         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
9204 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
9206         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
9207         u_intN_t.
9208         * math/s_nexttowardf.c (__nexttowardf): Likewise.
9209         * sysdeps/generic/math_private.h (ieee_double_shape_type):
9210         Likewise.
9211         (ieee_float_shape_type): Likewise.
9212         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
9213         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
9214         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
9215         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
9216         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
9217         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
9218         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
9219         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9220         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9221         Likewise.
9222         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9223         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9224         (__ieee754_yn): Likewise.
9225         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9226         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9227         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
9228         Likewise.
9229         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9230         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
9231         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
9232         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
9233         (__erfc): Likewise.
9234         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
9235         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
9236         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
9237         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
9238         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
9239         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
9240         Likewise.
9241         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
9242         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
9243         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
9244         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
9245         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9246         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
9247         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
9248         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
9249         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
9250         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
9251         (__issignaling): Likewise.
9252         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
9253         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
9254         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9255         Likewise.
9256         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9257         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
9258         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
9259         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
9260         Likewise.
9261         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
9262         Likewise.
9263         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
9264         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
9265         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
9266         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
9267         (__erfcf): Likewise.
9268         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
9269         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
9270         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
9271         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
9272         Likewise.
9273         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
9274         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
9275         Likewise.
9276         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9277         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
9278         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9279         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
9280         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
9281         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
9282         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
9283         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
9284         Likewise.
9285         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
9286         Likewise.
9287         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
9288         Likewise.
9289         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
9290         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9291         Likewise.
9292         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9293         Likewise.
9294         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9295         (__ieee754_ynl): Likewise.
9296         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9297         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
9298         Likewise.
9299         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
9300         Likewise.
9301         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
9302         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
9303         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9304         Likewise.
9305         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
9306         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
9307         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
9308         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
9309         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
9310         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
9311         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
9312         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
9313         Likewise.
9314         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
9315         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
9316         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
9317         Likewise.
9318         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9319         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
9320         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9321         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
9322         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
9323         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9324         Likewise.
9325         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
9326         Likewise.
9327         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9328         Likewise.
9329         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9330         Likewise.
9331         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
9332         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
9333         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9334         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
9335         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
9336         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
9337         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
9338         Likewise.
9339         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9340         Likewise.
9341         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9342         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9343         Likewise.
9344         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
9345         (__ieee754_remainderl): Likewise.
9346         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9347         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9348         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
9349         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
9350         Likewise.
9351         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
9352         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9353         Likewise.
9354         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
9355         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
9356         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
9357         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
9358         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
9359         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9360         Likewise.
9361         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
9362         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
9363         (__ieee754_y0l): Likewise.
9364         (pzero): Likewise.
9365         (qzero): Likewise.
9366         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9367         (__ieee754_y1l): Likewise.
9368         (pone): Likewise.
9369         (qone): Likewise.
9370         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9371         (__ieee754_ynl): Likewise.
9372         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9373         (__ieee754_lgammal_r): Likewise.
9374         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
9375         Likewise.
9376         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
9377         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
9378         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
9379         (__erfcl): Likewise.
9380         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
9381         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
9382         Likewise.
9383         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9384         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
9385         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9386         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
9387         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
9388         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9389         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9390         Likewise.
9391         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
9392         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
9393         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
9394         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
9395         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9396         Likewise.
9397         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
9398         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
9399         Likewise.
9400         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
9401         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
9402         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
9403         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
9404         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9406 2017-08-03  Florian Weimer  <fweimer@redhat.com>
9408         [BZ #21885]
9409         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
9410         on memory allocation failure.
9412 2017-08-03  Alan Modra  <amodra@gmail.com>
9414         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
9415         tst-tlsopt-powerpc.c with function name change and no test harness.
9416         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
9417         Call tls_get_addr_opt_test.
9418         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
9419         (modules-names): Add mod-tlsopt-powerpc.
9420         (mod-tlsopt-powerpc.so-no-z-defs): Define.
9421         (tst-tlsopt-powerpc): Depend on .so.
9422         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
9423         define.  Expand use in TLS_GD and TLS_LD.
9425 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9427         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
9428         function.
9429         * sysdeps/posix/shm_open.c: Include <pthread.h>.
9431 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
9433         [BZ #21686]
9434         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
9435         comparing size with that of double.
9436         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9437         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9438         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9439         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9440         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9441         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
9442         unsigned __int128 types.
9444 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
9446         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
9447         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
9448         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
9449         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
9450         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
9452 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9454         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
9456 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9458         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
9459         of SHARED.
9460         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
9461         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9462         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9463         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9464         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9465         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9466         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9468 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
9470         [BZ #21685]
9471         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
9472         bit-field expressions passed to sizeof or typeof.
9473         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9474         (__TGMATH_F128): Likewise.
9475         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9476         (__TGMATH_CF128): Likewise.
9477         (__TGMATH_UNARY_REAL_ONLY): Likewise.
9478         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
9479         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
9480         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
9481         (__TGMATH_BINARY_REAL_ONLY): Likewise.
9482         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9483         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9484         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9485         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9486         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
9487         (__TGMATH_UNARY_REAL_IMAG): Likewise.
9488         (__TGMATH_UNARY_IMAG): Likewise.
9489         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9490         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9491         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
9492         type.
9493         (define_vars_for_type): Handle bit_field type specially.
9494         (Tests.__init__): Declare structure with bit-field element.
9496 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9498         [BZ #21791]
9499         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
9500         (MEMCPY_CHK): Define only if SHARED is defined.
9501         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
9502         Likewise.
9503         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
9504         Likewise.
9506 See ChangeLog.18 for earlier changes.