Add new log implementation
[platform/upstream/glibc.git] / ChangeLog
1 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2
3         * NEWS: Mention log improvement.
4         * math/Makefile (type-double-routines): Add e_log_data.
5         * sysdeps/i386/fpu/e_log_data.c: New file.
6         * sysdeps/ia64/fpu/e_log_data.c: New file.
7         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
8         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
10         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
11         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
13
14 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
15             Xuepeng Guo  <xuepeng.guo@intel.com>
16
17         [BZ #23606]
18         * sysdeps/i386/start.S: Include <sysdep.h>
19         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
20         enabled.  Add cfi_undefined (eip).
21
22 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
23
24         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
25         (MOVQ): Likewise.
26         (EXTRACT_WORDS64): Likewise.
27         (INSERT_WORDS64): Likewise.
28         (GET_FLOAT_WORD): Likewise.
29         (SET_FLOAT_WORD): Likewise.
30
31         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
32         argument.
33         (Config.build_gcc): Use --disable-libsanitizer for first GCC
34         build, but not for second build if --full-gcc.  Use
35         --enable-languages=all for second build if --full-gcc.
36         (get_parser): Add --full-gcc option.
37         (main): Update call to Context.
38
39 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
40
41         [BZ #10797]
42         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
43         Single Quotation Mark).
44         (thousands_sep): Likewise.
45         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
46         * localedata/locales/it_IT (thousands_sep): Use ".".
47         (grouping): Use "3;3".
48
49 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
50
51         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
52         x86_64 and i686 configs using --enable-obsolete-rpc
53         --enable-obsolete-nsl.
54
55 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
56
57         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
58
59 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
60
61         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
62         Increment size of new_argv by one.
63
64 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
65
66         [BZ #17426]
67         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
68         * localedata/locales/ar_IN (d_fmt): Likewise.
69         * localedata/locales/bhb_IN (d_fmt): Likewise.
70         * localedata/locales/bho_IN (d_fmt): Likewise.
71         * localedata/locales/bn_BD (d_fmt): Likewise.
72         * localedata/locales/bn_IN (d_fmt): Likewise.
73         * localedata/locales/doi_IN (d_fmt): Likewise.
74         * localedata/locales/gu_IN (d_fmt): Likewise.
75         * localedata/locales/hi_IN (d_fmt): Likewise.
76         * localedata/locales/hne_IN (d_fmt): Likewise.
77         * localedata/locales/kn_IN (d_fmt): Likewise.
78         * localedata/locales/mag_IN (d_fmt): Likewise.
79         * localedata/locales/mai_IN (d_fmt): Likewise.
80         * localedata/locales/mjw_IN (d_fmt): Likewise.
81         * localedata/locales/ml_IN (d_fmt): Likewise.
82         * localedata/locales/mni_IN (d_fmt): Likewise.
83         * localedata/locales/mr_IN (d_fmt): Likewise.
84         * localedata/locales/pa_IN (d_fmt): Likewise.
85         * localedata/locales/raj_IN (d_fmt): Likewise.
86         * localedata/locales/sat_IN (d_fmt): Likewise.
87         * localedata/locales/sd_IN (d_fmt): Likewise.
88         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
89         * localedata/locales/ta_IN (d_fmt): Likewise.
90         * localedata/locales/ta_LK (d_fmt): Likewise.
91         * localedata/locales/tcy_IN (d_fmt): Likewise.
92         * localedata/locales/ur_IN (d_fmt): Likewise.
93
94         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
95         * localedata/locales/ks_IN (d_fmt): Likewise.
96         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
97
98         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
99         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
100         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
101         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
102
103 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
104
105         * NEWS: Mention exp and exp2 improvements.
106         * math/Makefile (libm-support): Remove t_exp.
107         (type-double-routines): Add math_err and e_exp_data.
108         * sysdeps/aarch64/libm-test-ulps: Update.
109         * sysdeps/arm/libm-test-ulps: Update.
110         * sysdeps/i386/fpu/e_exp_data.c: New file.
111         * sysdeps/i386/fpu/math_err.c: New file.
112         * sysdeps/i386/fpu/t_exp.c: Remove.
113         * sysdeps/ia64/fpu/e_exp_data.c: New file.
114         * sysdeps/ia64/fpu/math_err.c: New file.
115         * sysdeps/ia64/fpu/t_exp.c: Remove.
116         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
117         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
118         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
119         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
120         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
121         * sysdeps/ieee754/dbl-64/math_config.h: New file.
122         * sysdeps/ieee754/dbl-64/math_err.c: New file.
123         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
124         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
125         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
126         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
127         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
128         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
129         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
130         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
131         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
132
133 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
134
135         * sysdeps/alpha/fpu/math_private.h: Remove.
136
137         * sysdeps/generic/math_private.h
138         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
139         Move this inline function ....
140         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
141         * include/math.h [!_ISOMAC]: To here....
142
143 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
144
145         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
146         code ....
147         [!FE_HAVE_ROUNDING_MODES]: And this code ....
148         * include/fenv.h [!_ISOMAC]: ... to here.
149         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
150         (feraiseexcept): Likewise.
151         * math/fromfp.h: Do not include <fenv_private.h>.
152         * math/s_cexp_template.c: Likewise.
153         * math/s_csin_template.c: Likewise.
154         * math/s_csinh_template.c: Likewise.
155         * math/s_ctan_template.c: Likewise.
156         * math/s_ctanh_template.c: Likewise.
157         * math/s_iseqsig_template.c: Likewise.
158         * math/w_acos_compat.c: Likewise.
159         * math/w_acosf_compat.c: Likewise.
160         * math/w_acosl_compat.c: Likewise.
161         * math/w_asin_compat.c: Likewise.
162         * math/w_asinf_compat.c: Likewise.
163         * math/w_asinl_compat.c: Likewise.
164         * math/w_j0_compat.c: Likewise.
165         * math/w_j0f_compat.c: Likewise.
166         * math/w_j0l_compat.c: Likewise.
167         * math/w_j1_compat.c: Likewise.
168         * math/w_j1f_compat.c: Likewise.
169         * math/w_j1l_compat.c: Likewise.
170         * math/w_jn_compat.c: Likewise.
171         * math/w_jnf_compat.c: Likewise.
172         * math/w_log10_compat.c: Likewise.
173         * math/w_log10f_compat.c: Likewise.
174         * math/w_log10l_compat.c: Likewise.
175         * math/w_log2_compat.c: Likewise.
176         * math/w_log2f_compat.c: Likewise.
177         * math/w_log2l_compat.c: Likewise.
178         * math/w_log_compat.c: Likewise.
179         * math/w_logf_compat.c: Likewise.
180         * math/w_logl_compat.c: Likewise.
181         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
182         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
183         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
184         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
185         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
186         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
187         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
188         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
189         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
190         * sysdeps/ieee754/k_standardl.c: Likewise.
191         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
192         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
193         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
194         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
195         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
196         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
197         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
198         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
199         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
200         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
201         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
202         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
203         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
204         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
205         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
206         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
207         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
208         * math/w_ilogb_template.c: Include <fenv.h> instead of
209         <fenv_private.h>.
210         * math/w_llogb_template.c: Likewise.
211         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
212         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
213
214 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
215
216         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
217         * math/fromfp.h: Include <fenv_private.h>.
218         * math/math-narrow.h: Likewise.
219         * math/s_cexp_template.c: Likewise.
220         * math/s_csin_template.c: Likewise.
221         * math/s_csinh_template.c: Likewise.
222         * math/s_ctan_template.c: Likewise.
223         * math/s_ctanh_template.c: Likewise.
224         * math/s_iseqsig_template.c: Likewise.
225         * math/w_acos_compat.c: Likewise.
226         * math/w_acosf_compat.c: Likewise.
227         * math/w_acosl_compat.c: Likewise.
228         * math/w_asin_compat.c: Likewise.
229         * math/w_asinf_compat.c: Likewise.
230         * math/w_asinl_compat.c: Likewise.
231         * math/w_ilogb_template.c: Likewise.
232         * math/w_j0_compat.c: Likewise.
233         * math/w_j0f_compat.c: Likewise.
234         * math/w_j0l_compat.c: Likewise.
235         * math/w_j1_compat.c: Likewise.
236         * math/w_j1f_compat.c: Likewise.
237         * math/w_j1l_compat.c: Likewise.
238         * math/w_jn_compat.c: Likewise.
239         * math/w_jnf_compat.c: Likewise.
240         * math/w_llogb_template.c: Likewise.
241         * math/w_log10_compat.c: Likewise.
242         * math/w_log10f_compat.c: Likewise.
243         * math/w_log10l_compat.c: Likewise.
244         * math/w_log2_compat.c: Likewise.
245         * math/w_log2f_compat.c: Likewise.
246         * math/w_log2l_compat.c: Likewise.
247         * math/w_log_compat.c: Likewise.
248         * math/w_logf_compat.c: Likewise.
249         * math/w_logl_compat.c: Likewise.
250         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
251         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
252         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
253         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
254         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
255         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
256         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
257         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
258         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
259         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
260         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
261         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
262         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
263         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
264         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
265         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
266         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
267         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
268         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
269         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
270         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
271         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
272         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
273         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
274         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
275         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
276         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
277         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
278         * sysdeps/ieee754/float128/float128_private.h: Likewise.
279         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
280         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
281         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
282         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
283         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
284         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
285         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
286         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
287         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
288         * sysdeps/ieee754/k_standardl.c: Likewise.
289         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
290         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
291         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
292         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
293         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
294         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
295         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
296         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
297         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
298         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
299         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
300         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
301         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
302         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
303         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
304         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
305         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
306         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
307         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
308         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
309         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
310         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
311         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
312         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
313         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
314         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
315         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
316         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
317         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
318         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
319         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
320         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
321         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
322         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
323         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
324         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
325         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
326         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
327         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
328         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
329         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
330         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
331         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
332         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
333         * sysdeps/riscv/rvd/s_finite.c: Likewise.
334         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
335         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
336         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
337         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
338         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
339         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
340         * sysdeps/riscv/rvf/fegetround.c: Likewise.
341         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
342         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
343         * sysdeps/riscv/rvf/fesetround.c: Likewise.
344         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
345         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
346         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
347         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
348         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
349         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
350         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
351         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
352         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
353         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
354         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
355         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
356         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
357         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
358         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
359         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
360
361 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
362
363         [BZ #20271]
364         * include/stdio.h (__libc_fatal): Mention newline in comment.
365         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
366         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
367         * nscd/initgrcache.c (addinitgroupsX): Likewise.
368         * nss/nsswitch.c (__nss_next2): Likewise.
369         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
370         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
371         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
372         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
373         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
374         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
375         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
376         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
377         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
378         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
379         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
380         * sysdeps/unix/sysv/linux/netlink_assert_response.c
381         (__netlink_assert_response): Likewise.
382
383 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
384
385         * conform/glibcconform.py: New file.
386         * conform/list-header-symbols.py: Likewise.
387         * conform/list-header-symbols.pl: Remove.
388         * conform/Makefile (tests-special): Only add linknamespace tests
389         if [PYTHON].
390         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
391
392 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
393
394         [BZ #23597]
395         * support/Makefile (libsupport-routines): Add
396         support_copy_file_range and xcopy_file_range.
397         * support/support.h: Include <sys/types.h>.
398         (support_copy_file_range): New prototype.
399         * support/support_copy_file_range.c: New file.  Copied and
400         modified from io/copy_file_range-compat.c.
401         * support/test-container.c (copy_one_file): Call xcopy_file_rang
402         instead of copy_file_range.
403         * support/xcopy_file_range.c: New file.
404         * support/xunistd.h (xcopy_file_range): New prototype.
405
406 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
407
408         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
409         xpthread_create and xpthread_join.
410
411 2018-08-30  Florian Weimer  <fweimer@redhat.com>
412
413         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
414
415 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
416
417         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
418         if malloc fails.
419
420 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
421
422         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
423         and minus_oflow as non-finite.
424
425 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
426
427         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
428         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
429         moved to fenv_private.h except for ...
430         (TOINT_INTRINSICS): Kept in math_private.h.
431         (roundtoint): Likewise.
432         (converttoint): Likewise.
433         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
434         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
435         * sysdeps/arm/math_private.h: Remove.
436         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
437         ....
438         * sysdeps/generic/math_private.h: ... this file.  Include
439         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
440         Include <fenv_private.h>.  Remove functions and macros moved to
441         fenv_private.h.
442         * sysdeps/i386/fpu/math_private.h: Remove.
443         * sysdeps/mips/math_private.h: Move to ....
444         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
445         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
446         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
447         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
448         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
449         * sysdeps/powerpc/fpu/math_private.h: Do not include
450         <fenv_private.h>.
451         * sysdeps/riscv/rvf/math_private.h: Move to ....
452         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
453         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
454         <fenv_private.h>.
455         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
456         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
457         * sysdeps/sparc/fpu/math_private.h: Remove.
458         * sysdeps/i386/fpu/fenv_private.h: Move to ....
459         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
460         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
461         <fenv_private.h>.
462         * sysdeps/x86_64/fpu/math_private.h: Do not include
463         <sysdeps/i386/fpu/fenv_private.h>.
464
465 2018-08-28  Florian Weimer  <fweimer@redhat.com>
466
467         [BZ #23578]
468         * posix/tst-regcomp-truncated.c: New file.
469         * posix/Makefile (tests): Add it.
470         (tst-regcomp-truncated.out): Depend on generated locales.
471
472 2018-08-28  Florian Weimer  <fweimer@redhat.com>
473
474         * support/test-container.c (main): Treat unshare failure with
475         EPERM as an unsupported test.
476
477 2018-08-28  Florian Weimer  <fweimer@redhat.com>
478
479         [BZ #23520]
480         nscd: Fix use-after-free in addgetnetgrentX and its callers.
481         * nscd/netgroupcache.c
482         (addgetnetgrentX): Add tofreep parameter.  Do not free
483         heap-allocated buffer.
484         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
485         (addgetnetgrentX_ignore): New function.
486         (addgetnetgrent): Call it.
487         (readdgetnetgrent): Likewise.
488
489 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
490
491         * string/memmem.c: Use memcmp for first match.
492
493 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
494
495         [BZ #17426]
496         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
497
498 2018-08-27  DJ Delorie  <dj@redhat.com>
499
500         * support/Makefile (others): Don't list programs explicitly as a
501         dependency of "others".
502
503 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
504
505         * sysdeps/generic/math-tests-trap-force.h: New file.
506         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
507         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
508         * sysdeps/powerpc/math-tests.h: Remove file.
509         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
510
511 2018-08-27 Martin Kuchta  <martin.kuchta@netapp.com>
512            Torvald Riegel  <triegel@redhat.com>
513
514         [BZ #23538]
515         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
516         Update r to include the set wake-request flag if waiters are
517         remaining after spinning.
518
519 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
520
521         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
522
523 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
524
525         [BZ #23578]
526         regex: fix uninitialized memory access
527         I introduced this bug into gnulib in commit
528         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
529         eventually it was merged into glibc.  The bug was found by
530         project-repo <bugs@feusi.co> and reported here:
531         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
532         Diagnosis and draft fix reported by Assaf Gordon here:
533         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
534         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
535         * posix/regex_internal.c (build_wcs_upper_buffer):
536         Fix bug when mbrtowc returns 0.
537
538 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
539
540         * po/be.po: Update translation.
541
542 2018-08-24  DJ Delorie  <dj@delorie.com>
543
544         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
545         $(libunwind).
546
547 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
548
549         [BZ #23400]
550         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
551         create temporary files in source tree.
552
553 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
554
555         * sysdeps/generic/math-tests-trap.h: New file.
556         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
557         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
558         * sysdeps/aarch64/math-tests.h: Remove file.
559         * sysdeps/arm/math-tests.h: Likewise.
560         * sysdeps/riscv/math-tests.h: Likewise.
561         * sysdeps/aarch64/math-tests-trap.h: New file.
562         * sysdeps/arm/math-tests-trap.h: Likewise.
563         * sysdeps/riscv/math-tests-trap.h: Likewise.
564
565 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
566
567         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
568         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
569         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
570         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
571         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
572         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
573         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
574         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
575         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
576         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
577         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
578         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
579         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
580         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
581         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
582         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
583         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
584         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
585
586 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
587
588         * sysdeps/generic/math-tests-exceptions.h: New file.
589         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
590         (EXCEPTION_TESTS_float): Do not define here.
591         (EXCEPTION_TESTS_double): Likewise.
592         (EXCEPTION_TESTS_long_double): Likewise.
593         (EXCEPTION_TESTS_float128): Likewise.
594         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
595         Likewise.
596         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
597         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
598         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
599         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
600         * sysdeps/mips/math-tests.h: Likewise.
601         * sysdeps/nios2/math-tests.h: Likewise.
602         * sysdeps/riscv/math-tests.h [!__riscv_flen]
603         (EXCEPTION_TESTS_float): Do not define here.
604         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
605         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
606         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
607
608 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
609
610         * NEWS: Move optimized sinf entry to 2.29.
611
612 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
613
614         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
615
616 2018-08-22  DJ Delorie  <dj@redhat.com>
617
618         * Makefile (testroot.pristine): New rules to initialize the
619         test-in-container "testroot".
620         * Makerules (all-testsuite): Add tests-container.
621         * Rules (tests-expected): Add tests-container.
622         (binaries-all-tests): Likewise.
623         (tests-container): New, run these tests in the testroot container.
624         * support/Makefile (others): Add *-container, support_paths.c,
625         xmkdirp, and links-dso-program.
626         * support/links-dso-program-c.c: New.
627         * support/links-dso-program.cc: New.
628         * support/test-container.c: New.
629         * support/shell-container.c: New.
630         * support/echo-container.c: New.
631         * support/true-container.c: New.
632         * support/xmkdirp.c: New.
633         * support/xsymlink.c: New.
634         * support/support_paths.c: New.
635         * support/support.h: Add support paths prototypes.
636         * support/xunistd.h: Add xmkdirp () and xsymlink ().
637
638         * nss/tst-nss-test3.c: Convert to test-in-container.
639         * nss/tst-nss-test3.root/: New.
640
641 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
642
643         regex: port Gnulib code to z/OS POSIX environment
644         Problem reported by Arnold Robbins in:
645         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
646         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
647         Undef.
648
649 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
650
651         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
652         (ROUNDING_TESTS_double): Remove.
653         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
654         (ROUNDING_TESTS_double): Remove.
655         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
656         (ROUNDING_TESTS_double): Remove.
657         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
658         (ROUNDING_TESTS_float): Remove.
659         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
660         (ROUNDING_TESTS_float): Remove.
661         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
662         (ROUNDING_TESTS_float): Remove.
663         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
664         !TEST_MATHVEC here.
665         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
666         (IF_ROUND_INIT_FE_UPWARD): Likewise.
667
668         * sysdeps/generic/math-tests-rounding.h: New file.
669         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
670         (ROUNDING_TESTS_float): Do not define here.
671         (ROUNDING_TESTS_double): Likewise.
672         (ROUNDING_TESTS_long_double): Likewise.
673         (ROUNDING_TESTS_float128): Likewise.
674         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
675         (ROUNDING_TESTS_double): Undefine before defining.
676         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
677         (ROUNDING_TESTS_double): Undefine before defining.
678         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
679         (ROUNDING_TESTS_double): Undefine before defining.
680         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
681         (ROUNDING_TESTS_float): Undefine before defining.
682         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
683         (ROUNDING_TESTS_float): Undefine before defining.
684         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
685         (ROUNDING_TESTS_float): Undefine before defining.
686         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
687         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
688         not define here.
689         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
690         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
691         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
692         * sysdeps/riscv/math-tests.h [!__riscv_flen]
693         (ROUNDING_TESTS_float): Do not define here.
694         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
695         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
696         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
697         (ROUNDING_TESTS_float): Likewise.
698         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
699         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
700         * sysdeps/mips/math-tests.h [__mips_soft_float]
701         (ROUNDING_TESTS_float): Likewise.
702         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
703         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
704         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
705         (ROUNDING_TESTS_double): Likewise.
706         (ROUNDING_TESTS_long_double): Likewise.
707
708 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
709
710         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
711         (PF_XDP): New macro.
712         (AF_XDP): New macro.
713         (SOL_XDP): New macro.
714
715 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
716
717         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
718         (TCP_INQ): Likewise.
719         (TCP_CM_INQ): Likewise.
720         (TCP_REPAIR_ON): Likewise.
721         (TCP_REPAIR_OFF): Likewise.
722         (TCP_REPAIR_OFF_NO_WP): Likewise.
723         (struct tcp_zerocopy_receive): New type.
724
725 2018-08-21  Florian Weimer  <fweimer@redhat.com>
726
727         * support/support.h (support_descriptor_supports_holes): Declare.
728         * support/Makefile (libsupport-routines): Add
729         support_descriptor_supports_holes.
730         * support/support_descriptor_supports_holes.c: New file.
731         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
732         and stop testing if holes are not supported.
733         * io/test-lfs.c (do_prepare): Likewise.
734         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
735         Likewise.
736         * timezone/tst-tzset.c (create_tz_file): Likewise.
737         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
738         variable.
739         (do_prepare): Set it.
740         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
741
742 2018-08-21  Florian Weimer  <fweimer@redhat.com>
743
744         [BZ #17248]
745         * Makeconfig (+cflags): Do not sort (and deduplicate).
746
747 2018-08-21  Florian Weimer  <fweimer@redhat.com>
748
749         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
750         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
751
752 2018-08-20  Florian Weimer  <fweimer@redhat.com>
753
754         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
755         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
756
757 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
758
759         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
760         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
761         and ssi_arch members.
762
763         * elf/elf.c (NT_VMCOREDD): New macro.
764         (AT_MINSIGSTKSZ): Likewise.
765
766 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
767
768         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
769         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
770         s_cosf-ppc64 and s_cosf-power8.
771         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
772         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
773         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
774         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
776         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
777         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
779         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
781         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
782         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
783
784 2018-08-17  Florian Weimer  <fweimer@redhat.com>
785
786         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
787
788 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
789
790         * malloc/malloc.c (_int_malloc): Additional binning code checks.
791
792 2018-08-16  Florian Weimer  <fweimer@redhat.com>
793
794         * configure.ac: Add --with-nonshared-cflags option.
795         * config.make.in (extra-nonshared-cflags): Set variable.
796         * Makeconfig (CFLAGS-.oS): Use it.
797         * manual/install.texi (Configuring and compiling): Document
798         --with-nonshared-cflags.
799         * configure: Regenerate.
800         * INSTALL: Likewise.
801
802 2018-08-16  Florian Weimer  <fweimer@redhat.com>
803
804         * Makeconfig (ASFLAGS): Always append required assembler flags.
805
806 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
807
808         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
809         (malloc_consolidate): Likewise.
810
811 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
812
813         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
814
815 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
816
817         * benchtests/bench-strlen.c (do_test): Allocate buffers before
818         every strlen call.
819
820         * benchtests/bench-strlen.c: Print performance numbers in json.
821
822 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
823
824         * sysdeps/powerpc/powerpc64/multiarch/Makefile
825         (sysdep_routines): Build strcmp-power9 and strncmp-power9
826         only for little endian.
827         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
828         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
829         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
830         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
831         Add check for little endian.
832         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
833         (__strcmp_power9): Add check for little endian.
834         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
835         Add check for little endian.
836         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
837         (__strncmp_power9): Add check for little endian.
838         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
839         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
840         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
841         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
842         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
843
844 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
845
846         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
847         [!STRLEN](STRLEN): Set to __strlen.
848         * sysdeps/aarch64/multiarch/strlen.c: New file.
849         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
850         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
851         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
852         (__libc_ifunc_impl_list): Add strlen.
853         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
854         strlen_generic and strlen_asimd.
855
856 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
857
858         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
859         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
860         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
861
862 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
863
864         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
865
866 2018-08-14  Florian Weimer  <fweimer@redhat.com>
867
868         [BZ #23519]
869         * include/stdio.h (__vfxprintf): Declare.
870         * stdio-common/fxprintf.c (__vfxprintf): New function.
871         (__fxprintf): Call it.
872         * misc/err.c (convert_and_print): Remove function.
873         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
874         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
875         * misc/Makefile (tests): Add tst-warn-wide.
876         * misc/tst-warn-wide.c: New file.
877
878 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
879             Szabolcs Nagy  <szabolcs.nagy@arm.com>
880
881         * NEWS: Mention sinf, cosf, sincosf.
882         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
883         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
884         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
885         constants rather than including generic sincosf.h.
886         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
887         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
888         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
889         (reduced_cos): Remove.
890         (sinf_poly): New function.
891         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
892
893 2018-08-14  Florian Weimer  <fweimer@redhat.com>
894
895         [BZ #23521]
896         [BZ #23522]
897         * nss/nss_files/files-alias.c (get_next_alias): During :include:
898         processing, bail out if no room, and close the stream before
899         returning ERANGE.
900         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
901         (tst-nss-files-alias-leak): Link with libdl.
902         (tst-nss-files-alias-leak.out): Depend on nss_files.
903
904         * nss/tst-nss-files-alias-leak.c: New file.
905
906 2018-08-14  Florian Weimer  <fweimer@redhat.com>
907
908         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
909         server_user, stat_user.
910
911 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
912
913         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
914         version to 4.18.
915         (io_pgetevents): New syscall.
916         (rseq): Likewise.
917
918         * manual/install.texi (Configuring and compiling): Do not list
919         tools used for testing pretty printers here.
920         (Tools for Compilation): List Python, PExpect and GDB here.
921         Update descriptions of uses of Perl and Python.
922         * INSTALL: Regenerate.
923
924         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
925         version to 4.18.
926
927 2018-08-13  Florian Weimer  <fweimer@redhat.com>
928
929         * misc/error.c (error): Add missing va_end call.
930         (error_at_line): Likewise.
931
932 2018-08-13  Florian Weimer  <fweimer@redhat.com>
933
934         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
935
936 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
937
938         * benchtests/scripts/benchout.schema.json (properties): Add
939         new properties.
940
941         * benchtests/bench-skeleton.c (main): Add duration and
942         iterations attributes.
943
944 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
945
946         regex: Gnulib unibyte RRI uses bytes not chars
947         Adjust the non-glibc code to agree with what Gawk needs for
948         rational range interpretation (RRI) for regular expression ranges.
949         In unibyte locales, Gawk wants ranges to use the underlying byte
950         rather than the character code point.  This change does not affect
951         glibc proper.
952         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
953         In unibyte locales, use the byte value rather than
954         running it through btowc.
955
956 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
957
958         * sysdeps/generic/math-tests-snan.h: New file.
959         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
960         (SNAN_TESTS_float): Do not define here.
961         (SNAN_TESTS_double): Likewise.
962         (SNAN_TESTS_long_double): Likewise.
963         (SNAN_TESTS_float128): Likewise.
964         * sysdeps/i386/fpu/math-tests-snan.h: New file.
965         * sysdeps/i386/fpu/math-tests.h: Remove file.
966         * sysdeps/ia64/math-tests-snan.h: New file.
967         * sysdeps/ia64/math-tests.h: Remove file.
968         * sysdeps/x86/math-tests.h: Likewise.
969         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
970
971 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
972             Szabolcs Nagy  <szabolcs.nagy@arm.com>
973
974         * math/Makefile: Add s_sincosf_data.c.
975         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
976         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
977         (sincosf_poly): Likewise.
978         (reduce_small): Likewise.
979         (reduce_large): Likewise.
980         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
981         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
982         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
983         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
984
985 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
986             Szabolcs Nagy  <szabolcs.nagy@arm.com>
987
988         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
989         (converttoint): Use lround.
990         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
991         document the semantics when TOINT_INTRINSICS is set.
992         (converttoint): Likewise.
993         (TOINT_RINT): Remove.
994         (TOINT_SHIFT): Remove.
995         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
996         path.
997
998 2018-08-10  Florian Weimer  <fweimer@redhat.com>
999
1000         [BZ #23497]
1001         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
1002         function.
1003         (__old_getdents64): Use getdents64.  Convert entries without
1004         moving them.
1005         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
1006         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
1007         tst-readdir64-compat.
1008
1009 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1010
1011         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
1012         Fix unwind.
1013
1014 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1015
1016         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
1017         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
1018         code to s390x-mcount.h and #include it.
1019         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
1020         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
1021         (__fentry__): Add.
1022
1023 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1024
1025         * stdlib/Versions: Remove __fentry__.
1026         * sysdeps/i386/Versions: Add __fentry__.
1027         * sysdeps/x86_64/Versions: Add __fentry__.
1028
1029 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1030
1031         * sysdeps/s390/Makefile: Register the new tests.
1032         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
1033         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
1034         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
1035         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
1036         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
1037         * sysdeps/s390/tst-dl-runtime.c: New file.
1038
1039 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1040
1041         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
1042         Do not clobber R0.
1043
1044 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1045
1046         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
1047         Do not clobber R0.
1048
1049 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1050
1051         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
1052         Do not clobber R0.
1053
1054 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1055
1056         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1057         Do not clobber R0.
1058
1059 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1060
1061         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
1062         Use symbolic offsets for stack variables.
1063
1064 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1065
1066         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
1067         Use symbolic offsets for stack variables.
1068
1069 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1070
1071         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
1072         Use symbolic offsets for stack variables.
1073
1074 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
1075
1076         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1077         Use symbolic offsets for stack variables.
1078
1079 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
1080
1081         * math/gen-libm-test.py: New file.
1082         * math/gen-libm-test.pl: Remove.
1083         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
1084         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
1085         gen-libm-test.pl.
1086         ($(libm-test-c-noauto-obj)): Likewise.
1087         ($(libm-test-c-auto-obj)): Likewise.
1088         ($(libm-test-c-narrow-obj)): Likewise.
1089         (regen-ulps): Likewise.
1090         * math/README.libm-test: Update references to gen-libm-test.pl.
1091         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
1092         referencing gen-libm-test.pl.
1093         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
1094         * math/libm-test-support.c: Likewise.
1095         * math/libm-test-support.h: Likewise.
1096         * sysdeps/generic/libm-test-ulps: Likewise.
1097
1098 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1099
1100         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
1101         Fix value.
1102
1103 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
1104
1105         * math/libm-test-nextdown.inc (do_test): Move comment to ....
1106         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
1107
1108 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1109
1110         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
1111         symbols.
1112         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
1113         __pthread_setspecific): Add hidden proto.
1114         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
1115         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
1116
1117 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1118
1119         * benchtests/bench-string.h (buf1_size, buf2_size): New
1120         variables.
1121         (init_sizes): New function.
1122         (test_init): Use it.
1123         (alloc_buf, exit_error): New functions.
1124         (alloc_bufs): Use ALLOC_BUF.
1125         (realloc_bufs): Remove.
1126         * benchtests/bench-memcmp.c (do_test): Adjust.
1127         * benchtests/bench-memset-large.c (do_test): Likewise.
1128         * benchtests/bench-memset-walk.c (do_test): Likewise.
1129         * benchtests/bench-memset.c (do_test): Likewise.
1130         * benchtests/bench-strncmp.c (do_test): Likewise.
1131
1132 2018-08-06  Andreas Schwab  <schwab@suse.de>
1133
1134         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
1135         of CONST_THREAD_AREA.
1136
1137 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1138
1139         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
1140         (STATE_SAVE_MASK): Likewise.
1141         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
1142         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
1143         (STATE_SAVE_MASK): Likewise.
1144         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
1145         instead of <cpu-features.h>.
1146
1147 2018-08-03  DJ Delorie  <dj@redhat.com>
1148
1149         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
1150         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
1151
1152         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1153
1154 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
1155
1156         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
1157         after TEST_* calls.
1158         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
1159         * math/libm-test-logb.inc (logb_test_data): Likewise.
1160
1161 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
1162
1163         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
1164         * string/strstr.c (AVAILABLE): Likewise.
1165
1166 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1167
1168         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
1169         <init-arch.h>.
1170         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
1171         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
1172         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
1173
1174 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
1175
1176         * po/be.po: Update translation.
1177
1178         * po/be.po: Update translation.
1179
1180 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
1181
1182         * sysdeps/x86/cpu-features-offsets.sym
1183         (rtld_global_ro_offsetof): Removed.
1184         (CPU_FEATURES_SIZE): Likewise.
1185         (CPUID_OFFSET): Likewise.
1186         (CPUID_SIZE): Likewise.
1187         (CPUID_EAX_OFFSET): Likewise.
1188         (CPUID_EBX_OFFSET): Likewise.
1189         (CPUID_ECX_OFFSET): Likewise.
1190         (CPUID_EDX_OFFSET): Likewise.
1191         (FAMILY_OFFSET): Likewise.
1192         (MODEL_OFFSET): Likewise.
1193         (FEATURE_OFFSET): Likewise.
1194         (FEATURE_SIZ): Likewise.
1195         (COMMON_CPUID_INDEX_1): Likewise.
1196         (COMMON_CPUID_INDEX_7): Likewise.
1197         (FEATURE_INDEX_1): Likewise.
1198         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
1199
1200 2018-08-02  Carlos O'Donell <carlos@redhat.com>
1201
1202         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
1203         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
1204         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
1205         (install-locales): Depend on install-locale-archive.
1206         (install-locale-archive): Define.
1207         (install-locale-files): Define.
1208         (build-one-locale): Define macro.
1209         * manual/install.texi (Running make install): Document.
1210         * manual/INSTALL: Regenerate.
1211
1212 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1213
1214         * benchtests/scripts/compare_strings.py: Import traceback.
1215         (parse_file): Pretty-print error.
1216
1217         * NEWS: Mention the change.
1218         * elf/dl-tunables.list: Rename tune namespace to cpu.
1219         * sysdeps/powerpc/dl-tunables.list: Likewise.
1220         * sysdeps/x86/dl-tunables.list: Likewise.
1221         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
1222         cpu.name.
1223         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
1224         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
1225         * manual/README.tunables: Likewise.
1226         * manual/tunables.texi: Likewise.
1227         * sysdeps/powerpc/cpu-features.c: Likewise.
1228         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
1229         (init_cpu_features): Likewise.
1230         * sysdeps/x86/cpu-features.c: Likewise.
1231         * sysdeps/x86/cpu-features.h: Likewise.
1232         * sysdeps/x86/cpu-tunables.c: Likewise.
1233         * sysdeps/x86_64/Makefile: Likewise.
1234         * sysdeps/x86/dl-cet.c: Likewise.
1235
1236 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
1237
1238         [BZ #23479]
1239         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
1240         [__mips_hard_float].
1241         (FE_UNDERFLOW): Likewise.
1242         (FE_OVERFLOW): Likewise.
1243         (FE_DIVBYZERO): Likewise.
1244         (FE_INVALID): Likewise.
1245         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
1246         (FE_TOWARDZERO): Define only if [__mips_hard_float].
1247         (FE_UPWARD): Likewise.
1248         (FE_DOWNWARD): Likewise.
1249         (__FE_UNDEFINED): Define if [!__mips_hard_float]
1250         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
1251         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
1252         [__mips_hard_float].
1253         (FP_ROUNDMODE): Likewise.
1254         (FP_RND_NEAREST): Likewise.
1255         (FP_RND_ZERO): Likewise.
1256         (FP_RND_PINF): Likewise.
1257         (FP_RND_MINF): Likewise.
1258         (FP_EX_INVALID): Likewise.
1259         (FP_EX_OVERFLOW): Likewise.
1260         (FP_EX_UNDERFLOW): Likewise.
1261         (FP_EX_DIVZERO): Likewise.
1262         (FP_EX_INEXACT): Likewise.
1263         (FP_INIT_ROUNDMODE): Likewise.
1264         * sysdeps/mips/nofpu/fesetenv.c: New file.
1265         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
1266
1267 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
1268
1269         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
1270         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
1271         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
1272         conditional on [FE_UPWARD].
1273
1274 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         regex: fix memory leak in Gnulib
1277         Problem and fix reported by Assaf Gordon in:
1278         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
1279         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
1280         range_ends members too, as they are defined in 'struct
1281         re_charset_t' even if not _LIBC.  This affects only Gnulib.
1282
1283 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1284
1285         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
1286         ...
1287         (get_common_indices): This.
1288         (init_cpu_features): Updated.
1289
1290 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
1291
1292         * sysdeps/generic/math-tests-snan-payload.h: New file.
1293         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
1294         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
1295         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
1296         * sysdeps/generic/math-tests.h: Include
1297         <math-tests-snan-payload.h>.
1298         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
1299         * sysdeps/hppa/math-tests.h: Remove file.
1300         * sysdeps/mips/math-tests.h [!__mips_nan2008]
1301         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
1302         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
1303         Likewise.
1304
1305         * sysdeps/generic/math-tests-snan-cast.h: New file.
1306         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
1307         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
1308         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
1309         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
1310
1311 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
1312
1313         * version.h (RELEASE): Set to "development".
1314         (VERSION): Set to "2.28.9000".
1315         * NEWS (2.29): New section.
1316
1317         * version.h (RELEASE): Set to "stable".
1318         (VERSION): Set to "2.28".
1319         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
1320         * NEWS: Add the list of bugs fixed in 2.28.
1321
1322         * po/ca.po: Update to latest version.
1323         * po/cs.po: Likewise
1324         * po/da.po: Likewise
1325         * po/el.po: Likewise
1326         * po/eo.po: Likewise
1327         * po/es.po: Likewise
1328         * po/fi.po: Likewise
1329         * po/fr.po: Likewise
1330         * po/gl.po: Likewise
1331         * po/hu.po: Likewise
1332         * po/ia.po: Likewise
1333         * po/id.po: Likewise
1334         * po/it.po: Likewise
1335         * po/ja.po: Likewise
1336         * po/ko.po: Likewise
1337         * po/lt.po: Likewise
1338         * po/nb.po: Likewise
1339         * po/nl.po: Likewise
1340         * po/pt_BR.po: Likewise
1341         * po/ru.po: Likewise
1342         * po/rw.po: Likewise
1343         * po/sk.po: Likewise
1344         * po/sl.po: Likewise
1345         * po/tr.po: Likewise
1346         * po/zh_CN.po: Likewise
1347         * po/zh_TW.po: Likewise
1348
1349 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1350
1351         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
1352         initialization...
1353         (init): ... before initializing libpthread.
1354
1355         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
1356         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
1357         (__mach_setup_tls): ... new function.
1358         (mach_setup_tls): New alias.
1359         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
1360         __mach_setup_thread.
1361         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
1362         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
1363         * mach/Versions [libc] (mach_setup_tls): Add symbol.
1364         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
1365
1366 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
1367
1368         * manual/install.texi: Update versions.
1369         * INSTALL: Regenerate.
1370
1371         * manual/contrib.texi (Contributors): Update contributions.
1372
1373 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
1374
1375         * po/be.po: Update translations.
1376
1377 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1378
1379         * sysdeps/sh/libm-test-ulps: Update.
1380
1381 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
1382
1383         * po/bg.po: Update translations.
1384         * po/de.po: Likewise.
1385         * po/hr.po: Likewise.
1386         * po/pt_BR.po: Likewise.
1387         * po/sv.po: Likewise.
1388         * po/vi.po: Likewise.
1389
1390 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
1391
1392         [BZ #23467]
1393         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
1394         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
1395         (CFLAGS-tst-cet-property-1.o): New.
1396         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
1397         ($(objpfx)tst-cet-property-2): Likewise.
1398         ($(objpfx)tst-cet-property-2.out): Likewise.
1399         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
1400         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
1401         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
1402         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
1403         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
1404
1405 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
1406
1407         [BZ #23458]
1408         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
1409
1410 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1411
1412         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
1413         __sbrk): Do not set attribute_hidden.
1414         * sysdeps/mach/hurd/not-errno.h: New file.
1415         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
1416         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
1417
1418 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
1419
1420         * po/uk.po: Update translations.
1421         * po/cs.po: Likewise.
1422         * po/pl.po: Likewise.
1423
1424 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
1425
1426         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
1427         parse beyond the note end.
1428
1429 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1430
1431         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
1432         kernel does not support OFD locks.
1433         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
1434
1435 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1436
1437         * sysdeps/mach/hurd/Versions (libc): Make __access and
1438         __access_noerrno external so they can override the ld symbols.
1439         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
1440         __writev, __open64, __access_noerrno extern so they can be overrided.
1441         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
1442         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
1443
1444 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
1445
1446         * po/libc.pot: Regenerate.
1447
1448 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
1449
1450         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1451
1452 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1453
1454         [BZ #23459]
1455         * sysdeps/x86/cpu-features.c (get_extended_indices): New
1456         function.
1457         (init_cpu_features): Call get_extended_indices for both Intel
1458         and AMD CPUs.
1459         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
1460         Remove "for AMD" comment.
1461
1462 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1463
1464         [BZ # 23456]
1465         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
1466         COMMON_CPUID_INDEX_80000001.
1467
1468 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
1469
1470         * string/tst-xbzero-opt.c (use_test_buffer): New function.
1471         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
1472
1473 2018-07-26  Florian Weimer  <fweimer@redhat.com>
1474
1475         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
1476         aliases for symbols not in the implementation namespace.
1477
1478 2018-07-25  Carlos O'Donell <carlos@redhat.com>
1479
1480         [BZ #23393]
1481         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
1482         lowercase in LATIN script.
1483         * localedata/Makefile (test-input): Add en_US.UTF-8.
1484         * localedata/en_US.UTF-8.in: New file.
1485         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
1486         and restore old tests.
1487         * posix/tst-regexloc.c (do_test): Add back range expression test.
1488
1489 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1490
1491         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
1492
1493 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1494
1495         * nptl/threads.h: Move to ...
1496         * sysdeps/nptl/threads.h: ... here.
1497         * sysdeps/hurd/stdc-predef.h: New file.
1498
1499 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1500
1501         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
1502         tst-cet-setcontext-1 if CET is enabled.
1503         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
1504         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
1505
1506 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1507
1508         * include/threads.h: Move to ...
1509         * sysdeps/nptl/threads.h: ... here.
1510         * sysdeps/htl/threads.h: New file.
1511         * conform/Makefile (linknamespace-libs-ISO11): Use
1512         static-thread-library instead of linking libpthread.
1513         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
1514
1515 2018-07-25  Florian Weimer  <fweimer@redhat.com>
1516
1517         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
1518         nanoseconds into seconds.
1519         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
1520         (do_test): Likewise.
1521         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
1522         (do_test): Likewise.  Avoid nanosecond overflow and spurious
1523         timeouts due to system load.
1524         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
1525         (child_wait): Increment it.
1526         (do_test): Wait as long as necessary until all expected threads
1527         have arrived.
1528
1529 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
1530             H.J. Lu  <hongjiu.lu@intel.com>
1531
1532         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
1533         __ssp.
1534         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
1535         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
1536         (__push___start_context): New.
1537         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
1538         <asm/prctl.h>.
1539         (__getcontext): Record the current shadow stack base.  Save the
1540         caller's shadow stack pointer and base.
1541         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
1542         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
1543         (__push___start_context): New prototype.
1544         (__makecontext): Call __push___start_context to allocate a new
1545         shadow stack, push __start_context onto the new stack as well
1546         as the new shadow stack.
1547         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
1548         <asm/prctl.h>.
1549         (__setcontext): Restore the target shadow stack.
1550         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
1551         <asm/prctl.h>.
1552         (__swapcontext): Record the current shadow stack base.  Save
1553         the caller's shadow stack pointer and base. Restore the target
1554         shadow stack.
1555         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1556         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
1557         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
1558
1559 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1560
1561         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
1562         tst-setcontext8 and tst-setcontext9.
1563         * stdlib/tst-setcontext6.c: New file.
1564         * stdlib/tst-setcontext7.c: Likewise.
1565         * stdlib/tst-setcontext8.c: Likewise.
1566         * stdlib/tst-setcontext9.c: Likewise.
1567
1568 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1569
1570         * stdlib/Makefile ((tests): Add tst-setcontext5.
1571         * stdlib/tst-setcontext5.c: New file.
1572
1573 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1574
1575         * stdlib/Makefile (tests): Add tst-setcontext4.
1576         * stdlib/tst-setcontext4.c: New file.
1577
1578 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1579
1580         * stdlib/Makefile (tests): Add tst-swapcontext1.
1581         * stdlib/tst-swapcontext1.c: New test.
1582
1583 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1584
1585         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
1586         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
1587         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
1588         and tst-cet-legacy-4c.
1589         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
1590         and tst-cet-legacy-mod-4.
1591         (CFLAGS-tst-cet-legacy-2.c): New.
1592         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
1593         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
1594         (CFLAGS-tst-cet-legacy-3.c): Likewise.
1595         (CFLAGS-tst-cet-legacy-4.c): Likewise.
1596         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
1597         ($(objpfx)tst-cet-legacy-1): Likewise.
1598         ($(objpfx)tst-cet-legacy-2): Likewise.
1599         ($(objpfx)tst-cet-legacy-2.out): Likewise.
1600         ($(objpfx)tst-cet-legacy-2a): Likewise.
1601         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
1602         ($(objpfx)tst-cet-legacy-4): Likewise.
1603         ($(objpfx)tst-cet-legacy-4.out): Likewise.
1604         ($(objpfx)tst-cet-legacy-4a): Likewise.
1605         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
1606         (tst-cet-legacy-4a-ENV): Likewise.
1607         ($(objpfx)tst-cet-legacy-4b): Likewise.
1608         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
1609         (tst-cet-legacy-4b-ENV): Likewise.
1610         ($(objpfx)tst-cet-legacy-4c): Likewise.
1611         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
1612         (tst-cet-legacy-4c-ENV): Likewise.
1613         * sysdeps/x86/tst-cet-legacy-1.c: New file.
1614         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
1615         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
1616         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
1617         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
1618         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
1619         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
1620         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
1621         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
1622         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
1623         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
1624
1625 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1626
1627         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
1628         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
1629         with ssp_base.
1630         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
1631         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
1632         with ssp_base.
1633
1634 2018-07-25  Andreas Schwab  <schwab@suse.de>
1635
1636         [BZ #23442]
1637         * locale/weightwc.h (findidx): Handle the case where usrc is a
1638         prefix of cp but one character too short.
1639
1640 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1641
1642         * NEWS: Add ISO C threads addition.
1643
1644 2018-07-24  Florian Weimer  <fweimer@redhat.com>
1645
1646         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1647         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
1648         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
1649         4.13.
1650
1651 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
1652
1653         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
1654         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
1655         <sys/prctl.h> and <asm/prctl.h>.
1656         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
1657         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
1658         and <asm/prctl.h>.
1659         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
1660         ARCH_CET_LEGACY_BITMAP.
1661         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
1662         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
1663         * sysdeps/x86/libc-start.c: Include <startup.h>.
1664
1665 2018-07-24  Florian Weimer  <fweimer@redhat.com>
1666
1667         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
1668         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
1669
1670 2018-07-24  Rical Jasan <rj@2c3t.io>
1671             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1672             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
1673
1674         [BZ #14092]
1675         * manual/debug.texi: Update adjacent chapter name.
1676         * manual/probes.texi: Likewise.
1677         * manual/threads.texi (ISO C Threads): New section.
1678         (POSIX Threads): Convert to a section.
1679
1680 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1681             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
1682
1683         [BZ# 14092]
1684         * nptl/Makefile (tests): Add new test files.
1685         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
1686         * nptl/tst-cnd-basic.c: Likewise.
1687         * nptl/tst-cnd-broadcast.c: Likewise.
1688         * nptl/tst-cnd-timedwait.c: Likewise.
1689         * nptl/tst-mtx-basic.c: Likewise.
1690         * nptl/tst-mtx-recursive.c: Likewise.
1691         * nptl/tst-mtx-timedlock.c: Likewise.
1692         * nptl/tst-mtx-trylock.c: Likewise.
1693         * nptl/tst-thrd-basic.c: Likewise.
1694         * nptl/tst-thrd-detach.c: Likewise.
1695         * nptl/tst-thrd-sleep.c: Likewise.
1696         * nptl/tst-tss-basic.c: Likewise.
1697
1698 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1699
1700         [BZ #14092]
1701         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
1702         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
1703         symbols.
1704         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1705         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1706         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1707         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1708         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1709         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1710         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1711         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1712         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1713         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1714         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1715         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1717         Likewise.
1718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1719         Likewise.
1720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1721         Likewise.
1722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1723         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1724         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1725         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1726         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1727         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1728         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1729         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1730         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1731         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
1732         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
1733         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
1734         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
1735         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
1736         Likewise.
1737         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
1738         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
1739         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
1740         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
1741         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
1742         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
1743         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
1744         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
1745         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
1746         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
1747         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
1748         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
1749         ikewise.
1750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
1751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
1752         Likewise.
1753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
1754         Likewise.
1755         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
1756         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
1757         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
1758         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
1759         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
1760         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
1761         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
1762         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
1763
1764         [BZ #14092]
1765         * conform/data/threads.h-data (thread_local): New macro.
1766         (TSS_DTOR_ITERATIONS): Likewise.
1767         (tss_t): New type.
1768         (tss_dtor_t): Likewise.
1769         (tss_create): New function.
1770         (tss_get): Likewise.
1771         (tss_set): Likewise.
1772         (tss_delete): Likewise.
1773         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
1774         tss_get, and tss_set objects.
1775         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
1776         * nptl/tss_create.c: New file.
1777         * nptl/tss_delete.c: Likewise.
1778         * nptl/tss_get.c: Likewise.
1779         * nptl/tss_set.c: Likewise.
1780         * sysdeps/nptl/threads.h (thread_local): New define.
1781         (TSS_DTOR_ITERATIONS): Likewise.
1782         (tss_t): New typedef.
1783         (tss_dtor_t): Likewise.
1784         (tss_create): New prototype.
1785         (tss_get): Likewise.
1786         (tss_set): Likewise.
1787         (tss_delete): Likewise.
1788
1789         [BZ #14092]
1790         * conform/data/threads.h-data (cnd_t): New type.
1791         (cnd_init): New function.
1792         (cnd_signal): Likewise.
1793         (cnd_broadcast): Likewise.
1794         (cnd_wait): Likewise.
1795         (cnd_timedwait): Likewise.
1796         (cnd_destroy): Likewise.
1797         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
1798         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
1799         object.
1800         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
1801         * nptl/cnd_broadcast.c: New file.
1802         * nptl/cnd_destroy.c: Likewise.
1803         * nptl/cnd_init.c: Likewise.
1804         * nptl/cnd_signal.c: Likewise.
1805         * nptl/cnd_timedwait.c: Likewise.
1806         * nptl/cnd_wait.c: Likewise.
1807         * sysdeps/nptl/threads.h (cnd_t): New type.
1808         (cnd_init): New prototype.
1809         (cnd_signa): Likewise.
1810         (cnd_broadcast): Likewise.
1811         (cnd_wait): Likewise.
1812         (cnd_timedwait): Likewise.
1813         (cnd_destroy): Likewise.
1814
1815         [BZ #14092]
1816         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
1817         (once_flag): New type.
1818         (call_once): New function.
1819         * nptl/Makefile (libpthread-routines): Add call_once object.
1820         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
1821         * nptl/call_once.c: New file.
1822         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
1823         (once_flag): New type.
1824         (call_once): New prototype.
1825
1826         [BZ #14092]
1827         * conform/data/threads.h-data (mtx_plain): New constant.
1828         (mtx_recursive): Likewise.
1829         (mtx_timed): Likewise.
1830         (mtx_t): New type.
1831         (mtx_init): New function.
1832         (mtx_lock): Likewise.
1833         (mtx_timedlock): Likewise.
1834         (mtx_trylock): Likewise.
1835         (mtx_unlock): Likewise.
1836         (mtx_destroy): Likewise.
1837         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
1838         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
1839         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
1840         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
1841         * nptl/mtx_destroy.c: New file.
1842         * nptl/mtx_init.c: Likewise.
1843         * nptl/mtx_lock.c: Likewise.
1844         * nptl/mtx_timedlock.c: Likewise.
1845         * nptl/mtx_trylock.c: Likewise.
1846         * nptl/mtx_unlock.c: Likewise.
1847         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
1848         (mtx_recursive): Likewise.
1849         (mtx_timed): Likewise.
1850         (mtx_t): New type.
1851         (mtx_init): New prototype.
1852         (mtx_lock): Likewise.
1853         (mtx_timedlock): Likewise.
1854         (mtx_trylock): Likewise.
1855         (mtx_unlock): Likewise.
1856         (mtx_destroy): Likewise.
1857
1858         [BZ #14092]
1859         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
1860         (linknamespace-libs-ISO11): Add libpthread.a.
1861         * conform/data/threads.h-data: New file: add C11 thrd_* types and
1862         functions.
1863         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
1864         * nptl/Makefile (headers): Add threads.h.
1865         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
1866         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
1867         thrd_yield.
1868         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
1869         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
1870         thrd_join, thrd_sleep, and thrd_yield symbols.
1871         * nptl/descr.h (struct pthread): Add c11 field.
1872         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
1873         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
1874         routine with expected function prototype.
1875         (__pthread_create_2_1): Add C11 threads check based on attribute
1876         value.
1877         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
1878         * nptl/thrd_create.c: New file.
1879         * nptl/thrd_current.c: Likewise.
1880         * nptl/thrd_detach.c: Likewise.
1881         * nptl/thrd_equal.c: Likewise.
1882         * nptl/thrd_exit.c: Likewise.
1883         * nptl/thrd_join.c: Likewise.
1884         * nptl/thrd_priv.h: Likewise.
1885         * nptl/thrd_sleep.c: Likewise.
1886         * nptl/thrd_yield.c: Likewise.
1887         * include/threads.h: Likewise.
1888
1889 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
1890
1891         * bits/indirect-return.h: New file.
1892         * misc/sys/cdefs.h (__glibc_has_attribute): New.
1893         * sysdeps/x86/bits/indirect-return.h: Likewise.
1894         * stdlib/Makefile (headers): Add bits/indirect-return.h.
1895         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
1896         (swapcontext): Add __INDIRECT_RETURN.
1897         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
1898         (prepare_test_buffer): Use it.
1899
1900 2018-07-24  Andreas Schwab  <schwab@suse.de>
1901
1902         [BZ #23448]
1903         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
1904         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
1905
1906 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
1907
1908         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
1909         Redefine if shadow stack is enabled.
1910         (SYSCALL_ERROR_LABEL): Likewise.
1911         (__vfork): Pop shadow stack and jump back to to caller directly
1912         when shadow stack is in use.
1913         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
1914         Redefine if shadow stack is enabled.
1915         (SYSCALL_ERROR_LABEL): Likewise.
1916         (__vfork): Pop shadow stack and jump back to to caller directly
1917         when shadow stack is in use.
1918
1919 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
1920
1921         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
1922         enabled.
1923         (foo): Likewise.
1924         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
1925         (foo): Likewise.
1926
1927 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
1928
1929         * scripts/build-many-glibcs.py (Context.checkout): Default
1930         binutils version to 2.31 branch.
1931
1932 2018-07-20  Zong Li  <zong@andestech.com>
1933
1934         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
1935         URL of gcc's tarball.
1936
1937 2018-07-20  Florian Weimer  <fweimer@redhat.com>
1938
1939         [BZ #23396]
1940         * posix/regcomp.c (build_equiv_class): When comparing weights, do
1941         not compare an extra byte after the end of the weights.
1942
1943 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1944
1945         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
1946         to 1.
1947         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
1948         hidden prototypes.
1949         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
1950         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
1951         * scripts/check-execstack.awk: Consider `xfail' variable containing a
1952         list of libraries whose stack executability is expected.
1953         * elf/Makefile ($(objpfx)check-execstack.out): Pass
1954         $(check-execstack-xfail) to check-execstack.awk through `xfail'
1955         variable.
1956         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
1957         libc.so libpthread.so.
1958
1959 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
1960
1961         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
1962         SOCK_NONBLOCK.
1963         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
1964         and SOCK_NONBLOCK.
1965         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
1966         implement __pipe2.
1967         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
1968
1969 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
1970
1971         * benchtests/scripts/compare_bench.py (__main__): use the argparse
1972         library to improve command line parsing.
1973         (__main__): make schema file as optional parameter (--schema),
1974         defaulting to benchtests/scripts/benchout.schema.json.
1975         (main): move out of the parsing stuff to __main_  and leave it
1976         only as caller of main comparison functions.
1977
1978 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1979
1980         * NEWS: Add a note for Intel CET status.
1981         * manual/install.texi: Likewise.
1982         * INSTALL: Regenerated.
1983
1984 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
1985
1986         [BZ #23140]
1987         * localedata/locales/oc_FR (mon): Rename to...
1988         (alt_mon): This, then update October (typo fix).
1989         (mon): New content (genitive case, month names preceded by
1990         "de" or "d’").
1991
1992         [BZ #23422]
1993         * localedata/locales/oc_FR (abday): Update all items.
1994         (day): Update Wednesday and Saturday (typo fixes).
1995         (abmon): Update all items, except May.
1996         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
1997         (LC_IDENTIFICATION): Bump the revision number and date.
1998         Keep the "category" entries in alphabetic order.
1999         (LC_ADDRESS): Remove no longer needed comment.
2000         (LC_COLLATE): Use “copy "ca_ES"”.
2001         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
2002         "name_mrs".
2003
2004 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
2005
2006         * grp/tst_fgetgrent.c: Include <unistd.h>.
2007         (main): Use mkstemp instead of tmpnam.
2008         * io/test-utime.c (main): Likewise.
2009         * posix/annexc.c (macrofile): Change to modifiable array.
2010         (main): Remove macrofile here.
2011         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
2012         macrofile here.
2013         (check_header): Do not remove macrofile here.
2014         * posix/bug-getopt1.c: Include <stdlib.h>.
2015         (do_test): Use mkstemp instead of tmpnam.
2016         * posix/bug-getopt2.c: Include <stdlib.h>.
2017         (do_test): Use mkstemp instead of tmpnam.
2018         * posix/bug-getopt3.c: Include <stdlib.h>.
2019         (do_test): Use mkstemp instead of tmpnam.
2020         * posix/bug-getopt4.c: Include <stdlib.h>.
2021         (do_test): Use mkstemp instead of tmpnam.
2022         * posix/bug-getopt5.c: Include <stdlib.h>.
2023         (do_test): Use mkstemp instead of tmpnam.
2024         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
2025         (main): Use mkstemp instead of tmpnam.
2026         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
2027         (main): Use mkstemp instead of tmpnam.
2028         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
2029         (main): use mkstemp instead of tmpnam.
2030         * stdlib/isomac.c (macrofile): Change to modifiable array.
2031         (main): Remove macrofile here.
2032         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
2033         macrofile here.
2034         (check_header): Do not remove macrofile here.
2035
2036 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2037
2038         * manual/tunables.texi: Document glibc.tune.x86_ibt and
2039         glibc.tune.x86_shstk.
2040
2041 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2042
2043         * NEWS: Mention --enable-cet.
2044         * manual/install.texi: Document --enable-cet.
2045         * INSTALL: Regenerated.
2046
2047 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2048
2049         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
2050         Add _CET_NOTRACK before indirect jump to jump table.
2051
2052 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2053
2054         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
2055         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2056         to jump table.
2057
2058 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2059
2060         * sysdeps/i386/i686/multiarch/strcat-sse2.S
2061         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2062         to jump table.
2063
2064 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2065
2066         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
2067         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2068         to jump table.
2069
2070 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2071
2072         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
2073         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2074         to jump table.
2075
2076 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2077
2078         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
2079         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2080         to jump table.
2081         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
2082
2083 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2084
2085         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
2086         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2087         to jump table.
2088
2089 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2090
2091         * sysdeps/i386/i686/multiarch/memset-sse2.S
2092         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2093         to jump table.
2094
2095 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2096
2097         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
2098         indirect jump to jump table.
2099
2100 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2101
2102         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
2103         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2104         to jump table.
2105         (MEMCPY): Likewise.
2106
2107 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2108
2109         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
2110         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2111         to jump table.
2112         (MEMCPY): Likewise.
2113
2114 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2115
2116         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
2117         _CET_NOTRACK before indirect jump to jump table.
2118
2119 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2120
2121         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
2122         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2123         to jump table.
2124
2125 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2126
2127         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
2128         indirect jump to jump table.
2129
2130 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
2131
2132         [BZ #22241]
2133         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
2134         (LOCALES): Likewise.
2135         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
2136         * localedata/locales/sah_RU: New file.
2137         * localedata/sah_RU.UTF-8.in: New file.
2138
2139 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2140
2141         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
2142         "sysdep.h".
2143         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
2144         _CET_ENDBR to indirect jump targets and adjust jump destination
2145         for _CET_ENDBR.
2146         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
2147         "sysdep.h".
2148         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
2149         _CET_ENDBR to indirect jump targets and adjust jump destination
2150         for _CET_ENDBR.
2151         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
2152         "sysdep.h".
2153         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
2154         _CET_ENDBR to indirect jump targets and adjust jump destination
2155         for _CET_ENDBR.
2156
2157 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2158
2159         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
2160         _CET_ENDBR.
2161
2162 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2163
2164         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
2165         _CET_ENDBR.
2166         (_dl_tlsdesc_undefweak): Likewise.
2167         (_dl_tlsdesc_dynamic): Likewise.
2168         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
2169         (_dl_tlsdesc_resolve_rel): Likewise.
2170         (_dl_tlsdesc_resolve_rela): Likewise.
2171         (_dl_tlsdesc_resolve_hold): Likewise.
2172         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
2173         (_dl_tlsdesc_undefweak): Likewise.
2174         (_dl_tlsdesc_dynamic): Likewise.
2175         (_dl_tlsdesc_resolve_rela): Likewise.
2176         (_dl_tlsdesc_resolve_hold): Likewise.
2177
2178 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2179
2180         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
2181         (_fini): Likewise.
2182         * sysdeps/x86_64/crti.S (_init): Likewise.
2183         (_fini): Likewise.
2184
2185 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
2186
2187         [BZ #23140]
2188         * localedata/locales/os_RU (mon): Rename to...
2189         (alt_mon): This.
2190         (mon): Import from CLDR (genitive case).
2191
2192 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2193
2194         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
2195         cet-tunables.h> when CET is enabled.
2196
2197 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
2198
2199          [BZ #21598]
2200         * configure.ac: Add --enable-cet.
2201         * configure: Regenerated.
2202         * elf/Makefille (all-built-dso): Add a comment.
2203         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
2204         Include <dl-prop.h>.
2205         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
2206         segment.
2207         * elf/dl-open.c: Include <dl-prop.h>.
2208         (dl_open_worker): Call _dl_open_check.
2209         * elf/rtld.c: Include <dl-prop.h>.
2210         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
2211         _rtld_main_check.
2212         * sysdeps/generic/dl-prop.h: New file.
2213         * sysdeps/i386/dl-cet.c: Likewise.
2214         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
2215         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
2216         * sysdeps/x86/cet-tunables.h: Likewise.
2217         * sysdeps/x86/check-cet.awk: Likewise.
2218         * sysdeps/x86/configure: Likewise.
2219         * sysdeps/x86/configure.ac: Likewise.
2220         * sysdeps/x86/dl-cet.c: Likewise.
2221         * sysdeps/x86/dl-procruntime.c: Likewise.
2222         * sysdeps/x86/dl-prop.h: Likewise.
2223         * sysdeps/x86/libc-start.h: Likewise.
2224         * sysdeps/x86/link_map.h: Likewise.
2225         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
2226         _CET_ENDBR.
2227         (_dl_runtime_profile): Likewise.
2228         (_dl_runtime_resolve_shstk): New.
2229         (_dl_runtime_profile_shstk): Likewise.
2230         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
2231         if CET is enabled.
2232         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
2233         (CFLAGS-.os): Likewise.
2234         (CFLAGS-.op): Likewise.
2235         (CFLAGS-.oS): Likewise.
2236         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
2237         is enabled.
2238         (tests-special): Add $(objpfx)check-cet.out.
2239         (cet-built-dso): New.
2240         (+$(cet-built-dso:=.note)): Likewise.
2241         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
2242         ($(objpfx)check-cet.out): New.
2243         (generated): Add check-cet.out.
2244         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
2245         <cet-tunables.h>.
2246         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
2247         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
2248         (init_cpu_features): Call get_cet_status to check CET status
2249         and update dl_x86_feature_1 with CET status.  Call
2250         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
2251         (set_x86_shstk).  Disable and lock CET in libc.a.
2252         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
2253         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
2254         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
2255         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
2256         (_CET_ENDBR): Define if not defined.
2257         (ENTRY): Add _CET_ENDBR.
2258         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
2259         x86_shstk.
2260         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
2261         _CET_ENDBR.
2262         (_dl_runtime_profile): Likewise.
2263
2264 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
2265
2266         [BZ #21895]
2267         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
2268         restore r2 on longjmp.
2269         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
2270         test list.
2271         Added rules to build test tst-setjmp-bug21895-static.
2272         Added module setjmp-bug21895 and rules to build a shared object from it.
2273         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
2274         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
2275
2276 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
2277
2278         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
2279         * benchtests/bench-strstr.c: Likewise.
2280         * string/memmem.c (FASTSEARCH): Define.
2281         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
2282         Add support for FASTSEARCH.
2283         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
2284         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
2285         (FASTSEARCH): Define.
2286         * string/test-strcasestr.c: Rename __strnlen to strnlen.
2287         * string/test-strstr.c: Likewise.
2288
2289 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
2290
2291         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
2292         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
2293
2294 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2295             H.J. Lu  <hongjiu.lu@intel.com>
2296
2297         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
2298         (__longjmp): Restore shadow stack pointer if shadow stack is
2299         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
2300         isn't defined for __longjmp_cancel.
2301         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
2302         (_setjmp): Save shadow stack pointer if shadow stack is enabled
2303         and SHADOW_STACK_POINTER_OFFSET is defined.
2304         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
2305         (setjmp): Save shadow stack pointer if shadow stack is enabled
2306         and SHADOW_STACK_POINTER_OFFSET is defined.
2307         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
2308         (__sigsetjmp): Save shadow stack pointer if shadow stack is
2309         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2310         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
2311         <jmp_buf-ssp.h>.
2312         (____longjmp_chk): Restore shadow stack pointer if shadow stack
2313         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2314         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
2315         Remove jmp_buf-ssp.sym.
2316         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2317         <jmp_buf-ssp.h>.
2318         (____longjmp_chk): Restore shadow stack pointer if shadow stack
2319         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2320         * sysdeps/x86/Makefile (gen-as-const-headers): Add
2321         jmp_buf-ssp.sym.
2322         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
2323         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
2324         (__longjmp): Restore shadow stack pointer if shadow stack is
2325         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
2326         isn't defined for __longjmp_cancel.
2327         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
2328         (__sigsetjmp): Save shadow stack pointer if shadow stack is
2329         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2330
2331 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
2332
2333         [BZ #22563]
2334         * nptl/pthread_create.c: Include <tls-setup.h>.
2335         (__pthread_create_2_1): Call tls_setup_tcbhead.
2336         * sysdeps/generic/tls-setup.h: New file.
2337         * sysdeps/x86/nptl/tls-setup.h: Likewise.
2338         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
2339         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
2340         Likewise.
2341         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
2342         to feature_1.
2343         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
2344         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
2345         (X86_FEATURE_1_SHSTK): Likewise.
2346         (CET_ENABLED): Likewise.
2347         (IBT_ENABLED): Likewise.
2348         (SHSTK_ENABLED): Likewise.
2349
2350 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
2351
2352         [BZ #23208]
2353         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
2354         (LOCALES): Likewise.
2355         * localedata/dsb_DE.UTF-8.in: New file.
2356         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
2357
2358 2018-07-12  Florian Weimer  <fweimer@redhat.com>
2359
2360         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
2361         __mprotect, not mprotect.
2362
2363 2018-07-11  Florian Weimer  <fweimer@redhat.com>
2364
2365         * io/Makefile (headers): Add bits/statx.h.
2366
2367 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
2368
2369         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
2370         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
2371         and headers.
2372         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
2373         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
2374         for utf8_gen.py
2375
2376 2018-07-10  Florian Weimer  <fweimer@redhat.com>
2377
2378         * io/Makefile (routines): Add statx.
2379         (tests-internal): Add tst-statx.
2380         * io/Versions (GLIBC_2.28): Export statx.
2381         * io/bits/statx.h: New file.
2382         * io/sys/stat.h [__USE_GNU]: Include it.
2383         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
2384         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
2385         Define.
2386         * io/statx.c: New file.
2387         * io/statx_generic.: Likewise.
2388         * io/tst-statx.: Likewise.
2389         * include/bits/statx.h: Likewise.
2390         * sysdeps/unix/sysv/linux/kernel-features.h
2391         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
2392         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2393         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
2394         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
2395         Undefine.
2396         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2397         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
2398         * sysdeps/unix/sysv/linux/statx.c: New file.
2399         * manual/filesys.texi: Note that statx is undocumented.
2400         * sysdeps/**/libc*.abilist: Update.
2401
2402 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2403
2404         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
2405         a kernel issue which lead to test failure in some cases.
2406
2407 2018-07-10  Florian Weimer  <fweimer@redhat.com>
2408
2409         [BZ #23036]
2410         * posix/regexec.c (check_node_accept_bytes): When comparing
2411         weights, do not compare an extra byte after the end of the
2412         weights.
2413
2414 2018-07-10  Florian Weimer  <fweimer@redhat.com>
2415
2416         * libio/readline.c: Fix copyright year.
2417         * libio/tst-readline.c Likewise.
2418         * nss/tst-nss-files-hosts-getent.c: Likewise.
2419
2420 2018-07-06  Florian Weimer  <fweimer@redhat.com>
2421
2422         [BZ #18991]
2423         * nss/nss_files/files-XXX.c (internal_getent): Use
2424         __libc_readline_unlocked.  Seek back to the start of the line if
2425         parsing failes with ERANGE.
2426         (get_contents_ret, get_contents): Remove.
2427         * nss/tst-nss-files-hosts-getent.c: New file.
2428         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
2429         (tst-nss-files-hosts-getent): Link with -ldl.
2430
2431 2018-07-06  Florian Weimer  <fweimer@redhat.com>
2432
2433         * include/stdio.h (__libc_readline_unlocked): Declare.
2434         (__ftello64, __fseeko64): Declare aliases.
2435         * libio/readline.c: New file.
2436         * libio/tst-readline.c: Likewise.
2437         (routines): Add readline.
2438         (tests-internal): Add tst-readlime.
2439         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
2440         __libc_readline_unlocked.
2441         * libio/fseeko.c (__fseeko): Rename from fseeko.
2442         (fseeko): Add alias.
2443         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
2444         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
2445         (fseeko64): Add alias.
2446         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
2447         * libio/ftello64.c (__ftello64): Rename from ftello64.
2448         (ftello64): Add alias.
2449
2450 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2451
2452         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
2453         HWCAP_ATOMICS.
2454
2455 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2456
2457         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
2458         Use dl_hwcap without masking.
2459         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
2460         Remove HWCAP_CPUID.
2461
2462 2018-07-06  Florian Weimer  <fweimer@redhat.com>
2463
2464         * conform/conformtest.pl (checknamespace): Escape literal braces
2465         in regular expressions.
2466
2467 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
2468
2469         * sysdeps/x86/cpu-features.c (get_common_indeces):
2470         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
2471         * sysdeps/x86/cpu-features.c (init_cpu_features):
2472         AVX_Fast_Unaligned_Load is disabled for Excavator core.
2473
2474 2018-07-05  Florian Weimer  <fweimer@redhat.com>
2475
2476         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
2477         protector.
2478         (CFLAGS-elf-init.oS): Likewise.
2479
2480 2018-07-05  Florian Weimer  <fweimer@redhat.com>
2481             Carlos O'Donell  <carlos@redhat.com>
2482
2483         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
2484         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
2485         with stack protector enabled because there is no risk of infinite
2486         recursion.
2487
2488 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
2489
2490         [BZ #19818]
2491         [BZ #23307]
2492         * libc-abis (ABSOLUTE): New ABI.
2493         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
2494         * NEWS: Mention the new ABI.
2495
2496 2018-07-05  Florian Weimer  <fweimer@redhat.com>
2497
2498         [BZ # 17662]
2499         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
2500         (RENAME_WHITEOUT): Define.
2501         [__USE_GNU] (renameat2): Declare.
2502         * stdio-common/Makefile (routines): Add renameat2.
2503         (tests): Add tst-renameat2.
2504         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
2505         * stdio-common/renameat2.c: New file.
2506         * stdio-common/tst-renameat2.c: Likewise.
2507         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
2508         * manual/filesys.texi (Temporary Files): Note that renameat2 is
2509         undocumented.
2510         * sysdeps/unix/sysv/linux/kernel-features.h
2511         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
2512         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2513         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
2514         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2515         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
2516         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2517         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
2518         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2519         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
2520         * include/stdio.h (__renameat): Add alias for renameat.
2521         * stdio-common/renameat.c (__renameat): Rename from renameat.
2522         Add hidden definition and alias.
2523         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
2524         * sysdeps/mach/hurd/renameat.c: Likewise.
2525         * sysdeps/**/libc*.abilist: Add renameat2.
2526
2527 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2528
2529         * posix/bug-regex33.c: Fix build after regex sync.
2530
2531 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
2532
2533         [BZ #23164]
2534         * localedata/tst-langinfo-setlocale.c: New file.
2535         * localedata/tst-langinfo-setlocale-static.c: New file.
2536         * localedata/tst-langinfo-newlocale.c: New file.
2537         * localedata/tst-langinfo-newlocale-static.c: New file.
2538         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
2539         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
2540         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
2541         (tests-static): Remove tst-langinfo-static. Add
2542         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
2543         (tests-special): Remove $(objpfx)tst-langinfo.out,
2544         $(objpfx)tst-langinfo-static.out. Add
2545         $(objpfx)tst-langinfo-setlocale.out,
2546         $(objpfx)tst-langinfo-newlocale.out,
2547         $(objpfx)tst-langinfo-setlocale-static.out,
2548         $(objpfx)tst-langinfo-newlocale-static.out.
2549         ($(objpfx)tst-langinfo.out): Remove.
2550         ($(objpfx)tst-langinfo-static.out): Remove.
2551         ($(objpfx)tst-langinfo-newlocale.out): New target.
2552         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
2553         (test-xfail-tst-langinfo-newlocale-static): Add.
2554         ($(objpfx)tst-langinfo-setlocale.out): New target.
2555         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
2556         * localedata/tst-langinfo.c: Call test_locale.
2557         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
2558         data.
2559
2560 2018-07-04  Florian Weimer  <fweimer@redhat.com>
2561
2562         testrun.sh: Implement --tool=strace, --tool=valgrind
2563         * Makefile (testrun-script): Define variable.
2564         (testrun.sh): Use variable.
2565         * manual/install.texi (Tools for Compilation): make 4.0 or later
2566         is required.
2567         * configure.ac: Check for make 4.0 or later.
2568         * INSTALL: Regenerate.
2569         * configure: Likewise.
2570
2571 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2572
2573         [BZ #23233]
2574         [BZ #21163]
2575         [BZ #18986]
2576         [BZ #13762]
2577         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
2578         * posix/PCRE.tests: Remove invalid test.
2579         * posix/bug-regex28.c: Fix expected values for used syntax.
2580         * posix/bug-regex37.c: New file.
2581         * posix/bug-regex38.c: Likewise.
2582         * posix/regcomp.c: Sync with gnulib.
2583         * posix/regex.c: Likewise.
2584         * posix/regex.h: Likewise.
2585         * posix/regex_internal.c: Likewise.
2586         * posix/regex_internal.h: Likewise.
2587         * posix/regexec.c: Likewise.
2588
2589 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
2590
2591         [BZ #23308]
2592         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
2593         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
2594         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
2595         * localedata/unicode-gen/PropList.txt: likewise.
2596         * localedata/unicode-gen/UnicodeData.txt: likewise.
2597         * localedata/charmaps/UTF-8: Regenerate.
2598         * localedata/locales/i18n_ctype: likewise.
2599         * localedata/locales/tr_TR: likewise.
2600         * localedata/locales/translit_circle: likewise.
2601         * localedata/locales/translit_cjk_compat: likewise.
2602         * localedata/locales/translit_combining: likewise.
2603         * localedata/locales/translit_compat: likewise.
2604         * localedata/locales/translit_font: likewise.
2605         * localedata/locales/translit_fraction: likewise.
2606
2607 2018-07-03  Florian Weimer  <fweimer@redhat.com>
2608
2609         [BZ #23363]
2610         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
2611         * stdio-common/tst-printf.sh: Adjust expected output.
2612         * LICENSES: Update.
2613
2614 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2615
2616         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
2617         symbol.
2618
2619 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2620
2621         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
2622         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
2623         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
2624         * stdio-common/tst-printfsz-islongdouble.c: New file.
2625         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
2626         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
2627         [subdir == stdio-common] (routines): Add ieee128-printf_size.
2628         [subdir == stdio-common] (tests-internal): Add
2629         test-printf-size-ieee128, and test-printf-size-ibm128.
2630         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
2631         (CFLAGS-test-printf-size-ibm128.c): New variables.
2632         [subdir == stdio-common] (tests-special): Add
2633         $(objpfx)test-printf-size-ieee128.out and
2634         $(objpfx)test-printf-size-ibm128.out.
2635         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
2636         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
2637         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
2638         __printf_sizeieee128.
2639         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
2640         New file.
2641         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
2642         Likewise.
2643         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
2644         Likewise.
2645
2646 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2647
2648         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
2649         (exp2f_inline): Likewise.
2650         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
2651         (__math_uflowf): Likewise.
2652         (__math_may_uflowf): Likewise.
2653         (__math_divzerof): Likewise.
2654         (__math_invalidf): Likewise.
2655         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
2656         (__math_oflowf): Likewise.
2657         (__math_uflowf): Likewise.
2658         (__math_may_uflowf): Likewise.
2659         (__math_divzerof): Likewise.
2660         (__math_invalidf): Likewise.
2661
2662 2018-06-29  DJ Delorie  <dj@redhat.com>
2663             Carlos O'Donell  <carlos@redhat.com>
2664
2665         [BZ #23329]
2666         * include/libc-symbols.h: Comment the freeres framework.
2667         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
2668         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
2669         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
2670         * dlfcn/dlerror.c: Include libc-symbols.h
2671         (__dlerror_main_freeres): New function.
2672         * dlfcn/dlfreeres.c: New file.
2673         * dlfcn/sdlfreeres.c: New file.
2674         * include/dlfcn.h: Declare __dlerror_main_freeres.
2675         * malloc/set-freeres.c: Declare __libdl_freeres, and
2676         __libpthread_freeres.
2677         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
2678         the releavant libraries are loaded.
2679         * malloc/thread-freeres.c: Add comments.
2680         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
2681         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
2682         * nptl/allocatestack.c (__nptl_free_stacks): New function.
2683         (__free_stacks): Rename to...
2684         (free_stacks): ...this. Mark static.
2685         (queue_stack): Call free_stacks.
2686         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
2687         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
2688         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2689         ptr_freeres element from struct.
2690         (pthread_functions): Remove .ptr_freeres from struct initializer.
2691         [SHARED] (nptl_freeres): Remove.
2692         * nptl/nptlfreeres.c: New file.
2693         * nptl/pthreadP.h
2694         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
2695         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
2696         attribute_hidden.
2697         (__free_stacks): Rename to...
2698         (__nptl_stacks_freeres): ...this.
2699         (__shm_directory_freeres): Declare.
2700         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
2701         (__nptl_unwind_freeres): ...this.
2702         * resolv/res-close.c: Add comment.
2703         * resolv/resolv_conf.c: Include libc-symbols.h.
2704         * string/strerror_l.c: Include libc-symbols.h.
2705         * sunrpc/rpc_thread.c: Include libc-symbols.h.
2706         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
2707         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
2708         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
2709
2710 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2711
2712         * stdlib/tst-strfmon_l.c: Add tests for long double.
2713
2714 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
2715
2716         [BZ #23208]
2717         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
2718         * localedata/locales/dsb_DE: New file.
2719
2720 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
2721
2722         [BZ #23140]
2723         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
2724         genitive case).
2725         (alt_mon): New entry, import from CLDR (nominative case).
2726
2727 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
2728
2729         [BZ #22996]
2730         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
2731
2732 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2733
2734         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
2735         Use vector registers.
2736
2737         * sysdeps/aarch64/multiarch/memmove_falkor.S
2738         (__memcpy_falkor): Use vector registers.
2739
2740 2018-06-29  Martin Sebor  <msebor@redhat.com>
2741
2742         * manual/stdio.texi (Customizing Printf): Mention interaction
2743         with GCC built-ins.
2744
2745 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
2746
2747         [BZ #23307]
2748         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
2749         `st_value' is 0 if `st_shndx' is SHN_ABS.
2750         * elf/tst-absolute-zero.c: New file.
2751         * elf/tst-absolute-zero-lib.c: New file.
2752         * elf/tst-absolute-zero-lib.lds: New file.
2753         * elf/Makefile (tests): Add `tst-absolute-zero'.
2754         (modules-names): Add `tst-absolute-zero-lib'.
2755         (LDLIBS-tst-absolute-zero-lib.so): New variable.
2756         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
2757         ($(objpfx)tst-absolute-zero: New dependency.
2758
2759 2018-06-29  Zack Weinberg  <zackw@panix.com>
2760
2761         * configure.ac: New command-line option --disable-crypt.
2762         Force --disable-nss-crypt when --disable-crypt is given, with a
2763         warning if it was explicitly enabled.
2764         * configure: Regenerate.
2765         * config.make.in: New boolean substitution variable $(build-crypt).
2766         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
2767         when $(build-crypt).
2768         * manual/install.texi: Document --disable-crypt.
2769         * INSTALL: Regenerate.
2770
2771         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
2772         which is never set.
2773         * conform/Makefile: Only include libcrypt.a in
2774         linknamespace-libs-xsi and linknamespace-libs-XPG4
2775         when $(build-crypt).
2776         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
2777         USE_CRYPT to 1 when $(build-crypt).
2778         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
2779         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
2780         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
2781
2782 2018-06-29  Zack Weinberg  <zackw@panix.com>
2783
2784         * crypt/crypt.h, posix/unistd.h: Update comments and
2785         prototypes for crypt and crypt_r.
2786
2787         * manual/crypt.texi (Cryptographic Functions): New initial
2788         exposition.
2789         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
2790         (Unpredictable Bytes): Improve initial exposition.  Clarify error
2791         behavior of getentropy and getrandom.
2792         * manual/examples/genpass.c: Generate a salt using getentropy
2793         instead of the current time. Use hash $5$ (SHA-2-256).
2794         * manual/examples/testpass.c: Demonstrate validation against
2795         hashes generated with three different one-way functions.
2796
2797         * manual/intro.texi: crypt.texi does not need an overview
2798         anymore.
2799
2800         * manual/nss.texi, manual/memory.texi, manual/socket.texi
2801         * manual/terminal.texi: Consistently refer to "passphrases"
2802         * instead of "passwords", and to the "user database" instead
2803         * of the "password database".
2804         * manual/users.texi: Similarly.  Add notes about how actual
2805         passphrase hashes are now stored in the shadow database.
2806         Remove 20-year-old junk todo note.
2807
2808 2018-06-29  Zack Weinberg  <zackw@panix.com>
2809
2810         * manual/crypt.texi: Use a normal top-level @node declaration.
2811         Move most of the introductory text to the 'crypt' section.
2812         Move the example programs below the @deftypefun for 'crypt_r'.
2813         Move the 'getpass' section...
2814         * manual/terminal.texi: ...here.
2815
2816 2018-06-29  Zack Weinberg  <zackw@panix.com>
2817             Florian Weimer <fweimer@redhat.com>
2818
2819         * posix/unistd.h: Do not declare encrypt.
2820         (_XOPEN_CRYPT): Remove macro definition.
2821         (crypt): Declare only for _USE_MISC.
2822         * stdlib/stdlib.h: Do not declare setkey.
2823         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
2824         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
2825
2826         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
2827         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
2828         into compat symbols.  Don't define initial_perm if it's not
2829         going to be used.
2830         * crypt/cert.c: Link explicitly with the expected versions for
2831         setkey and encrypt.  If they are not available at all, mark
2832         the test as unsupported.
2833
2834         * sunrpc/des_crypt.c: Unconditionally block linkage with
2835         cbc_crypt and ecb_crypt for new binaries.
2836         * sunrpc/des_soft.c: Unconditionally block linkage with
2837         des_setparity for new binaries.
2838
2839         * manual/crypt.texi: Remove the entire "DES Encryption"
2840         section.  Also remove the paragraph talking about FIPS 140-2
2841         from the introduction.
2842         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
2843         of libgcrypt for "real" encryption, not DES.
2844         * manual/conf.texi (Constants for Sysconf): Mention that
2845         _XOPEN_CRYPT is no longer impelemented.
2846
2847         * conform/data/unistd.h-data: Remove crypt function declaration.
2848
2849 2018-06-29  Florian Weimer  <fweimer@redhat.com>
2850
2851         [BZ #23351]
2852         * malloc/hooks.c: Update comments on restoring of dumped heaps.
2853         (disallow_malloc_check): Remove variable.
2854         (__malloc_check_init): Adjust.
2855         (malloc_set_state): Update comment.
2856         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
2857         declarations.
2858
2859 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
2860
2861         [BZ #23140]
2862         * localedata/locales/ast_ES (mon): Rename to...
2863         (alt_mon): This.
2864         (mon): Import from CLDR (genitive case).
2865
2866 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
2867             Jakub Sitnicki  <jkbs@redhat.com>
2868
2869         [BZ #21812]
2870         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
2871         on NLM_F_DUMP_INTR.
2872
2873 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2874
2875         * manual/llio.texi: Remove spurious space.
2876
2877 2018-06-28  Florian Weimer  <fweimer@redhat.com>
2878
2879         [BZ #23349]
2880         * time/bits/types/struct_timespec.h: Change header inclusion guard to
2881         _STRUCT_TIMESPEC.
2882
2883 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2884
2885         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
2886          __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
2887         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
2888         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
2889         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
2890         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
2891         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
2892
2893 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
2894
2895         [BZ #23266]
2896         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
2897         Copy and null-terminate entries that are not terminated, in
2898         addition to empty ones.
2899
2900 2018-06-27  Florian Weimer  <fweimer@redhat.com>
2901
2902         [BZ #18023]
2903         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
2904         (extend_alloca_account): Remove.
2905         * manual/stdio.texi (Variable Arguments Output): Update comment.
2906
2907 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
2908
2909         * nptl/sockperf.c: Remove file.
2910
2911 2018-06-27  Florian Weimer  <fweimer@redhat.com>
2912
2913         [BZ #18023]
2914         * elf/dl-deps.c (_dl_map_object_deps): Use struct
2915         scratch_buffer instead of extend_alloca.
2916
2917 2018-06-27  Florian Weimer  <fweimer@redhat.com>
2918
2919         [BZ #18023]
2920         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
2921         scratch_buffer instead of extend_alloca.  Update comments.
2922
2923 2018-06-27  Florian Weimer  <fweimer@redhat.com>
2924
2925         [BZ #18023]
2926         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
2927         instead of extend_alloca.
2928
2929 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
2930
2931         [BZ #13888]
2932         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
2933         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
2934         /tmp.
2935         * scripts/test-installation.pl: Put temporary files in build
2936         directory, not /tmp.
2937         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
2938         (CFLAGS-bug4.c): Likewise.
2939         (CFLAGS-bug5.c): Likewise.
2940         (CFLAGS-test-fseek.c): Likewise.
2941         (CFLAGS-test-popen.c): Likewise.
2942         (CFLAGS-test_rdwr.c): Likewise.
2943         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
2944         /tmp.
2945         * stdio-common/bug4.c (main): Likewise.
2946         * stdio-common/bug5.c (main): Likewise.
2947         * stdio-common/test-fseek.c (TESTFILE): Likewise.
2948         * stdio-common/test-popen.c (do_test): Likewise.
2949         * stdio-common/test_rdwr.c (main): Likewise.
2950
2951 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
2952
2953         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
2954         (sem_open): Set sem.newsem.pad to zero for valgrind.
2955
2956 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2957
2958         [BZ #20251]
2959         * NEWS: Mention fcntl64 addition.
2960         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
2961         * login/utmp_file.c: Likewise.
2962         * sysdeps/posix/fdopendir.c: Likewise.
2963         * sysdeps/posix/opendir.c: Likewise.
2964         * sysdeps/unix/pt-fcntl.c: Likewise.
2965         * include/fcntl.h (__libc_fcntl64, __fcntl64,
2966         __fcntl64_nocancel_adjusted): New prototype.
2967         (__fcntl_nocancel_adjusted): Remove prototype.
2968         * io/Makefile (routines): Add fcntl64.
2969         (CFLAGS-fcntl64.c): New rule.
2970         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
2971         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
2972         * io/fcntl.h (fcntl64): Add prototype and redirect if
2973         __USE_FILE_OFFSET64 is defined.
2974         * io/fcntl64.c: New file.
2975         * manual/llio.text: Add a note for which commands fcntl acts a
2976         cancellation point.
2977         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
2978         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
2979         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
2980         New symbols.
2981         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
2982         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
2983         non-LFS case.
2984         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
2985         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
2986         to __fcntl64_nocancel.
2987         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
2988         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
2989         to __fcntl64_nocancel.
2990         * sysdeps/generic/not-cancel.h: Likewise.
2991         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
2992         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
2993         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
2994         (fcntl64): New symbol.
2995         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2996         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2997         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
3000         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3001         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3002         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3003         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3004         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3005         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
3006         fcntl64): Likewise.
3007         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3008         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
3009         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3010         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3011         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3012         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3013         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
3014         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3015         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3017         Likewise.
3018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3019         Likewise.
3020         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3021         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3022         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3023
3024 2018-06-26  Florian Weimer  <fweimer@redhat.com>
3025
3026         Run thread shutdown functions in an explicit order.
3027         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
3028         definition.
3029         (__libc_thread_freeres): Call thread shutdown functions
3030         explicitly.
3031         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
3032         * include/string.h (__strerror_thread_freeres): Declare.
3033         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
3034         arena_thread_freeres.  No longer static.  Remove thread shutdown
3035         hook registration.
3036         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
3037         Declare.
3038         * resolv/res-close.c (__res_thread_freeres): Renamed from
3039         res_thread_freeres.  No longer static.  Remove thread shutdown
3040         hook registration.
3041         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
3042         * resolv/resolv_conf.c (freeres): Remove incorrect section
3043         attribute and use libc_freeres_fn.
3044         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
3045         strerror_thread_freeres.  No longer static.  Remove thread
3046         shutdown hook registration.
3047         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
3048         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
3049         shutdown hook registration.
3050         * Makerules (shlib.lds): Do not provide section boundary symbols
3051         for __libc_thread_subfreeres.
3052         * manual/memory.texi (Basic Allocation): Update comment.
3053
3054 2018-06-26  Florian Weimer  <fweimer@redhat.com>
3055
3056         Remove always-defined _RPC_THREAD_SAFE_ macro.
3057         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
3058         Do not define _RPC_THREAD_SAFE_.
3059         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
3060         conditional.
3061         * sunrpc/clnt_perr.c: Likewise.
3062         * sunrpc/clnt_raw.c: Likewise.
3063         * sunrpc/clnt_simp.c: Likewise.
3064         * sunrpc/key_call.c: Likewise.
3065         * sunrpc/rpc_common.c: Likewise.
3066         * sunrpc/rpc_main.c: Likewise.
3067         * sunrpc/rpc_thread.c: Likewise.
3068         * sunrpc/svc.c: Likewise.
3069         * sunrpc/svc_raw.c: Likewise.
3070         * sunrpc/svc_simple.c: Likewise.
3071         * sumrpc/svcauth_des.c: Likewise.
3072
3073 2018-06-26  Florian Weimer  <fweimer@redhat.com>
3074
3075         * libio/Makefile (tests-internal): Add tst-vtables,
3076         tst-vtables-interposed.
3077         * libio/tst-vtables.c: New file.
3078         * libio/tst-vtables-common.c: Likewise.
3079         * libio/tst-vtables-interposed.c: Likewise.
3080
3081 2018-06-26  Florian Weimer  <fweimer@redhat.com>
3082
3083         * support/support_test_main.c (support_test_main): Only call
3084         setvbuf if not disables.
3085         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
3086         * support/test-driver.h (struct test_config): Add no_setvbuf member.
3087
3088 2018-06-26  Florian Weimer  <fweimer@redhat.com>
3089
3090         [BZ #23313]
3091         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
3092
3093 2018-06-25  Florian Weimer  <fweimer@redhat.com>
3094
3095         [BZ #18023]
3096         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
3097         Use struct scratch_buffer instead of extend_alloca.
3098
3099 2018-06-25  Florian Weimer  <fweimer@redhat.com>
3100
3101         [BZ #18023]
3102         * nss/getent.c (initgroups_keys): Use dynarray instead of
3103         extend_alloca.
3104
3105 2018-06-25  Florian Weimer  <fweimer@redhat.com>
3106
3107         [BZ #18023]
3108         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
3109         Use struct scratch_buffer instead of extend_alloca.
3110
3111 2018-06-25  Florian Weimer  <fweimer@redhat.com>
3112
3113         [BZ #18023]
3114         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
3115         back to malloc directly, without stack allocations.
3116
3117 2018-06-25  Florian Weimer  <fweimer@redhat.com>
3118
3119         [BZ #18023]
3120         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
3121         of extend_alloca.
3122
3123 2018-06-25  Florian Weimer  <fweimer@redhat.com>
3124
3125         [BZ #18023]
3126         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
3127         of extend_alloca.
3128         * nscd/hstcache.c (addhstbyX): Likewise.
3129         * nscd/pwdcache.c (addpwbyX): Likewise.
3130         * nscd/servicescache.c (addservbyX): Likewise.
3131
3132 2018-06-25  Florian Weimer  <fweimer@redhat.com>
3133
3134         [BZ #18023]
3135         * nscd/connections.c (read_cmdline): New function.
3136         (restart): Use it.  Update comment.
3137
3138 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
3139
3140         [BZ #23140]
3141         * localedata/locales/csb_PL (mon): Rename to...
3142         (alt_mon): This.
3143         (abmon): Rename to...
3144         (ab_alt_mon): This.
3145         (mon): Add with proper genitive forms, copy from Wikipedia.
3146         (abmon): Likewise.
3147
3148 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
3149
3150         [BZ #19485]
3151         * localedata/locales/csb_PL (mon): Fix typos:
3152         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
3153         (yesstr): Add, value is "jo".
3154         (nostr): Add, value is "nié".
3155
3156 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3157
3158         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
3159         all log1p and significand functions on m680x0.
3160         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
3161         of s_significand.c..
3162         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
3163         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
3164         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
3165         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
3166         s_log1p.c and include it..
3167
3168 2018-06-21  Vincent Chen  <vincentc@andestech.com>
3169
3170         * elf/elf.h (R_NDS32_NONE): New define.
3171         (R_NDS32_32_RELA): Likewise.
3172         (R_NDS32_COPY): Likewise.
3173         (R_NDS32_GLOB_DAT): Likewise.
3174         (R_NDS32_JUMP_SLOT): Likewise.
3175         (R_NDS32_RELATIVE): Likewise.
3176         (R_NDS32_TLS_TPOFF): Likewise.
3177         (R_NDS32_TLS_DESC): Likewise.
3178
3179 2018-06-21  Mark Wielaard  <mark@klomp.org>
3180
3181         * elf/elf.h (R_BPF_MAP_FD): Removed.
3182         (R_BPF_64_64, R_BPF_64_32): New.
3183
3184 2018-06-21  Florian Weimer  <fweimer@redhat.com>
3185
3186         [BZ #23253]
3187         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
3188         Renamed from libc_feholdsetround_ctx.
3189         (default_libc_feresetround_ctx): Renamed from
3190         libc_feresetround_ctx.
3191         (default_libc_feholdsetround_noex_ctx): Renamed from
3192         libc_feholdsetround_noex_ctx.
3193         (default_libc_feresetround_noex_ctx): Renamed from
3194         libc_feresetround_noex_ctx.
3195         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
3196         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
3197         forwardning to the old implementations under the new names.
3198         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
3199         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
3200         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
3201         (libc_feresetround_ctx): Forward to default implements for i386
3202         and MATH_SET_BOTH_ROUNDING_MODES.
3203         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
3204         Add -DMATH_SET_BOTH_ROUNDING_MODES.
3205
3206 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
3207
3208         * string/tst-cmp.c: Include <libc-diag.h>.
3209         (strncmp_max): Disable -Wstringop-overflow= around call to
3210         strncmp.
3211         (strncasecmp_max): Disable -Wstringop-overflow= around call to
3212         strncasecmp.
3213
3214         * string/bug-strpbrk1.c: Include <libc-diag.h>.
3215         (main): Disable -Wunused-value around call to strpbrk.
3216         * string/bug-strspn1.c: Include <libc-diag.h>.
3217         (main): Disable -Wunused-value around call to strspn.
3218
3219 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3220             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3221
3222         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
3223         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
3224
3225 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3226
3227         * math/Makefile (libm-calls): Move s_significandF to...
3228         (gen-libm-calls): ... here.
3229         * math/s_significand_template.c: New file.
3230         * math/s_significand.c: Removed.
3231         * math/s_significandf.c: Removed.
3232         * math/s_significandl.c: Removed.
3233         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
3234         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
3235
3236         * math/e_exp2_template.c (declare_mgen_finite_alias,
3237         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
3238         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
3239         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
3240
3241 2018-06-20  Florian Weimer  <fweimer@redhat.com>
3242
3243         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
3244
3245 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
3246
3247         [BZ #23280]
3248         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
3249         floating-point number to strtod functions rather than possibly
3250         negating result of those functions.
3251         * stdio-common/tst-scanf-round.c: New file.
3252         * stdio-common/Makefile (tests): Add tst-scanf-round.
3253         ($(objpfx)tst-scanf-round): Depend on $(libm).
3254
3255 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3256
3257         * sysdeps/mach/hurd/localplt.data: Move to...
3258         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
3259         R_386_GLOB_DAT like on Linux i386.
3260
3261 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
3262
3263         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
3264         (SHM_STAT_ANY): New macro.
3265         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
3266         (SHM_STAT_ANY): Likewise.
3267         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
3268         (SHM_STAT_ANY): Likewise.
3269         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
3270         (SHM_STAT_ANY): Likewise.
3271         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
3272         (SHM_STAT_ANY): Likewise.
3273         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
3274         (SHM_STAT_ANY): Likewise.
3275         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
3276         (SHM_STAT_ANY): Likewise.
3277         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
3278         (SHM_STAT_ANY): Likewise.
3279         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
3280         (SHM_STAT_ANY): Likewise.
3281         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
3282         (SHM_STAT_ANY): Likewise.
3283         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
3284         (SHM_STAT_ANY): Likewise.
3285         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
3286         (SHM_STAT_ANY): Likewise.
3287
3288         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
3289         (SEM_STAT_ANY): New macro.
3290         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
3291         (SEM_STAT_ANY): Likewise.
3292         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
3293         (SEM_STAT_ANY): Likewise.
3294         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
3295         (SEM_STAT_ANY): Likewise.
3296         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
3297         (SEM_STAT_ANY): Likewise.
3298         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
3299         (SEM_STAT_ANY): Likewise.
3300         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
3301         (SEM_STAT_ANY): Likewise.
3302         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
3303         (SEM_STAT_ANY): Likewise.
3304         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
3305         (SEM_STAT_ANY): Likewise.
3306         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
3307         (SEM_STAT_ANY): Likewise.
3308
3309         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
3310         (MSG_STAT_ANY): New macro.
3311         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
3312         (MSG_STAT_ANY): Likewise.
3313         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
3314         (MSG_STAT_ANY): Likewise.
3315         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
3316         (MSG_STAT_ANY): Likewise.
3317         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
3318         (MSG_STAT_ANY): Likewise.
3319         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
3320         (MSG_STAT_ANY): Likewise.
3321         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
3322         (MSG_STAT_ANY): Likewise.
3323         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
3324         (MSG_STAT_ANY): Likewise.
3325         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
3326         (MSG_STAT_ANY): Likewise.
3327         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
3328         (MSG_STAT_ANY): Likewise.
3329
3330         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3331         (MAP_TYPE): Change value to 0x2b.
3332
3333 2018-06-18  Florian Weimer  <fweimer@redhat.com>
3334
3335         [BZ #15722]
3336         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
3337         socket with SOCK_CLOEXEC.
3338
3339 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
3340
3341         [BZ #23303]
3342         * sysdeps/powerpc/powerpc64/le/Makefile
3343         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
3344         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
3345         (gnulib-tests): Also add $(f128-loader-link) for
3346         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
3347
3348 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3349
3350         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
3351         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
3352         of sendfile.
3353         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
3354         (sendfile64): New strong alias.
3355         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
3356         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
3357         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
3358         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
3359         attribute.
3360         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
3361         ___pthread_get_cleanup_stack.
3362         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
3363         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
3364         * mach/shortcut.awk: Make syscall stubs include
3365         <mach-shortcuts-hidden.h> and add hidden definition.
3366         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
3367         (__mach_msg): Add hidden prototype.
3368         * mach/msg.c: Include <mach.h>.
3369         (__mach_msg): Add hidden definition.
3370         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
3371         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
3372         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
3373         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
3374         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
3375         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
3376         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
3377         prototype and definition.
3378         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
3379         hidden target for _hurd_self_sigstate.
3380
3381 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
3382
3383         [BZ #23007]
3384         * stdlib/tst-strtod-nan-sign-main.c: New file.
3385         * stdlib/tst-strtod-nan-sign.c: Likewise.
3386         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
3387         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
3388         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
3389         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
3390         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
3391
3392 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
3393
3394         [BZ #23007]
3395         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
3396         appropriate sign.
3397
3398 2018-06-14  Florian Weimer  <fweimer@redhat.com>
3399
3400         [BZ #23290]
3401         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
3402         that the result stays within the ISO-8859-1 range.
3403         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
3404         characters are defined in IBM273.
3405
3406 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3407
3408         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
3409         __mach_task_self): Remove attribute_hidden.
3410
3411 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
3412
3413         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
3414         ignore -Wrestrict for one test.
3415
3416 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
3417             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3418
3419         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
3420
3421 2018-06-14  Florian Weimer  <fweimer@redhat.com>
3422
3423         * scripts/update-abilist.sh: Accept empty list of files to patch.
3424
3425 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3426
3427         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
3428         test-xfail-check-abi-libmachuser): Add.
3429         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
3430         __libc_read and __libc_write to __read and __write.
3431         * sysdeps/hurd/include/hurd/port.h: New file.
3432         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
3433         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
3434         __thread_switch, __evc_wait): Move declarations to...
3435         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
3436         attribute_hidden.
3437         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
3438         use PLT to call _hurd_self_sigstate.
3439
3440 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
3441
3442         [BZ #23279]
3443         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
3444         MAX_EXP as overflowing.
3445         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
3446         overflow flag.
3447         (round_str): Output also whether result overflows in each rounding
3448         mode.
3449         * stdlib/tst-strtod-round-data: Add more tests.
3450         * stdlib/tst-strtod-round-data.h: Regenerated.
3451         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
3452         (TEST): Handle extra arguments for overflow flags.
3453         (struct test_overflow): New type.
3454         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
3455         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
3456         (test_in_one_mode): Take argument with overflow information.
3457         (do_test): Update calls to test_in_one_mode.
3458
3459 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
3460
3461         * elf/dl-load (_dl_dst_substitute): Correct comment.
3462         (_dl_dst_count): Likewise.
3463
3464         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
3465         lll_futex_timed_wait.
3466
3467 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
3468
3469         [BZ #23277]
3470         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
3471         attribute.
3472         * math/test-nan-const.c: New file.
3473         * math/Makefile (tests): Add test-nan-const.
3474         (CFLAGS-test-nan-const.c): New variable.
3475
3476 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3477
3478         * benchtests/scripts/compare_strings.py (process_results): Add
3479         funcs argument.  Compare only functions which are selected.
3480         (main): Check if base function is among selected functions.
3481         Pass selected functions to process_results.
3482         (__main__): Add -f/--functions argument.
3483
3484 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
3485             Hongbo Zhang  <hongbo.zhang@linaro.org>
3486
3487         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
3488         __memcpy_falkor for phecda core.
3489         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
3490         __memmove_falkor for phecda core.
3491         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
3492         __memset_falkor for phecda core.
3493         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
3494         for phecda core.
3495         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
3496         macro to identify phecda core.
3497
3498 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
3499             Andreas Schwab  <schwab@suse.de>
3500             Dmitry V. Levin  <ldv@altlinux.org>
3501             Florian Weimer <fweimer@redhat.com>
3502
3503         [BZ #23102]
3504         [BZ #21942]
3505         [BZ #18018]
3506         [BZ #23259]
3507         CVE-2011-0536
3508         * elf/dl-dst.h: Remove DL_DST_COUNT.
3509         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
3510         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
3511         (is_dst): Comment.  Support ELF gABI.
3512         (_dl_dst_count): Comment.  Simplify and count DSTs.
3513         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
3514         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
3515         locals.
3516
3517 2018-06-12  Zack Weinberg  <zackw@panix.com>
3518
3519         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
3520         * sysdeps/unix/sysv/linux/dl-sysdep.c
3521         Include not-cancel.h.  Use __close_nocancel instead of __close,
3522         __open64_nocancel instead of __open, __read_nocancel instead of
3523         __libc_read, and __write_nocancel instead of __libc_write.
3524
3525         * csu/check_fds.c (check_one_fd)
3526         * sysdeps/posix/fdopendir.c (__fdopendir)
3527         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
3528         instead of __fcntl and/or __libc_fcntl.
3529
3530         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
3531         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
3532         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
3533         Use __open64_nocancel instead of __open_nocancel.
3534
3535         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
3536         hidden_proto declarations to the end and issue them if either
3537         IS_IN(libc) or IS_IN(rtld).
3538         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3539         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
3540         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
3541         read_nocancel, waitpid_nocancel, write_nocancel.
3542
3543         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
3544         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
3545         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
3546
3547         * nptl/pt-fcntl.c: New file.
3548         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
3549         (libpthread-routines): Add pt-fcntl.
3550         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
3551         (__libc_fcntl): Remove attribute_hidden.
3552         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
3553         __fcntl_nocancel_adjusted, not fcntl_common.
3554         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
3555         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
3556         to fcntl_nocancel.c.
3557         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
3558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
3559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3560         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
3561
3562         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
3563         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
3564         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
3565         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
3566         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
3567         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
3568         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
3569         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
3570         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
3571         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
3572         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
3573         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
3574         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
3575         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
3576         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
3577         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
3578         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
3579         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
3580         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
3581         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
3582
3583         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
3584         libpthread-routines.
3585         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
3586         defines nothing.
3587
3588         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
3589         __libc_read, and __write instead of __libc_write.  Define
3590         __open64 in addition to __open.
3591
3592 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
3593
3594         [BZ #23250]
3595         [BZ #10686]
3596         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
3597         to _private_tm[3] and add __glibc_reserved2.
3598         Add _Static_assert of offset of __private_ss == 0x30.
3599         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
3600         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
3601
3602 2018-06-12  Florian Weimer  <fweimer@redhat.com>
3603
3604         x86: Make strncmp usable from rtld.
3605         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
3606         __strncmp_ia32 if in libc (and not in rtld).
3607         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
3608         strncmp if not in libc (and not to __strncmp_sse2).
3609
3610 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
3611
3612         [BZ #23140]
3613         * localedata/locales/gd_GB (mon): Rename to...
3614         (alt_mon): This.
3615         (mon): Import from CLDR (genitive case).
3616         * localedata/locales/hsb_DE (mon): Rename to...
3617         (alt_mon): This.
3618         (mon): Import from CLDR (genitive case).
3619         * localedata/locales/wa_BE (mon): Rename to...
3620         (alt_mon): This.
3621         (mon): Add, fill with the proper genitive forms, but CLDR data
3622         is incomplete; completed according to the comments in this file.
3623         (d_t_fmt): Do not use "di" before the month name, no longer needed.
3624
3625         * localedata/locales/wa_BE (country_name): Reword
3626         "Beljike" -> "Beldjike".
3627
3628 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
3629
3630         [BZ #23272]
3631         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
3632         cases of non-finite arguments.
3633         * math/libm-test-fma.inc (fma_test_data): Add more tests.
3634
3635 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
3636
3637         [BZ #23174]
3638         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
3639
3640 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3641
3642         [BZ #23264]
3643         * include/unistd.h (__execvpex): New prototype.
3644         * posix/Makefile (tests): Add tst-spawn4.
3645         (tests-internal): Add tst-spawn4-compat.
3646         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
3647         * posix/tst-spawn4-compat.c: New file.
3648         * posix/tst-spawn4.c: Likewise.
3649         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
3650         binaries as shell scripts.
3651         * sysdeps/posix/spawni.c (__spawni): Likewise.
3652
3653 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
3654
3655         [BZ #23145]
3656         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
3657         ($(all-built-dso:=.dynsym): New target.
3658         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
3659         ($(objpfx)check-initfini.out): New target.
3660         (generated): Add check-initfini.out.
3661         * scripts/check-initfini.awk: New file.
3662         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
3663         (_fini): Likewise.
3664         * sysdeps/alpha/crti.S (_init): Mark as hidden.
3665         (_fini): Likewise.
3666         * sysdeps/arm/crti.S (_init): Mark as hidden.
3667         (_fini): Likewise.
3668         * sysdeps/hppa/crti.S (_init): Mark as hidden.
3669         (_fini): Likewise.
3670         * sysdeps/i386/crti.S (_init): Mark as hidden.
3671         (_fini): Likewise.
3672         * sysdeps/ia64/crti.S (_init): Mark as hidden.
3673         (_fini): Likewise.
3674         * sysdeps/m68k/crti.S (_init): Mark as hidden.
3675         (_fini): Likewise.
3676         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
3677         (_fini): Likewise.
3678         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
3679         (_fini): Likewise.
3680         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
3681         (_fini): Likewise.
3682         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
3683         (_fini): Likewise.
3684         * sysdeps/nios2/crti.S (_init): Mark as hidden.
3685         (_fini): Likewise.
3686         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
3687         (_fini): Likewise.
3688         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
3689         (_fini): Likewise.
3690         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
3691         (_fini): Likewise.
3692         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
3693         (_fini): Likewise.
3694         * sysdeps/sh/crti.S (_init): Mark as hidden.
3695         (_fini): Likewise.
3696         * sysdeps/sparc/crti.S (_init): Mark as hidden.
3697         (_fini): Likewise.
3698         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
3699         (_fini): Likewise.
3700
3701 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3702
3703         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
3704         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
3705         and TF redirection to KFtype and KF only when the default
3706         long double type is not the IEEE 128-bit floating point type.
3707
3708 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
3709
3710         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
3711         macro.
3712         (HWCAP_USCAT): Likewise.
3713         (HWCAP_ILRCPC): Likewise.
3714         (HWCAP_FLAGM): Likewise.
3715         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3716         Increase to 28.
3717         (_dl_aarch64_cap_flags): Add new flag names.
3718
3719         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
3720         (MAP_FIXED_NOREPLACE): New macro.
3721         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
3722         (MAP_FIXED_NOREPLACE): Likewise.
3723         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
3724         (MAP_FIXED_NOREPLACE): Likewise.
3725         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3726         (MAP_FIXED_NOREPLACE): Likewise.
3727         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
3728         (MAP_FIXED_NOREPLACE): Likewise.
3729         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
3730         (MAP_FIXED_NOREPLACE): Likewise.
3731         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
3732         (MAP_FIXED_NOREPLACE): Likewise.
3733         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
3734         (MAP_FIXED_NOREPLACE): Likewise.
3735         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
3736         (MAP_FIXED_NOREPLACE): Likewise.
3737         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
3738         (MAP_FIXED_NOREPLACE): Likewise.
3739         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
3740         (MAP_FIXED_NOREPLACE): Likewise.
3741         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
3742         (MAP_FIXED_NOREPLACE): Likewise.
3743         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
3744         (MAP_FIXED_NOREPLACE): Likewise.
3745         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
3746         (MAP_FIXED_NOREPLACE): Likewise.
3747         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
3748         (MAP_FIXED_NOREPLACE): Likewise.
3749
3750         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3751         version to 4.17.
3752
3753 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
3754
3755         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3756         version to 4.17
3757
3758 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3759
3760         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
3761         int.
3762         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
3763
3764 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
3765
3766         * benchtests/scripts/compare_string.py: (process_results) Catch
3767         exception in non-existent base_func and catch exception in
3768         non-existent attribute.
3769         (parse_file) Catch exception if input file does not exist.
3770
3771 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
3772
3773         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
3774         options to avoid diff calculation and omit header, respectively.
3775         (main): process --no-diff and --no-header
3776
3777 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
3778             H.J. Lu  <hongjiu.lu@intel.com>
3779
3780         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3781         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
3782         wcsncmp-sse2.
3783         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3784         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
3785         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
3786         and __wcsncmp_sse2.
3787         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
3788         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3789         AVX unaligned load is fast and vzeroupper is preferred.
3790         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
3791         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
3792         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
3793         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
3794         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
3795         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
3796         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
3797         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
3798         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
3799         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
3800         is undefined.
3801
3802 2018-06-01  Florian Weimer  <fweimer@redhat.com>
3803
3804         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
3805         configuring with --disable-multi-arch, building with
3806         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
3807         Haswell-era CPU.
3808
3809 2018-06-01  Florian Weimer  <fweimer@redhat.com>
3810
3811         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
3812         results from building with “-march=x86-64 -mtune=generic
3813         -mfpmath=sse” and running on a Haswell-era CPU.
3814
3815 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
3816
3817         [BZ #18473]
3818         * soft-fp/sqrttf2.c: Remove file.
3819         * soft-fp/sqrtdf2.c: Move to ....
3820         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
3821         <shlib-compat.h>.
3822         (__sqrtdf2): Make conditional on
3823         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
3824         symbol.
3825         * soft-fp/sqrtsf2.c: Move to ....
3826         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
3827         <shlib-compat.h>.
3828         (__sqrtsf2): Make conditional on
3829         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
3830         symbol.
3831         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
3832         (gcc-double-routines): Remove sqrtdf2.
3833         (gcc-quad-routines): Remove sqrttf2.
3834         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
3835         Do not filter out sqrtsf2 and sqrtdf2.
3836         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3837         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
3838
3839 2018-06-01  Florian Weimer  <fweimer@redhat.com>
3840
3841         * sysdeps/generic/libcidn.abilist: Remove file.
3842
3843 2018-06-01  Florian Weimer  <fweimer@redhat.com>
3844
3845         [BZ #23236]
3846         * libio/strfile.h (struct _IO_str_fields): Rename members to
3847         discourage their use and add comment.
3848         (_IO_STR_DYNAMIC): Remove unused macro.
3849         * libio/strops.c (_IO_str_init_static_internal): Do not use
3850         callback pointers.  Call malloc and free.
3851         (_IO_str_overflow): Do not use callback pointers.  Call malloc
3852         and free.
3853         (enlarge_userbuf): Likewise.
3854         (_IO_str_finish): Call free.
3855         * libio/wstrops.c (_IO_wstr_init_static): Initialize
3856         _allocate_buffer_unused.
3857         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
3858         and free.
3859         (enlarge_userbuf): Likewise.
3860         (_IO_wstr_finish): Call free.
3861         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
3862         _allocate_buffer_unused, _free_buffer_unused.
3863         * libio/memstream.c (__open_memstream): Likewise.
3864         * libio/vasprintf.c (_IO_vasprintf): Likewise.
3865         * libio/wmemstream.c (open_wmemstream): Likewise.
3866
3867 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
3868
3869         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
3870         AMD Ryzen 7 1800X.
3871
3872 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3873
3874         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
3875         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
3876         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
3877         New file.
3878         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
3879         Likewise.
3880         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
3881
3882 2018-05-29  Florian Weimer  <fweimer@redhat.com>
3883
3884         * support/Makefile (libsupport-routines): Add
3885         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
3886         xpthread_barrierattr_setpshared.
3887         * support/xpthread_barrierattr_destroy.c: New file.
3888         * support/xpthread_barrierattr_init.c: Likewise.
3889         * support/xpthread_barrierattr_setpshared.c: Likewise.
3890
3891 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3892
3893         [BZ #23206]
3894         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
3895         _r_debug and update DT_DEBUG for debugger.
3896
3897 2018-05-29  Florian Weimer  <fweimer@redhat.com>
3898
3899         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
3900         (tst-strtod5i.out): Likewise.
3901
3902 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
3903
3904         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
3905         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
3906         (sparc64-quad-routines): New variable.  Moved from ....
3907         [$(subdir) = soft-fp] (sysdep_routines): Add
3908         $(sparc64-quad-routines).  Moved from ....
3909         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
3910         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
3911         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
3912         moved from ....
3913         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
3914         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
3915         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
3916         * sysdeps/sparc/sparc64/qp_add.c: ... here.
3917         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
3918         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
3919         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
3920         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
3921         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
3922         * sysdeps/sparc/sparc64/qp_div.c: ... here.
3923         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
3924         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
3925         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
3926         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
3927         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
3928         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
3929         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
3930         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
3931         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
3932         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
3933         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
3934         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
3935         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
3936         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
3937         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
3938         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
3939         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
3940         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
3941         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
3942         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
3943         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
3944         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
3945         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
3946         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
3947         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
3948         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
3949         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
3950         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
3951         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
3952         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
3953         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
3954         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
3955         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
3956         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
3957         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
3958         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
3959         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
3960         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
3961         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
3962         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
3963         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
3964         * sysdeps/sparc/sparc64/qp_util.c: ... here.
3965         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
3966         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
3967         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
3968         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
3969         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
3970         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
3971
3972         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
3973         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
3974         (sparc32-quad-routines): New variable.  Moved from ....
3975         [$(subdir) = soft-fp] (sysdep_routines): Add
3976         $(sparc32-quad-routines).  Moved from ....
3977         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
3978         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
3979         moved from ....
3980         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
3981         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
3982         * sysdeps/sparc/sparc32/q_add.c: ... here.
3983         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
3984         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
3985         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
3986         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
3987         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
3988         * sysdeps/sparc/sparc32/q_div.c: ... here.
3989         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
3990         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
3991         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
3992         * sysdeps/sparc/sparc32/q_feq.c: ... here.
3993         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
3994         * sysdeps/sparc/sparc32/q_fge.c: ... here.
3995         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
3996         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
3997         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
3998         * sysdeps/sparc/sparc32/q_fle.c: ... here.
3999         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
4000         * sysdeps/sparc/sparc32/q_flt.c: ... here.
4001         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
4002         * sysdeps/sparc/sparc32/q_fne.c: ... here.
4003         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
4004         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
4005         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
4006         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
4007         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
4008         * sysdeps/sparc/sparc32/q_mul.c: ... here.
4009         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
4010         * sysdeps/sparc/sparc32/q_neg.c: ... here.
4011         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
4012         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
4013         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
4014         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
4015         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
4016         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
4017         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
4018         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
4019         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
4020         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
4021         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
4022         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
4023         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
4024         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
4025         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
4026         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
4027         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
4028         * sysdeps/sparc/sparc32/q_sub.c: ... here.
4029         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
4030         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
4031         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
4032         * sysdeps/sparc/sparc32/q_util.c: ... here.
4033         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
4034         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
4035         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
4036         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
4037
4038 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4039             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4040
4041         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
4042         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
4043         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
4044         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
4045
4046 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
4047
4048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
4049         powerpc/soft-fp.
4050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4051         Likewise.
4052         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
4053         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
4054
4055 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4056
4057         [BZ #23171]
4058         * math/math.h [C++] (iseqsig): Fix parameter type for the long
4059         double version.
4060
4061 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
4062
4063         * sysdeps/sh/Implies: Remove sh/soft-fp.
4064         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
4065         * sysdeps/sh/sfp-machine.h: ... here.
4066
4067 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4068
4069         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4070         (__mempcpy_erms): Skip zero length.
4071         (__memmove_erms): Likewise.
4072         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4073         (__memset_erms): Likewise.
4074
4075 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
4076
4077         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
4078         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
4079         Add functions moved from ....
4080         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
4081         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
4082         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
4083         from ....
4084         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
4085         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
4086         * sysdeps/alpha/e_sqrtl.c: ... here.
4087         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
4088         * sysdeps/alpha/local-soft-fp.h: ... here.
4089         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
4090         * sysdeps/alpha/ots_add.c: ... here.
4091         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
4092         * sysdeps/alpha/ots_cmp.c: ... here.
4093         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
4094         * sysdeps/alpha/ots_cmpe.c: ... here.
4095         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
4096         * sysdeps/alpha/ots_cvtqux.c: ... here.
4097         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
4098         * sysdeps/alpha/ots_cvtqx.c: ... here.
4099         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
4100         * sysdeps/alpha/ots_cvttx.c: ... here.
4101         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
4102         * sysdeps/alpha/ots_cvtxq.c: ... here.
4103         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
4104         * sysdeps/alpha/ots_cvtxt.c: ... here.
4105         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
4106         * sysdeps/alpha/ots_div.c: ... here.
4107         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
4108         * sysdeps/alpha/ots_mul.c: ... here.
4109         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
4110         * sysdeps/alpha/ots_nintxq.c: ... here.
4111         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
4112         * sysdeps/alpha/ots_sub.c: ... here.
4113         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
4114         * sysdeps/alpha/sfp-machine.h: ... here.
4115
4116 2018-05-23  Florian Weimer  <fweimer@redhat.com>
4117
4118         [BZ #19728]
4119         [BZ #19729]
4120         [BZ #22247]
4121         CVE-2016-6261
4122         CVE-2016-6263
4123         CVE-2017-14062
4124         Switch to extern IDNA implementation (libidn2).
4125         * libidn: Remove subdirectory.
4126         * LICENSES: Do not mention licensing conditions for the removed
4127         libidn code.
4128         * config.h.in (HAVE_LIBIDN): Remove.
4129         * include/dlfcn.h (__libc_dlopen): Update comment.
4130         * include/idna.h: Remove file.
4131         * inet/Makefile (routines): Add idna.
4132         (tests-static, tests-internal): Add tst-idna_name_classify.
4133         (LOCALES): Generate locales for tests.
4134         (tst-idna_name_classify.out): Depend on generated locales.
4135         * inet/idna_name_classify.c: New file.
4136         * inet/tst-idna_name_classify.c: Likewise.
4137         * inet/net-internal.h (__idna_to_dns_encoding)
4138         (__idna_from_dns_encoding): Declare.
4139         * inet/net-internal.h (enum idna_name_classification): Define.
4140         (__idna_name_classify): Declare.
4141         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
4142         __idna_from_dns_encoding.
4143         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
4144         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
4145         name as a fallback in case of encoding errors.
4146         (getnameinfo): Use DEPRECATED_NI_IDN.
4147         * inet/idna.c: New file.
4148         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
4149         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
4150         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
4151         (modules-names): Add tst-no-libidn2.
4152         (extra-test-objs): Add tst-no-libidn2.os.
4153         (LDFLAGS-tst-no-libidn2.so): Set soname.
4154         (LOCALES): Set, and generate locales.
4155         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
4156         (tst-resolv-ai_idn-latin1): Likewise.
4157         (tst-resolv-ai_idn-nolibidn2): Likewise.
4158         (tst-resolv-ai_idn.out): Depend on locales.
4159         (tst-resolv-ai_idn-latin1.out): Depend on locales.
4160         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
4161         tst-no-libidn2.so.
4162         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
4163         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
4164         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
4165         * resolv/tst-resolv-ai_idn.c: New file.
4166         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
4167         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
4168         * resolv/tst-no-libidn2.c: Likewise.
4169         * support/support_format_addrinfo.c (format_ai_flags): Do not
4170         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
4171         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
4172         (gaih_inet): Call __idna_to_dns_encoding and
4173         __idna_from_dns_encoding, and use the original (punycode) name if
4174         __idna_from_dns_encoding fails due to an encoding error.
4175         (getaddrinfo): Use DEPRECATED_AI_IDN.
4176         * sysdeps/unix/inet/Subdirs (libidn): Remove.
4177         * sysdeps/unix/inet/configure: Remove file.
4178         * sysdeps/unix/inet/configure.ac: Likewise.
4179
4180 2018-05-23  Florian Weimer  <fweimer@redhat.com>
4181
4182         Implement allocate_once.
4183         * include/allocate_once.h: New file.
4184         * misc/allocate_once.c: Likewise.
4185         * misc/tst-allocate_once.c: Likewise.
4186         * misc/Makefile (routines): Add allocate_once.
4187         (tests-internal): Add tst-allocate_once.
4188         (generated): Add tst-allocate_once.mtrace,
4189         tst-allocate_once-mem.out.
4190         (tests-special): Add tst-allocate_once-mem.out.
4191         (tst-allocate_once-ENV): Set MALLOC_TRACE.
4192         (tst-allocate_once-mem.out): Call mtrace.
4193         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
4194
4195 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4196
4197         [BZ #23196]
4198         * string/test-memcpy.c (do_test1): New function.
4199         (test_main): Call it.
4200
4201 2018-05-23  Andreas Schwab  <schwab@suse.de>
4202
4203         [BZ #23196]
4204         CVE-2018-11237
4205         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
4206         (L(preloop_large)): Save initial destination pointer in %r11 and
4207         use it instead of %rax after the loop.
4208         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
4209
4210 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
4211
4212         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
4213         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
4214         -I../soft-fp.  Moved from ....
4215         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
4216         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
4217         * sysdeps/aarch64/e_sqrtl.c: ... here.
4218         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
4219         * sysdeps/aarch64/sfp-machine.h: ... here.
4220
4221         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
4222         -Wmaybe-uninitialized around access to fq[0].
4223         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
4224         Likewise.
4225
4226         [BZ #18471]
4227         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
4228         aliases for non-libc case of versioned symbols.
4229         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
4230         (llseek): Define as compat symbol if
4231         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
4232         with link warning.
4233         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
4234         Make into a compat symbol, disabled for minimum symbol version
4235         GLIBC_2.28 and later.
4236         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
4237
4238 2018-05-22  Florian Weimer  <fweimer@redhat.com>
4239
4240         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
4241         not add -mpreferred-stack-boundary=4.
4242         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
4243         (stack-align-test-flags): Likewise.
4244         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
4245         Likewise.
4246         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
4247         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
4248         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
4249         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
4250         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
4251         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
4252         (CFLAGS-tst-align2.c): Likewise.
4253
4254 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4255
4256         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
4257         (index_arch_Prefer_FSRM): Likewise.
4258         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4259         Also check Prefer_FSRM.
4260         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
4261         Also return OPTIMIZE (erms) for Prefer_FSRM.
4262
4263 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4264
4265         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
4266         (index_cpu_FSRM): Likewise.
4267         (reg_FSRM): Likewise.
4268
4269 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
4270
4271         * math/gen-tgmath-tests.py: Import sys.
4272         (Tests.__init__): Initialize macros_seen.
4273         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
4274         if requested to do so for this macro.
4275         (Tests.add_all_tests): Take argument for macro for which to
4276         generate tests.
4277         (Tests.check_macro_list): New function.
4278         (main): Handle check-list argument and argument specifying macro
4279         for which to generate tests.
4280         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
4281         [PYTHON] (tgmath3-macro-tests): Likewise.
4282         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
4283         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
4284         not test-tgmath3.c.
4285         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
4286         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
4287         to CFLAGS.
4288         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
4289         [PYTHON] ($(foreach
4290         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
4291         rule.
4292         [PYTHON] (tests-special): Add
4293         $(objpfx)test-tgmath3-macro-list.out.
4294         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
4295
4296         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
4297         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
4298         later.
4299
4300         [BZ #22639]
4301         * time/tzset.c (SECSPERDAY): Cast to time_t.
4302         * time/tst-y2039.c: New file.
4303         * time/Makefile (tests): Add tst-y2039.
4304
4305 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4306
4307         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4308         (PREFETCH_ONE_SET): Remove duplicate line.
4309
4310 2018-05-17  Florian Weimer  <fweimer@redhat.com>
4311
4312         * sysdeps/generic/math-type-macros-double.h: Include
4313         <math-nan-payload-double.h> after <libm-alias-double.h>.
4314         * sysdeps/generic/math-type-macros-float.h: Include
4315         <math-nan-payload-float.h> after <libm-alias-float.h>.
4316         * sysdeps/generic/math-type-macros-float128.h: Include
4317         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
4318         * sysdeps/generic/math-type-macros-ldouble.h: Include
4319         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
4320
4321 2018-05-17  Andreas Schwab  <schwab@suse.de>
4322
4323         * resolv/res_send.c (__res_context_send): Don't set errno when
4324         returing error after malloc failure.
4325
4326 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4327
4328         * nptl/allocatestack.c (allocate_stack): Remove the
4329         !__ASSUME_PRIVATE_FUTEX paths.
4330         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
4331         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
4332         Likewise.
4333         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
4334         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4335         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4336         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4337         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
4338         !__ASSUME_PRIVATE_FUTEX path.
4339         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
4340         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
4341         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
4342         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
4343         !__ASSUME_PRIVATE_FUTEX macros.
4344         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4345         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
4346         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4347         * sysdeps/unix/sysv/linux/kernel-features.h
4348         (__ASSUME_PRIVATE_FUTEX): Removed.
4349
4350 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
4351
4352         * math/Makefile (libm-narrow-fns): Add div.
4353         (libm-test-funcs-narrow): Likewise.
4354         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
4355         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
4356         * math/gen-auto-libm-tests.c (test_functions): Add div.
4357         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
4358         (NARROW_DIV_ROUND_TO_ODD): Likewise.
4359         (NARROW_DIV_TRIVIAL): Likewise.
4360         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
4361         macro.
4362         (__ddivl): Likewise.
4363         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
4364         ddiv.
4365         (CFLAGS-nldbl-ddiv.c): New variable.
4366         (CFLAGS-nldbl-fdiv.c): Likewise.
4367         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
4368         __nldbl_ddivl.
4369         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
4370         prototype.
4371         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
4372         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
4373         * math/auto-libm-test-in: Add tests of div.
4374         * math/auto-libm-test-out-narrow-div: New generated file.
4375         * math/libm-test-narrow-div.inc: New file.
4376         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
4377         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
4378         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
4379         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
4380         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
4381         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
4382         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
4383         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
4384         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
4385         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
4386         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
4387         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
4388         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
4389         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
4390         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
4391         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4392         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
4393         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4394         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4395         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4396         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4397         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4398         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4399         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4400         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4401         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4402         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4403         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4404         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4405         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4406         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4407         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
4409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
4410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
4411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
4412         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
4413         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4414         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4415         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4416         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4417         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4418         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4419         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4420
4421 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4422
4423         [BZ #23178]
4424         * nscd/nscd-client.h (sendfileall): Remove prototype.
4425         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
4426         (handle_request): Use writeall instead of sendfileall.
4427         * nscd/aicache.c (addhstaiX): Likewise.
4428         * nscd/grpcache.c (cache_addgr): Likewise.
4429         * nscd/hstcache.c (cache_addhst): Likewise.
4430         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4431         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
4432         * nscd/pwdcache.c (cache_addpw): Likewise.
4433         * nscd/servicescache.c (cache_addserv): Likewise.
4434         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
4435         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
4436         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
4437         Remove define.
4438
4439 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4440
4441         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
4442         Include <string/strncat.c>.
4443         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
4444         alias.
4445         (__GI___strncat): New hidden alias.
4446
4447 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
4448
4449         * sysdeps/mips/mips32/libm-test-ulps: Update.
4450         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4451
4452 2018-05-16  Florian Weimer  <fweimer@redhat.com>
4453
4454         * support/Makefile (libsupport-routines): Add support_quote_blob,
4455         support_test_compare_blob.
4456         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
4457         * support/check.h (TEST_COMPARE_BLOB): Define.
4458         (support_test_compare_blob): Declare.
4459         * support/support.h (support_quote_blob): Declare.
4460         * support/support_quote_blob.c: New file.
4461         * support/support_test_compare_blob.c: Likewise.
4462         * support/tst-support_quote_blob.c: Likewise.
4463         * support/tst-test_compare_blob.c: Likewise.
4464
4465 2018-05-16  Florian Weimer  <fweimer@redhat.com>
4466
4467         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
4468         of <strtod_nan_double.h>.
4469         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
4470         instead of SET_MANTISSA.
4471         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
4472         of include <strtod_nan_float.h>.
4473         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
4474         instead of <strtod_nan_ldouble.h>.
4475         * stdlib/strtod_nan_double.h: Move to ...
4476         * sysdeps/generic/math-nan-payload-double.h: ... here.
4477         (FLOAT): Remove definition.
4478         (SET_MANTISSA): Rename to ...
4479         (SET_NAN_PAYLOAD): ... this.
4480         * stdlib/strtod_nan_float.h: Move to ...
4481         * sysdeps/generic/math-nan-payload-float.h: ... here.
4482         (FLOAT): Remove definition.
4483         (SET_MANTISSA): Rename to ...
4484         (SET_NAN_PAYLOAD): ... this.
4485         * sysdeps/generic/math-type-macros-double.h: Include
4486         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
4487         instead of <math-svid-compat.h>.
4488         * sysdeps/generic/math-type-macros-float.h: Include
4489         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
4490         instead of <math-svid-compat.h>.
4491         * sysdeps/generic/math-type-macros-float128.h: Include
4492         <math-nan-payload-float128.h>.
4493         * sysdeps/generic/math-type-macros-ldouble.h: Include
4494         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
4495         instead of <math-svid-compat.h>.
4496         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
4497         check for definition.
4498         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
4499         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
4500         Include <ieee754_float128.h>.
4501         (FLOAT): Remove definition.
4502         (SET_MANTISSA): Rename to ...
4503         (SET_NAN_PAYLOAD): ... this.
4504         * sysdeps/ieee754/float128/strtof128_nan.c: Include
4505         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
4506         Do not include <float128_private.h>.
4507         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
4508         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
4509         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
4510         (FLOAT): Remove definition.
4511         (SET_MANTISSA): Rename to ...
4512         (SET_NAN_PAYLOAD): ... this.
4513         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
4514         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
4515         (FLOAT): Remove definition.
4516         (SET_MANTISSA): Rename to ...
4517         (SET_NAN_PAYLOAD): ... this.
4518         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
4519         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
4520         (FLOAT): Remove definition.
4521         (SET_MANTISSA): Rename to ...
4522         (SET_NAN_PAYLOAD): ... this.
4523         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
4524         of "../stdlib/strtod_nan_double.h".
4525         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
4526         of "../stdlib/strtod_nan_float.h".
4527         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
4528         instead of "../stdlib/strtod_nan_ldouble.h".
4529         * manual/arith.texi (Parsing of Floats): Adjust comment.
4530
4531 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
4532
4533         * math/Makefile (libm-narrow-fns): Add mul.
4534         (libm-test-funcs-narrow): Likewise.
4535         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
4536         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
4537         * math/gen-auto-libm-tests.c (test_functions): Add mul.
4538         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
4539         (NARROW_MUL_ROUND_TO_ODD): Likewise.
4540         (NARROW_MUL_TRIVIAL): Likewise.
4541         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
4542         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
4543         macro.
4544         (__dmull): Likewise.
4545         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
4546         dmul.
4547         (CFLAGS-nldbl-dmul.c): New variable.
4548         (CFLAGS-nldbl-fmul.c): Likewise.
4549         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
4550         __nldbl_dmull.
4551         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
4552         prototype.
4553         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
4554         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
4555         * math/auto-libm-test-in: Add tests of mul.
4556         * math/auto-libm-test-out-narrow-mul: New generated file.
4557         * math/libm-test-narrow-mul.inc: New file.
4558         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
4559         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
4560         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
4561         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
4562         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
4563         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
4564         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
4565         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
4566         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
4567         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
4568         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
4569         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
4570         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
4571         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
4572         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
4573         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4574         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
4575         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4576         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4577         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4578         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4579         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4580         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4581         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4582         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4583         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4584         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4585         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4586         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4587         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4588         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4589         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
4591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
4592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
4593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
4594         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
4595         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4596         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4597         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4598         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4599         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4600         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4601         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4602
4603 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4604
4605         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4606         with *%eax in call.
4607
4608 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4609
4610         * sysdeps/i386/ldsodefs.h: Removed.
4611         * sysdeps/x86_64/ldsodefs.h: Moved to ...
4612         * sysdeps/x86/ldsodefs.h: This.
4613         (La_i86_regs): New.
4614         (La_i86_retval): Likewise.
4615         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
4616         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
4617
4618 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4619
4620         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
4621         unnecessary testl.
4622
4623 2018-05-13  Alan Modra  <amodra@gmail.com>
4624
4625         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
4626         R_PARISC_TLS_DTPOFF32 reloc addend.
4627
4628 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4629
4630         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
4631         * math/math.h: Restrict the prototype definition for the functions
4632         issignaling(_Float128) and iszero(_Float128); and template
4633         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
4634         __HAVE_FLOAT128_UNLIKE_LDBL.
4635         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
4636         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
4637         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
4638         __f128() constants; define the type _Float128 as long double;
4639         and reuse long double in __CFLOAT128.
4640
4641 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
4642
4643         * sysdeps/generic/math_private.h: Do not include
4644         <math-barriers.h>.
4645         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
4646         <math_private.h>.
4647         * math/fromfp.h: Include <math-barriers.h>.
4648         * math/math-narrow.h: Likewise.
4649         * math/s_nextafter.c: Likewise.
4650         * math/s_nexttowardf.c: Likewise.
4651         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
4652         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
4653         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
4654         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
4655         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4656         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4657         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4658         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4659         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4660         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4661         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4662         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4663         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4664         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4665         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
4666         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
4667         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4668         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4669         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4670         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4671         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
4672         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4673         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4674         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4675         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4676         * sysdeps/ieee754/k_standardl.c: Likewise.
4677         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4678         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4679         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4680         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4681         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4682         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4683         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4684         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4685         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4686         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4687         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4688         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4689         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4690         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4691         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4692         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
4693         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
4694         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
4695         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4696         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4697         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
4698         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
4699
4700 2018-05-11  Florian Weimer  <fweimer@redhat.com>
4701
4702         Use 64-bit epoch values in the time zone file parser.
4703         * include/time.h (internal_time_t): Define.
4704         (__tzfile_compute): Use it.
4705         * time/tzfile.c (struct leap): Use internal_time_t for epoch
4706         member.
4707         (transitions): Switch to internal_time_t.
4708         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
4709         types.
4710         (__tzfile_compute): Use internal_time_t for timer argument.  Check
4711         for truncation before calling __offtime.
4712
4713 2018-05-11  Florian Weimer  <fweimer@redhat.com>
4714
4715         [BZ #23166]
4716         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
4717         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
4718         Likewise.
4719         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
4720         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
4721         export without --enable-obsolete-rpc.
4722         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
4723         symbol.  This should not have been exported, ever.
4724
4725 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
4726
4727         [BZ #23152]
4728         * localedata/locales/gd_GB (abmon): Fix typo in May:
4729         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
4730
4731 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4732
4733         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
4734         Use multiple registers to copy data in loop tail.
4735
4736         * sysdeps/aarch64/multiarch/memmove_falkor.S
4737         (__memmove_falkor): Use multiple registers to move data in
4738         loop tail.
4739
4740 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
4741
4742         * math/math-underflow.h: New file.
4743         * sysdeps/generic/math_private.h: Do not include <float.h>.
4744         (fabs_tg): Remove macro.  Moved to math-underflow.h.
4745         (min_of_type_f): Likewise.
4746         (min_of_type_): Likewise.
4747         (min_of_type_l): Likewise.
4748         (min_of_type_f128): Likewise.
4749         (min_of_type): Likewise.
4750         (math_check_force_underflow): Likewise.
4751         (math_check_force_underflow_nonneg): Likewise.
4752         (math_check_force_underflow_complex): Likewise.
4753         * math/e_exp2_template.c: Include <math-underflow.h>.
4754         * math/k_casinh_template.c: Likewise.
4755         * math/s_catan_template.c: Likewise.
4756         * math/s_catanh_template.c: Likewise.
4757         * math/s_ccosh_template.c: Likewise.
4758         * math/s_cexp_template.c: Likewise.
4759         * math/s_clog10_template.c: Likewise.
4760         * math/s_clog_template.c: Likewise.
4761         * math/s_csin_template.c: Likewise.
4762         * math/s_csinh_template.c: Likewise.
4763         * math/s_csqrt_template.c: Likewise.
4764         * math/s_ctan_template.c: Likewise.
4765         * math/s_ctanh_template.c: Likewise.
4766         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4767         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4768         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4769         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4770         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4771         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4772         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4773         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4774         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4775         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4776         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4777         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4778         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4779         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4780         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4781         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4782         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4783         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4784         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4785         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4786         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4787         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4788         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4789         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4790         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4791         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4792         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
4793         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4794         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4795         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4796         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4797         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4798         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4799         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4800         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4801         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4802         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4803         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4804         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4805         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4806         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4807         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4808         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4809         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4810         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4811         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4812         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4813         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4814         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4815         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4816         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
4817         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
4818         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
4819         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4820         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4821         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
4822         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4823         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
4824         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4825         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4826         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4827         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
4828         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4829         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4830         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4831         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4832         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4833         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
4834         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4835         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
4836         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4837         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
4838         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4839         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
4840         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4841         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4842         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4843         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4844         * sysdeps/x86/fpu/powl_helper.c: Likewise.
4845         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
4846         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
4847         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4848         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
4849         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
4850
4851 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
4852
4853         * sysdeps/generic/math-barriers.h: New file.
4854         * sysdeps/generic/math_private.h [!math_opt_barrier]
4855         (math_opt_barrier): Move to math-barriers.h.
4856         [!math_opt_barrier] (math_force_eval): Likewise.
4857         * sysdeps/aarch64/fpu/math-barriers.h: New file.
4858         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
4859         math-barriers.h.
4860         (math_force_eval): Likewise.
4861         * sysdeps/alpha/fpu/math-barriers.h: New file.
4862         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
4863         math-barriers.h.
4864         (math_force_eval): Likewise.
4865         * sysdeps/x86/fpu/math-barriers.h: New file.
4866         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
4867         math-barriers.h.
4868         (math_force_eval): Likewise.
4869         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
4870         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
4871         multiple-include guard for rename.
4872         * sysdeps/powerpc/fpu/math-barriers.h: New file.
4873         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
4874         math-barriers.h.
4875         (math_force_eval): Likewise.
4876
4877 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
4878
4879         [BZ #22786]
4880         CVE-2018-11236
4881         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
4882         computation.
4883         * stdlib/Makefile (test-bz22786): New test.
4884         * stdlib/test-bz22786.c: New test.
4885
4886 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
4887
4888         * include/math-narrow-eval.h: New file.  Contents moved from ....
4889         * sysdeps/generic/math_private.h: ... here.
4890         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
4891         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
4892         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
4893         * stdlib/strtod_l.c: Likewise.
4894         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
4895         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
4896         * sysdeps/i386/fpu/s_fdim.c: Likewise.
4897         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4898         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4899         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4900         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4901         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
4902         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4903         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
4904         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4905         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
4906         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4907         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4908         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4909         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
4910         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
4911         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
4912         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4913         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4914         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4915         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4916         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4917         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4918         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
4919         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4920         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4921         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4922         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4923
4924 2018-05-08  Andreas Schwab  <schwab@suse.de>
4925
4926         * sysdeps/nptl/internaltypes.h: Fix comment.
4927
4928 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
4929
4930         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4931         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
4932         hidden.
4933
4934 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4935
4936         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
4937         of I into loop header.
4938         * benchtests/bench-memmove-walk.c
4939         (test_main): Likewise.
4940
4941 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
4942
4943         Revert:
4944         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
4945         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
4946
4947 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4948
4949         [BZ #20419]
4950         * elf/dl-load.c (open_verify): Fix stack overflow.
4951         * elf/Makefile (tst-big-note): New test.
4952         * elf/tst-big-note-lib.S: New.
4953         * elf/tst-big-note.c: New.
4954
4955 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
4956
4957         * scripts/abilist.awk: Ignore absolute symbols.
4958         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
4959         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
4960         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
4961         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
4962         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
4963         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
4964         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4965         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
4966         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
4967         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
4968         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
4969         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
4970         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
4971         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
4972         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
4973         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
4974         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
4975         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
4976         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4977         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
4978         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
4979         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
4980         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
4981         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
4982         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
4983         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
4984         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
4985         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
4986         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4987         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
4988         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
4989         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4990         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
4991         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
4992         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
4993         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
4994         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
4995         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
4996         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
4997         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
4998         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
4999         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5000         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
5001         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
5002         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5003         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
5004         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
5005         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
5006         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
5007         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
5008         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
5009         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
5010         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
5011         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
5012         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5013         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
5014         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
5015         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5016         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
5017         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
5018         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
5019         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
5020         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
5021         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
5022         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
5023         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
5024         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
5025         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5026         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
5027         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
5028         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5029         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
5030         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
5031         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
5032         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
5033         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
5034         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
5035         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
5036         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
5037         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
5038         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5039         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
5040         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
5041         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5042         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
5043         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
5044         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
5045         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
5046         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
5047         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
5048         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
5049         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
5050         Likewise.
5051         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
5052         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5053         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
5054         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
5055         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5056         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
5057         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
5058         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
5059         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
5060         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
5061         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
5062         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
5063         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
5064         Likewise.
5065         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
5066         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5067         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
5068         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
5069         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5070         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
5071         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
5072         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
5073         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
5074         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
5075         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
5076         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
5077         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
5078         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
5079         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5080         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
5081         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
5082         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5083         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
5084         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
5085         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
5086         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
5087         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
5088         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
5089         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5090         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
5091         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
5092         Likewise.
5093         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
5094         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
5095         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
5096         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
5097         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5098         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
5099         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
5100         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
5101         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
5102         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
5103         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
5104         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
5105         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
5106         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
5107         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
5108         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
5109         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
5110         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
5111         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5112         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
5113         Likewise.
5114         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
5115         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
5116         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
5117         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5118         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
5119         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
5120         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
5121         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
5122         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
5123         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
5124         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5125         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
5126         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
5127         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5128         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
5129         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
5130         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
5131         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
5132         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5133         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
5134         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
5135         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5136         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
5137         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
5138         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
5139         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
5140         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
5141         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
5142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
5143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
5144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
5145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
5146         Likewise.
5147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
5148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
5149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
5150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
5151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
5152         Likewise.
5153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
5154         Likewise.
5155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
5156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
5157         Likewise.
5158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
5159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5160         Likewise.
5161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5162         Likewise.
5163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
5164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
5165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
5166         Likewise.
5167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
5168         Likewise.
5169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
5170         Likewise.
5171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
5172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
5173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
5175         Likewise.
5176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
5177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
5178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
5179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
5180         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
5181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
5182         Likewise.
5183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
5184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
5185         Likewise.
5186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
5187         Likewise.
5188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
5189         Likewise.
5190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
5191         Likewise.
5192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
5193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
5194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
5195         Likewise.
5196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
5197         Likewise.
5198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
5199         Likewise.
5200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
5201         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
5202         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
5203         Likewise.
5204         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
5205         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5206         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
5207         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
5208         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
5209         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
5210         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
5211         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
5212         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
5213         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
5214         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
5215         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
5216         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
5217         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
5218         Likewise.
5219         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5220         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
5221         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
5222         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5223         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
5224         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
5225         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
5226         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
5227         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
5228         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
5229         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
5230         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
5231         Likewise.
5232         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5233         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
5234         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
5235         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5236         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
5237         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
5238         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
5239         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
5240         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
5241         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
5242         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
5243         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
5244         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
5245         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5246         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
5247         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
5248         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5249         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
5250         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
5251         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
5252         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
5253         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
5254         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
5255         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
5256         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
5257         Likewise.
5258         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
5259         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5260         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
5261         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
5262         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5263         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
5264         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
5265         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
5266         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
5267         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
5268         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
5269         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
5270         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
5271         Likewise.
5272         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
5273         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5274         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
5275         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
5276         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5277         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
5278         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
5279         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
5280         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
5281         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
5282         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
5283         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
5284         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
5285         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
5286         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5287         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
5288         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
5289         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5290         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
5291         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
5292         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
5293         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
5294         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
5295         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
5296         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
5297         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
5298         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
5299         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
5300         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5301         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
5302         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
5303         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5304         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
5305         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
5306         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
5307         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
5308         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
5309         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
5310
5311 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
5312
5313         [BZ #23137]
5314         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
5315         Use atomic_load_acquire to load __tid.
5316
5317 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
5318
5319         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
5320         Restore the pointer into %rdx, after syscall and use %rdx,
5321         instead of %rsi, to restore context.
5322
5323 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
5324
5325         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
5326         Pop the pointer into %rdx after syscall and use %rdx, instead
5327         of %rsi, to restore context.
5328
5329 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
5330
5331         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
5332         handlers after setjmp.
5333         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
5334         defined.
5335         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
5336         <libc-pointer-arith.h>.
5337         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
5338         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
5339         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
5340         _JUMP_BUF_SIGSET_BITS_PER_WORD.
5341         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
5342         * sysdeps/x86/__longjmp_cancel.S: New file.
5343         * sysdeps/x86/longjmp.c: Likewise.
5344         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
5345
5346 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5347
5348         * NEWS: Add ustat.h deprecation entry.
5349         * bits/ustat.h: Remove file.
5350         * misc/sys/ustat.h: Likewise.
5351         * misc/ustat.h: Likewise.
5352         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
5353         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
5354         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
5355         compatibility mode.
5356         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
5357         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
5358         generic Linux implementation.
5359
5360 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5361
5362         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
5363         * math/w_expl_compat.c: Likewise.
5364         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
5365
5366 2018-04-30  Raymond Nicholson <rain1@airmail.cc>
5367
5368         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
5369
5370 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5371
5372         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
5373         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
5374         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
5375         Remove.
5376         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
5377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
5378         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
5379         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
5380         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
5381         and SYSCALL_LL64.
5382
5383 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5384
5385         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
5386
5387         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
5388         * math/w_asin_template.c: Likewise.
5389         * math/w_atanh_template.c: Likewise.
5390
5391 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5392
5393         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
5394         to powerpc/powerpc64/be for big-endian.
5395         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
5396         little-endian.
5397
5398         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
5399         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
5400         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
5401         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
5402         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
5403         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
5404         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
5405         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
5406         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
5407         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
5408         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
5409         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
5410         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
5411         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
5412         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
5413         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
5414         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
5415         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
5416         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
5417         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
5418         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
5419         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
5420         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
5421         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
5422         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
5423         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
5424         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
5425         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
5426         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
5427         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5428         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5429         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5430
5431         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
5432         adjusted to imply powerpc64 and older processors on powerpc64/be.
5433         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
5434         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
5435         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
5436         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
5437         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
5438         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
5439         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
5440         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
5441         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
5442         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
5443         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
5444         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
5445         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
5446         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
5447         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
5448         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
5449         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
5450         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
5451         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
5452         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
5453         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
5454         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
5455         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
5456         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
5457         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
5458         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
5459         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
5460         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
5461         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
5462         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
5463         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
5464
5465         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
5466         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
5467         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
5468         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
5469
5470         * sysdeps/powerpc/powerpc64/be/Implies: New file.
5471         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
5472         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
5473         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
5474
5475         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
5476         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
5477         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
5478         * sysdeps/powerpc/powerpc64le/configure: Likewise.
5479         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
5480         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
5481         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
5482         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
5483         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
5484         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
5485         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
5486
5487         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
5488         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
5489         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
5490         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
5491         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
5492         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
5493         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
5494         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
5495         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
5496         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
5497         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
5498
5499         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
5500         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
5501         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
5502         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
5503         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
5504         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
5505         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
5506         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
5507         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
5508         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
5509         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
5510         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
5511
5512         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
5513         and adjusted to imply olders processors.
5514         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
5515         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
5516         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
5517         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
5518         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
5519         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
5520         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
5521         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
5522         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
5523         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
5524         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
5525
5526         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
5527         powerpc64/le.
5528         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
5529         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
5530
5531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
5532         powerpc64le.
5533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
5534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
5535
5536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
5537         powerpc64/be.
5538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
5539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
5540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
5541
5542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
5543         powerpc64 and adjusted.
5544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
5545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
5546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
5547         Likewise.
5548
5549 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
5550
5551         * sysdeps/tile: Remove.
5552         * sysdeps/unix/sysv/linux/tile: Likewise.
5553         * README (tilegx-*-linux-gnu): Remove from list of supported
5554         configurations.
5555         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
5556         contribution of support for generic Linux kernel syscall
5557         interface.
5558         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
5559         tilegx configurations.
5560         (Config.install_linux_headers): Do not handle tile.
5561         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
5562         in comment.
5563         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
5564         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
5565         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
5566         conditional undefine and redefine.
5567         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
5568         in comment.
5569         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
5570         conditional undefine and redefine.
5571
5572 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
5573
5574         * signal/tst-sigaction.c: New file to test BZ #23069.
5575         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
5576
5577 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5578
5579         [BZ #22766]
5580         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
5581         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
5582         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
5583         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
5584
5585 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5586
5587         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
5588         _DIRENT_MATCHES_DIRENT64 is not defined.
5589         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
5590         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
5591         is defined.
5592         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
5593         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
5594
5595 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
5596
5597         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
5598         version to GCC 8 branch.
5599
5600 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
5601
5602         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
5603         (check_no_hidden): Use type of original function when declaring
5604         alias.
5605
5606         * sysdeps/unix/sysv/linux/sys/ptrace.h
5607         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
5608         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
5609         (struct __ptrace_seccomp_metadata): New type.
5610         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5611         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5612         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
5613         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5614         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
5615         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5616         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5617         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5618         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
5619         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5620         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
5621         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5622         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
5623         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5624         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
5625         (PTRACE_SECCOMP_GET_METADATA): Likewise.
5626
5627 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5628
5629         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
5630         defined.
5631         * dirent/versionsort.c (versionsort): Likewise.
5632         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
5633         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
5634         * dirent/versionsort64.c (versionsort64): Likewise.
5635         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
5636         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
5637         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
5638         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
5639         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
5640         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
5641         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
5642         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5643         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
5644         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
5645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
5646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
5647         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
5648         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
5649
5650 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
5651
5652         * elf/elf.h (NT_PPC_PKEY): New macro.
5653
5654 2018-04-23  Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
5655
5656         [BZ #23094]
5657         * localedata/locales/hr_HR: fix thousands_sep and
5658         mon_thousands_sep
5659
5660 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
5661
5662         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
5663         (XTABS): Define to TAB3.
5664
5665 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5666
5667         * sysdeps/hppa/fpu/libm-test-ulps: Update.
5668
5669         * dirent/scandir-tail-common.c: New file.
5670         * dirent/scandir-tail.c: Use scandir-tail-common.c.
5671         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
5672         * dirent/scandir.c: Use scandir-tail-common.c.
5673         * dirent/scandirat.c: Likewise.
5674         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
5675         * dirent/scandir64.c (scandir64): Always build and alias to scandir
5676         if _DIRENT_MATCHES_DIRENT64 is defined.
5677         * dirent/scandirat64.c (scandirat64): Likewise.
5678         * include/dirent.h (__scandir_tail): Only define iff
5679         _DIRENT_MATCHES_DIRENT64 is not defined.
5680         (__scandir64_tail): Define regardless.
5681         (__scandirat, scandirat64): Remove libc_hidden_proto.
5682         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
5683         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
5684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
5685         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
5686         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
5687         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
5688         * sysdeps/unix/sysv/linux/scandir64.c: New file.
5689
5690 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
5691
5692         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
5693         New macro.
5694         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5695         Increase to 24.
5696         (_dl_aarch64_cap_flags): Add asimdfhm.
5697
5698 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
5699
5700         * sysdeps/nios2/libm-test-ulps: Update.
5701
5702 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5703
5704         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
5705         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
5706
5707         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
5708         requirements.
5709          (_DIRENT_MATCHES_DIRENT64): Undef
5710         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
5711         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
5712         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
5713         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
5714         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
5715         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
5716         use getdents64 syscalls as base.
5717         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
5718         symbol if required.
5719         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
5720         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5721         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
5722         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
5723         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
5724         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
5725         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
5726         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
5727         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5728         (__get_clockfreq_via_proc_openprom): Use __getdents64.
5729         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
5730
5731 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5732
5733         * scripts/test_printers_common.py (init_test): Disable lock elision.
5734
5735 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5736
5737         * math/test-tgmath.c (count_double, count_float,
5738         count_ldouble, count_cdouble, count_cfloat,
5739         count_cldouble): Use volatile int.
5740
5741 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5742
5743         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5744         (conformtest-xfail-conds): Add i386-gnu.
5745         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
5746         i386-gnu.
5747         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
5748         ipc_perm.cuid, ipc_perm.cgid): Likewise.
5749         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
5750         msqid_ds.msg_lrpid): Likewise.
5751         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
5752         Likewise.
5753         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
5754         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
5755         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
5756         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
5757         unsigned int.
5758         (struct statvfs64): Likewise.
5759         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
5760         Likewise.
5761         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
5762         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
5763         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
5764         instead of wait_queue.
5765         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
5766         instead of vm_area_struct.
5767         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
5768         struct sched_param definition to it.
5769         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5770         * bits/types/struct_sched_param.h: New file.
5771         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
5772         <bits/types/struct_sched_param.h> instead of <sched.h>.
5773         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
5774         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
5775         generic version but include <bits/pthreadtypes.h> to make struct
5776         sigevent's sigev_notify_attributes field a pthread_attr_t*.
5777         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
5778         non-compliant.
5779         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
5780         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
5781         [__USE_XOPEN] (OFDEL): New macro.
5782         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
5783         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
5784         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
5785         prototypes.
5786         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
5787         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
5788         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
5789         non-compliant.
5790         * sysdeps/i386/sys/ucontext.h: Likewise.
5791         * sysdeps/m68k/sys/ucontext.h: Likewise.
5792         * sysdeps/mips/sys/ucontext.h: Likewise.
5793         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
5794         * sysdeps/mach/hurd/i386/Makefile
5795         (test-xfail-POSIX/fcntl.h/conform): Add.
5796         (test-xfail-POSIX/signal.h/conform): Add.
5797         (test-xfail-POSIX/semaphore.h/conform): Add.
5798         (test-xfail-POSIX/regex.h/conform): Add.
5799         (test-xfail-POSIX/aio.h/conform): Add.
5800         (test-xfail-POSIX/mqueue.h/conform): Add.
5801         (test-xfail-POSIX/sys/types.h/conform): Add.
5802         (test-xfail-UNIX98/fcntl.h/conform): Add.
5803         (test-xfail-UNIX98/netdb.h/conform): Add.
5804         (test-xfail-UNIX98/signal.h/conform): Add.
5805         (test-xfail-UNIX98/semaphore.h/conform): Add.
5806         (test-xfail-UNIX98/regex.h/conform): Add.
5807         (test-xfail-UNIX98/aio.h/conform): Add.
5808         (test-xfail-UNIX98/ftw.h/conform): Add.
5809         (test-xfail-UNIX98/mqueue.h/conform): Add.
5810         (test-xfail-UNIX98/netinet/in.h/conform): Add.
5811         (test-xfail-UNIX98/sys/wait.h/conform): Add.
5812         (test-xfail-UNIX98/sys/sem.h/conform): Add.
5813         (test-xfail-UNIX98/sys/uio.h/conform): Add.
5814         (test-xfail-UNIX98/sys/socket.h/conform): Add.
5815         (test-xfail-UNIX98/sys/types.h/conform): Add.
5816         (test-xfail-UNIX98/stdlib.h/conform): Add.
5817         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
5818         (test-xfail-POSIX2008/fcntl.h/conform): Add.
5819         (test-xfail-POSIX2008/netdb.h/conform): Add.
5820         (test-xfail-POSIX2008/signal.h/conform): Add.
5821         (test-xfail-POSIX2008/semaphore.h/conform): Add.
5822         (test-xfail-POSIX2008/regex.h/conform): Add.
5823         (test-xfail-POSIX2008/aio.h/conform): Add.
5824         (test-xfail-POSIX2008/mqueue.h/conform): Add.
5825         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
5826         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
5827         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
5828         (test-xfail-POSIX2008/sys/types.h/conform): Add.
5829         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
5830         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
5831         (test-xfail-XOPEN2K/netdb.h/conform): Add.
5832         (test-xfail-XOPEN2K/signal.h/conform): Add.
5833         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
5834         (test-xfail-XOPEN2K/regex.h/conform): Add.
5835         (test-xfail-XOPEN2K/aio.h/conform): Add.
5836         (test-xfail-XOPEN2K/ftw.h/conform): Add.
5837         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
5838         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
5839         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
5840         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
5841         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
5842         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
5843         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
5844         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
5845         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
5846         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
5847         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
5848         (test-xfail-XOPEN2K8/signal.h/conform): Add.
5849         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
5850         (test-xfail-XOPEN2K8/regex.h/conform): Add.
5851         (test-xfail-XOPEN2K8/aio.h/conform): Add.
5852         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
5853         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
5854         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
5855         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
5856         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
5857         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
5858         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
5859         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
5860         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
5861         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
5862         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
5863         i386-gnu.
5864         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
5865         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
5866
5867 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
5868
5869         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
5870         --enable-obsolete for powerpc-linux-gnuspe.
5871
5872 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5873
5874         * conform/data/sys/un.h-data: Allow sun_ prefix.
5875         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
5876         prototypes.
5877         * sysdeps/mach/include/mach.h: Likewise.
5878         * sysdeps/mach/include/mach/mig_support.h: Likewise.
5879         * sysdeps/mach/include/mach_error.h: Likewise.
5880
5881 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5882
5883         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
5884         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
5885         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
5886         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
5887
5888 2018-04-16  Andreas Schwab  <schwab@suse.de>
5889
5890         [BZ #19527]
5891         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
5892
5893 2018-04-15  Patrick McGehearty <patrick.mcgehearty@oracle.com>
5894
5895         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
5896         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
5897
5898 2018-04-12  DJ Delorie  <dj@redhat.com>
5899
5900         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5901         version to 4.16.
5902
5903 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
5904
5905         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
5906         (struct kernel_sigaction): Use the same definition on 31bit as is used
5907         on 64bit.
5908
5909 2018-04-09  Florian Weimer  <fweimer@redhat.com>
5910
5911         [BZ #23037]
5912         * resolv/res_send.c (send_dg): Use designated initializers instead
5913         of assignment to zero-initialize other fields of struct mmsghdr.
5914
5915 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5916
5917         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
5918         __READDIR_ALIAS): Undefine after usage.
5919         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
5920         __READDIR_R_ALIAS): Likewise.
5921         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
5922         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
5923         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
5924         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
5925         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
5926         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
5927         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5928         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5929         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
5930         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
5931         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
5932         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
5933         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
5934         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
5935         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
5936         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
5937         * sysdeps/unix/sysv/linux/readdir.c: New file.
5938         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
5939         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
5940         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
5941
5942         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
5943
5944 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
5945
5946         * manual/charset.texi (Converting a Character): Fix typo.
5947
5948 2018-04-05 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5949
5950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5951
5952         * sysdeps/arm/libm-test-ulps: Update.
5953
5954         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
5955         as base implementation.
5956         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5957         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5958         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5959         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5960         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5961         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
5962         remove unrequired definitions and update comments.
5963         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
5964         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
5965         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
5966         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
5967         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
5968         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
5969         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5970         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
5971         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
5972         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
5973         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
5974         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
5975         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
5976         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
5977         and RESET_SA_RESTORER hooks.
5978
5979 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
5980
5981         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5982
5983 2018-04-05  Florian Weimer  <fweimer@redhat.com>
5984
5985         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
5986         integer overflow, memory leak on error, and indeterminate errno
5987         value.  Add a null wide character to terminate the result string.
5988         * manual/charset.texi (Converting a Character): Mention embedded
5989         null bytes in the mbrtowc input string.  Explain what happens in
5990         the -2 result case.  Do not claim that mbrtowc is simple or
5991         obvious to use.  Adjust the description of the code example.  Use
5992         @code, not @var, for concrete variables.
5993
5994 2018-04-05  Florian Weimer  <fweimer@redhat.com>
5995
5996         * manual/examples/mbstouwcs.c: New file.
5997         * manual/charset.texi (Converting a Character): Include it.
5998
5999 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6000
6001         * include/dirent.h (dirfd): Add hidden proto.
6002         * dirent/dirfd.c (dirfd): Add hidden def.
6003         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
6004         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
6005
6006 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6007
6008         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
6009         sin, cos and sincos to 1 ULP.
6010
6011 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
6012
6013         [BZ #19818]
6014         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
6015         symbols.
6016         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
6017         * elf/tst-absolute-sym.c: New file.
6018         * elf/tst-absolute-sym-lib.c: New file.
6019         * elf/tst-absolute-sym-lib.lds: New file.
6020         * elf/Makefile (tests): Add `tst-absolute-sym'.
6021         (modules-names): Add `tst-absolute-sym-lib'.
6022         (LDLIBS-tst-absolute-sym-lib.so): New variable.
6023         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
6024         ($(objpfx)tst-absolute-sym): New dependency.
6025
6026         [BZ #19818]
6027         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
6028         parameter.
6029         (SYMBOL_ADDRESS): New macro.
6030         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
6031         SYMBOL_ADDRESS for symbol address calculation.
6032         * elf/dl-runtime.c (_dl_fixup): Likewise.
6033         (_dl_profile_fixup): Likewise.
6034         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
6035         * elf/rtld.c (dl_main): Likewise.
6036         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
6037         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
6038         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
6039         (elf_machine_rela): Likewise.
6040         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
6041         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
6042         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6043         (elf_machine_rela): Likewise.
6044         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
6045         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
6046         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
6047         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6048         Likewise.
6049         (elf_machine_reloc): Likewise.
6050         (elf_machine_got_rel): Likewise.
6051         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6052         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
6053         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
6054         Likewise.
6055         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6056         Likewise.
6057         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
6058         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
6059         Likewise.
6060         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
6061         Likewise.
6062         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6063         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
6064         Likewise.
6065         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6066         Likewise.
6067         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
6068         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6069
6070 2018-04-04  Zack Weinberg  <zackw@panix.com>
6071
6072         * sysdeps/generic/internal-signals.h: Include signal.h,
6073         sigsetops.h, and stdbool.h.
6074         (__libc_signal_block_all): Actually block all signals.
6075         (__libc_signal_block_app): Likewise.
6076         (__libc_signal_restore_set): Actually restore the signal mask.
6077
6078 2018-04-04  Florian Weimer  <fweimer@redhat.com>
6079
6080         inet: Actually build and run tst-deadline.
6081         * inet/Makefile (tests-internal): Add tst-deadline and do not
6082         overwrite the variable.
6083         (tests-static-internal): Remove variable.
6084
6085 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
6086
6087         [BZ #22947]
6088         * bits/uio-ext.h (RWF_APPEND): New.
6089         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
6090         * manual/llio.texi: Document RWF_APPEND.
6091         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
6092         (RWF_SUPPORTED): Add RWF_APPEND.
6093
6094 2018-04-03 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6095
6096         [BZ #22391]
6097         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
6098         check for internal nptl signals.
6099         * nptl/sigaction.c (__sigaction): Likewise.
6100         * signal/sigaddset.c (sigaddset): Likewise.
6101         * signal/sigdelset.c (sigdelset): Likewise.
6102         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
6103         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
6104         value.
6105         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
6106         to filter out internal nptl signals.
6107         * signal/tst-sigset.c (do_test): Check ech signal indidually and
6108         also check realtime signals using standard macros.
6109         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
6110         __is_internal_signal, __libc_signal_block_all,
6111         __libc_signal_block_app, __libc_signal_restore_set): New functions.
6112         * sysdeps/nptl/sigfillset.c: Remove file.
6113         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
6114         Change return to bool.
6115         (__clear_internal_signals): Remove SIGTIMER clean since it is
6116         equal to SIGCANEL on Linux.
6117         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
6118         signal set was constructed using standard functions.
6119
6120 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6121
6122         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
6123         ifname is too long.
6124         * hurd/hurdsig.c (interrupted_reply_port_location): Use
6125         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
6126         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
6127         hidden def.
6128         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
6129         * signal/sigaddset.c: Include <sigsetopts.h>.
6130         * signal/sigdelset.c: Likewise.
6131
6132 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
6133
6134         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
6135         (__cos): Likewise.
6136         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
6137         logic as sin and cos.
6138
6139 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
6140
6141         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
6142         inputs.  Return correct sign.
6143         (do_sincos): Remove small input check before do_sin, let do_sin set
6144         the sign.
6145         (__sin): Likewise.
6146         (__cos): Likewise.
6147
6148 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
6149
6150         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
6151         (do_cos_slow): Likewise.
6152         (do_sin_slow): Likewise.
6153         (reduce_and_compute): Likewise.
6154         (slow): Likewise.
6155         (slow1): Likewise.
6156         (slow2): Likewise.
6157         (sloww): Likewise.
6158         (sloww1): Likewise.
6159         (sloww2): Likewise.
6160         (bslow): Likewise.
6161         (bslow1): Likewise.
6162         (bslow2): Likewise.
6163         (cslow2): Likewise.
6164
6165 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
6166
6167         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
6168         (do_cos): Remove corp parameter and calculations.
6169         (do_sin): Likewise.
6170         (do_sincos): Remove cor variable.
6171         (__sin): Use do_sincos for huge inputs.
6172         (__cos): Likewise.
6173         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6174         (reduce_and_compute_sincos): Remove unused function.
6175
6176 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
6177
6178         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
6179         reduce_sincos, improve accuracy to 136 bits.
6180         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
6181         (__sin): Use improved reduction and simplified do_sincos calculation.
6182         (__cos): Likewise.
6183         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6184
6185 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
6186
6187         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
6188         (do_sincos_2): Likewise.
6189         (__sin): Remove middle range reduction case.
6190         (__cos): Likewise.
6191         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
6192         reduction case.
6193
6194 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
6195
6196         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
6197         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
6198         inputs.
6199         (__cos): Likewise.
6200         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
6201
6202 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
6203
6204         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6205         version to 4.16
6206
6207 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6208
6209         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
6210         Remove definitions.
6211         (opendir_oflags): Use O_DIRECTORY regardless.
6212         (__opendir, __opendirat): Remove need_isdir_precheck usage.
6213         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
6214
6215 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6216
6217         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
6218         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
6219         macros.
6220         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
6221         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
6222         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
6223         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
6224         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
6225         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
6226
6227         * htl/Makefile: Bump licence to LGPL 2.1+.
6228         * htl/alloca_cutoff.c: Likewise.
6229         * htl/cthreads-compat.c: Likewise.
6230         * htl/lockfile.c: Likewise.
6231         * htl/pt-alloc.c: Likewise.
6232         * htl/pt-cancel.c: Likewise.
6233         * htl/pt-cleanup.c: Likewise.
6234         * htl/pt-create.c: Likewise.
6235         * htl/pt-dealloc.c: Likewise.
6236         * htl/pt-detach.c: Likewise.
6237         * htl/pt-exit.c: Likewise.
6238         * htl/pt-getattr.c: Likewise.
6239         * htl/pt-initialize.c: Likewise.
6240         * htl/pt-internal.h: Likewise.
6241         * htl/pt-join.c: Likewise.
6242         * htl/pt-self.c: Likewise.
6243         * htl/pt-setcancelstate.c: Likewise.
6244         * htl/pt-setcanceltype.c: Likewise.
6245         * htl/pt-sigmask.c: Likewise.
6246         * htl/pt-spin-inlines.c: Likewise.
6247         * htl/pt-testcancel.c: Likewise.
6248         * htl/pt-yield.c: Likewise.
6249         * htl/tests/test-1.c: Likewise.
6250         * htl/tests/test-10.c: Likewise.
6251         * htl/tests/test-11.c: Likewise.
6252         * htl/tests/test-12.c: Likewise.
6253         * htl/tests/test-13.c: Likewise.
6254         * htl/tests/test-14.c: Likewise.
6255         * htl/tests/test-15.c: Likewise.
6256         * htl/tests/test-16.c: Likewise.
6257         * htl/tests/test-17.c: Likewise.
6258         * htl/tests/test-2.c: Likewise.
6259         * htl/tests/test-3.c: Likewise.
6260         * htl/tests/test-4.c: Likewise.
6261         * htl/tests/test-5.c: Likewise.
6262         * htl/tests/test-6.c: Likewise.
6263         * htl/tests/test-7.c: Likewise.
6264         * htl/tests/test-8.c: Likewise.
6265         * htl/tests/test-9.c: Likewise.
6266         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
6267         * sysdeps/htl/bits/cancelation.h: Likewise.
6268         * sysdeps/htl/bits/pthread-np.h: Likewise.
6269         * sysdeps/htl/bits/pthread.h: Likewise.
6270         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
6271         * sysdeps/htl/bits/semaphore.h: Likewise.
6272         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
6273         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
6274         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
6275         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
6276         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
6277         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
6278         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
6279         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
6280         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
6281         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
6282         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
6283         * sysdeps/htl/old_pt-atfork.c: Likewise.
6284         * sysdeps/htl/pt-atfork.c: Likewise.
6285         * sysdeps/htl/pt-attr-destroy.c: Likewise.
6286         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
6287         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
6288         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
6289         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
6290         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
6291         * sysdeps/htl/pt-attr-getscope.c: Likewise.
6292         * sysdeps/htl/pt-attr-getstack.c: Likewise.
6293         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
6294         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
6295         * sysdeps/htl/pt-attr-init.c: Likewise.
6296         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
6297         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
6298         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
6299         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
6300         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
6301         * sysdeps/htl/pt-attr-setscope.c: Likewise.
6302         * sysdeps/htl/pt-attr-setstack.c: Likewise.
6303         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
6304         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
6305         * sysdeps/htl/pt-attr.c: Likewise.
6306         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
6307         * sysdeps/htl/pt-barrier-init.c: Likewise.
6308         * sysdeps/htl/pt-barrier-wait.c: Likewise.
6309         * sysdeps/htl/pt-barrier.c: Likewise.
6310         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
6311         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
6312         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
6313         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
6314         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
6315         * sysdeps/htl/pt-cond-destroy.c: Likewise.
6316         * sysdeps/htl/pt-cond-init.c: Likewise.
6317         * sysdeps/htl/pt-cond-signal.c: Likewise.
6318         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
6319         * sysdeps/htl/pt-cond-wait.c: Likewise.
6320         * sysdeps/htl/pt-cond.c: Likewise.
6321         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
6322         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
6323         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
6324         * sysdeps/htl/pt-condattr-init.c: Likewise.
6325         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
6326         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
6327         * sysdeps/htl/pt-destroy-specific.c: Likewise.
6328         * sysdeps/htl/pt-equal.c: Likewise.
6329         * sysdeps/htl/pt-getconcurrency.c: Likewise.
6330         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
6331         * sysdeps/htl/pt-getschedparam.c: Likewise.
6332         * sysdeps/htl/pt-getspecific.c: Likewise.
6333         * sysdeps/htl/pt-init-specific.c: Likewise.
6334         * sysdeps/htl/pt-key-create.c: Likewise.
6335         * sysdeps/htl/pt-key-delete.c: Likewise.
6336         * sysdeps/htl/pt-key.h: Likewise.
6337         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
6338         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
6339         * sysdeps/htl/pt-mutex-init.c: Likewise.
6340         * sysdeps/htl/pt-mutex-lock.c: Likewise.
6341         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
6342         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
6343         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
6344         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
6345         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
6346         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
6347         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
6348         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
6349         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
6350         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
6351         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
6352         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
6353         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
6354         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
6355         * sysdeps/htl/pt-mutexattr.c: Likewise.
6356         * sysdeps/htl/pt-once.c: Likewise.
6357         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
6358         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
6359         * sysdeps/htl/pt-rwlock-init.c: Likewise.
6360         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
6361         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
6362         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
6363         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
6364         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
6365         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
6366         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
6367         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
6368         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
6369         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
6370         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
6371         * sysdeps/htl/pt-setconcurrency.c: Likewise.
6372         * sysdeps/htl/pt-setschedparam.c: Likewise.
6373         * sysdeps/htl/pt-setschedprio.c: Likewise.
6374         * sysdeps/htl/pt-setspecific.c: Likewise.
6375         * sysdeps/htl/pt-spin.c: Likewise.
6376         * sysdeps/htl/pt-startup.c: Likewise.
6377         * sysdeps/htl/pthread.h: Likewise.
6378         * sysdeps/htl/sem-close.c: Likewise.
6379         * sysdeps/htl/sem-destroy.c: Likewise.
6380         * sysdeps/htl/sem-getvalue.c: Likewise.
6381         * sysdeps/htl/sem-init.c: Likewise.
6382         * sysdeps/htl/sem-open.c: Likewise.
6383         * sysdeps/htl/sem-post.c: Likewise.
6384         * sysdeps/htl/sem-timedwait.c: Likewise.
6385         * sysdeps/htl/sem-trywait.c: Likewise.
6386         * sysdeps/htl/sem-unlink.c: Likewise.
6387         * sysdeps/htl/sem-wait.c: Likewise.
6388         * sysdeps/hurd/htl/pt-kill.c: Likewise.
6389         * sysdeps/i386/htl/pt-machdep.h: Likewise.
6390         * sysdeps/mach/htl/pt-block.c: Likewise.
6391         * sysdeps/mach/htl/pt-spin.c: Likewise.
6392         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
6393         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
6394         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
6395         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
6396         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
6397         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
6398         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
6399         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
6400         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
6401         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
6402         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
6403         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
6404         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
6405         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
6406         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
6407         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
6408         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
6409         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
6410         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
6411         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
6412         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
6413         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
6414         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
6415         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
6416         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
6417         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
6418         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
6419         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
6420         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
6421         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
6422         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
6423         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
6424         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
6425         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
6426         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
6427         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
6428         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
6429         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
6430         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
6431         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
6432         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
6433         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
6434         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
6435
6436         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
6437         * README: Remove the mention of out-of-tree patches needed for
6438         GNU/Hurd.
6439
6440         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
6441         (UTIME_NOW, UTIME_OMIT): Define macros.
6442
6443         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
6444         instead of pthread_detach.
6445         (__cthread_fork): Call __pthread_create instead of pthread_create.
6446         (__cthread_keycreate): Call __pthread_key_create instead of
6447         pthread_key_create.
6448         (__cthread_getspecific): Call __pthread_getspecific instead of
6449         pthread_getspecific.
6450         (__cthread_setspecific): Call __pthread_setspecific instead of
6451         pthread_setspecific.
6452         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
6453         __pthread_mutex_unlock instead of pthread_mutex_lock and
6454         pthread_mutex_unlock.
6455         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
6456         ___pthread_get_cleanup_stack.
6457         (__pthread_get_cleanup_stack): New strong alias.
6458         * htl/pt-create.c: Include <pthreadP.h>.
6459         (entry_point): Call __pthread_exit instead of pthread_exit.
6460         (pthread_create): Rename to __pthread_create.
6461         (pthread_create): New strong alias.
6462         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
6463         (pthread_detach): New strong alias.
6464         (__pthread_detach): Call __pthread_cond_broadcast instead of
6465         pthread_cond_broadcast.
6466         * htl/pt-exit.c: Include <pthreadP.h>.
6467         (__pthread_exit): Call __pthread_setcancelstate and
6468         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
6469         __pthread_get_cleanup_stack.
6470         * htl/pt-testcancel.c: Include <pthreadP.h>.
6471         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
6472         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
6473         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
6474         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
6475         pthread_attr_getstacksize.
6476         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
6477         Rename to __pthread_attr_getstackaddr.
6478         (pthread_attr_getstackaddr): New strong alias.
6479         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
6480         Rename to __pthread_attr_getstacksize.
6481         (pthread_attr_getstacksize): New strong alias.
6482         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
6483         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
6484         (pthread_attr_setstack): New strong alias.
6485         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
6486         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
6487         pthread_attr_getstacksize, pthread_attr_setstacksize and
6488         pthread_attr_setstackaddr.
6489         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
6490         Rename to __pthread_attr_setstackaddr.
6491         (pthread_attr_setstackaddr): New strong alias.
6492         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
6493         Rename to __pthread_attr_setstacksize.
6494         (pthread_attr_setstacksize): New strong alias.
6495         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
6496         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
6497         pthread_exit.
6498         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
6499         (__pthread_key_create): New hidden def.
6500         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
6501         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
6502         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
6503         __pthread_exit, __pthread_key_create, __pthread_getspecific,
6504         __pthread_setspecific, __pthread_setcancelstate,
6505         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
6506         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
6507         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
6508         declarations.
6509         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
6510         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
6511         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
6512         (pthread_attr_setstackaddr): New strong alias.
6513         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
6514         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
6515         (pthread_attr_setstacksize): New strong alias.
6516         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
6517         (call_exit): Call __pthread_exit instead of pthread_exit.
6518         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
6519         (_pthread_mutex_init): New hidden definition.
6520         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
6521         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
6522         instead of pthread_attr_init and pthread_attr_setstack.
6523
6524         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
6525         __vm_deallocate instead of vm_allocate and vm_deallocate.
6526         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
6527         setenv.
6528         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
6529         of geteuid.
6530         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
6531         strdup.
6532         * hurd/siginfo.c: Include <libioP.h>.
6533         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
6534         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
6535         munmap.
6536         * mach/devstream.c: Include <libioP.h>.
6537         (dealloc_ref): Call __mach_port_deallocate instead of
6538         mach_port_deallocate.
6539         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
6540         Call __mach_port_deallocate instead of mach_port_deallocate.
6541         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
6542         pathconf.
6543         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
6544         munmap.
6545         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
6546         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
6547         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
6548         of munmap.
6549         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
6550         of close.
6551         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
6552         instead of sysconf.
6553         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
6554         __clock_gettime instead of clock_gettime.
6555         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
6556         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
6557         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
6558         * sysdeps/unix/bsd/stty.c (stty): Likewise.
6559         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
6560         tcgetattr.
6561         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
6562         __clock_gettime and __nanosleep instead of clock_gettime and
6563         nanosleep.
6564         * hurd/catch-signal.c (hurd_catch_signal): Rename to
6565         __hurd_catch_signal.
6566         (hurd_catch_signal): New strong alias.
6567         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
6568         __hurd_catch_signal instead of hurd_catch_signal.
6569         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
6570         * hurd/hurdexec.c (_hurd_init): Add hidden def.
6571         * hurd/hurdinit.c (_hurd_init): Add hidden def.
6572         * hurd/hurdsig.c: Include <mach/mig_support.h>.
6573         (_hurd_thread_sigstate): Add hidden def.
6574         (_hurd_internal_post_signal): Use __mutex_unlock instead of
6575         mutex_unlock.
6576         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
6577         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
6578         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
6579         __hurd_file_name_path_lookup.
6580         (hurd_file_name_path_lookup): New strong alias.
6581         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
6582         hurd_file_name_path_lookup.
6583         * mach/errstring.c (mach_error_type): Add hidden def.
6584         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
6585         * mach/mutex-init.c (__mutex_init): Add hidden def.
6586         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
6587         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
6588         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
6589         * sysdeps/mach/hurd/getcwd.c
6590         (_hurd_canonicalize_directory_name_internal): Rename to
6591         __hurd_canonicalize_directory_name_internal.
6592         (_hurd_canonicalize_directory_name_internal): New strong alias.
6593         (__canonicalize_directory_name_internal, __getcwd): Call
6594         __hurd_canonicalize_directory_name_internal instead of
6595         _hurd_canonicalize_directory_name_internal.
6596         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
6597         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
6598         hidden defs.
6599         * sysdeps/hurd/include/hurd.h: New file.
6600         * sysdeps/hurd/include/hurd/fd.h: New file.
6601         * sysdeps/hurd/include/hurd/signal.h: New file.
6602         * sysdeps/mach/include/lock-intern.h: New file.
6603         * sysdeps/mach/include/mach.h: New file.
6604         * sysdeps/mach/include/mach/mig_support.h: New file.
6605         * sysdeps/mach/include/mach_error.h: New file.
6606         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
6607         prototype.
6608         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
6609         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
6610         _HEADER_H_HIDDEN_DEF macro.
6611         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
6612         _hurd_fd_error_signal): Add hidden prototype.
6613         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
6614         hidden def.
6615         * libio/iolibio.h (_IO_puts): New hidden prototype.
6616         * libio/ioputs.c (_IO_puts): New hidden def.
6617         * sysdeps/mach/hurd/localplt.data: New file.
6618
6619 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
6620             Amos Jeffries  <squid3@treenet.co.nz>
6621             David Michael  <fedora.dm0@gmail.com>
6622             Marco Gerards  <marco@gnu.org>
6623             Marcus Brinkmann  <marcus@gnu.org>
6624             Neal H. Walfield  <neal@gnu.org>
6625             Pino Toscano  <toscano.pino@tiscali.it>
6626             Richard Braun  <rbraun@sceen.net>
6627             Roland McGrath  <roland@gnu.org>
6628             Samuel Thibault  <samuel.thibault@ens-lyon.org>
6629             Thomas DiModica  <ricinwich@yahoo.com>
6630             Thomas Schwinge  <tschwinge@gnu.org>
6631
6632         * htl: New directory.
6633         * sysdeps/htl: New directory.
6634         * sysdeps/hurd/htl: New directory.
6635         * sysdeps/i386/htl: New directory.
6636         * sysdeps/mach/htl: New directory.
6637         * sysdeps/mach/hurd/htl: New directory.
6638         * sysdeps/mach/hurd/i386/htl: New directory.
6639         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
6640         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
6641         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
6642
6643 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6644
6645         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
6646         signals in thread created for runing timers.
6647
6648 2018-04-01  Florian Weimer  <fweimer@redhat.com>
6649
6650         * support/support_format_addrinfo.c (support_format_addrinfo):
6651         Include unknown error number in formatted result.
6652
6653 2018-03-29  Florian Weimer  <fweimer@redhat.com>
6654
6655         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
6656         capture SIGBUS.
6657
6658 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6659
6660         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
6661         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
6662         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6663         (__ASSUME_CLONE_BACKWARDS): Define.
6664
6665 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
6666
6667         [BZ #23024]
6668         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
6669         early when linux sentinel value is set.
6670
6671 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6672
6673         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
6674
6675 2018-03-27  Andreas Schwab  <schwab@suse.de>
6676
6677         [BZ #23005]
6678         * resolv/res_send.c (__res_context_send): Return ENOMEM if
6679         allocation of private copy of nsaddr_list fails.
6680
6681 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
6682
6683         [BZ #16552]
6684         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
6685         * sysdeps/unix/sysv/linux/umount.c: ... here.
6686         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
6687         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
6688         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
6689         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
6690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
6691         * sysdeps/unix/sysv/linux/umount.S: Likewise.
6692         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
6693
6694 2018-03-26  Andreas Schwab  <schwab@suse.de>
6695
6696         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
6697         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
6698         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
6699         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
6700         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
6701         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
6702         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
6703         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
6704         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
6705         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
6706         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
6707         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
6708         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
6709         (R_RISCV_NUM): Define.
6710
6711 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6712
6713         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
6714         TLS declaration of errno.
6715         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
6716         __libc_setup_tls.
6717         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
6718         (ARCH_SETUP_TLS): Likewise.
6719         * sysdeps/mach/hurd/libc-start.h: New file copied from
6720         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
6721         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
6722         instead of __libc_setup_tls.
6723         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
6724         __libc_setup_tls before initializing libpthread and running _hurd_init
6725         which starts the signal thread.
6726         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
6727         Declare function.
6728         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6729
6730 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
6731
6732         [BZ #22998]
6733         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
6734         after it is defined.
6735
6736 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
6737             Max Horn  <max@quendi.de>
6738
6739         [BZ #22644]
6740         CVE-2017-18269
6741         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
6742         branch conditions.
6743         * string/test-memmove.c (do_test2): New testcase.
6744
6745 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
6746
6747         * sysdeps/generic/frame.h: Remove file.
6748         * sysdeps/arm/frame.h: Likewise.
6749         * sysdeps/hppa/frame.h: Likewise.
6750         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
6751         macro.
6752         (GET_FRAME): Likewise.
6753         (GET_STACK): Likewise.
6754         (CALL_SIGHANDLER): Likewise.
6755         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
6756         Likewise.
6757         (GET_FRAME): Likewise.
6758         (GET_STACK): Likewise.
6759         (CALL_SIGHANDLER): Likewise.
6760         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
6761         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6762         (GET_FRAME): Likewise.
6763         (GET_STACK): Likewise.
6764         (CALL_SIGHANDLER): Likewise.
6765         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
6766         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6767         (GET_FRAME): Likewise.
6768         (GET_STACK): Likewise.
6769         (ADVANCE_STACK_FRAME): Likewise.
6770         (CALL_SIGHANDLER): Likewise.
6771         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
6772         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6773         (GET_FRAME): Likewise.
6774         (GET_STACK): Likewise.
6775         (CALL_SIGHANDLER): Likewise.
6776         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
6777         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6778         (GET_FRAME): Likewise.
6779         (GET_STACK): Likewise.
6780         (CALL_SIGHANDLER): Likewise.
6781         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
6782         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6783         (GET_FRAME): Likewise.
6784         (GET_STACK): Likewise.
6785         (CALL_SIGHANDLER): Likewise.
6786         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
6787         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6788         (GET_FRAME): Likewise.
6789         (GET_STACK): Likewise.
6790         (CALL_SIGHANDLER): Likewise.
6791         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
6792         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6793         (GET_FRAME): Likewise.
6794         (GET_STACK): Likewise.
6795         (CALL_SIGHANDLER): Likewise.
6796         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
6797         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6798         (GET_FRAME): Likewise.
6799         (GET_STACK): Likewise.
6800         (CALL_SIGHANDLER): Likewise.
6801         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
6802         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6803         (GET_FRAME): Likewise.
6804         (GET_STACK): Likewise.
6805         (CALL_SIGHANDLER): Likewise.
6806         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
6807         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6808         (GET_FRAME): Likewise.
6809         (GET_STACK): Likewise.
6810         (CALL_SIGHANDLER): Likewise.
6811         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
6812         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6813         (GET_FRAME): Likewise.
6814         (GET_STACK): Likewise.
6815         (CALL_SIGHANDLER): Likewise.
6816         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6817         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6818         (FIRST_FRAME_POINTER): Likewise.
6819         (ADVANCE_STACK_FRAME): Likewise.
6820         (GET_STACK): Likewise.
6821         (GET_FRAME): Likewise.
6822         (CALL_SIGHANDLER): Likewise.
6823         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
6824         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6825         (ADVANCE_STACK_FRAME): Likewise.
6826         (GET_STACK): Likewise.
6827         (GET_FRAME): Likewise.
6828         (CALL_SIGHANDLER): Likewise.
6829         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
6830         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6831         (GET_FRAME): Likewise.
6832         (GET_STACK): Likewise.
6833         (CALL_SIGHANDLER): Likewise.
6834         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
6835         (SIGCONTEXT_EXTRA_ARGS): Likewise.
6836         (GET_FRAME): Likewise.
6837         (GET_STACK): Likewise.
6838         (CALL_SIGHANDLER): Likewise.
6839
6840 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
6841
6842         * sysdeps/x86_64/backtrace.c: Move to ....
6843         * debug/backtrace.c: ... here.
6844         * sysdeps/aarch64/backtrace.c: Remove file.
6845         * sysdeps/alpha/backtrace.c: Likewise.
6846         * sysdeps/hppa/backtrace.c: Likewise.
6847         * sysdeps/ia64/backtrace.c: Likewise.
6848         * sysdeps/mips/backtrace.c: Likewise.
6849         * sysdeps/nios2/backtrace.c: Likewise.
6850         * sysdeps/riscv/backtrace.c: Likewise.
6851         * sysdeps/sh/backtrace.c: Likewise.
6852         * sysdeps/tile/backtrace.c: Likewise.
6853
6854 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
6855
6856         [BZ #22987]
6857         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
6858         function.
6859         (fdimf): Likewise.
6860         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
6861
6862         [BZ #17343]
6863         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
6864         possibly overflowing computations.
6865
6866 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6867
6868         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
6869         values from Linux-specific section now that it is in the GNU section.
6870         * sysdeps/gnu/errlist.c: Regenerate.
6871
6872 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
6873
6874         * math/Makefile (libm-narrow-fns): Add sub.
6875         (libm-test-funcs-narrow): Likewise.
6876         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
6877         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
6878         * math/gen-auto-libm-tests.c (test_functions): Add sub.
6879         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
6880         (NARROW_SUB_ROUND_TO_ODD): Likewise.
6881         (NARROW_SUB_TRIVIAL): Likewise.
6882         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
6883         macro.
6884         (__dsubl): Likewise.
6885         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
6886         dsub.
6887         (CFLAGS-nldbl-dsub.c): New variable.
6888         (CFLAGS-nldbl-fsub.c): Likewise.
6889         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
6890         __nldbl_dsubl.
6891         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
6892         prototype.
6893         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
6894         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
6895         * math/auto-libm-test-in: Add tests of sub.
6896         * math/auto-libm-test-out-narrow-sub: New generated file.
6897         * math/libm-test-narrow-sub.inc: New file.
6898         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6899         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
6900         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
6901         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
6902         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
6903         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
6904         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
6905         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
6906         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
6907         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
6908         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
6909         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
6910         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
6911         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
6912         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
6913         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
6914         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
6915         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
6916         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6917         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
6918         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6919         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6920         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6921         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6922         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6923         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6924         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6925         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6926         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6927         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6928         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6929         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
6932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6934         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
6935         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6936         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6937         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6938         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6939         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6940         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
6941         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
6942         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6943         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6944
6945 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
6946
6947         [BZ #20079]
6948         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
6949
6950 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
6951
6952         * benchtests/bench-timing.h (attribute_hidden): Undefine.
6953
6954 2018-03-18  Richard Braun  <rbraun@sceen.net>
6955
6956         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
6957         thread reference.
6958
6959 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
6960
6961         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
6962         (__libc_cleanup_fct): Define function.
6963         (__libc_cleanup_region_start, __libc_cleanup_region_end,
6964         __libc_cleanup_end): Rewrite implementation using
6965         __attribute__ ((__cleanup__)).
6966         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
6967         * hurd/Makefile (routines): Add hurdlock.
6968         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
6969         interface.
6970         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
6971         * hurd/hurdpid.c: Include <lowlevellock.h>
6972         (_S_msg_proc_newids): Use lll_wait to synchronize.
6973         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
6974         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
6975         * mach/Makefile (lock-headers): Remove machine-lock.h.
6976         * mach/lock-intern.h: Include <lowlevellock.h> instead of
6977         <machine-lock.h>.
6978         (__spin_lock_t): New type.
6979         (__SPIN_LOCK_INITIALIZER): New macro.
6980         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
6981         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
6982         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
6983         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
6984         (__mutex_init): Initialize with lll.
6985         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
6986         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
6987         needing lll.
6988         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6989         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
6990         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
6991         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
6992         (__setpgid): Use lll for synchronization.
6993         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
6994         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
6995         instead of <cthreads.h>.
6996         (_IO_lock_inexpensive): New macro
6997         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
6998         (__libc_lock_self0): New declaration.
6999         (__libc_lock_owner_self): New macro.
7000         (__libc_key_t): Remove type.
7001         (_LIBC_LOCK_INITIALIZER): New macro.
7002         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
7003         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
7004         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
7005         __libc_lock_define_initialized_recursive,
7006         __rtld_lock_define_initialized_recursive,
7007         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
7008         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
7009         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
7010         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
7011         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
7012         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
7013         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
7014         New macros.
7015         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
7016         * hurd/hurdlock.c: New file.
7017         * hurd/hurdlock.h: New file.
7018         * mach/lowlevellock.h: New file
7019
7020 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7021
7022         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
7023         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
7024         when opening a symlink with O_NOFOLLOW.
7025         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
7026         path when flags contains O_NOFOLLOW.
7027         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
7028         if flags contains O_DIRECTORY and the result is a directory.
7029         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
7030         oneself when the pointer given in D is nul (as set by ext2fs).
7031         * sysdeps/mach/hurd/mlockall.c: New file.
7032         * sysdeps/mach/hurd/munlockall.c: New file.
7033
7034 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7035
7036         * hurd/hurdsig.c: Include <pthread.h>.
7037         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
7038         get the signal thread stack layout.
7039         * hurd/Makefile (headers): Remove threadvar.h.
7040         (inline-headers): Remove threadvar.h.
7041         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
7042         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
7043         __hurd_threadvar_max, __hurd_errno_location.
7044         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
7045         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
7046         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
7047         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
7048         unless TLS is not initialized yet, in which case we do not need a
7049         critical section yet anyway.
7050         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
7051         <machine-sp.h>.
7052         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
7053         declarations.
7054         (__hurd_threadvar_index): Remove enum.
7055         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
7056         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
7057         inlines.
7058         (__hurd_reply_port0): New variable declaration.
7059         (__hurd_local_reply_port): New macro.
7060         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
7061         (interrupted_reply_port_location): Add thread_t parameter.  Use it
7062         with THREAD_TCB to access thread-local variables.
7063         (_hurdsig_abort_rpcs): Pass ss->thread to
7064         interrupted_reply_port_location.
7065         (_hurd_internal_post_signal): Likewise.
7066         (_hurdsig_init): Use presence of cthread_fork instead of
7067         __hurd_threadvar_stack_mask to start signal thread by hand.
7068         Remove signal thread threadvar initialization.
7069         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
7070         * hurd/sigunwind.c: Include <hurd/threadvar.h>
7071         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
7072         of threadvar.
7073         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
7074         __libc_lock_self0.
7075         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
7076         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
7077         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
7078         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
7079         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
7080         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
7081         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
7082         define variables.
7083         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
7084         <hurd/threadvar.h>.
7085         [IS_IN(rtld)] (rtld_errno): New variable.
7086         [IS_IN(rtld)] (__errno_location): New weak function.
7087         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
7088         * sysdeps/mach/hurd/errno.c: Remove file.
7089         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
7090         (__fork): Remove THREADVAR_SPACE macro and its use.
7091         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
7092         variable.
7093         (init): Do not initialize threadvar.
7094         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
7095         symbol.
7096         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
7097         __hurd_local_reply_port instead of threadvar.
7098         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
7099         _hurd_sigstate fields.
7100         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
7101         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
7102         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
7103         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
7104         instead of threadvar.
7105         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
7106         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
7107         (use_threadvar, global_reply_port): Remove variables.
7108         (__hurd_reply_port0): New variable.
7109         (__mig_get_reply_port): Use __hurd_local_reply_port and
7110         __hurd_reply_port0 instead of threadvar.
7111         (__mig_dealloc_reply_port): Likewise.
7112         (__mig_init): Do not initialize threadvar.
7113         * sysdeps/mach/hurd/profil.c: Fix comment.
7114         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
7115         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
7116         cthread_keycreate, cthread_getspecific, cthread_setspecific to
7117         __cthread_fork, __cthread_detach, __pthread_getattr_np,
7118         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
7119         __cthread_setspecific.
7120         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
7121         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
7122         __cthread_t instead of cthread_fork, cthread_detach,
7123         pthread_getattr_np, pthread_attr_getstack.
7124         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
7125         __cthread_keycreate.
7126         (cthread_getspecific): Rename to __cthread_getspecific.
7127         (cthread_setspecific): Rename to __cthread_setspecific.
7128         (__libc_getspecific): Use __cthread_getspecific instead of
7129         cthread_getspecific.
7130         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
7131         __cthread_keycreate instead of cthread_keycreate.
7132         (__libc_setspecific): Use __cthread_setspecific instead of
7133         cthread_setspecific.
7134         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
7135         Likewise.
7136         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
7137         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
7138         testing whether it is defined.
7139
7140 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7141
7142         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
7143         Define macro.
7144         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
7145         * sysdeps/mach/i386/thread_state.h
7146         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
7147         i386_THREAD_STATE.
7148         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
7149         i386_THREAD_STATE.
7150         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
7151
7152         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
7153         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
7154
7155         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
7156         macros.
7157         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
7158         descriptor instead of creating a new one.
7159         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
7160
7161         * mach/setup-thread.c: Include <ldsodefs.h>.
7162         (__mach_setup_thread): Call _dl_allocate_tls, pass
7163         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
7164         MACHINE_THREAD_STATE_FLAVOR, before getting
7165         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
7166         MACHINE_THREAD_STATE_FLAVOR with the result.
7167         * hurd/hurdfault.c (_hurdsig_fault_init): Call
7168         MACHINE_THREAD_STATE_FIX_NEW.
7169         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
7170         too.  Add original thread parameter.
7171
7172 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
7173
7174         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
7175         Remove inline function.
7176
7177         * sysdeps/i386/fpu/libm-test-ulps: Update.
7178         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7179
7180 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
7181
7182         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
7183         commit.
7184
7185 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
7186
7187         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
7188         (__sincos_code): Remove define and undefine.
7189         [__FAST_MATH__] (__sincos): Remove inline function.
7190         [__FAST_MATH__] (__sincosf): Remove inline function.
7191         [__FAST_MATH__] (__sincosl): Remove inline function.
7192         (__atan2l): Remove inline functions.
7193         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
7194         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
7195         function.
7196         (floor): Remove inline function.
7197         (ceil): Likewise.
7198         [__FAST_MATH__] (__ldexp_code): Remove macro.
7199         [__FAST_MATH__] (ldexp): Remove inline function.
7200         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
7201         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
7202         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
7203         [__USE_ISOC99] (__lrint_code): Remove macro.
7204         [__USE_ISOC99] (__llrint_code): Likewise.
7205         [__USE_ISOC99] (lrintf): Remove inline function.
7206         [__USE_ISOC99] (lrint): Likewise.
7207         [__USE_ISOC99] (lrintl): Likewise.
7208         [__USE_ISOC99] (llrint): Likewise.
7209         [__USE_ISOC99] (llrintf): Likewise.
7210         [__USE_ISOC99] (llrintl): Likewise.
7211
7212 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
7213
7214         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
7215         (__ieee754_sqrtf): Remove.
7216         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
7217         (__ieee754_sqrtf): Remove.
7218         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
7219         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
7220         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
7221         (__ieee754_sqrtf): Remove.
7222         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
7223         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
7224         (sqrtf): Remove.
7225         (sqrtl): Remove.
7226         (__ieee754_sqrt): Remove.
7227         (__ieee754_sqrtf): Remove.
7228         (__ieee754_sqrtl): Remove.
7229         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
7230         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
7231         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
7232         (__ieee754_sqrtf): Remove.
7233         (__ieee754_sqrtl): Remove.
7234
7235 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
7236
7237         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
7238         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
7239         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7240         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
7241         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
7242         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7243         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7244         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
7245         Likewise.
7246         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
7247         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
7248         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
7249         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7250         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7251         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
7252         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7253         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
7254         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7255         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
7256         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
7257         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
7258         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
7259         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
7260         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
7261         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7262         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7263         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7264         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
7265         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
7266         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
7267         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7268         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
7269         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
7270         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
7271         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
7272         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7273         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7274         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
7275         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
7276         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
7277         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
7278         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7279         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
7280         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7281         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7282         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
7283         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
7284         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
7285         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
7286
7287 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
7288
7289         * include/math.h (sqrt): Declare with asm redirect.
7290         (sqrtf): Likewise.
7291         (sqrtl): Likewise.
7292         (sqrtf128): Likewise.
7293         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
7294         nonlib and libnldbl with -fmath-errno.
7295         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
7296         * math/w_sqrt_template.c: Likewise.
7297         * math/w_sqrtf_compat.c: Likewise.
7298         * math/w_sqrtl_compat.c: Likewise.
7299         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
7300         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
7301         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
7302         complex.h.
7303
7304 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
7305
7306         * benchtests/Makefile: Define _ISOMAC.
7307         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
7308         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
7309         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
7310         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
7311         * benchtests/bench-timing.h: Define attribute_hidden.
7312
7313 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7314
7315         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
7316         mov + lsr.
7317
7318 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
7319
7320         [BZ #22963]
7321         * localedata/locales/cs_CZ (mon): Rename to...
7322         (alt_mon): This.
7323         (mon): Import from CLDR (genitive case).
7324
7325 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
7326
7327         [BZ #22937]
7328         * localedata/locales/el_CY (abmon): Rename to...
7329         (ab_alt_mon): This.
7330         (abmon): Import from CLDR (abbreviated genitive case).
7331         * localedata/locales/el_GR (abmon): Rename to...
7332         (ab_alt_mon): This.
7333         (abmon): Import from CLDR (abbreviated genitive case).
7334
7335 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
7336
7337         [BZ #22932]
7338         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
7339
7340 2018-03-15  Robert Buj  <robert.buj@gmail.com>
7341
7342         [BZ #22848]
7343         * localedata/locales/ca_ES (abmon): Rename to...
7344         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
7345         (mon): Rename to...
7346         (alt_mon): This.
7347         (abmon): Import from CLDR (genitive case, month names preceded by
7348         "de" or "d’").
7349         (mon): Likewise.
7350         (abday): Synchronize with CLDR.
7351         (d_t_fmt): Likewise.
7352         (d_fmt): Likewise.
7353         (am_pm): Likewise.
7354
7355         (LC_TIME): Improve indentation.
7356         (LC_TELEPHONE): Likewise.
7357         (LC_NAME): Likewise.
7358         (LC_ADDRESS): Likewise.
7359
7360 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
7361
7362         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
7363         (lrintf): Remove definitions used only with old GCC.
7364         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
7365         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
7366         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
7367         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
7368         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
7369         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
7370         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
7371         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
7372         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
7373         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
7374         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
7375         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
7376         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
7377         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
7378         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
7379         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
7380         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
7381         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
7382         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
7383         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
7384         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
7385         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
7386         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
7387         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
7388         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
7389         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
7390         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
7391         [__FAST_MATH__] (__M_SQRT2): Remove macro.
7392
7393 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7394
7395         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
7396         instruction to unbreak builds with binutils 2.26 and older.
7397
7398 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7399
7400         * sysdeps/aarch64/strncmp.S (count): New macro.
7401         (strncmp): Store misaligned length in SRC1 in COUNT.
7402         (mutual_align): Adjust.
7403         (misaligned8): Load dword at a time when it is safe.
7404
7405 2018-03-12  Zack Weinberg  <zackw@panix.com>
7406
7407         [BZ #1190]
7408         [BZ #19476]
7409         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
7410         if the _IO_EOF_SEEN bit is already set; update commentary.
7411         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
7412         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
7413
7414         * support/support_openpty.c, support/tty.h: New files.
7415         * support/Makefile (libsupport-routines): Add support_openpty.
7416
7417         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
7418         New test cases.
7419         * libio/Makefile (tests): Add tst-fgetc-after-eof.
7420         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
7421
7422 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
7423
7424         * po/pt_BR.po: Update translations.
7425
7426 2018-03-12  David Michael <fedora.dm0@gmail.com>
7427
7428         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
7429         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
7430         get a port to the startup server.
7431
7432 2018-03-11  Zack Weinberg  <zackw@panix.com>
7433
7434         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
7435         before nldbl-compat.h.
7436
7437 2018-03-10  Zack Weinberg  <zackw@panix.com>
7438
7439         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
7440         math.h or math_private.h.
7441
7442         * sysdeps/alpha/fpu/s_isnan.c
7443         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
7444         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
7445         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
7446         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
7447         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
7448         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
7449         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
7450         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
7451         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
7452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
7453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
7454         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
7455         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
7456         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
7457         Include math_private.h.
7458
7459         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
7460         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
7461         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
7462         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
7463         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
7464         * sysdeps/powerpc/power7/fpu/s_logb.c:
7465         Include math.h and math_private.h.
7466
7467         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
7468         uses of $at in .set noat / .set at.
7469
7470 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
7471
7472         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
7473         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
7474         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
7475         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
7476         Likewise.
7477
7478 2018-03-09  Florian Weimer  <fweimer@redhat.com>
7479
7480         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
7481         in comment.
7482
7483 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
7484
7485         [BZ #22919]
7486         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
7487         Add nop before __startcontext, add explaining comments.
7488
7489 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7490
7491         [BZ #22926]
7492         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
7493         empty for __SPE__.
7494         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7495         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
7496         Do not build hardware transactional code for __SPE__.
7497         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7498         (__lll_trylock_elision): Likewise.
7499         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
7500         (__lll_unlock_elision): Likewise.
7501
7502         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
7503         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
7504         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
7505         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
7506         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
7507         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
7508         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
7509         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
7510         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
7511         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
7512         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
7513         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
7514         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
7515         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
7516         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
7517         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
7518         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
7519         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
7520         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
7521         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
7522         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
7523         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7524         (__ASSUME_CLONE_BACKWARDS): Define.
7525         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
7526         __clone2 if __NR_clone2 is defined.
7527         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
7528         (__ASSUME_CLONE_BACKWARDS): Likewise.
7529         * sysdeps/unix/sysv/linux/i386/kernel-features.h
7530         (__ASSUME_CLONE_BACKWARDS): Likewise.
7531         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7532         (__ASSUME_CLONE2): Likewise.
7533         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7534         (__ASSUME_CLONE_BACKWARDS3): Likewise.
7535         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
7536         variants and the define architecture can use.
7537         (__ASSUME_CLONE_DEFAULT): Define as default.
7538         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7539         (__ASSUME_CLONE_BACKWARDS): Likewise.
7540         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7541         (__ASSUME_CLONE_BACKWARDS): Likewise.
7542         * sysdeps/unix/sysv/linux/s390/kernel-features.h
7543         (__ASSUME_CLONE_BACKWARDS2): Likewise.
7544
7545 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7546
7547         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
7548
7549         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
7550         time.
7551
7552         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
7553         (do_test_limit): Likewise.
7554
7555         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
7556         for every implementation.
7557         (do_test): Likewise.
7558
7559         * benchtests/bench-strncmp.c: Convert output to json.
7560
7561 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7562
7563         * io/futimens.c: Add missing start-of-file descriptive comment.
7564         * io/utime.c: Likewise.
7565         * misc/futimesat.c: Likewise.
7566         * misc/utimes.c: Likewise.
7567         * sysdeps/mach/hurd/futimesat.c: Likewise.
7568         * sysdeps/mach/hurd/utimes.c: Likewise.
7569         * sysdeps/posix/utime.c: Likewise.
7570         * sysdeps/posix/utimes.c: Likewise.
7571         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
7572         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
7573         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
7574         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
7575
7576 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7577
7578         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
7579         hurd_futimes.
7580         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
7581         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
7582         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
7583         (__futimens): Move implementation to...
7584         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
7585         utime_tvalue_from_tspec): ... new helper functions.
7586         (hurd_futimens): New function.
7587         * sysdeps/mach/hurd/futimesat.c: New file.
7588         * sysdeps/mach/hurd/utimensat.c: New file.
7589
7590 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
7591
7592         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
7593         UTIME_OMIT): New macros.
7594         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
7595         before reverting to converting time spec to time value and calling
7596         __file_utimes.
7597         * sysdeps/mach/hurd/utime-helper.c: New file.
7598         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
7599         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
7600         reverting to utime_tvalue_from_tval and __file_utimes.
7601         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
7602         (__lutimes): Just call hurd_futimens after lookup.
7603         * sysdeps/mach/hurd/utimes.c: Likewise.
7604
7605 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7606
7607         * bits/sigaction.h: Add include guard.
7608         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
7609         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
7610         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
7611         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
7612         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
7613         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
7614         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7615         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
7616         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
7617
7618 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
7619
7620         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
7621         -Wmaybe-uninitialized for -Os.
7622         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
7623         this disabling.
7624
7625 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7626
7627         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
7628         __INO_T_MATCHES_INO64_T is defined.
7629         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
7630         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
7631         of definition.
7632         * dirent/alphasort64.c: Likewise.
7633         * dirent/scandir.c: Likewise.
7634         * dirent/scandir64-tail.c: Likewise.
7635         * dirent/scandir64.c: Likewise.
7636         * dirent/scandirat.c: Likewise.
7637         * dirent/scandirat64.c: Likewise.
7638         * dirent/versionsort.c: Likewise.
7639         * dirent/versionsort64.c: Likewise.
7640         * include/dirent.h: Likewise.
7641
7642         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
7643         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
7644         for socketpair endpoint.
7645         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
7646         WRITE_BUFFER_SIZE as buffer size for sending socket.
7647         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
7648         issue on system where send is implemented with sendto syscall.
7649         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
7650         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
7651         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
7652         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
7653
7654         [BZ #21269]
7655         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
7656         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
7657         sa_restorer for vDSO case.
7658         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
7659
7660 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7661
7662         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
7663         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
7664         * hurd/hurd/ioctl.h: Include <mach/port.h>
7665         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
7666         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
7667         <mach/mach_types.h> and <mach/message.h>.
7668         (headers): Move mach/param.h to bits/mach/param.h.
7669         * sysdeps/mach/i386/mach/param.h: Move file to ...
7670         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
7671         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
7672         of <mach/param.h>.
7673         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
7674         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
7675         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
7676         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
7677         trivial, for C++ conformity.
7678         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
7679         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
7680         Process mig output through $(migheadersed).
7681         * hurd/Makefile (migheadersed): Define variable.
7682         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
7683         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
7684         headers.
7685         * hurd/hurd.h: Include <bits/types/sigset_t.h>
7686         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
7687         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
7688         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
7689         <bits/types/sigset_t.h>.
7690         [!defined __USE_GNU]: Do not #error out.
7691         (struct hurd_sigstate): Use _NSIG instead of NSIG.
7692         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
7693         Include <stddef.h> and <bits/types/sigset_t.h>
7694         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
7695         instead of sighandler_t.
7696         * stdlib/errno.h (error_t): Move definition to...
7697         * bits/types/error_t.h: ... new header.
7698         * stdlib/Makefile (headers): Add bits/types/error_t.h.
7699         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
7700         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
7701         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
7702         * hurd/hurd.h: Include <bits/types/error_t.h>
7703         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
7704         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
7705         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
7706         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
7707         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
7708         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
7709         * sysdeps/mach/hurd/futimens.c: New file.
7710
7711 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7712
7713         [BZ #22918]
7714         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
7715         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
7716         * nscd/gai.c (__nss_hosts_database): Readd definition.
7717         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7718         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7719         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7720
7721 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
7722
7723         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
7724         (ifunc_one): Likewise.
7725
7726 2018-03-01  DJ Delorie  <dj@delorie.com>
7727
7728         [BZ #22342]
7729         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
7730         key value.
7731
7732 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
7733
7734         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
7735         `match_pid' parameter.
7736         (td_ta_thr_iter): Update accordingly.
7737
7738 2018-03-01  Florian Weimer  <fweimer@redhat.com>
7739
7740         * nptl/Makefile (install-lib-ldscripts): Remove.
7741         (install): Remove rule.
7742         ($(inst_libdir)/libpthread.so): Likewise.
7743
7744 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
7745
7746         [BZ #22896]
7747         * localedata/locales/an_ES: update month and day names,
7748         improve d_fmt, improve postal_fmt, add country_post,
7749         add country_isbn
7750
7751 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
7752
7753         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
7754         Ukrainian instead of Bulgarian.
7755
7756 2018-03-01  Florian Weimer  <fweimer@redhat.com>
7757
7758         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
7759         reference.
7760
7761 2018-03-01  Florian Weimer  <fweimer@redhat.com>
7762
7763         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
7764         * nptl/Makefile (routines): Add pthread_atfork.
7765         (static-only-routines): Set to pthread_atfork.
7766         (libpthread-routines): Remove pthread_atfork.
7767         (libpthread-static-only-routines): Remove.
7768         (install): Update comment.
7769         (libpthread.so): Do not install libpthread_nonshared.a.
7770         (tests): Do not link with libpthread_nonshared.a.
7771         (generated): Remove libpthread_nonshared.a.
7772         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
7773         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
7774         with libpthread_nonshared.a.
7775
7776 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
7777
7778         [BZ #22902]
7779         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
7780         (libc_feholdexcept_setroundf128): New macro.
7781         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
7782
7783         [BZ #15105]
7784         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
7785         libc_hidden_def.
7786         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
7787         * include/inttypes.h: New file.
7788
7789 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
7790
7791         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
7792         -Os in two more places.
7793
7794 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7795
7796         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
7797         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
7798         be sorted correctly at the moment because of a bug.
7799
7800 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7801
7802         [BZ #22550] - es_ES locale (and other es_* locales): collation should
7803         treat ñ as a primary different character, sync the collation
7804         for Spanish with CLDR.
7805         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
7806         * localedata/Makefile: Add new test files.
7807         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
7808         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
7809         collation order.
7810         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
7811         * localedata/am_ET.UTF-8.in: New test file.
7812         * localedata/az_AZ.UTF-8.in: Likewise.
7813         * localedata/be_BY.UTF-8.in: Likewise.
7814         * localedata/ber_DZ.UTF-8.in: Likewise.
7815         * localedata/ber_MA.UTF-8.in: Likewise.
7816         * localedata/bg_BG.UTF-8.in: Likewise.
7817         * localedata/br_FR.UTF-8.in: Likewise.
7818         * localedata/cmn_TW.UTF-8.in: Likewise.
7819         * localedata/crh_UA.UTF-8.in: Likewise.
7820         * localedata/csb_PL.UTF-8.in: Likewise.
7821         * localedata/cv_RU.UTF-8.in: Likewise.
7822         * localedata/cy_GB.UTF-8.in: Likewise.
7823         * localedata/dz_BT.UTF-8.in: Likewise.
7824         * localedata/eo.UTF-8.in: Likewise.
7825         * localedata/es_ES.UTF-8.in: Likewise.
7826         * localedata/fa_IR.UTF-8.in: Likewise.
7827         * localedata/fi_FI.UTF-8.in: Likewise.
7828         * localedata/fil_PH.UTF-8.in: Likewise.
7829         * localedata/fur_IT.UTF-8.in: Likewise.
7830         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
7831         * localedata/ha_NG.UTF-8.in: Likewise.
7832         * localedata/ig_NG.UTF-8.in: Likewise.
7833         * localedata/ik_CA.UTF-8.in: Likewise.
7834         * localedata/kk_KZ.UTF-8.in: Likewise.
7835         * localedata/ku_TR.UTF-8.in: Likewise.
7836         * localedata/ky_KG.UTF-8.in: Likewise.
7837         * localedata/ln_CD.UTF-8.in: Likewise.
7838         * localedata/mi_NZ.UTF-8.in: Likewise.
7839         * localedata/ml_IN.UTF-8.in: Likewise.
7840         * localedata/mn_MN.UTF-8.in: Likewise.
7841         * localedata/mr_IN.UTF-8.in: Likewise.
7842         * localedata/mt_MT.UTF-8.in: Likewise.
7843         * localedata/nb_NO.UTF-8.in: Likewise.
7844         * localedata/om_KE.UTF-8.in: Likewise.
7845         * localedata/os_RU.UTF-8.in: Likewise.
7846         * localedata/ps_AF.UTF-8.in: Likewise.
7847         * localedata/ro_RO.UTF-8.in: Likewise.
7848         * localedata/ru_RU.UTF-8.in: Likewise.
7849         * localedata/sc_IT.UTF-8.in: Likewise.
7850         * localedata/se_NO.UTF-8.in: Likewise.
7851         * localedata/sq_AL.UTF-8.in: Likewise.
7852         * localedata/sv_SE.UTF-8.in: Likewise.
7853         * localedata/szl_PL.UTF-8.in: Likewise.
7854         * localedata/tg_TJ.UTF-8.in: Likewise.
7855         * localedata/tk_TM.UTF-8.in: Likewise.
7856         * localedata/tt_RU.UTF-8.in: Likewise.
7857         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
7858         * localedata/ug_CN.UTF-8.in: Likewise.
7859         * localedata/uz_UZ.UTF-8.in: Likewise.
7860         * localedata/vi_VN.UTF-8.in: Likewise.
7861         * localedata/yi_US.UTF-8.in: Likewise.
7862         * localedata/yo_NG.UTF-8.in: Likewise.
7863         * localedata/zh_CN.UTF-8.in: Likewise.
7864         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
7865         file and fix bugs in the collation.
7866         * localedata/locales/az_AZ: Likewise.
7867         * localedata/locales/be_BY: Likewise.
7868         * localedata/locales/ber_DZ: Likewise.
7869         * localedata/locales/ber_MA: Likewise.
7870         * localedata/locales/bg_BG: Likewise.
7871         * localedata/locales/br_FR: Likewise.
7872         * localedata/locales/br_FR@euro: Likewise.
7873         * localedata/locales/ca_ES: Likewise.
7874         * localedata/locales/cns11643_stroke: Likewise.
7875         * localedata/locales/crh_UA: Likewise.
7876         * localedata/locales/cs_CZ: Likewise.
7877         * localedata/locales/csb_PL: Likewise.
7878         * localedata/locales/cv_RU: Likewise.
7879         * localedata/locales/cy_GB: Likewise.
7880         * localedata/locales/da_DK: Likewise.
7881         * localedata/locales/dz_BT: Likewise.
7882         * localedata/locales/en_CA: Likewise.
7883         * localedata/locales/eo: Likewise.
7884         * localedata/locales/es_CU: Likewise.
7885         * localedata/locales/es_EC: Likewise.
7886         * localedata/locales/es_ES: Likewise.
7887         * localedata/locales/es_US: Likewise.
7888         * localedata/locales/et_EE: Likewise.
7889         * localedata/locales/fa_IR: Likewise.
7890         * localedata/locales/fi_FI: Likewise.
7891         * localedata/locales/fil_PH: Likewise.
7892         * localedata/locales/fur_IT: Likewise.
7893         * localedata/locales/gez_ER@abegede: Likewise.
7894         * localedata/locales/ha_NG: Likewise.
7895         * localedata/locales/hr_HR: Likewise.
7896         * localedata/locales/hsb_DE: Likewise.
7897         * localedata/locales/hu_HU: Likewise.
7898         * localedata/locales/ig_NG: Likewise.
7899         * localedata/locales/ik_CA: Likewise.
7900         * localedata/locales/is_IS: Likewise.
7901         * localedata/locales/iso14651_t1_pinyin: Likewise.
7902         * localedata/locales/kk_KZ: Likewise.
7903         * localedata/locales/ku_TR: Likewise.
7904         * localedata/locales/ky_KG: Likewise.
7905         * localedata/locales/ln_CD: Likewise.
7906         * localedata/locales/lt_LT: Likewise.
7907         * localedata/locales/lv_LV: Likewise.
7908         * localedata/locales/mi_NZ: Likewise.
7909         * localedata/locales/ml_IN: Likewise.
7910         * localedata/locales/mn_MN: Likewise.
7911         * localedata/locales/mr_IN: Likewise.
7912         * localedata/locales/mt_MT: Likewise.
7913         * localedata/locales/nb_NO: Likewise.
7914         * localedata/locales/om_KE: Likewise.
7915         * localedata/locales/os_RU: Likewise.
7916         * localedata/locales/pl_PL: Likewise.
7917         * localedata/locales/ps_AF: Likewise.
7918         * localedata/locales/ro_RO: Likewise.
7919         * localedata/locales/ru_RU: Likewise.
7920         * localedata/locales/ru_UA: Likewise.
7921         * localedata/locales/sc_IT: Likewise.
7922         * localedata/locales/se_NO: Likewise.
7923         * localedata/locales/si_LK: Likewise.
7924         * localedata/locales/sq_AL: Likewise.
7925         * localedata/locales/sv_FI: Likewise.
7926         * localedata/locales/sv_FI@euro: Likewise.
7927         * localedata/locales/sv_SE: Likewise.
7928         * localedata/locales/szl_PL: Likewise.
7929         * localedata/locales/tg_TJ: Likewise.
7930         * localedata/locales/ti_ER: Likewise.
7931         * localedata/locales/tk_TM: Likewise.
7932         * localedata/locales/tl_PH: Likewise.
7933         * localedata/locales/tr_TR: Likewise.
7934         * localedata/locales/tt_RU: Likewise.
7935         * localedata/locales/tt_RU@iqtelif: Likewise.
7936         * localedata/locales/ug_CN: Likewise.
7937         * localedata/locales/uk_UA: Likewise.
7938         * localedata/locales/uz_UZ: Likewise.
7939         * localedata/locales/uz_UZ@cyrillic: Likewise.
7940         * localedata/locales/vi_VN: Likewise.
7941         * localedata/locales/yi_US: Likewise.
7942         * localedata/locales/yo_NG: Likewise.
7943
7944 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7945
7946         * gen-locales.mk: Make test files which contain @ modifiers in their
7947         name work.
7948         * localedata/gen-locale.sh: Likewise.
7949
7950 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7951
7952         * posix/tst-fnmatch.input: Fix results for range expressions
7953         for non C locales.
7954         * posix/tst-regexloc.c: Do not use a range expression for
7955         de_DE.ISO-8859-1 locale.
7956
7957 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7958
7959         * posix/bug-regex5.c: Fix test case because with the new
7960         iso14651_t1_common file, the da_DK locale now has 6 collating elements
7961         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
7962         file.
7963
7964 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7965
7966         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
7967         downloaded from ISO, the collation order of @-. and space has changed.
7968         Therefore, this test file needed to be adapted.
7969         * localedata/fr_CA.UTF-8.in: Likewise.
7970         * localedata/fr_FR.UTF-8.in: Likewise.
7971         * localedata/uk_UA.UTF-8.in: Likewise.
7972
7973 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7974
7975         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
7976         order of ȥ in the new iso14651_t1_common file.
7977         * localedata/pl_PL.UTF-8.in: Likewise.
7978
7979 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7980
7981         * localedata/locales/iso14651_t1_common: Add sections for various
7982         scripts to the iso14651_t1_common file.
7983
7984 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7985
7986         * localedata/locales/iso14651_t1_common: Use the code point of a
7987         character in the fourth collation level instead of IGNORE for all
7988         entries which have IGNORE on all 4 levels.
7989
7990 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7991
7992         * localedata/locales/iso14651_t1_common: Add some convenient collation
7993         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
7994         rules similar to those in CLDR.
7995
7996 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
7997
7998         * localedata/locales/iso14651_t1_common: The new version of this
7999         file downloaded from ISO contained several syntax errors which
8000         are fixed by this patch.
8001
8002 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
8003
8004         * localedata/locales/iso14651_t1_common: replace all <U.....>
8005         with <U000.....> because glibc understands only 4 digit or 8 digit
8006
8007 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
8008
8009         * localedata/locales/iso14651_t1_common: Necessary changes
8010         to make the file downloaded from ISO usable by glibc.
8011
8012 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
8013
8014         [BZ #14095]
8015         * localedata/locales/iso14651_t1_common: Update file to
8016         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
8017
8018 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8019
8020         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
8021         of <nptl/pthreadP.h>
8022         (thread_attr_compare): Move function to...
8023         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
8024         * sysdeps/nptl/timer_routines.h: ... new header.
8025         * sysdeps/mach/hurd/gai_misc.h: New file.
8026
8027 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
8028
8029         * string/strcoll_l.c: Include <libc-diag.h>.
8030         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
8031         declarations of seq1 and seq2.
8032
8033         [BZ #15105]
8034         * stdlib/atoi.c (atoi): Use libc_hidden_def.
8035         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
8036
8037 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
8038
8039         [BZ #22433]
8040         [BZ #22807]
8041         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
8042         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
8043         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
8044         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
8045         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
8046         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
8047
8048 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8049
8050         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
8051         macros used in __ptrace_request.
8052
8053 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
8054
8055         [BZ #22792]
8056         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
8057         to $(CC).
8058         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
8059         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
8060         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
8061         <tcb-offsets.h>.
8062
8063 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
8064
8065         [BZ #15105]
8066         * ctype/ctype.c (tolower): Use libc_hidden_def.
8067         (toupper): Likewise.
8068         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
8069         [!_ISOMAC] (toupper): Likewise.
8070
8071 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
8072
8073         * localedata/Makefile: Remove --quiet argument when
8074         installing locales
8075
8076 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
8077
8078         [BZ #17438]
8079         * localedata/locales/pt_BR (LC_TIME): use / instead of -
8080         in d_fmt.
8081         * localedata/locales/pt_PT (LC_TIME): likewise
8082
8083 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
8084
8085         [BZ #22646]
8086         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
8087         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
8088         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
8089
8090 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8091
8092         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8093
8094         * nptl/Makefile (routines): Remove unregister-atfork.
8095         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
8096         (fork_handler_alloc): Remove function.
8097         (fork_handlers, fork_handler_init): New variables.
8098         (__fork_lock): Rename to atfork_lock.
8099         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
8100         to use a dynamic array to add/remove atfork handlers.
8101         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
8102         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
8103         Remove declaration.
8104         (fork_handler): Remove next, refcntr, and need_signal member.
8105         (__run_fork_handler_type): New enum.
8106         (__run_fork_handlers): New prototype.
8107         * nptl/register-atfork.c: Remove file.
8108         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
8109
8110         * sysdeps/nptl/nptl-signals.h: Move to ...
8111         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
8112         comments.
8113         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
8114         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
8115         unnecessary check for SIGTIMER.
8116         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
8117         remove unnecessary removal of SIGTIMER.
8118         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
8119         include-signals.h rename.
8120         * nptl/pthreadP.h: Likewise.
8121         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
8122         __is_internal_signal instead of __nptl_is_internal_signal.
8123
8124 2018-02-22  Andrew Waterman <andrew@sifive.com>
8125
8126         [BZ # 22884]
8127         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
8128         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
8129         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
8130         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
8131
8132 2018-02-22  DJ Delorie  <dj@delorie.com>
8133
8134         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
8135
8136 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8137
8138         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
8139         do_misaligned, not misaligned8.
8140
8141 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
8142
8143         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
8144         Add memcpy_thunderx2.
8145         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8146         Increment to 4.
8147         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
8148         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
8149         and IS_THUNDERX2PA checks.
8150         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
8151         Use macro to set name appropriately.
8152         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
8153         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
8154         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
8155         New macro.
8156         (IS_THUNDERX2): New macro.
8157
8158 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
8159
8160         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8161
8162 2018-02-21  Zack Weinberg  <zackw@panix.com>
8163
8164         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
8165         Define here, unconditionally.
8166         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
8167         * libio/libioP.h: Remove #if 0 blocks.
8168         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
8169         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
8170         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
8171
8172         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
8173         Assume weak_alias is always defined.
8174
8175         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
8176         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
8177         Remove #if 0 and #ifdef TODO blocks.
8178         Assume text_set_element is always defined.
8179
8180         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
8181         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
8182         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
8183
8184         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
8185         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
8186         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
8187         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
8188         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
8189         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
8190         Reformat bit flags for _flags field to make occupancy clearer.
8191         Update commentary.
8192         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
8193         Keep definitions consistent with those in libio/libio.h.
8194
8195         * libio/libio.h (_IO_file_flags): Remove macro.
8196         All uses changed to _flags.
8197
8198         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
8199         (__HAVE_COLUMN, _IO_BE): Don't define.
8200         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
8201         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
8202         * libio/libioP.h (EOF): Don't define.
8203         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
8204         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
8205         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
8206         testing _IO_UNIFIED_JUMPTABLES.
8207
8208         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
8209         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
8210         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
8211         (_IO_size_t): Delete; all uses changed to size_t.
8212         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
8213         (_IO_off_t): Delete; all uses changed to off_t.
8214         (_IO_off64_t): Delete; all uses changed to off64_t.
8215         (_IO_pid_t): Delete; all uses changed to pid_t.
8216         (_IO_uid_t): Delete; all uses changed to uid_t.
8217         (_IO_wint_t): Delete; all uses changed to wint_t.
8218         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
8219         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
8220         (_IO_cookie_io_functions_t): Delete; all uses changed to
8221         cookie_io_functions_t.
8222         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
8223         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
8224         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
8225         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
8226
8227         * libio/iofopncook.c: Remove unnecessary forward declarations.
8228         * libio/iolibio.h: Correct outdated commentary.
8229         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
8230         * stdio-common/fxprintf.c (__fxprintf_nocancel):
8231         Remove unnecessary casts.
8232         * stdio-common/getline.c: Use _IO_getdelim directly.
8233         Don't redefine ssize_t.
8234         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
8235         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
8236         Remove outdated comments.
8237         * stdio-common/vfscanf.c: Don't redefine va_list.
8238
8239         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
8240         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
8241         Remove preprocessor conditionals on _LIBC and __USE_GNU,
8242         which are always true, and __cplusplus, which is always false.
8243
8244 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
8245
8246         [BZ #15105]
8247         [BZ #19463]
8248         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
8249         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
8250         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
8251         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
8252         libc_hidden_proto.
8253         [!_ISOMAC] (putc_unlocked): Likewise.
8254         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
8255         define inline if [__USE_EXTERN_INLINES].
8256         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
8257         putc_unlocked.
8258
8259         [BZ #15105]
8260         [BZ #19463]
8261         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
8262         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
8263         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
8264         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
8265         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
8266         getc_unlocked.
8267         * time/tzfile.c (__tzfile_read): Likewise.
8268
8269 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
8270
8271         [BZ #22517]
8272         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
8273
8274 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
8275
8276         * io/fcntl.h: Fix a typo in a comment.
8277
8278 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
8279
8280         [BZ #22862]
8281         * include/features.h: Add _ISOC11_SOURCE to test for whether to
8282         define _DEFAULT_SOURCE.
8283         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
8284
8285 2018-02-21  Florian Weimer  <fweimer@redhat.com>
8286
8287         [BZ #20890]
8288         * elf/cache.c (save_cache): Call fsync on temporary file before
8289         renaming it.
8290         (save_aux_cache): Call fdatasync on temporary file before renaming
8291         it.
8292
8293 2018-02-21  Florian Weimer  <fweimer@redhat.com>
8294
8295         [BZ #22787]
8296         * include/caller.h: Remove file.
8297         * elf/dl-caller.c: Likewise.
8298         * elf/Makefile (dl-routines): Remove dl-caller.
8299         (shared-only-routines): Do not add dl-caller.
8300         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
8301         __check_caller.
8302         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
8303         member.
8304         (dl_open_worker): Do not call __check_caller.
8305         (_dl_open): Do not set caller_dl_open member.
8306         * elf/rtld.c (_rtld_global_ro): Do not initialize
8307         _dl_check_caller member.
8308         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
8309         _dl_check_caller member.
8310         (_dl_check_caller): Remove declaration.
8311         * sysdeps/unix/sysv/linux/dl-execstack.c
8312         (_dl_make_stack_executable): Do not call __check_caller.
8313
8314 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8315
8316         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
8317         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
8318
8319 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
8320
8321         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
8322         description.
8323
8324 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
8325
8326         [BZ #16335]
8327         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
8328         of 199606L, 200112L, and 200809L.
8329         (_XOPEN_SOURCE): Document special values of 600 and 700.
8330         (_ISOC11_SOURCE): Document macro.
8331         (_ATFILE_SOURCE): Likewise.
8332         (_FORTIFY_SOURCE): Likewise.
8333
8334 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
8335
8336         [BZ #15105]
8337         [BZ #19463]
8338         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
8339         and define as weak alias of __ferror_unlocked.  Use
8340         libc_hidden_weak.
8341         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
8342         libc_hidden_proto.
8343         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
8344         function if [__USE_EXTERN_INLINES].
8345         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
8346         ferror_unlocked.
8347
8348 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
8349
8350         [BZ #6889]
8351         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
8352
8353 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
8354
8355         [BZ #22818]
8356         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
8357         the GLIBC_2.1 version.
8358
8359 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
8360
8361         [BZ #21508]
8362         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
8363         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
8364         intl/tst-gettext-de.po from po/de.po by removing the
8365         POT-Creation-Date line.
8366         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
8367         ../po/de.po.
8368         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
8369         ../po/de.po.
8370
8371 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8372
8373         * mach/Makefile (headers): Add mach/param.h.
8374         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
8375         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
8376         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
8377         (__ptsname_r): Move implementation to...
8378         (__ptsname_internal): ... new function.  Add filling the STP
8379         structure.
8380
8381 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
8382
8383         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
8384         idouble to 1 ULP.
8385
8386 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
8387
8388         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
8389         syntax.
8390
8391 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
8392
8393         * nptl/Makefile (tst-mutex8-ENV): Delete.
8394         * nptl/tst-mutex8.c (check_type):
8395         Add runtime check if mutex will be elided.
8396
8397 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
8398
8399         [BZ #20980]
8400         [BZ #21234]
8401         * manual/install.texi (Configuring and compiling): Describe
8402         passing CC and CFLAGS on configure command line, not as
8403         environment variables.  Use @code markup on those variables.
8404         Specify what options go in CC and what go in CFLAGS.  Note the
8405         requirement to compile with optimization.
8406         * INSTALL: Regenerated.
8407
8408         [BZ #18124]
8409         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
8410         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
8411         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
8412         __sigprocmask instead of sigprocmask.
8413         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
8414         Likewise.
8415         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
8416         __sigsetjmp and sigprocmask.
8417
8418         [BZ #15105]
8419         * include/argz.h (argz_next): Use libc_hidden_proto.
8420         (__argz_next): Likewise.
8421         * string-argz-next.c (__argz_next): Use libc_hidden_def.
8422         (argz_next): Use libc_hidden_weak.
8423
8424         [BZ #15105]
8425         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
8426         libc_hidden_proto.
8427         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
8428         libc_hidden_def.
8429
8430         [BZ #15105]
8431         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
8432         libc_hidden_proto.
8433         * libio/iofputs.c (fputs): Use libc_hidden_weak.
8434
8435         [BZ #15105]
8436         [BZ #19463]
8437         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
8438         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
8439         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
8440         (__feof_unlocked): New declaration, and inline function if
8441         [__USE_EXTERN_INLINES].
8442         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
8443         instead of feof_unlocked.
8444         * intl/localealias.c [_LIBC] (FEOF): Likewise.
8445         * nss/nsswitch.c (nss_parse_file): Likewise.
8446         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
8447         Likewise.
8448         * time/getdate.c (__getdate_r): Likewise.
8449         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
8450         Define as macro to call __feof_unlocked.
8451
8452 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
8453
8454         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
8455
8456 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
8457
8458         * math/Makefile: Remove mpexp.c and mplog.c
8459         * sysdeps/i386/fpu/mpexp.c: Delete file.
8460         * sysdeps/i386/fpu/mplog.c: Likewise.
8461         * sysdeps/ia64/fpu/mpexp.c: Likewise.
8462         * sysdeps/ia64/fpu/mplog.c: Likewise.
8463         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
8464         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
8465         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
8466         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
8467         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
8468         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
8469         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
8470         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
8471         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8472         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
8473         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
8474         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8475         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
8476         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
8477         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8478         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
8479
8480 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
8481
8482         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8483
8484 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8485
8486         * sysdeps/sh/libm-test-ulps: Update.
8487
8488 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8489
8490         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
8491         idouble to 1 ULP.
8492
8493 2018-02-12  Zack Weinberg  <zackw@panix.com>
8494
8495         [BZ #19239]
8496         * posix/sys/types.h: Don't include sys/sysmacros.h.
8497         * misc/sys/sysmacros.h: Remove the conditional deprecation
8498         warnings for the macros defined by this header.
8499
8500 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8501
8502         * manual/probes.texi: Remove slowexp probes.
8503         * math/Makefile: Remove slowexp.
8504         * sysdeps/generic/math_private.h (__slowexp): Remove.
8505         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
8506         document error bounds.
8507         * sysdeps/i386/fpu/slowexp.c: Remove.
8508         * sysdeps/ia64/fpu/slowexp.c: Remove.
8509         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
8510         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
8511         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
8512         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
8513         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
8514         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
8515         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
8516         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
8517         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
8518         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
8519         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
8520
8521 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
8522
8523         [BZ #13932]
8524         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
8525         * benchtests/pow-inputs: Update comment for slow path cases.
8526         * manual/probes.texi (slowpow_p10): Delete removed probe.
8527         (slowpow_p10): Likewise.
8528         * math/Makefile: Remove halfulp.c and slowpow.c.
8529         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
8530         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
8531         (__halfulp): Remove.
8532         (__slowpow): Remove.
8533         * sysdeps/i386/fpu/halfulp.c: Delete file.
8534         * sysdeps/i386/fpu/slowpow.c: Likewise.
8535         * sysdeps/ia64/fpu/halfulp.c: Likewise.
8536         * sysdeps/ia64/fpu/slowpow.c: Likewise.
8537         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
8538         improve comments and add error analysis.
8539         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
8540         (power1): Remove function:
8541         (log1): Remove error argument, add error analysis.
8542         (my_log2): Remove function.
8543         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
8544         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8545         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
8546         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
8547         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
8548         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
8549         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
8550         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
8551         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
8552         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
8553         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
8554         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
8555         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8556         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
8557
8558 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8559
8560         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
8561         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
8562
8563 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
8564
8565         [BZ #22433]
8566         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
8567         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
8568         and PTRACE_SETHBPREGS.
8569
8570 2018-02-10  Zack Weinberg  <zackw@panix.com>
8571
8572         [BZ #22830]
8573         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
8574         correctly.
8575         * malloc/tst-malloc-stats-cancellation.c: New test case.
8576         * malloc/Makefile: Add new test case.
8577
8578 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
8579
8580         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
8581
8582 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
8583
8584         * math/Makefile (libm-narrow-fns): Add add.
8585         (libm-test-funcs-narrow): Likewise.
8586         * math/Versions (GLIBC_2.28): Add narrowing add functions.
8587         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
8588         * math/gen-auto-libm-tests.c (test_functions): Add add.
8589         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
8590         (NARROW_ADD_ROUND_TO_ODD): Likewise.
8591         (NARROW_ADD_TRIVIAL): Likewise.
8592         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
8593         macro.
8594         (__daddl): Likewise.
8595         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
8596         dadd.
8597         (CFLAGS-nldbl-dadd.c): New variable.
8598         (CFLAGS-nldbl-fadd.c): Likewise.
8599         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8600         __nldbl_daddl.
8601         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
8602         prototype.
8603         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
8604         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
8605         * math/auto-libm-test-in: Add tests of add.
8606         * math/auto-libm-test-out-narrow-add: New generated file.
8607         * math/libm-test-narrow-add.inc: New file.
8608         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8609         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
8610         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
8611         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
8612         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
8613         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
8614         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
8615         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
8616         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
8617         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
8618         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
8619         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
8620         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
8621         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
8622         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
8623         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
8624         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
8625         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
8626         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8627         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8628         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8629         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8630         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8631         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8632         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8633         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8634         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8635         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8636         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8637         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8638         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8639         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8644         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8645         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8646         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8647         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8648         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8649         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8650         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
8651         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
8652         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8653         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8654
8655         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
8656         (f128-pairs): New variable.
8657         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
8658         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
8659         to CFLAGS.
8660         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
8661         Also make tests add $(f128-loader-link) to gnulib-tests.
8662
8663 2018-02-09  DJ Delorie  <dj@redhat.com>
8664
8665         [BZ #22827]
8666         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
8667         64-bit ELF type for 64-bit ELF objects.
8668
8669 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
8670
8671         * math/libm-test-driver.c (snan_tests_arg): New variable.
8672         * math/libm-test-support.h (snan_tests_arg): New declaration.
8673         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
8674
8675         * math/Makefile (test-type-pairs): New variable.
8676         (test-type-pairs-f64xf128-yes): Likewise.
8677         (tests): Add test-narrow-macros.
8678         (libm-test-funcs-narrow): New variable.
8679         (libm-test-c-narrow): Likewise.
8680         (generated): Add $(libm-test-c-narrow).
8681         (libm-tests-base-narrow): New variable.
8682         (libm-tests-narrow): Likewise.
8683         (libm-tests): Add $(libm-tests-narrow).
8684         (libm-tests-for-type): Handle $(libm-tests-narrow).
8685         (libm-test-c-narrow-obj): New variable.
8686         ($(libm-test-c-narrow-obj)): New rule.
8687         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
8688         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
8689         $(o-iterator) to set dependencies and CFLAGS.
8690         * math/gen-auto-libm-tests.c: Document use for narrowing
8691         functions.
8692         (output_for_one_input_case): Take argument NARROW.
8693         (generate_output): Likewise.  Update call to
8694         output_for_one_input_case.
8695         (main): Take --narrow option.  Update call to generate_output.
8696         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
8697         (apply_lit): Update call to _apply_lit.
8698         (apply_arglit): New function.
8699         (parse_args): Handle "a" arguments.
8700         (parse_auto_input): Handle format names using ":".
8701         * math/README.libm-test: Document "a" parameter type.
8702         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
8703         (ARG_TYPE_TRUE_MIN): Likewise.
8704         (ARG_TYPE_MAX): Likwise.
8705         (ARG_MIN_EXP): Likewise.
8706         (ARG_MAX_EXP): Likewise.
8707         (ARG_MANT_DIG): Likewise.
8708         (TEST_COND_arg_ibm128): Likewise.
8709         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
8710         (TEST_COND_arg_fmt): New macro.
8711         (init_max_error): Update prototype.
8712         * math/libm-test-support.c (test_ibm128): New variable.
8713         (init_max_error): Take argument testing_ibm128 and set test_ibm128
8714         instead of using [TEST_COND_ibm128] conditional.
8715         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
8716         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
8717         [TEST_NARROW] (TEST_MSG): New definition.
8718         (arg_plus_zero): New macro.
8719         (arg_minus_zero): Likewise.
8720         (arg_plus_infty): Likewise.
8721         (arg_minus_infty): Likewise.
8722         (arg_qnan_value_pl): Likewise.
8723         (arg_qnan_value): Likewise.
8724         (arg_snan_value_pl): Likewise.
8725         (arg_snan_value): Likewise.
8726         (arg_max_value): Likewise.
8727         (arg_min_value): Likewise.
8728         (arg_min_subnorm_value): Likewise.
8729         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
8730         (RUN_TEST_LOOP_aa_f): New macro.
8731         (TEST_SUFF): New macro.
8732         (TEST_SUFF_STR): Likewise.
8733         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
8734         (TEST_COND_any_ibm128): New macro.
8735         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
8736         this_func.  Update call to init_max_error.
8737         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
8738         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
8739         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
8740         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
8741         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
8742         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
8743         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
8744         * math/test-math-scalar.h (TEST_NARROW): Likewise.
8745         * math/test-math-vector.h (TEST_NARROW): Likewise.
8746         * math/test-arg-double.h: New file.
8747         * math/test-arg-float128.h: Likewise.
8748         * math/test-arg-float32x.h: Likewise.
8749         * math/test-arg-float64.h: Likewise.
8750         * math/test-arg-float64x.h: Likewise.
8751         * math/test-arg-ldouble.h: Likewise.
8752         * math/test-math-narrow.h: Likewise.
8753         * math/test-narrow-macros.c: Likewise.
8754         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
8755         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
8756         test-narrow-macros-ldbl-64.
8757         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
8758
8759         * math/bits/mathcalls-narrow.h: New file.
8760         * include/bits/mathcalls-narrow.h: Likewise.
8761         * math/math-narrow.h: Likewise.
8762         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
8763         (__MATHCALL_NARROW_ARGS_2): Likewise.
8764         (__MATHCALL_NARROW_ARGS_3): Likewise.
8765         (__MATHCALL_NARROW_NORMAL): Likewise.
8766         (__MATHCALL_NARROW_REDIR): Likewise.
8767         (__MATHCALL_NARROW): Likewise.
8768         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
8769         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
8770         defined.
8771         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
8772         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
8773         (libm-narrow-fns): New variable.
8774         (libm-narrow-types-basic): Likewise.
8775         (libm-narrow-types-ldouble-yes): Likewise.
8776         (libm-narrow-types-float128-yes): Likewise.
8777         (libm-narrow-types-float128-alias-yes): Likewise.
8778         (libm-narrow-types): Likewise.
8779         (libm-routines): Add narrowing functions.
8780         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
8781         (libc_feholdexcept_setroundf128): New macro.
8782         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
8783         * sysdeps/ieee754/float128/float128_private.h: Include
8784         <math/math-narrow.h>.
8785         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
8786         Undefine and redefine.
8787         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
8788         (libm_alias_float_ldouble): Undefine and redefine.
8789         (libm_alias_double_ldouble): Likewise.
8790
8791         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
8792
8793 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
8794
8795         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
8796         FPCR/FPSR.
8797
8798 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
8799
8800         * manual/creature.texi: Convert references to gcc.info to gcc.
8801         * manual/stdio.texi: Likewise.
8802         * manual/string.texi: Likewise.
8803
8804 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
8805
8806         [BZ #17979]
8807         * posix/bits/types.h (__int_least8_t): New typedef.
8808         (__uint_least8_t): Likewise.
8809         (__int_least16_t): Likewise.
8810         (__uint_least16_t): Likewise.
8811         (__int_least32_t): Likewise.
8812         (__uint_least32_t): Likewise.
8813         (__int_least64_t): Likewise.
8814         (__uint_least64_t): Likewise.
8815         * sysdeps/generic/stdint.h (int_least8_t): Define using
8816         __int_least8_t.
8817         (int_least16_t): Define using __int_least16_t.
8818         (int_least32_t): Define using __int_least32_t.
8819         (int_least64_t): Define using __int_least64_t.
8820         (uint_least8_t): Define using __uint_least8_t.
8821         (uint_least16_t): Define using __uint_least16_t.
8822         (uint_least32_t): Define using __uint_least32_t.
8823         (uint_least64_t): Define using __uint_least64_t.
8824         * wcsmbs/uchar.h: Include <bits/types.h>.
8825         (char16_t): Define using __uint_least16_t conditional only on
8826         [!__USE_ISOCXX11].
8827         (char32_t): Define using __uint_least32_t conditional only on
8828         [!__USE_ISOCXX11].
8829         * wcsmbs/test-char-types.c: New file.
8830         * wcsmbs/Makefile (tests): Add test-char-types.
8831
8832         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
8833         version to 4.0.1.
8834
8835 2018-02-07  Zack Weinberg  <zackw@panix.com>
8836
8837         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
8838         Delete all contents except for definitions of _G_HAVE_MMAP and
8839         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
8840         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
8841         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
8842         change as above.
8843
8844         * libio/libio.h: Don't include bits/_G_config.h here.
8845         Include stddef.h with __need_wchar_t defined.  Include
8846         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
8847         Define _IO_iconv_t here, directly.
8848         Don't define _IO_HAVE_ST_BLKSIZE.
8849         * libio/libioP.h: Include _G_config.h here.  Move include of
8850         shlib-compat.h up with rest of includes.  Simplify conditionals
8851         controlling definition of _IO_JUMPS_OFFSET.
8852
8853         * csu/init.c: Remove always-true #if around entire file.
8854         Don't include stdio.h.  Set _IO_stdin_used to hardwired
8855         constant 0x20001, and update commentary.
8856         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
8857         Replace all uses of _G_va_list with __gnuc_va_list.
8858         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
8859         instead of #if _IO_HAVE_ST_BLKSIZE.
8860         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
8861         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
8862         not #ifdef.
8863
8864         * libio/bits/libio.h: Move back to libio/libio.h and adjust
8865         multiple-include guard to match.
8866         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
8867         into this file.
8868         Remove preprocessor conditionals that are always true and/or
8869         redundant to other preprocessor conditionals in the same nest.
8870         Include shlib-compat.h unconditionally.
8871         Error out if _LIBC is not defined, or if _ISOMAC is defined,
8872         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
8873         defined after including stdio.h.
8874         Use __BEGIN_DECLS/__END_DECLS.
8875
8876         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
8877         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
8878         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
8879
8880 2018-02-07  Zack Weinberg  <zackw@panix.com>
8881
8882         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
8883         New single-type headers split from _G_config.h.
8884         * libio/bits/types/cookie_io_functions_t.h
8885         * libio/bits/types/struct_FILE.h
8886         New single-type headers split from libio.h.
8887
8888         * libio/Makefile: Install the above new headers.  Don't install
8889         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
8890         bits/libio-ldbl.h.
8891         * libio/_G_config.h, libio/libio.h: Delete file.
8892
8893         * libio/bits/libio.h: Remove improper-inclusion guard.
8894         Include stdio.h and don't repeat anything that it does.
8895         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
8896         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
8897         __io_read_fn as cookie_read_function_t,
8898         __io_write_fn as cookie_write_function_t,
8899         __io_seek_fn as cookie_seek_function_t,
8900         __io_close_fn as cookie_close_function_t,
8901         and _IO_cookie_io_functions_t as cookie_io_functions_t.
8902         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
8903         here, in the "compatibility defines" section.  Remove an #if 0
8904         block.  Use the "body" macros from bits/types/struct_FILE.h to
8905         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
8906         and _IO_ferror_unlocked.
8907         Move prototypes of __uflow and __overflow...
8908
8909         * libio/stdio.h: ...here.  Don't include bits/libio.h.
8910         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
8911         directly from stdarg.h.  Include bits/types/__fpos_t.h,
8912         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
8913         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
8914         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
8915         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
8916         cookie_io_functions_t, not _IO_cookie_io_functions_t;
8917         __ssize_t, not _IO_ssize_t.  Unconditionally define
8918         BUFSIZ as 8192 and EOF as (-1).
8919
8920         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
8921         macros from bits/types/struct_FILE.h instead of _IO_* macros
8922         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
8923         instead of _IO_ssize_t.
8924         * libio/bits/stdio2.h: Similarly.
8925
8926         * libio/iolibio.h: Add multiple-include guard.
8927         Include bits/libio.h after stdio.h.
8928         * libio/libioP.h: Add multiple-include guard.
8929         Include stdio.h and bits/libio.h before iolibio.h.
8930
8931         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
8932         * include/bits/types/cookie_io_functions_t.h
8933         * include/bits/types/struct_FILE.h: New wrappers.
8934
8935         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
8936         Get definitions of _G_fpos_t and _G_fpos64_t from
8937         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
8938         respectively.  Remove improper-inclusion guards.
8939
8940         * conform/data/stdio.h-data: Update expectations of va_list.
8941         * scripts/check-installed-headers.sh: Remove special case for
8942         libio.h and _G_config.h.
8943
8944 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
8945
8946         [BZ #15105]
8947         [BZ #19463]
8948         * include/sys/sysmacros.h [!_ISOMAC]
8949         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
8950         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
8951         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
8952         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
8953         libc_hidden_proto.
8954         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
8955         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
8956         Likewise.
8957         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
8958         Undefine and redefine to add use __gnu_dev_ prefix.
8959         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
8960         Likewise.
8961         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
8962         and define as hidden inline function.
8963         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
8964         Likewise.
8965         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
8966         Likewise.
8967         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
8968         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
8969         (gnu_dev_minor): Likewise.
8970         (gnu_dev_makedev): Likewise.
8971         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
8972         makedev.
8973         * posix/wordexp.c (exec_comm_child): Likewise.
8974         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
8975         instead of minor and __gnu_dev_major instead of major.
8976         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
8977         __gnu_dev_major instead of major.
8978         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
8979         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
8980         instead of gnu_dev_minor.
8981         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
8982         (SLAVE_P): Likewise.
8983         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
8984         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
8985         instead of major.
8986
8987         [BZ #21313]
8988         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
8989         in another place.
8990         * locale/weightwc.h (findidx): Likewise.
8991
8992 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
8993
8994         * manual/probes.texi (slowlog): Delete documentation of removed probe.
8995         (slowlog_inexact): Likewise
8996         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
8997         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
8998
8999 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
9000
9001         [BZ #22797]
9002         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
9003         missing second underscore to parameter name.
9004
9005 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
9006
9007         [BZ #14508]
9008         [BZ #15512]
9009         [BZ #17082]
9010         [BZ #20530]
9011         * bits/byteswap.h: Update file comment.  Do not include
9012         <bits/byteswap-16.h>.
9013         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
9014         constant.
9015         (__bswap_16): Define as inline function.
9016         (__bswap_constant_32): Reformat definition.
9017         (__bswap_32): Always define as inline function, not macro, using
9018         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
9019         otherwise __bswap_constant_32.
9020         (__bswap_constant_64): Reformat definition.  Do not use
9021         __extension__ here.
9022         (__bswap_64): Always define as inline function, not macro.  Use
9023         __extension__ on function definition.  Use __builtin_bswap64 if
9024         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
9025         * string/test-endian-file-scope.c: New file.
9026         * string/test-endian-sign-conversion.c: Likewise.
9027         * string/Makefile (headers): Remove bits/byteswap-16.h.
9028         (tests): Add test-endian-file-scope and
9029         test-endian-sign-conversion.
9030         (CFLAGS-test-endian-sign-conversion.c): New variable.
9031         * bits/byteswap-16.h: Remove file.
9032         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
9033         * sysdeps/ia64/bits/byteswap.h: Likewise.
9034         * sysdeps/m68k/bits/byteswap.h: Likewise.
9035         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9036         * sysdeps/s390/bits/byteswap.h: Likewise.
9037         * sysdeps/tile/bits/byteswap.h: Likewise.
9038         * sysdeps/x86/bits/byteswap-16.h: Likewise.
9039         * sysdeps/x86/bits/byteswap.h: Likewise.
9040
9041         [BZ #17721]
9042         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
9043         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
9044         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
9045         199901L] (__restrict): Define to restrict.
9046
9047         [BZ #19667]
9048         * string/testcopy.c: Include <support/support.h>.  Do not include
9049         <malloc.h>.  Use <support/test-driver.c>.
9050         (main): Rename to do_test.  Make static.  Use xmalloc instead of
9051         malloc.
9052
9053         [BZ #13575]
9054         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
9055         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
9056         (SSIZE_MAX): Define to INT_MAX.
9057         * posix/test-ssize-max.c: New file.
9058         * posix/Makefile (tests): Add test-ssize-max.
9059
9060         [BZ #19668]
9061         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
9062         <support/support.h>.  Do not include <malloc.h>.
9063         (query_auxv): Use xmalloc instead of malloc.
9064
9065         [BZ #14553]
9066         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
9067         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
9068         instead of loff_t.
9069
9070 2018-02-06  Florian Weimer <fweimer@redhat.com>
9071
9072         [BZ #18023]
9073         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9074         Use scratch_buffer instead of extend_alloca.
9075
9076 2018-02-06  Zack Weinberg  <zackw@panix.com>
9077
9078         * libio/stdio.h: Don't define getc or putc as macros.
9079         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
9080         not _IO_getc and _IO_putc.
9081
9082         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
9083         * stdio-common/tstgetln.c: Don't redefine ssize_t.
9084
9085 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
9086
9087         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
9088         (TCP_FASTOPEN_NO_COOKIE): Likewise.
9089
9090         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
9091
9092         [BZ #14890]
9093         * elf/elf.h (NT_PRFPREG): New macro.
9094         (NT_S390_VXRS_LOW): Likewise.
9095         (NT_S390_VXRS_HIGH): Likewise.
9096         (NT_S390_GS_CB): Likewise.
9097         (NT_S390_GS_BC): Likewise.
9098         (NT_S390_RI_CB): Likewise.
9099
9100         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
9101         (MAP_SYNC): New macro.
9102         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
9103         Likewise.
9104         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
9105         (MAP_SYNC): Likewise.
9106         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
9107         (MAP_SYNC): Likewise.
9108         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
9109         (MAP_SYNC): Likewise.
9110         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
9111         (MAP_SYNC): Likewise.
9112         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
9113         (MAP_SYNC): Likewise.
9114         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
9115         (MAP_SYNC): Likewise.
9116         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
9117         Likewise.
9118         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
9119         Likewise.
9120
9121         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
9122         (MAP_SHARED_VALIDATE): New macro.
9123         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9124         (MAP_SHARED_VALIDATE): Likewise.
9125
9126 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9127
9128         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
9129         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
9130         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
9131
9132 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9133
9134         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
9135         (DT_NUM): Updated to 35.
9136
9137 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9138
9139         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
9140         __builtin_expect with __glibc_likely and __glibc_unlikely.
9141         (elf_machine_rela): Likewise.
9142         (elf_machine_lazy_rel): Likewise.
9143
9144 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9145
9146         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
9147         __builtin_expect with __glibc_likely and __glibc_unlikely.
9148         (elf_machine_lazy_rel): Likewise.
9149
9150 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9151
9152         [BZ #22638]
9153         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
9154         SHARED.
9155         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
9156
9157 2018-02-05  Andreas Schwab  <schwab@suse.de>
9158
9159         [BZ #22761]
9160         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
9161         string.
9162
9163 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9164
9165         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
9166         not check against PTHREAD_STACK_MIN.
9167
9168 2018-02-02  Sean McKean  <smckean83@gmail.com>
9169
9170         [BZ #22735]
9171         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
9172
9173 2018-02-02  Florian Weimer  <fweimer@redhat.com>
9174
9175         [BZ #22753]
9176         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
9177         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9178         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9179         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
9180         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9181         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9182         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9183         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
9184         * manual/llio.texi (Scatter-Gather): Mention offset -1.
9185         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
9186         * misc/tst-preadvwritev2.c (do_test): Call it.
9187         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
9188
9189 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9190
9191         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
9192
9193         * benchtests/bench-memcmp.c: Print json instead of plain text.
9194
9195         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
9196         every test run.
9197
9198 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
9199
9200         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9201         version to 4.15.
9202         (s390_sthyi): New syscall.
9203
9204         * sysdeps/generic/ldbl-classify-compat.h: New file.
9205         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
9206         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
9207         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
9208         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
9209         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
9210         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
9211         * sysdeps/ieee754/dbl-64/s_finite.c: Include
9212         <ldbl-classify-compat.h>.
9213         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9214         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
9215         <ldbl-classify-compat.h>.
9216         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9217         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
9218         <ldbl-classify-compat.h>.
9219         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9220         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
9221         <ldbl-classify-compat.h>.
9222         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9223         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
9224         <ldbl-classify-compat.h>.
9225         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9226         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
9227         <ldbl-classify-compat.h>.
9228         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9229         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
9230         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
9231         * sysdeps/m68k/coldfire/math_private.h: Remove file.
9232         * sysdeps/microblaze/math_private.h: Likewise.
9233         * sysdeps/nios2/math_private.h: Likewise.
9234         * sysdeps/sh/math_private.h: Likewise.
9235
9236         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
9237         * sysdeps/m68k/coldfire/math_private.h: ... here.
9238         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
9239         * sysdeps/tile/math_private.h: Likewise.
9240         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
9241         Remove macro.
9242         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
9243         Likewise.
9244
9245         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
9246         Remove macro.
9247         (libc_fetestexcept): Likewise.
9248         (libc_feupdateenv_test): Likewise.
9249         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
9250         (libc_fetestexcept): Likewise.
9251         (libc_feupdateenv_test): Likewise.
9252         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
9253         (libc_fetestexcept): Likewise.
9254         (libc_feupdateenv_test): Likewise.
9255         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
9256         (libc_fetestexcept): Likewise.
9257         (libc_feupdateenv_test): Likewise.
9258
9259         * sysdeps/generic/math_private.h
9260         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
9261         New inline function.
9262         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
9263         Likewise.
9264
9265         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
9266         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
9267         * sysdeps/generic/math_private.h
9268         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
9269         inline function.
9270         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
9271         Likewise.
9272         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
9273         Likewise.
9274         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
9275         Likewise.
9276         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
9277         Likewise.
9278         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
9279         Likewise.
9280         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
9281         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
9282         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
9283         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
9284         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
9285         (__fegetenv): Likewise.
9286         (fesetenv): Likewise.
9287         (__fesetenv): Likewise.
9288         (feupdateenv): Likewise.
9289         (__feupdateenv): Likewise.
9290         (fegetround): Likewise.
9291         (__fegetround): Likewise.
9292         (fesetround): Likewise.
9293         (__fesetround): Likewise.
9294
9295         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
9296         (feraiseexcept): New macro.
9297         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
9298         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
9299         Remove macro.
9300         (__feraiseexcept): Likewise.
9301         (feclearexcept): Likewise.
9302         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
9303         (__feraiseexcept): Likewise.
9304         (feclearexcept): Likewise.
9305         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
9306         (__feraiseexcept): Likewise.
9307         (feclearexcept): Likewise.
9308         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
9309         (__feraiseexcept): Likewise.
9310         (feclearexcept): Likewise.
9311         (fetestexcept): Likewise.
9312
9313         * sysdeps/m68k/coldfire/math-tests.h: New file.
9314
9315         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
9316         * sysdeps/m68k/bits/fenv.h: ... here.
9317         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
9318         not define.
9319         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
9320         Likewise.
9321         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
9322         Likewise.
9323         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
9324         Likewise.
9325         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
9326         Likewise.
9327         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
9328         Define to 0.
9329         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
9330         (__FE_UNDEFINED): New enum constant.
9331         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
9332         Do not define.
9333         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
9334         Likewise.
9335         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
9336         Likewise.
9337         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
9338         to match generic bits/fenv.h.
9339         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
9340         Do not define.
9341
9342         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
9343         packed on bits.
9344         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
9345         * soft-fp/half.h (union _FP_UNION_H): Likewise.
9346         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
9347         * soft-fp/single.h (union _FP_UNION_S): Likewise.
9348
9349 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
9350             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
9351             Joseph Myers  <joseph@codesourcery.com>
9352
9353         [BZ #21314]
9354         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
9355         (__log1p): Disable -Wmaybe-uninitialized for -Os around
9356         computation using c.
9357         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
9358         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
9359         computation using c.
9360
9361 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
9362
9363         * version.h (RELEASE): Set to "development".
9364         (VERSION): Set to "2.27.9000".
9365         * NEWS (2.28): New section.
9366
9367         * version.h (RELEASE): Set to "stable".
9368         (VERSION): Set to "2.27".
9369         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
9370
9371         * NEWS: Add the list of bugs fixed in 2.27.
9372
9373 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9374
9375         * stdlib/test-atexit-race-common.c (do_test): Check stack size
9376         against PTHREAD_STACK_MIN.
9377
9378 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
9379
9380         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
9381         New entries.
9382         (Rafal Luzynski, Andreas Schwab): Update.
9383
9384 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
9385
9386         [BZ #10871]
9387         * NEWS: List the languages which actually use the alternative
9388         months feature in this release.  Also explain that "alt_mon" and
9389         "ab_alt_mon" are optional.
9390
9391 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
9392
9393         [BZ #22765]
9394         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
9395
9396 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
9397
9398         * manual/install.texi (Tools for Compilation): Update the newest
9399         versions of gcc, binutils, texinfo, gawk, bison, and sed.
9400         * INSTALL: Regenerated.
9401
9402 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9403
9404         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
9405         instead of __builtin_expect.
9406
9407 2018-01-30  Florian Weimer  <fweimer@redhat.com>
9408
9409         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
9410         data.
9411         * nss/tst-nss-getpwent.c (do_test): Likewise.
9412
9413 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
9414
9415         [BZ #10871]
9416         * localedata/locales/hr_HR (mon): Rename to...
9417         (alt_mon): This.
9418         (mon): Import from CLDR (genitive case).
9419         (d_t_fmt): Update the comment.
9420
9421 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
9422
9423         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
9424         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
9425         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
9426
9427 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9428
9429         * mach/Versions: Fix version when __mach_host_self_ was added.
9430         * hurd/Versions: Fix version when _hurd_exec_paths was added.
9431         * sysdeps/mach/hurd/i386/ld.abilist: New file.
9432         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
9433         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
9434         * sysdeps/mach/hurd/i386/libc.abilist: New file.
9435         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
9436         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
9437         * sysdeps/mach/hurd/i386/libm.abilist: New file.
9438         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
9439         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
9440         * sysdeps/mach/hurd/i386/librt.abilist: New file.
9441         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
9442         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
9443         || to respect codestyle.
9444         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
9445         (do_test_bz20181): Rename accordingly.
9446         * malloc/malloc.c: Include <assert.h>.
9447         (assert): Do not define.
9448         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
9449         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
9450         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9451         * sysdeps/mach/hurd/hp-timing.h: New file.
9452         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
9453
9454 2018-01-29  Darius Rad  <darius@bluespec.com>
9455
9456         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
9457
9458 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
9459
9460         * sysdeps/init_array/crti.S (.section .init_array): Add
9461         PREINIT_FUNCTION when defined.
9462         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
9463         * config.h.in: Regenerate.
9464         * manual/platform.texi: Add RISC-V documenation for
9465         __riscv_flush_icache.
9466         * sysdeps/riscv/__longjmp.S: New file.
9467         * sysdeps/riscv/backtrace.c: Likewise.
9468         * sysdeps/riscv/bits/endian.h: Likewise.
9469         * sysdeps/riscv/bits/setjmp.h: Likewise.
9470         * sysdeps/riscv/bits/wordsize.h: Likewise.
9471         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
9472         * sysdeps/riscv/bsd-setjmp.c: Likewise.
9473         * sysdeps/riscv/dl-trampoline.S: Likewise.
9474         * sysdeps/riscv/gccframe.h: Likewise.
9475         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
9476         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
9477         * sysdeps/riscv/machine-gmon.h: Likewise.
9478         * sysdeps/riscv/memusage.h: Likewise.
9479         * sysdeps/riscv/setjmp.S: Likewise.
9480         * sysdeps/riscv/sys/asm.h: Likewise.
9481         * sysdeps/riscv/tls-macros.h: Likewise.
9482         * sysdeps/riscv/dl-tls.h: New file.
9483         * sysdeps/riscv/libc-tls.c: Likewise.
9484         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
9485         * sysdeps/riscv/nptl/tls.h: Likewise.
9486         * sysdeps/riscv/stackinfo.h: Likewise.
9487         * sysdeps/riscv/bits/fenv.h: New file.
9488         * sysdeps/riscv/e_sqrtl.c: Likewise.
9489         * sysdeps/riscv/fpu_control.h: Likewise.
9490         * sysdeps/riscv/math-tests.h: Likewise.
9491         * sysdeps/riscv/nofpu/Implies: Likewise.
9492         * sysdeps/riscv/sfp-machine.h: Likewise.
9493         * sysdeps/riscv/tininess.h: Likewise.
9494         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
9495         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9496         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
9497         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
9498         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
9499         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
9500         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9501         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9502         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9503         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9504         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9505         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
9506         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
9507         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
9508         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
9509         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
9510         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9511         * sysdeps/riscv/rvd/s_finite.c: Likewise.
9512         * sysdeps/riscv/rvd/s_fma.c: Likewise.
9513         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9514         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9515         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9516         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9517         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9518         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9519         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
9520         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
9521         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
9522         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
9523         * sysdeps/riscv/rvf/fegetround.c: Likewise.
9524         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9525         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9526         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
9527         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
9528         * sysdeps/riscv/rvf/fesetround.c: Likewise.
9529         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9530         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9531         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
9532         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
9533         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9534         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
9535         * sysdeps/riscv/rvf/math_private.h: Likewise.
9536         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9537         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9538         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9539         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9540         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
9541         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9542         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9543         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9544         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9545         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9546         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9547         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9548         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9549         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9550         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9551         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9552         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
9553         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
9554         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
9555         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
9556         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
9557         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
9558         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
9559         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
9560         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
9561         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
9562         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
9563         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
9564         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
9565         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
9566         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
9567         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
9568         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9569         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
9570         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
9571         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
9572         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
9573         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
9574         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
9575         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
9576         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
9577         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
9578         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
9579         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
9580         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
9581         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
9582         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9583         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
9584         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
9585         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
9586         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
9587         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
9588         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
9589         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
9590         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
9591         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
9592         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
9593         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
9594         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
9595         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
9596         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
9597         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
9598         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9599         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
9600         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
9601         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
9602         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
9603         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
9604         * sysdeps/riscv/Implies: New file.
9605         * sysdeps/riscv/Makefile: Likewise.
9606         * sysdeps/riscv/configure: Likewise.
9607         * sysdeps/riscv/configure.ac: Likewise.
9608         * sysdeps/riscv/nptl/Makefile: Likewise.
9609         * sysdeps/riscv/preconfigure: Likewise.
9610         * sysdeps/riscv/rv64/Implies-after: Likewise.
9611         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
9612         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
9613         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
9614         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
9615         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
9616         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
9617         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
9618         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
9619         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
9620         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
9621         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
9622         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
9623         (Config): Likewise.
9624
9625 2018-01-29  Florian Weimer  <fweimer@redhat.com>
9626
9627         [BZ #22701]
9628         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
9629         libnsl_hidden_proto.
9630         * include/rpcsvc/yp.h (yp_xdrall): Declare with
9631         libnsl_hidden_proto.
9632         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
9633         * nis/Makefile (libnsl-routines): Add nss-default only for
9634         build-obsolete-nsl.
9635         * nis/nis_defaults.c (__nis_default_ttl): Add
9636         libnsl_hidden_nolink_def.
9637         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
9638         declaration.
9639         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
9640         * nis/ypclnt.c (yp_maplist): Likewise.
9641
9642 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
9643
9644         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9645         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
9646
9647 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
9648
9649         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
9650         clean -dxfq for git updates when replacing sources.
9651
9652         * scripts/build-many-glibcs.py (Config.build_gcc): Use
9653         --disable-libcilkrts unconditionally, not just for the final GCC
9654         build for Hurd.
9655
9656         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9657         version to 4.15.
9658
9659 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
9660
9661         [BZ #10871]
9662         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
9663         case).
9664
9665 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
9666
9667         [BZ #10871]
9668         * localedata/locales/be_BY (mon): Rename to...
9669         (alt_mon): This, then synchronize with CLDR (nominative case).
9670         (abmon): Rename to...
9671         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
9672         (mon): Import from CLDR (genitive case).
9673         (abmon): Likewise.
9674         * localedata/locales/be_BY@latin (mon): Rename to...
9675         (alt_mon): This.
9676         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
9677
9678         * localedata/locales/be_BY@latin (lang_name): Reworded to
9679         "biełaruskaja mova".
9680
9681 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
9682
9683         [BZ #10871]
9684         * localedata/locales/el_CY (mon): Renamed to...
9685         (alt_mon): This.
9686         (mon): Import from CLDR (genitive case).
9687         * localedata/locales/el_GR: Likewise.
9688
9689 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
9690
9691         [BZ #10871]
9692         * localedata/locales/ru_RU (mon): Rename to...
9693         (alt_mon): This.
9694         (abmon): Rename to...
9695         (ab_alt_mon): This.
9696         (mon): Import from CLDR (genitive case).
9697         (abmon): Copy from the old content except the 5th month which is
9698         now in the genitive case, even when abbreviated.
9699         * localedata/locales/ru_UA: Likewise.
9700         * time/tst-strptime.c (day_tests): Add an actual example of
9701         a difference between %b and %Ob in Russian.
9702
9703 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9704
9705         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
9706         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
9707         a `c' variable.
9708         * resolv/res-close.c: Include <stdlib.h>.
9709         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
9710         <sys/wait.h>, <time.h>, <sys/uio.h>.
9711         (NOT_CANCEL_H): Add inclusion guard.
9712         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
9713         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
9714         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
9715         return 0.
9716         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
9717         vm_address_t * to ElfW(Addr) * for dl_main parameter.
9718         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
9719         instead of void *.
9720         * sysdeps/pthread/timer_create.c (timer_create): Do not use
9721         timer_ptr2id to cast struct timer_node * to void *.
9722         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
9723         --disable-libcilkrts to gcc configure.
9724         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
9725         and make them the default for now.
9726         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
9727         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
9728         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
9729         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
9730         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
9731         MACH_IPC_COMPAT.
9732         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
9733         __task_terminate would ever return successfully.
9734         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
9735         to global scope.
9736         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
9737         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
9738         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
9739         critical section to make code simpler and avoid warning.
9740         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
9741         critical section to make code simpler and avoid warning.
9742         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
9743         const char * instead of char *.
9744         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
9745         __hurd_file_name_split, hurd_file_name_split,
9746         __hurd_directory_name_split, hurd_directory_name_split,
9747         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
9748         hurd_file_name_path_lookup): Make lookup function parameter take a
9749         const char *name instead of char *name.
9750         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
9751         __hurd_directory_name_split): Likewise.
9752         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
9753         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
9754         * sysdeps/mach/hurd/check_native.c: New file.
9755         * sysdeps/mach/hurd/check_pf.c: New file.
9756         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
9757         (__freeifaddrs): Define macro to freeifaddrs.
9758         * sysdeps/mach/hurd/libhurduser.abilist: New file.
9759         * sysdeps/mach/libmachuser.abilist: New file.
9760         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
9761         (do_test_bz20181): Rename accordingly.
9762         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
9763         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
9764         <sys/mount.h>.
9765         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
9766         version only if __USE_EXTERN_INLINES is defined.
9767         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
9768         __hurd_sockfail): Likewise.
9769         (_hurd_fd_get): Always declare functions, and provide inline versions
9770         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
9771         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
9772         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
9773         _hurd_port_set): Always declare functions, and provide inline versions
9774         only if __USE_EXTERN_INLINES and _LIBC are defined and
9775         IS_IN(libc).
9776         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
9777         _hurd_critical_section_unlock): Likewise.
9778         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
9779         * __hurd_threadvar_location): Likewise.
9780         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
9781         _hurd_userlink_clear): Likewise.
9782         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
9783         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
9784         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
9785         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
9786         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
9787         __spin_lock_locked): Likewise.
9788         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
9789         __spin_lock_locked): Likewise.
9790         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
9791         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
9792         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
9793         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
9794         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
9795         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
9796         _POSIX_NO_TRUNC): Define to 0.
9797         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
9798         check size against PTHREAD_STACK_MIN.
9799         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
9800         IS_IN(libpthread)]: Include <sigsetops.h>.
9801         * mach/Makefile (user-interfaces): Add mach/gnumach.
9802         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
9803         * sysdeps/mach/configure (mach_interface_list): Regenerate.
9804         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
9805         instead of invalid -1.
9806         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
9807         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
9808         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
9809         <net/ppp_defs.h>.
9810
9811 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
9812
9813         * hurd/fcntl-internal.h: New file.
9814
9815 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
9816
9817         * sysdeps/hppa/fpu/libm-test-ulps: Update.
9818
9819         * sysdeps/alpha/fpu/libm-test-ulps: Update.
9820
9821 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
9822
9823         [BZ #22701]
9824         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
9825         Build only shared objects.
9826
9827 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
9828
9829         * README: Update for hppa.
9830
9831 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
9832
9833         * sysdeps/sparc/fpu/libm-test-ulps: Update
9834         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
9835
9836 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
9837
9838         Revert:
9839
9840         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
9841
9842         [BZ #22563]
9843         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9844         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
9845         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9846         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
9847         to feature_1.
9848
9849         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
9850
9851         [BZ #22563]
9852         * bits/types/__cancel_jmp_buf_tag.h: New file.
9853         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
9854         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
9855         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
9856         * nptl/Makefile (headers): Add
9857         bits/types/__cancel_jmp_buf_tag.h.
9858         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
9859         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
9860         * sysdeps/nptl/pthread.h: Include
9861         <bits/types/__cancel_jmp_buf_tag.h>.
9862         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
9863         __cancel_jmp_buf.
9864         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
9865
9866 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
9867
9868         [BZ #10871]
9869         * localedata/locales/uk_UA (mon): Renamed to...
9870         (alt_mon): This.
9871         (alt_digits): "0" removed and then renamed to...
9872         (mon): This.
9873         (date_fmt): Definition changed not to use the alternative
9874         digits hack.
9875
9876 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
9877
9878         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
9879         FLAG_RISCV_FLOAT_ABI_DOUBLE.
9880         * elf/elf.h (EF_RISCV_RVC): New define.
9881         (EF_RISCV_FLOAT_ABI): Likewise.
9882         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
9883         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
9884         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
9885         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
9886         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
9887         define.
9888         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
9889
9890 2018-01-25  Andreas Schwab  <schwab@suse.de>
9891
9892         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
9893         single quotes.
9894         * sysdeps/gnu/configure: Regenerate.
9895         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
9896         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
9897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
9898         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
9899         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
9900         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
9901         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
9902         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
9903
9904 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9905
9906         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
9907         URL, and run autoconf, make it the default for now.
9908
9909 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
9910
9911         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9912         soft-float ColdFire configuration.
9913
9914         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
9915         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
9916         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
9917
9918         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
9919         MicroBlaze file.
9920
9921         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
9922         ....
9923         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
9924         ... here.
9925         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
9926         New file.
9927
9928         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
9929         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
9930         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
9931         file.
9932
9933 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9934
9935         [BZ #22742]
9936         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
9937         Rename to __reserved and add comment.
9938         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
9939         Rename to __reserved.
9940
9941 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
9942
9943         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9944         i686-gnu configurations.
9945         (Context.run_builds): Include mig, gnumach and hurd in components
9946         considered.
9947         (Context.checkout): Add mig, gnumach and hurd to components.
9948         (Context.checkout_tar): Add URL mappings for mig, gnumach and
9949         hurd.
9950         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
9951         (Config.build): Install gnumach headers, build mig and install
9952         hurd headers for 'gnu' OS.
9953         (Config.install_gnumach_headers): New function.
9954         (Config.install_hurd_headers): Likewise.
9955         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
9956         when building for 'gnu' OS.
9957
9958 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
9959
9960         * manual/tunables.texi (Hardware Capability Tunables): Fix
9961         spelling.
9962
9963 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
9964
9965         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
9966         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
9967         (ALTMON_11, ALTMON_12): Improve documentation.
9968         * manual/time.texi (strftime): Likewise.
9969
9970 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
9971
9972         [BZ #10871]
9973         * localedata/locales/pl_PL: Alternative month names added,
9974         primary month names are genitive now.
9975         * time/tst-strptime.c (day_tests): Actually use a genitive case
9976         of a month name in Polish language.
9977
9978 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
9979
9980         [BZ #10871]
9981         * manual/locale.texi: Document ALTMON_1..12 constants for
9982         nl_langinfo.  Specify when to use ALTMON instead of MON.
9983         * manual/time.texi (strftime, strptime): Document GNU extension
9984         permitting O modifier with %B and %b.  Specify when to use
9985         %OB instead of %B.
9986
9987 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
9988
9989         [BZ #10871]
9990         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
9991         names, define them as the same as abbreviated month names explicitly.
9992         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
9993         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
9994         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
9995         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
9996         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
9997         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
9998         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
9999         _NL_WABALTMON_12): New enum constants.
10000         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
10001         wab_alt_mon, and ab_alt_mon_defined members.
10002         (time_output): Output ab_alt_mon and wab_alt_mon members.
10003         (time_read): Read them, initialize them as copies of abmon and wabmon
10004         respectively if they are missing, initialize ab_alt_mon_defined.
10005         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
10006         * locale/programs/locfile-kw.h: Regenerate.
10007         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
10008         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
10009         and ru_RU.UTF-8.
10010         * time/strftime_l.c (a_altmonth, aam_len): New macros.
10011         [!COMPILE_WIDE] (ABALTMON_1): New macro.
10012         (__strftime_internal): Handle %Ob and %Oh formats.
10013         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
10014         (__strptime_internal): Handle %Ob and %Oh formats.
10015         * time/tst-strptime.c (day_tests): Add more tests to parse different
10016         forms of month names including the new %Ob format specifier.
10017
10018 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
10019
10020         [BZ #10871]
10021         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
10022         define them as the same as primary full month names explicitly.
10023         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
10024         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
10025         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
10026         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
10027         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
10028         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
10029         _NL_WALTMON_12): New enum constants.
10030         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
10031         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
10032         macros.
10033         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
10034         walt_mon, and alt_mon_defined members.
10035         (time_output): Output alt_mon and walt_mon members.
10036         (time_read): Read them, initialize them as copies of mon and wmon
10037         respectively if they are missing, initialize alt_mon_defined.
10038         * locale/programs/locfile-kw.gperf (alt_mon): Define.
10039         * locale/programs/locfile-kw.h: Regenerate.
10040         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
10041         * localedata/tst-langinfo.c (map): Add tests for the new constants
10042         ALTMON_1 .. ALTMON_12.
10043         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
10044         and pl_PL.UTF-8.
10045         * time/strftime_l.c (f_altmonth): New macro.
10046         (__strftime_internal): Handle %OB format.
10047         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
10048         (__strptime_internal): Handle %OB format.
10049         * time/tst-strptime.c (day_tests): Add tests to parse different forms
10050         of month names including the new %OB format specifier.
10051
10052 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10053
10054         [BZ #22685]
10055         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
10056         from ABORT_TRANSACTION.
10057         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
10058         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
10059         ABORT_TRANSACTION_IMPL): Likewise.
10060         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
10061         Linux code, but remove the code that aborts transactions.
10062
10063 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10064
10065         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
10066
10067 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
10068
10069         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
10070         in date: "2004-14-09" should be "2004-09-14".
10071         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
10072         "2003-15-09" should be "2003-09-15".
10073
10074 2018-01-18  Arjun Shankar  <arjun@redhat.com>
10075
10076         [BZ #22343]
10077         [BZ #22774]
10078         CVE-2018-6485
10079         CVE-2018-6551
10080         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
10081         after padding.
10082         (_int_memalign): check for integer overflow before calling
10083         _int_malloc.
10084         * malloc/tst-malloc-too-large.c: New test.
10085         * malloc/Makefile: Add tst-malloc-too-large.
10086
10087 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
10088
10089         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
10090         in date: "2017-24-07" should be "2017-07-24".
10091         * localedata/locales/mai_IN: Likewise.
10092         * localedata/locales/mai_NP: Likewise.
10093
10094 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
10095
10096         * po/ru.po: Update translations.
10097
10098 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
10099
10100         [BZ #22719]
10101         * sysdeps/hppa/backtrace.c: New file.
10102
10103 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10104
10105         [BZ #22715]
10106         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
10107         align La_x86_64_retval to VEC_SIZE.
10108
10109 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
10110
10111         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
10112         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
10113
10114 2018-01-16  Florian Weimer  <fweimer@redhat.com>
10115
10116         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
10117         Move tst-thread-exit-clobber ...
10118         [$(CXX)] (tests-unsupported): ... to here.
10119
10120 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10121
10122         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
10123         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
10124         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
10125         (_dl_aarch64_cap_flags): Update.
10126         (_DL_HWCAP_COUNT): Update.
10127
10128 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10129
10130         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
10131         (_DL_HWCAP_LAST): Remove.
10132         (_DL_HWCAP_COUNT): Move to ...
10133         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
10134         (_DL_HWCAP_COUNT): ... here.
10135
10136 2018-01-16  Florian Weimer  <fweimer@redhat.com>
10137
10138         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
10139         mode with GNU extensions.
10140
10141 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
10142
10143         * elf/elf.h (NT_ARM_SVE): Define.
10144
10145 2018-01-15  Florian Weimer  <fweimer@redhat.com>
10146
10147         [BZ #22636]
10148         * nptl/tst-minstack-throw.cc: New file.
10149         * nptl/Makefile (tests): Add tst-minstack-throw.
10150         (LDLIBS-tst-minstack-throw): Link with libstdc++.
10151         [!CXX] (tests-unsupported): Add tst-minstack-throw.
10152
10153 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
10154
10155         * scripts/build-many-glibcs.py (Context.checkout): Default
10156         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
10157         version to 1.1.0.
10158
10159 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
10160
10161         [BZ #22707]
10162         * elf/elf.h (DF_1_STUB): Define.
10163         (DF_1_PIE): Define.
10164
10165 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10166
10167         [BZ #22697]
10168         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
10169         Do not add 0.5 to integer or out-of-range arguments.
10170
10171 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
10172
10173         * po/bg.po: Update translations.
10174         * po/cs.po: Likewise.
10175         * po/de.po: Likewise.
10176         * po/ko.po: Likewise.
10177         * po/pl.po: Likewise.
10178         * po/sv.po: Likewise.
10179         * po/uk.po: Likewise.
10180         * po/vi.po: Likewise.
10181
10182 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10183
10184         * aarch64/start.S (_start): Use __wrap_main.
10185         (__wrap_main): New local symbol.
10186
10187 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
10188
10189         [BZ #22679]
10190         CVE-2018-1000001
10191         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
10192         generic_getcwd if the path returned by getcwd syscall is not absolute.
10193         * io/tst-getcwd-abspath.c: New test.
10194         * io/Makefile (tests): Add tst-getcwd-abspath.
10195
10196 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
10197
10198         * malloc/malloc.c (malloc_consolidate): Add size check.
10199
10200 2018-01-12  Florian Weimer  <fweimer@redhat.com>
10201
10202         * support/write_message.c (write_message): Preserve errno.
10203         * support/check.c (print_failure): Likewise.
10204         * support/support_test_verify_impl.c (support_test_verify_impl):
10205         Likewise.
10206         * support/support_test_compare_failure.c
10207         (support_test_compare_failure): Likewise.
10208
10209 2018-01-12  Florian Weimer  <fweimer@redhat.com>
10210
10211         [BZ #22701]
10212         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
10213         Prevent installation of libnsl.so.
10214         (libnsl-inhibit-o): Do not build (or install) static libraries.
10215
10216 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
10217
10218         [BZ #22657]
10219         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
10220         before the day number which may produce a double space.
10221         (date_fmt): Likewise.
10222
10223 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
10224
10225         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
10226         instead of fegetenv.
10227
10228 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
10229
10230         [BZ #22702]
10231         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
10232         comment to say exceptions are discarded.
10233         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
10234         __fegetenv.
10235         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
10236         be enabled.
10237
10238 2018-01-11  Florian Weimer  <fweimer@redhat.com>
10239
10240         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
10241         and error message.
10242
10243 2018-01-11  Florian Weimer  <fweimer@redhat.com>
10244
10245         [BZ #22636]
10246         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
10247         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
10248
10249 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
10250
10251         [BZ #22693]
10252         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
10253         negative arguments in test for NaN or infinity argument.
10254
10255 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
10256
10257         * po/libc.pot: Regenerate.
10258
10259 2018-01-10  Florian Weimer  <fweimer@redhat.com>
10260
10261         [BZ #22636]
10262         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
10263         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
10264
10265 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10266
10267         * hurd/hurd/fd.h: Include <fcntl.h>
10268         (__hurd_at_flags): New function.
10269         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
10270         with call to __hurd_at_flags.
10271         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
10272         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
10273         __faccessat
10274         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
10275         (__access_noerrno): Use __faccessat_common instead of access_common.
10276         (__access): Likewise.
10277         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
10278         with a call to __faccessat.
10279         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
10280         (__faccessat_common): ... this. Move implementation of __access into it when
10281         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
10282         reauthenticate_cwdir_at helper to implement AT mechanism.
10283         (__faccessat_noerrno): New function, just calls __faccessat_common.
10284         (__faccessat): New function, just calls __faccessat_common.
10285         (faccessat): Define weak alias.
10286
10287 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
10288
10289         [BZ #22691]
10290         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10291         (CFLAGS-s_fmaxmagl.c): New variable.
10292         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
10293
10294         [BZ #22690]
10295         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
10296         long int for arguments of possibly overflowing addition or
10297         subtraction.
10298         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
10299
10300 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
10301
10302         [BZ #22688]
10303         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10304         (CFLAGS-e_remainderl.c): New variable.
10305
10306         [BZ #22687]
10307         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
10308         variable.
10309         (CFLAGS-s_cacoshl.c): Likewise.
10310         (CFLAGS-s_casinhl.c): Likewise.
10311         (CFLAGS-s_catanl.c): Likewise.
10312         (CFLAGS-s_catanhl.c): Likewise.
10313         (CFLAGS-s_cexpl.c): Likewise.
10314         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
10315         (CFLAGS-s_csinhl.c): Likewise.
10316         (CFLAGS-s_clogl.c): Likewise.
10317         (CFLAGS-s_clog10l.c): Likewise.
10318         (CFLAGS-s_csinl.c): Likewise.
10319         (CFLAGS-s_csqrtl.c): Likewise.
10320
10321 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
10322 2017-01-09  Svante Signell  <svante.signell@gmail.com>
10323
10324         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
10325         (_hurd_exec_paths): New function.
10326         * hurd/hurd.h (_hurd_exec): Deprecate function.
10327         (_hurd_exec_paths): Declare function.
10328         * hurd/Versions: Export _hurd_exec_paths.
10329         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
10330         (__execve): Use __getcwd to build absolute path, and use
10331         _hurd_exec_paths instead of _hurd_exec.
10332         * sysdeps/mach/hurd/spawni.c: Likewise.
10333         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
10334         _hurd_exec.
10335
10336 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
10337
10338         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
10339         test instead of failing in case of ENOENT returned by posix_openpt.
10340
10341 2018-01-08  Florian Weimer  <fweimer@redhat.com>
10342
10343         resolv: Support binary labels in test framework.
10344         * support/resolv_test.c (struct to_be_freed): Remove.
10345         (struct compressed_name): New.
10346         (allocate_compressed_name, ascii_tolower)
10347         (compare_compressed_name): New functions.
10348         (struct resolv_response_builder): Update type of
10349         compression_offsets for use with tsearch.  Rempve to_be_freed.
10350         (response_push_pointer_to_free): Remove function.
10351         (resolv_response_add_name): Rewrite using struct compressed_name
10352         and tsearch instead of hsearch_r.
10353         (response_builder_allocate): Remove initialization of
10354         compression_offsets.
10355         (response_builder_free): Update for removal of to_be_freed.  Use
10356         tdestroy instead of hdestroy_r.
10357         * resolv/Makefile (tests): Add tst-resolv-binary.
10358         (tst-resolv-binary): Link with -lresolv -lpthread.
10359
10360 2018-01-08  Florian Weimer  <fweimer@redhat.com>
10361
10362         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
10363         time.  Pass positive flag instead of negative flag to
10364         support_test_compare_failure.
10365         (support_test_compare_failure): Change negative parameter to
10366         positive.
10367         * support/support_test_compare_failure.c (report)
10368         (support_test_compare_failure): Likewise.
10369         * support/tst-test_compare.c (return_ssize_t, return_int): New.
10370         (do_test): Check int/size_t, ssize_t/size_t comparisons.
10371
10372 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10373
10374         [BZ #22637]
10375         * nptl/descr.h (stackblock, stackblock_size): Update comments.
10376         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
10377         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
10378         stacksize.
10379         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
10380
10381 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
10382
10383         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10384         Add s_sincosf-sse2 and s_sincosf-fma.
10385         (CFLAGS-s_sincosf-fma.c): New.
10386         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
10387         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
10388         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
10389         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
10390         __sincosf is defined.
10391
10392 2018-01-08  Florian Weimer  <fweimer@redhat.com>
10393
10394         * nptl/tst-thread-exit-clobber.cc: New file.
10395         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
10396         C++11 mode.
10397         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
10398         (tests): Add tst-thread-exit-clobber.
10399         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
10400
10401 2018-01-08  Florian Weimer  <fweimer@redhat.com>
10402
10403         * support/check.h (support_static_assert): Define.
10404         (TEST_COMPARE): Use it.
10405
10406 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
10407
10408         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
10409         [!__RLIM_T_MATCHES_RLIM64_T]
10410         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
10411         __getrlimit64. Add libc_hidden_weak.
10412
10413 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
10414
10415         * elf/elf.h (R_RISCV_NONE): New define.
10416         (R_RISCV_32): Likewise.
10417         (R_RISCV_64): Likewise.
10418         (R_RISCV_RELATIVE): Likewise.
10419         (R_RISCV_COPY): Likewise.
10420         (R_RISCV_JUMP_SLOT): Likewise.
10421         (R_RISCV_TLS_DTPMOD32): Likewise.
10422         (R_RISCV_TLS_DTPMOD64): Likewise.
10423         (R_RISCV_TLS_DTPREL32): Likewise.
10424         (R_RISCV_TLS_DTPREL64): Likewise.
10425         (R_RISCV_TLS_TPREL32): Likewise.
10426         (R_RISCV_TLS_TPREL64): Likewise.
10427         * Makerules (make-link-multidir): Make directories before linking into
10428         them.
10429         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
10430         define.
10431         (VDSO_HASH_LINUX_4_15): Likewise.
10432         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
10433         in subdirectories of lib.
10434         * nptl/Makefile (/librt.so): Always depend on
10435         "$(shared-thread-library)".
10436
10437 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10438
10439         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
10440         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
10441         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
10442         (___tls_get_addr).
10443         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
10444         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
10445         "-O2 -march=i686".
10446         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
10447         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
10448         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
10449         * sysdeps/gnu/glob-lstat-compat.c: New file.
10450         * sysdeps/gnu/glob64-lstat-compat.c: New file.
10451         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
10452
10453 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10454
10455         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
10456         Reserve 16 chars to reloc_addr before calling _itoa_word.
10457
10458 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
10459
10460         [BZ #22678]
10461         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
10462         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
10463
10464         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
10465         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
10466
10467         * resource/tst-getrlimit.c: Add copyright header.
10468
10469 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
10470             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10471
10472         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
10473         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
10474         Define __GI_getrlimit64 as weak alias of __getrlimit64.
10475         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
10476         instead.
10477         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
10478         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
10479         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
10480         RLIM64_INFINITY): Fix values to match the kernel ones.
10481         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
10482         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
10483         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
10484         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
10485         getrlimit64@@GLIBC_2_27.
10486         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
10487         and setrlimit64.
10488         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
10489         getrlimit, setrlimit, getrlimit64 and setrlimit64.
10490         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
10491         setrlimit, getrlimit64 and setrlimit64.
10492
10493 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
10494
10495         [BZ #22648]
10496         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
10497         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
10498
10499 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
10500
10501         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
10502         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
10503         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
10504
10505 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10506
10507         [BZ #15479]
10508         [BZ #22666]
10509         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
10510         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
10511
10512         [BZ #15479]
10513         [BZ #22665]
10514         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
10515         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10516         * sysdeps/alpha/fpu/s_floor.c: Likewise.
10517         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10518
10519 2018-01-04  Florian Weimer  <fweimer@redhat.com>
10520
10521         [BZ #22667]
10522         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
10523         Align the stack before calling exit.
10524         * stdlib/tst-makecontext-align.c: New file.
10525         * stdlib/Makefile (tests): Add tst-makecontext-align.
10526
10527 2018-01-04  Florian Weimer  <fweimer@redhat.com>
10528
10529         Add support for calling dlvsym from libc.so.
10530         * include/dlfcn.h (__libc_dlvsym): Declare.
10531         * elf/Makefile (tests-static-internal): Add
10532         tst-libc_dlvsym-static.
10533         (tests-internal): Add tst-libc_dlvsym.
10534         (modules-names): Add tst-libc_dlvsym-dso.
10535         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
10536         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
10537         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
10538         object tst-libc_dlvsym-dso.so needs to be built before running
10539         these tests.
10540         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
10541         * elf/Versions: Export __libc_dlvsym.
10542         * elf/dl-libc.c (struct do_dlvsym_args): New.
10543         (do_dlvsym, __libc_dlvsym): New functions.
10544         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
10545         (_dl_open_hook2): New variable.
10546         (__libc_register_dl_open_hook): Set it.
10547         * elf/tst-libc_dlvsym-dso.c: New file.
10548         * elf/tst-libc_dlvsym-static.c: Likewise.
10549         * elf/tst-libc_dlvsym.c: Likewise.
10550         * elf/tst-libc_dlvsym.h: Likewise.
10551
10552 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10553
10554         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
10555         include <sys/mount.h>.
10556
10557 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
10558
10559         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
10560         Add __NO_MATH_ERRNO__ check.
10561
10562 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
10563
10564         * sysdeps/mips/mips32/libm-test-ulps: Update.
10565         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10566
10567 2018-01-02  Florian Weimer  <fweimer@redhat.com>
10568
10569         * misc/tst-pselect.c: Add copyright header.
10570
10571 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
10572
10573         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
10574         comment.
10575         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
10576         comment.
10577         (settrlimit): Rename into setrlimit.
10578         (__sttrlimit): Rename into __setrlimit.
10579
10580         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
10581         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
10582         never defined in that case.
10583
10584 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
10585
10586         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10587
10588         * sysdeps/arm/libm-test-ulps: Update.
10589
10590         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
10591         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
10592
10593 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10594
10595         * NEWS: Add cosf and sincosf to list of optimized functions.
10596
10597 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
10598
10599         [BZ #22660]
10600         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
10601         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
10602         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
10603         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
10604
10605 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
10606
10607         [BZ #22433]
10608         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
10609
10610         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
10611         making a copy of it.
10612
10613 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
10614
10615         * manual/texinfo.tex: Update to version 2017-12-26.21 with
10616         trailing whitespace removed.
10617         * scripts/config.guess: Update to version 2018-01-01.
10618         * scripts/config.sub: Update to version 2018-01-01.
10619         * scripts/move-if-change: Update from gnulib.
10620
10621         * NEWS: Update copyright dates.
10622         * catgets/gencat.c (print_version): Likewise.
10623         * csu/version.c (banner): Likewise.
10624         * debug/catchsegv.sh: Likewise.
10625         * debug/pcprofiledump.c (print_version): Likewise.
10626         * debug/xtrace.sh (do_version): Likewise.
10627         * elf/ldconfig.c (print_version): Likewise.
10628         * elf/ldd.bash.in: Likewise.
10629         * elf/pldd.c (print_version): Likewise.
10630         * elf/sotruss.sh: Likewise.
10631         * elf/sprof.c (print_version): Likewise.
10632         * iconv/iconv_prog.c (print_version): Likewise.
10633         * iconv/iconvconfig.c (print_version): Likewise.
10634         * locale/programs/locale.c (print_version): Likewise.
10635         * locale/programs/localedef.c (print_version): Likewise.
10636         * login/programs/pt_chown.c (print_version): Likewise.
10637         * malloc/memusage.sh (do_version): Likewise.
10638         * malloc/memusagestat.c (print_version): Likewise.
10639         * malloc/mtrace.pl: Likewise.
10640         * manual/libc.texinfo: Likewise.
10641         * nptl/version.c (banner): Likewise.
10642         * nscd/nscd.c (print_version): Likewise.
10643         * nss/getent.c (print_version): Likewise.
10644         * nss/makedb.c (print_version): Likewise.
10645         * posix/getconf.c (main): Likewise.
10646         * scripts/test-installation.pl: Likewise.
10647         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
10648
10649         * All files with FSF copyright notices: Update copyright dates
10650         using scripts/update-copyrights.
10651         * locale/programs/charmap-kw.h: Regenerated.
10652         * locale/programs/locfile-kw.h: Likewise.
10653
10654 2017-12-31  Zack Weinberg  <zackw@panix.com>
10655
10656         * libio/bits/libio-ldbl.h: Correct check for improper
10657         inclusion.  Add own multiple include guard.
10658
10659 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
10660             Dmitry V. Levin  <ldv@altlinux.org>
10661
10662         [BZ #22625]
10663         CVE-2017-16997
10664         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
10665         string token expansion. Check for NULL pointer or empty string possibly
10666         returned by expand_dynamic_string_token.
10667         (decompose_rpath): Check for empty path after dynamic string
10668         token expansion.
10669
10670 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
10671
10672         [BZ #22433]
10673         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
10674
10675         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
10676         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
10677         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
10678         and PTRACE_SYSCALL.
10679         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
10680         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10681         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10682         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10683         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10684         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
10685
10686         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
10687         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
10688         __ptrace_peeksiginfo_flags, ptrace): Move to ...
10689         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
10690         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10691         bits/ptrace-shared.h.
10692         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
10693         <bits/ptrace-shared.h>.
10694         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
10695         __ptrace_peeksiginfo_flags, ptrace): Remove.
10696         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10697         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10698         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10699         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10700         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
10701
10702 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
10703
10704         [BZ #17804]
10705         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
10706         end of the loop. Improve comments.
10707
10708 2017-12-29  Zack Weinberg  <zackw@panix.com>
10709
10710         [BZ #22615]
10711         * manual/errno.texi (Checking for Errors): Explicitly say that errno
10712         might be set on success.
10713
10714 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
10715
10716         [BZ #22611]
10717         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
10718         is unchanged on success.
10719
10720 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
10721
10722         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
10723         updated.
10724         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
10725         expand_dynamic_string_token): Likewise.
10726         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
10727         is_path argument.
10728
10729         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
10730         contains ':'.
10731
10732         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
10733         is set and name contains ':', and all code depending on these checks.
10734
10735 2017-12-24  Zack Weinberg  <zackw@panix.com>
10736
10737         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
10738         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
10739         respectively.
10740         * libio/libio.h: Rename the original version of this file to
10741         libio/bits/libio.h.  Error out if not included by stdio.h or the
10742         stub libio.h.
10743         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
10744         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
10745         if not included by bits/libio.h or the stub _G_config.h.
10746         * sysdeps/unix/sysv/linux/_G_config.h: Move to
10747         sysdeps/unix/sysv/linux/bits.  Error out if not included by
10748         bits/libio.h or the stub _G_config.h.
10749         * libio/stdio.h: Include bits/libio.h, not libio.h.
10750         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
10751         well as libio.h and _G_config.h.
10752
10753         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
10754         * libio/strfile.h, stdio-common/vfscanf.c
10755         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
10756         Include stdio.h, not _G_config.h nor libio.h.
10757         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
10758         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
10759
10760         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
10761
10762 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
10763
10764         [BZ #22347]
10765         * stdlib/getrandom.c (getrandom): Fix comment.
10766         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
10767
10768 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
10769
10770         [BZ #21161]
10771         * manual/arith.texi (strtoul): Fix a typo.
10772
10773         [BZ #22596]
10774         * manual/arith.texi (finite): Fix the description of the return
10775         value.
10776
10777 2017-12-22  Eric Blake  <ebb9@byu.net>
10778
10779         Avoid gcc warnings on cygwin
10780         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
10781         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
10782         Avoid unused variable.
10783
10784 2017-12-22  Florian Weimer  <fweimer@redhat.com>
10785
10786         * io/Makefile (routines): Add copy_file_range.
10787         (tests): Add tst-copy_file_range.
10788         (tests-static, tests-internal): Add tst-copy_file_range-compat.
10789         * io/Versions (GLIBC_2.27): Export copy_file_range.
10790         * io/copy_file_range-compat.c: New file.
10791         * io/copy_file_range.c: Likewise.
10792         * io/tst-copy_file_range-compat.c: Likewise.
10793         * io/tst-copy_file_range.c: Likewise.
10794         * manual/llio.texi (Copying File Data): New section.
10795         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
10796         * support/Makefile (libsupport-routines): Add support-xfstat,
10797         xftruncate, xlseek.
10798         * support/support-xfstat.c: New file.
10799         * support/xftruncate.c: Likewise.
10800         * support/xlseek.c: Likewise.
10801         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
10802         * sysdeps/unix/sysv/linux/**.abilist: Update.
10803         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
10804
10805 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10806
10807         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
10808         disable-multi-arch variant to aarch64-linux-gnu.
10809
10810 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
10811
10812         * manual/texinfo.tex: Update to version 2017-12-18.20 with
10813         trailing whitespace removed.
10814         * scripts/config.guess: Update to version 2017-12-17.
10815         * scripts/config.sub: Update to version 2017-11-23.
10816         * scripts/install-sh: Update to version 2017-09-23.17.
10817         * scripts/move-if-change: Update to version 2017-09-13 06:45.
10818
10819 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10820
10821         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
10822         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
10823         * sysdeps/tile/_mcount.S (__mcount): Likewise.
10824         * sysdeps/tile/crti.S (_init, _fini): Likewise.
10825         * sysdeps/tile/crtn.S: Likewise.
10826         * sysdeps/tile/dl-start.S (_start): Likewise.
10827         * sysdeps/tile/dl-trampoline.S: Likewise.
10828         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
10829         * sysdeps/tile/start.S (_start): Likewise.
10830         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
10831         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
10832         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
10833         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
10834         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
10835         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
10836         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
10837
10838         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
10839         comment.
10840         * sysdeps/tile/preconfigure: Remove tilegx folder.
10841         * sysdeps/tile/tilegx/Implies: Move definitions to ...
10842         * sysdeps/tile/Implies: ... here.
10843         * sysdeps/tile/tilegx/Makefile: Move rules to ...
10844         * sysdeps/tile/Makefile: ... here.
10845         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
10846         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
10847         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
10848         * sysdeps/tile/bits/wordsize.h: ... here.
10849         * sysdeps/tile/tilegx/*: Move to ...
10850         * sysdeps/tile/*: ... here.
10851         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
10852         * sysdeps/tile/tilegx32/Implies: ... here.
10853         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
10854         * sysdeps/tile/tilegx64/Implies: ... here.
10855         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
10856         to ...
10857         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
10858         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
10859         * sysdeps/unix/sysv/linux/tile/*: ... here.
10860         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
10861         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
10862         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
10863         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
10864
10865         * README: Remove tilepro-*-linux-gnu from supported architecture.
10866         * scripts/build-many-glibcs.py: Likewise.
10867         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
10868         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
10869         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
10870         elf_machine_matches_host, elf_machine_dynamic,
10871         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
10872         howto, elf_machine_rela): Likewise.
10873         * sysdeps/tile/dl-start.S (_start): Likewise.
10874         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
10875         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
10876         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
10877         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
10878         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
10879         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
10880         Likewise.
10881         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
10882         * sysdeps/tile/preconfigure: Likewise.
10883         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
10884         POINTER_CHK_GUARD): Likewise.
10885         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
10886         * sysdeps/tile/start.S (_start): Likewise.
10887         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
10888         Likewise.
10889         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
10890         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
10891         CMOVNEZ): Remove.
10892         * sysdeps/unix/sysv/linux/tile/bits/environments.h
10893         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
10894         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
10895         Likewise.
10896         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
10897         * sysdeps/tile/tilepro/Implies: Remove file.
10898         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
10899         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
10900         * sysdeps/tile/tilepro/memchr.c: Likewise.
10901         * sysdeps/tile/tilepro/memcpy.S: Likewise.
10902         * sysdeps/tile/tilepro/memset.c: Likewise.
10903         * sysdeps/tile/tilepro/memusage.h: Likewise.
10904         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
10905         * sysdeps/tile/tilepro/strchr.c: Likewise.
10906         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
10907         * sysdeps/tile/tilepro/strlen.c: Likewise.
10908         * sysdeps/tile/tilepro/strrchr.c: Likewise.
10909         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
10910         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
10911         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
10912         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
10913         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
10914         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
10915         Likewise.
10916         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
10917         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10918         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
10919         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
10920         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10921         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
10922         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
10923         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
10924         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
10925         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
10926         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
10927         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
10928         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
10929         tilepro mention in comment.
10930
10931         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
10932         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
10933         * nptl/pthread_join_common.c: New file: common function used on
10934         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
10935         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
10936         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
10937         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
10938         (cleanup): Move definition to pthread_join_common.c.
10939         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
10940         Remove superflous checks.
10941         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
10942         Likewise.
10943
10944 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10945
10946         * sysdeps/aarch64/libm-test-ulps: Update.
10947
10948 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10949
10950         * sysdeps/aarch64/memset.S (MEMSET): Define.
10951
10952 2017-12-20  Florian Weimer  <fweimer@redhat.com>
10953
10954         [BZ #22635]
10955         nptl: Provide full implementation of pthread_self in libc.so.
10956         * nptl/Makefile (routines): Add pthread_self.
10957         (libpthread-routines): Replace pthread_self with
10958         compat-pthread_self.
10959         * nptl/forward.c (pthread_self): Remove.
10960         * nptl/nptl-init.c (pthread_functions): Do not initialize
10961         ptr_pthread_self.
10962         * nptl/pthread_self.c (pthread_self): Remove weak alias.
10963         * nptl/compat-pthread_self.c: New file.
10964         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
10965         Remove ptr_pthread_self.
10966
10967 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
10968
10969         * posix/regcomp.c: Fix spelling in comments.
10970         * posix/regex.h: Likewise.
10971         * posix/regex_internal.c: Likewise.
10972         * posix/regexec.c: Likewise.
10973
10974 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10975
10976         [BZ #22377]
10977         * math/Makefile [C++] (tests): Add test for iseqsig.
10978         * math/math.h [C++] (iseqsig): New implementation, which does
10979         not rely on __MATH_TG/__builtin_types_compatible_p.
10980         * math/test-math-iseqsig.cc: New file.
10981         * sysdeps/powerpc/powerpc64le/Makefile
10982         (CFLAGS-test-math-iseqsig.cc): New variable.
10983
10984 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
10985
10986         * elf/dl-load.c (is_trusted_path): Remove.
10987         (fillin_rpath): Remove check_trusted argument and its use,
10988         all callers changed.
10989
10990 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
10991
10992         [BZ #22630]
10993         * Makeconfig (link-pie-before-libc): Replace -pie with
10994         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
10995         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
10996         (tst-dlopen-aout-no-pie): New.
10997         (LDFLAGS-tst-prelink): Removed.
10998         (tst-prelink-no-pie): New.
10999         (LDFLAGS-tst-main1): Removed.
11000         (tst-main1-no-pie): New.
11001         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
11002         (tst-gmon-no-pie): New.
11003
11004 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
11005
11006         * manual/install.texi: Document that --enable-static-pie
11007         implies PIE.
11008         * INSTALL: Regenerated.
11009
11010 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11011
11012         [BZ #21309]
11013         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
11014         unsigned.
11015
11016 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
11017
11018         Revert:
11019
11020         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
11021
11022         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11023
11024         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
11025
11026         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
11027         <errno.h>.  Include "eexp.tbl".
11028         (half): New constant.
11029         (one): Likewise.
11030         (__ieee754_exp): Rewrite.
11031         (__slowexp): Remove prototype.
11032         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
11033         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
11034         * sysdeps/i386/fpu/slowexp.c: Likewise.
11035         * sysdeps/ia64/fpu/slowexp.c: Likewise.
11036         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
11037         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
11038         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
11039         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11040         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
11041         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
11042         comment.
11043         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
11044         (CPPFLAGS-slowexp.c): Remove variable.
11045         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11046         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
11047         (CFLAGS-slowexp-fma.c): Remove variable.
11048         (CFLAGS-slowexp-fma4.c): Likewise.
11049         (CFLAGS-slowexp-avx.c): Likewise.
11050         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
11051         define as macro.
11052         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
11053         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
11054         * math/Makefile (type-double-routines): Remove slowexp.
11055         * manual/probes.texi (slowexp_p6): Remove.
11056         (slowexp_p32): Likewise.
11057
11058 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11059
11060         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
11061         arithmetic.
11062
11063         * lib/glob.c (glob): Do not pass NULL to mempcpy.
11064
11065 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
11066
11067         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11068
11069 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
11070
11071         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
11072         <errno.h>.  Include "eexp.tbl".
11073         (half): New constant.
11074         (one): Likewise.
11075         (__ieee754_exp): Rewrite.
11076         (__slowexp): Remove prototype.
11077         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
11078         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
11079         * sysdeps/i386/fpu/slowexp.c: Likewise.
11080         * sysdeps/ia64/fpu/slowexp.c: Likewise.
11081         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
11082         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
11083         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
11084         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11085         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
11086         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
11087         comment.
11088         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
11089         (CPPFLAGS-slowexp.c): Remove variable.
11090         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11091         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
11092         (CFLAGS-slowexp-fma.c): Remove variable.
11093         (CFLAGS-slowexp-fma4.c): Likewise.
11094         (CFLAGS-slowexp-avx.c): Likewise.
11095         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
11096         define as macro.
11097         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
11098         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
11099         * math/Makefile (type-double-routines): Remove slowexp.
11100         * manual/probes.texi (slowexp_p6): Remove.
11101         (slowexp_p32): Likewise.
11102
11103 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11104             James Clarke <jrtc27@jrtc27.com>
11105
11106         [BZ #22603]
11107         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
11108         addition.
11109
11110 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11111
11112         [BZ #22605]
11113         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
11114         code.
11115
11116 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
11117
11118         [BZ #22563]
11119         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11120         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
11121         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11122         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
11123         to feature_1.
11124
11125 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
11126
11127         [BZ #22563]
11128         * bits/types/__cancel_jmp_buf_tag.h: New file.
11129         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
11130         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
11131         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
11132         * nptl/Makefile (headers): Add
11133         bits/types/__cancel_jmp_buf_tag.h.
11134         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
11135         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
11136         * sysdeps/nptl/pthread.h: Include
11137         <bits/types/__cancel_jmp_buf_tag.h>.
11138         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
11139         __cancel_jmp_buf.
11140         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
11141
11142 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
11143
11144         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
11145         --enable-static-pie variants to x86_64, x32 and i686.
11146
11147 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
11148
11149         [BZ #22631]
11150         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
11151         argument for attrubutes.  All callers changed.
11152         (__inline_mathop1): Likewise.  All callers changed.
11153         (__inline_mathop): Likewise.  All callers changed.
11154         [__USE_MISC] (scalbn): Use __inline_forward instead of
11155         __inline_forward_c.
11156         [__USE_ISOC99] (scalbln): Likewise.
11157         [__USE_ISOC99] (nearbyint): Likewise.
11158         [__USE_ISOC99] (lrint): Likewise.
11159         [__USE_MISC] (scalbnf): Likewise.
11160         [__USE_ISOC99] (scalblnf): Likewise.
11161         [__USE_ISOC99] (nearbyintf): Likewise.
11162         [__USE_ISOC99] (lrintf): Likewise.
11163         [__USE_MISC] (scalbnl): Likewise.
11164         [__USE_ISOC99] (scalblnl): Likewise.
11165         [__USE_ISOC99] (nearbyintl): Likewise.
11166         [__USE_ISOC99] (lrintl): Likewise.
11167         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
11168         __inline_mathop and __m81_defun changed.
11169
11170         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
11171         CPU or FPU for ARM hard-float configurations.
11172
11173 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
11174
11175         * nptl/tst-attr3.c: Include <libc-diag.h>.
11176         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
11177
11178         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
11179
11180         * string/tester.c (test_strncat): Also disable -Warray-bounds
11181         warnings for two tests.
11182
11183 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
11184
11185         [BZ #22614]
11186         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
11187         $(cc-pie-default) == yes.
11188         * config.make.in (cc-pie-default): New.
11189         * configure.ac (libc_cv_pie_default): Renamed to ...
11190         (libc_cv_cc_pie_default): This.
11191         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
11192         * configure: Regenerated.
11193
11194 2017-12-18  Florian Weimer  <fweimer@redhat.com>
11195
11196         [BZ #20204]
11197         ld.so: Harden dl-libc/libdl hooks.
11198         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
11199         (rtld_active): New function.
11200         * dlfcn/dladdr.c (__dladdr): Call it.
11201         * dlfcn/dladdr1.c (__dladdr1): Likewise.
11202         * dlfcn/dlclose.c (__dlcose): Likewise.
11203         * dlfcn/dlerror.c (__dlerror): Likewise.
11204         * dlfcn/dlinfo.c (__dlinfo): Likewise.
11205         * dlfcn/dlmopen.c (__dlmopen): Likewise.
11206         * dlfcn/dlopen.c (__dlopen): Likewise.
11207         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
11208         * dlfcn/dlsym.c (__dlsym): Likewise.
11209         * dlfcn/dlvsym.c (__dlvsym): Likewise.
11210         * libio/vtables.c (_IO_vtable_check): Likewise.
11211         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
11212         (__libc_dlclose): Likewise.
11213         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
11214         assignment.
11215
11216 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
11217
11218         [BZ #22446]
11219         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
11220         buffers for readlink input and output.
11221
11222 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
11223
11224         [BZ #22624]
11225         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
11226         inhibit_stack_protector.
11227
11228         [BZ #22624]
11229         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
11230         inhibit_stack_protector.
11231
11232 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
11233
11234         [BZ #22627]
11235         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
11236         code and invocation.
11237
11238 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11239
11240         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
11241
11242 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
11243
11244         [BZ #22505]
11245         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
11246
11247 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11248
11249         * sysdeps/s390/fpu/libm-test-ulps: Update.
11250
11251 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11252
11253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11254
11255 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11256
11257         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
11258         constants to s_sincosf.h file.
11259         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11260         * sysdeps/ieee754/flt-32/s_sincosf.c: New
11261         implementation.
11262         * sysdeps/ieee754/flt-32/s_sincosf.h:
11263         New file.
11264
11265 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
11266
11267         [BZ #14681]
11268         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
11269         before mtrace.
11270
11271 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
11272
11273         [BZ #19574]
11274         * INSTALL: Regenerated.
11275         * Makeconfig (real-static-start-installed-name): New.
11276         (pic-default): Updated for --enable-static-pie.
11277         (pie-default): New for --enable-static-pie.
11278         (default-pie-ldflag): Likewise.
11279         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
11280         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
11281         Replace $(static-start-installed-name) with
11282         $(real-static-start-installed-name).
11283         (+prectorT): Updated for --enable-static-pie.
11284         (+postctorT): Likewise.
11285         (CFLAGS-.o): Add $(pie-default).
11286         (CFLAGS-.op): Likewise.
11287         * NEWS: Mention --enable-static-pie.
11288         * config.h.in (ENABLE_STATIC_PIE): New.
11289         * configure.ac (--enable-static-pie): New configure option.
11290         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
11291         (have-static-pie): Likewise.
11292         Enable static PIE if linker supports --no-dynamic-linker.
11293         (ENABLE_STATIC_PIE): New AC_DEFINE.
11294         (enable-static-pie): New LIBC_CONFIG_VAR.
11295         * configure: Regenerated.
11296         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
11297         gr$(start-installed-name) for --enable-static-pie.
11298         (extra-objs): Likewise.
11299         (install-lib): Likewise.
11300         (extra-objs): Add static-reloc.o and static-reloc.os
11301         ($(objpfx)$(start-installed-name)): Also depend on
11302         $(objpfx)static-reloc.o.
11303         ($(objpfx)r$(start-installed-name)): New.
11304         ($(objpfx)g$(start-installed-name)): Also depend on
11305         $(objpfx)static-reloc.os.
11306         ($(objpfx)gr$(start-installed-name)): New.
11307         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
11308         in libc.a.
11309         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
11310         initimage.
11311         * csu/static-reloc.c: New file.
11312         * elf/Makefile (routines): Add dl-reloc-static-pie.
11313         (elide-routines.os): Likewise.
11314         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
11315         (tst-tls1-static-non-pie-no-pie): New.
11316         * elf/dl-reloc-static-pie.c: New file.
11317         * elf/dl-support.c (_dl_get_dl_main_map): New function.
11318         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
11319         STATIC_PIE_BOOTSTRAP.
11320         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
11321         * gmon/Makefile (tests): Add tst-gmon-static-pie.
11322         (tests-static): Likewise.
11323         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
11324         (tst-gmon-static-no-pie): New.
11325         (CFLAGS-tst-gmon-static-pie.c): Likewise.
11326         (CRT-tst-gmon-static-pie): Likewise.
11327         (tst-gmon-static-pie-ENV): Likewise.
11328         (tests-special): Likewise.
11329         ($(objpfx)tst-gmon-static-pie.out): Likewise.
11330         (clean-tst-gmon-static-pie-data): Likewise.
11331         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
11332         * gmon/tst-gmon-static-pie.c: New file.
11333         * manual/install.texi: Document --enable-static-pie.
11334         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
11335         (_dl_get_dl_main_map): Likewise.
11336         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
11337         * sysdeps/x86_64/configure.ac: Likewise.
11338         * sysdeps/i386/configure: Regenerated.
11339         * sysdeps/x86_64/configure: Likewise.
11340         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
11341         (ASFLAGS-.op): Likewise.
11342
11343 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
11344
11345         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
11346         * posix/tst-mmap-offset.c (fname): Use /tmp.
11347         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
11348
11349 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
11350
11351         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
11352
11353 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
11354
11355         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
11356         errno.
11357
11358 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
11359
11360         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
11361         --with-float=hard for arm-linux-gnueabihf configurations.
11362
11363         [BZ #14121]
11364         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
11365         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
11366         ($(mo-installed)): Use $(objpfx)%.mo.
11367         (realclean): Remove rule.
11368
11369         * po/Makefile (linguas): Remove rule and dependencies.
11370         (linguas.mo): Likewise.
11371         (.PHONY): Do not depend on linguas and linguas.mo.
11372         (podir): Remove variable.
11373         (pofiles): Likewise.
11374         [$(pofiles)] (%.po): Remove rule.
11375
11376         * sysdeps/sparc/sparc32/Makefile
11377         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
11378         start-of-line whitespace in argument of echo.
11379         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
11380         with whitespace.  Generate __wrap_.udiv alias.
11381         * sysdeps/sparc/sparc32/rem.S: Regenerated.
11382         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
11383         * sysdeps/sparc/sparc32/udiv.S: Likewise.
11384         * sysdeps/sparc/sparc32/urem.S: Likewise.
11385
11386 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11387
11388         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
11389         for aligned inputs.
11390
11391 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11392
11393         * benchtests/bench-strcmp.c: Print output in JSON format.
11394
11395         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
11396
11397 2017-12-14  Florian Weimer  <fweimer@redhat.com>
11398
11399         [BZ #22607]
11400         CVE-2017-1000409
11401         * elf/dl-load.c (_dl_init_paths): Compute number of components in
11402         the expanded path string.
11403
11404 2017-12-14  Florian Weimer  <fweimer@redhat.com>
11405
11406         [BZ #22606]
11407         CVE-2017-1000408
11408         * elf/dl-load.c (system_dirs): Update comment.
11409         (nsystem_dirs_len): Use array_length.
11410         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
11411
11412 2017-12-14  Florian Weimer  <fweimer@redhat.com>
11413
11414         Simplify compiling most of support/ outside of glibc.
11415         * support/check_addrinfo.c: Include <string.h>.
11416         * support/check_dns_packet.c: Likewise.
11417         * support/check_hostent.c: Likewise.
11418         * support/support_can_chroot.c: Include <support/xunistd.h>.
11419         * support/support_format_addrinfo.c: Include <stdlib.h>
11420         * support/support_format_dns_packet.c: Include <stdbool.h>.
11421         * support/support_format_hostent.c: Include <stdlib.h>.
11422         * support/support_format_netent.c: Likewise.
11423         * support/support_write_string.c: Include <support/xunistd.h>.
11424         * support/xdlfcn.c: Include <stddef.h>.
11425
11426 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
11427
11428         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
11429
11430 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
11431             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11432
11433         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
11434         (sysdeps_routines): Add memset-niagara7.
11435         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
11436         Likewise.
11437         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
11438         file.
11439         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
11440         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
11441         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
11442         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
11443         Add niagara7 option.
11444         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
11445         memset.
11446
11447         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
11448         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
11449         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
11450         Likewise.
11451         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
11452         New file.
11453         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
11454         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
11455         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
11456         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
11457         and __memmove_niagara7.
11458         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
11459         Add niagara7 option.
11460         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
11461         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
11462         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
11463         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
11464         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
11465
11466 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11467
11468         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
11469         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
11470         * sysdeps/sparc/sparc64/memmove.S: Likewise.
11471         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
11472
11473         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
11474         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
11475         _dl_sparc_cap_flags array.
11476         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
11477
11478 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11479
11480         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
11481         time whenever possible.
11482
11483 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
11484
11485         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
11486         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
11487
11488 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
11489
11490         * soft-fp/fmadf4.c: Move to ....
11491         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
11492         * soft-fp/fmasf4.c: Move to ....
11493         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
11494         * soft-fp/fmatf4.c: Move to ....
11495         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
11496         * sysdeps/ieee754/soft-fp/Makefile: New file.
11497         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
11498         * sysdeps/arm/preconfigure: Regenerated.
11499         * sysdeps/arm/nofpu/Implies: New file.
11500         * sysdeps/arm/s_fma.c: Remove file.
11501         * sysdeps/arm/s_fmaf.c: Likewise.
11502         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
11503         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
11504         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11505         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
11506         * sysdeps/microblaze/s_fma.c: Remove file.
11507         * sysdeps/microblaze/s_fmaf.c: Likewise.
11508         * sysdeps/mips/mips32/nofpu/Implies: New file.
11509         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
11510         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
11511         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
11512         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
11513         * sysdeps/mips/ieee754/s_fma.c: Remove file.
11514         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
11515         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
11516         implementation.
11517         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
11518         * sysdeps/nios2/s_fma.c: Remove file.
11519         * sysdeps/nios2/s_fmaf.c: Likewise.
11520         * sysdeps/sh/nofpu/Implies: New file.
11521         * sysdeps/sh/s_fma.c: Remove file.
11522         * sysdeps/sh/s_fmaf.c: Likewise.
11523         * sysdeps/tile/Implies: Add ieee754/soft-fp.
11524         * sysdeps/tile/s_fma.c: Remove file.
11525         * sysdeps/tile/s_fmaf.c: Likewise.
11526
11527 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
11528
11529         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11530         Add s_cosf-sse2 and s_cosf-fma.
11531         (CFLAGS-s_cosf-fma.c): New.
11532         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
11533         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
11534         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
11535
11536 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
11537
11538         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
11539
11540 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11541
11542         * libio/Makefile (tests): Add tst-bz22415.
11543         (tst-bz22415-ENV): New rule.
11544         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
11545         (tests-special): Add tst-bz22415-mem.out.
11546         ($(objpfx)tst-bz22415-mem.out): New rule.
11547         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
11548         in case of a successful seek operation.
11549         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
11550         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
11551         buffer is required.
11552         * libio/tst-bz22415.c: New test.
11553
11554         * sysdeps/ia64/fpu/libm-test-ulps: Update.
11555
11556 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
11557
11558         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
11559         __IPC_64 to 0 to avoid IPC_64 being set.
11560
11561 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11562
11563         [BZ #22593]
11564         * math/bits/mathcalls.h (nextafter): Remove const.
11565         (nexttoward): Likewise.
11566
11567 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
11568
11569         * configure.ac (--with-fp): Remove configure option.
11570         (with_fp_cond): New variable.
11571         (libc_cv_with_fp): New configure test.  Use this variable instead
11572         of with_fp.
11573         * configure: Regenerated.
11574         * config.make.in (with-fp): Use @libc_cv_with_fp@.
11575         * manual/install.texi (Configuring and compiling): Remove
11576         --without-fp.
11577         * INSTALL: Regenerated.
11578         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
11579         * sysdeps/mips/preconfigure (with_fp_cond): Define.
11580         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
11581         * sysdeps/sh/preconfigure (with_fp_cond): Define.
11582         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
11583         use --without-fp to configure glibc.
11584
11585 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
11586
11587         * manual/locale.texi (nl_langinfo): Fix a typo.
11588
11589 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
11590
11591         [BZ #22588]
11592         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
11593
11594 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
11595
11596         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
11597         (CFLAGS-argp-parse.c): Likewise.
11598         (CFLAGS-argp-fmtstream.c): Likewise.
11599         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
11600         (CPPFLAGS-sha512-crypt.c): Likewise.
11601         (CPPFLAGS-md5-crypt.c): Likewise.
11602         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
11603         (CFLAGS-stack_chk_fail_local.c): Likewise.
11604         (CFLAGS-backtrace.c): Likewise.
11605         (CFLAGS-sprintf_chk.c): Likewise.
11606         (CFLAGS-snprintf_chk.c): Likewise.
11607         (CFLAGS-vsprintf_chk.c): Likewise.
11608         (CFLAGS-vsnprintf_chk.c): Likewise.
11609         (CFLAGS-asprintf_chk.c): Likewise.
11610         (CFLAGS-vasprintf_chk.c): Likewise.
11611         (CFLAGS-obprintf_chk.c): Likewise.
11612         (CFLAGS-dprintf_chk.c): Likewise.
11613         (CFLAGS-vdprintf_chk.c): Likewise.
11614         (CFLAGS-printf_chk.c): Likewise.
11615         (CFLAGS-fprintf_chk.c): Likewise.
11616         (CFLAGS-vprintf_chk.c): Likewise.
11617         (CFLAGS-vfprintf_chk.c): Likewise.
11618         (CFLAGS-gets_chk.c): Likewise.
11619         (CFLAGS-fgets_chk.c): Likewise.
11620         (CFLAGS-fgets_u_chk.c): Likewise.
11621         (CFLAGS-fread_chk.c): Likewise.
11622         (CFLAGS-fread_u_chk.c): Likewise.
11623         (CFLAGS-swprintf_chk.c): Likewise.
11624         (CFLAGS-vswprintf_chk.c): Likewise.
11625         (CFLAGS-wprintf_chk.c): Likewise.
11626         (CFLAGS-fwprintf_chk.c): Likewise.
11627         (CFLAGS-vwprintf_chk.c): Likewise.
11628         (CFLAGS-vfwprintf_chk.c): Likewise.
11629         (CFLAGS-fgetws_chk.c): Likewise.
11630         (CFLAGS-fgetws_u_chk.c): Likewise.
11631         (CFLAGS-read_chk.c): Likewise.
11632         (CFLAGS-pread_chk.c): Likewise.
11633         (CFLAGS-pread64_chk.c): Likewise.
11634         (CFLAGS-recv_chk.c): Likewise.
11635         (CFLAGS-recvfrom_chk.c): Likewise.
11636         (CFLAGS-tst-longjmp_chk.c): Likewise.
11637         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
11638         (CFLAGS-tst-longjmp_chk2.c): Likewise.
11639         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
11640         (CFLAGS-tst-longjmp_chk3.c): Likewise.
11641         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
11642         (CFLAGS-tst-chk1.c): Likewise.
11643         (CFLAGS-tst-chk2.c): Likewise.
11644         (CFLAGS-tst-chk3.c): Likewise.
11645         (CFLAGS-tst-chk4.cc): Likewise.
11646         (CFLAGS-tst-chk5.cc): Likewise.
11647         (CFLAGS-tst-chk6.cc): Likewise.
11648         (CFLAGS-tst-lfschk1.c): Likewise.
11649         (CFLAGS-tst-lfschk2.c): Likewise.
11650         (CFLAGS-tst-lfschk3.c): Likewise.
11651         (CFLAGS-tst-lfschk4.cc): Likewise.
11652         (CFLAGS-tst-lfschk5.cc): Likewise.
11653         (CFLAGS-tst-lfschk6.cc): Likewise.
11654         (CFLAGS-tst-ssp-1.c): Likewise.
11655         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
11656         (CFLAGS-scandir64.c): Likewise.
11657         (CFLAGS-scandir-tail.c): Likewise.
11658         (CFLAGS-scandir64-tail.c): Likewise.
11659         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
11660         (CFLAGS-dl-tunables.c): Likewise.
11661         (CFLAGS-dl-runtime.c): Likewise.
11662         (CFLAGS-dl-lookup.c): Likewise.
11663         (CFLAGS-dl-iterate-phdr.c): Likewise.
11664         (CFLAGS-vismain.c): Likewise.
11665         (CFLAGS-tst-linkall-static.c): Likewise.
11666         (CFLAGS-tst-linkall-static.c): Likewise.
11667         (CPPFLAGS-dl-load.c): Likewise.
11668         (CFLAGS-ldconfig.c): Likewise.
11669         (CFLAGS-dl-cache.c): Likewise.
11670         (CFLAGS-cache.c): Likewise.
11671         (CFLAGS-rtld.c): Likewise.
11672         (CFLAGS-multiload.c): Likewise.
11673         (CFLAGS-filtmod1.c): Likewise.
11674         (CFLAGS-tst-align.c): Likewise.
11675         (CFLAGS-tst-align2.c): Likewise.
11676         (CFLAGS-tst-alignmod.c): Likewise.
11677         (CFLAGS-tst-alignmod2.c): Likewise.
11678         (CPPFLAGS-tst-execstack.c): Likewise.
11679         (CFLAGS-tst-ptrguard1-static.c): Likewise.
11680         (CFLAGS-tst-latepthreadmod.c): Likewise.
11681         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
11682         (CFLAGS-getgrnam_r.c): Likewise.
11683         (CFLAGS-getgrent_r.c): Likewise.
11684         (CFLAGS-getgrent.c): Likewise.
11685         (CFLAGS-fgetgrent.c): Likewise.
11686         (CFLAGS-fgetgrent_r.c): Likewise.
11687         (CFLAGS-putgrent.c): Likewise.
11688         (CFLAGS-initgroups.c): Likewise.
11689         (CFLAGS-getgrgid.c): Likewise.
11690         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
11691         (CFLAGS-getsgent.c): Likewise.
11692         (CFLAGS-fgetsgent.c): Likewise.
11693         (CFLAGS-fgetsgent_r.c): Likewise.
11694         (CFLAGS-putsgent.c): Likewise.
11695         (CFLAGS-getsgnam.c): Likewise.
11696         (CFLAGS-getsgnam_r.c): Likewise.
11697         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
11698         (CFLAGS-iconv_charmap.c): Likewise.
11699         (CFLAGS-dummy-repertoire.c): Likewise.
11700         (CFLAGS-charmap.c): Likewise.
11701         (CFLAGS-linereader.c): Likewise.
11702         (CFLAGS-simple-hash.c): Likewise.
11703         (CFLAGS-gconv_conf.c): Likewise.
11704         (CFLAGS-iconvconfig.c): Likewise.
11705         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
11706         (CFLAGS-gethstbyad.c): Likewise.
11707         (CFLAGS-gethstbynm_r.c): Likewise.
11708         (CFLAGS-gethstbynm.c): Likewise.
11709         (CFLAGS-gethstbynm2_r.c): Likewise.
11710         (CFLAGS-gethstbynm2.c): Likewise.
11711         (CFLAGS-gethstent_r.c): Likewise.
11712         (CFLAGS-gethstent.c): Likewise.
11713         (CFLAGS-rcmd.c): Likewise.
11714         (CFLAGS-getnetbynm_r.c): Likewise.
11715         (CFLAGS-getnetbynm.c): Likewise.
11716         (CFLAGS-getnetbyad_r.c): Likewise.
11717         (CFLAGS-getnetbyad.c): Likewise.
11718         (CFLAGS-getnetent_r.c): Likewise.
11719         (CFLAGS-getnetent.c): Likewise.
11720         (CFLAGS-getaliasent_r.c): Likewise.
11721         (CFLAGS-getaliasent.c): Likewise.
11722         (CFLAGS-getrpcent_r.c): Likewise.
11723         (CFLAGS-getrpcent.c): Likewise.
11724         (CFLAGS-getservent_r.c): Likewise.
11725         (CFLAGS-getservent.c): Likewise.
11726         (CFLAGS-getprtent_r.c): Likewise.
11727         (CFLAGS-getprtent.c): Likewise.
11728         (CFLAGS-either_ntoh.c): Likewise.
11729         (CFLAGS-either_hton.c): Likewise.
11730         (CFLAGS-getnetgrent.c): Likewise.
11731         (CFLAGS-getnetgrent_r.c): Likewise.
11732         (CFLAGS-tst-checks-posix.c): Likewise.
11733         (CFLAGS-tst-sockaddr.c): Likewise.
11734         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
11735         (CFLAGS-tst-translit.c): Likewise.
11736         (CFLAGS-tst-gettext2.c): Likewise.
11737         (CFLAGS-tst-codeset.c): Likewise.
11738         (CFLAGS-tst-gettext3.c): Likewise.
11739         (CFLAGS-tst-gettext4.c): Likewise.
11740         (CFLAGS-tst-gettext5.c): Likewise.
11741         (CFLAGS-tst-gettext6.c): Likewise.
11742         * io/Makefile (CFLAGS-open.c): Likewise.
11743         (CFLAGS-open64.c): Likewise.
11744         (CFLAGS-creat.c): Likewise.
11745         (CFLAGS-creat64.c): Likewise.
11746         (CFLAGS-fcntl.c): Likewise.
11747         (CFLAGS-poll.c): Likewise.
11748         (CFLAGS-ppoll.c): Likewise.
11749         (CFLAGS-lockf.c): Likewise.
11750         (CFLAGS-statfs.c): Likewise.
11751         (CFLAGS-fstatfs.c): Likewise.
11752         (CFLAGS-statvfs.c): Likewise.
11753         (CFLAGS-fstatvfs.c): Likewise.
11754         (CFLAGS-fts.c): Likewise.
11755         (CFLAGS-fts64.c): Likewise.
11756         (CFLAGS-ftw.c): Likewise.
11757         (CFLAGS-ftw64.c): Likewise.
11758         (CFLAGS-lockf.c): Likewise.
11759         (CFLAGS-posix_fallocate.c): Likewise.
11760         (CFLAGS-posix_fallocate64.c): Likewise.
11761         (CFLAGS-fallocate.c): Likewise.
11762         (CFLAGS-fallocate64.c): Likewise.
11763         (CFLAGS-read.c): Likewise.
11764         (CFLAGS-write.c): Likewise.
11765         (CFLAGS-test-stat.c): Likewise.
11766         (CFLAGS-test-lfs.c): Likewise.
11767         * libio/Makefile (CFLAGS-fileops.c): Likewise.
11768         (CFLAGS-fputc.c): Likewise.
11769         (CFLAGS-fputwc.c): Likewise.
11770         (CFLAGS-freopen64.c): Likewise.
11771         (CFLAGS-freopen.c): Likewise.
11772         (CFLAGS-fseek.c): Likewise.
11773         (CFLAGS-fseeko64.c): Likewise.
11774         (CFLAGS-fseeko.c): Likewise.
11775         (CFLAGS-ftello64.c): Likewise.
11776         (CFLAGS-ftello.c): Likewise.
11777         (CFLAGS-fwide.c): Likewise.
11778         (CFLAGS-genops.c): Likewise.
11779         (CFLAGS-getc.c): Likewise.
11780         (CFLAGS-getchar.c): Likewise.
11781         (CFLAGS-getwc.c): Likewise.
11782         (CFLAGS-getwchar.c): Likewise.
11783         (CFLAGS-iofclose.c): Likewise.
11784         (CFLAGS-iofflush.c): Likewise.
11785         (CFLAGS-iofgetpos64.c): Likewise.
11786         (CFLAGS-iofgetpos.c): Likewise.
11787         (CFLAGS-iofgets.c): Likewise.
11788         (CFLAGS-iofgetws.c): Likewise.
11789         (CFLAGS-iofputs.c): Likewise.
11790         (CFLAGS-iofputws.c): Likewise.
11791         (CFLAGS-iofread.c): Likewise.
11792         (CFLAGS-iofsetpos64.c): Likewise.
11793         (CFLAGS-iofsetpos.c): Likewise.
11794         (CFLAGS-ioftell.c): Likewise.
11795         (CFLAGS-iofwrite.c): Likewise.
11796         (CFLAGS-iogetdelim.c): Likewise.
11797         (CFLAGS-iogetline.c): Likewise.
11798         (CFLAGS-iogets.c): Likewise.
11799         (CFLAGS-iogetwline.c): Likewise.
11800         (CFLAGS-ioputs.c): Likewise.
11801         (CFLAGS-ioseekoff.c): Likewise.
11802         (CFLAGS-ioseekpos.c): Likewise.
11803         (CFLAGS-iosetbuffer.c): Likewise.
11804         (CFLAGS-iosetvbuf.c): Likewise.
11805         (CFLAGS-ioungetc.c): Likewise.
11806         (CFLAGS-ioungetwc.c): Likewise.
11807         (CFLAGS-oldfileops.c): Likewise.
11808         (CFLAGS-oldiofclose.c): Likewise.
11809         (CFLAGS-oldiofgetpos64.c): Likewise.
11810         (CFLAGS-oldiofgetpos.c): Likewise.
11811         (CFLAGS-oldiofsetpos64.c): Likewise.
11812         (CFLAGS-oldiofsetpos.c): Likewise.
11813         (CFLAGS-peekc.c): Likewise.
11814         (CFLAGS-putc.c): Likewise.
11815         (CFLAGS-putchar.c): Likewise.
11816         (CFLAGS-putwc.c): Likewise.
11817         (CFLAGS-putwchar.c): Likewise.
11818         (CFLAGS-rewind.c): Likewise.
11819         (CFLAGS-wfileops.c): Likewise.
11820         (CFLAGS-wgenops.c): Likewise.
11821         (CFLAGS-oldiofopen.c): Likewise.
11822         (CFLAGS-iofopen.c): Likewise.
11823         (CFLAGS-iofopen64.c): Likewise.
11824         (CFLAGS-oldtmpfile.c): Likewise.
11825         (CFLAGS-tst_putwc.c): Likewise.
11826         * locale/Makefile (CFLAGS-md5.c): Likewise.
11827         (CFLAGS-charmap.c): Likewise.
11828         (CFLAGS-locfile.c): Likewise.
11829         (CFLAGS-charmap-dir.c): Likewise.
11830         * login/Makefile (CFLAGS-grantpt.c): Likewise.
11831         (CFLAGS-getpt.c): Likewise.
11832         (CFLAGS-pt_chown.c): Likewise.
11833         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
11834         (CFLAGS-obstack.c): Likewise.
11835         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
11836         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
11837         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
11838         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
11839         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
11840         (CFLAGS-test-tgmath.c): Likewise.
11841         (CFLAGS-test-tgmath2.c): Likewise.
11842         (CFLAGS-test-tgmath-ret.c): Likewise.
11843         (CFLAGS-test-powl.c): Likewise.
11844         (CFLAGS-test-snan.c): Likewise.
11845         (CFLAGS-test-signgam-finite.c): Likewise.
11846         (CFLAGS-test-signgam-finite-c99.c): Likewise.
11847         (CFLAGS-test-signgam-finite-c11.c): Likewise.
11848         (CFLAGS-test-signgam-uchar.c): Likewise.
11849         (CFLAGS-test-signgam-uchar-init.c): Likewise.
11850         (CFLAGS-test-signgam-uchar-static.c): Likewise.
11851         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
11852         (CFLAGS-test-signgam-uint.c): Likewise.
11853         (CFLAGS-test-signgam-uint-init.c): Likewise.
11854         (CFLAGS-test-signgam-uint-static.c): Likewise.
11855         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
11856         (CFLAGS-test-signgam-ullong.c): Likewise.
11857         (CFLAGS-test-signgam-ullong-init.c): Likewise.
11858         (CFLAGS-test-signgam-ullong-static.c): Likewise.
11859         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
11860         (CFLAGS-test-math-cxx11.cc): Likewise.
11861         (CFLAGS-test-math-isinff.cc): Likewise.
11862         (CFLAGS-test-math-iszero.cc): Likewise.
11863         (CFLAGS-test-math-issignaling.cc): Likewise.
11864         (CFLAGS-test-math-iscanonical.cc): Likewise.
11865         (CFLAGS-test-iszero-excess-precision.c): Likewise.
11866         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
11867         (CFLAGS-test-flt-eval-method.c): Likewise.
11868         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
11869         (CFLAGS-test-finite-macros.c): Likewise.
11870         * misc/Makefile (CFLAGS-select.c): Likewise.
11871         (CFLAGS-tsearch.c): Likewise.
11872         (CFLAGS-lsearch.c): Likewise.
11873         (CFLAGS-pselect.c): Likewise.
11874         (CFLAGS-readv.c): Likewise.
11875         (CFLAGS-writev.c): Likewise.
11876         (CFLAGS-preadv.c): Likewise.
11877         (CFLAGS-preadv64.c): Likewise.
11878         (CFLAGS-pwritev.c): Likewise.
11879         (CFLAGS-pwritev64.c): Likewise.
11880         (CFLAGS-preadv2.c): Likewise.
11881         (CFLAGS-preadv64v2.c): Likewise.
11882         (CFLAGS-pwritev2.c): Likewise.
11883         (CFLAGS-pwritev64v2.c): Likewise.
11884         (CFLAGS-usleep.c): Likewise.
11885         (CFLAGS-syslog.c): Likewise.
11886         (CFLAGS-error.c): Likewise.
11887         (CFLAGS-getpass.c): Likewise.
11888         (CFLAGS-mkstemp.c): Likewise.
11889         (CFLAGS-mkstemp64.c): Likewise.
11890         (CFLAGS-getsysstats.c): Likewise.
11891         (CFLAGS-getusershell.c): Likewise.
11892         (CFLAGS-err.c): Likewise.
11893         (CFLAGS-tst-tsearch.c): Likewise.
11894         (CFLAGS-msync.c): Likewise.
11895         (CFLAGS-fdatasync.c): Likewise.
11896         (CFLAGS-fsync.c): Likewise.
11897         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
11898         (CFLAGS-unwind.c): Likewise.
11899         (CFLAGS-unwind-forcedunwind.c): Likewise.
11900         (CFLAGS-pthread_cancel.c): Likewise.
11901         (CFLAGS-pthread_setcancelstate.c): Likewise.
11902         (CFLAGS-pthread_setcanceltype.c): Likewise.
11903         (CFLAGS-cancellation.c): Likewise.
11904         (CFLAGS-libc-cancellation.c): Likewise.
11905         (CFLAGS-pthread_exit.c): Likewise.
11906         (CFLAGS-forward.c): Likewise.
11907         (CFLAGS-pthread_testcancel.c): Likewise.
11908         (CFLAGS-pthread_join.c): Likewise.
11909         (CFLAGS-pthread_timedjoin.c): Likewise.
11910         (CFLAGS-pthread_once.c): Likewise.
11911         (CFLAGS-pthread_cond_wait.c): Likewise.
11912         (CFLAGS-sem_wait.c): Likewise.
11913         (CFLAGS-sem_timedwait.c): Likewise.
11914         (CFLAGS-fcntl.c): Likewise.
11915         (CFLAGS-lockf.c): Likewise.
11916         (CFLAGS-pread.c): Likewise.
11917         (CFLAGS-pread64.c): Likewise.
11918         (CFLAGS-pwrite.c): Likewise.
11919         (CFLAGS-pwrite64.c): Likewise.
11920         (CFLAGS-wait.c): Likewise.
11921         (CFLAGS-waitpid.c): Likewise.
11922         (CFLAGS-sigwait.c): Likewise.
11923         (CFLAGS-msgrcv.c): Likewise.
11924         (CFLAGS-msgsnd.c): Likewise.
11925         (CFLAGS-tcdrain.c): Likewise.
11926         (CFLAGS-open.c): Likewise.
11927         (CFLAGS-open64.c): Likewise.
11928         (CFLAGS-pause.c): Likewise.
11929         (CFLAGS-recv.c): Likewise.
11930         (CFLAGS-send.c): Likewise.
11931         (CFLAGS-accept.c): Likewise.
11932         (CFLAGS-sendto.c): Likewise.
11933         (CFLAGS-connect.c): Likewise.
11934         (CFLAGS-recvfrom.c): Likewise.
11935         (CFLAGS-recvmsg.c): Likewise.
11936         (CFLAGS-sendmsg.c): Likewise.
11937         (CFLAGS-close.c): Likewise.
11938         (CFLAGS-read.c): Likewise.
11939         (CFLAGS-write.c): Likewise.
11940         (CFLAGS-nanosleep.c): Likewise.
11941         (CFLAGS-sigsuspend.c): Likewise.
11942         (CFLAGS-msync.c): Likewise.
11943         (CFLAGS-fdatasync.c): Likewise.
11944         (CFLAGS-fsync.c): Likewise.
11945         (CFLAGS-pt-system.c): Likewise.
11946         (CFLAGS-tst-cleanup2.c): Likewise.
11947         (CFLAGS-tst-cleanupx2.c): Likewise.
11948         (CFLAGS-flockfile.c): Likewise.
11949         (CFLAGS-ftrylockfile.c): Likewise.
11950         (CFLAGS-funlockfile.c): Likewise.
11951         (CFLAGS-tst-initializers1.c): Likewise.
11952         (CFLAGS-tst-initializers1-c89.c): Likewise.
11953         (CFLAGS-tst-initializers1-c99.c): Likewise.
11954         (CFLAGS-tst-initializers1-c11.c): Likewise.
11955         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
11956         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
11957         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
11958         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
11959         (CFLAGS-nscd_getgr_r.c): Likewise.
11960         (CFLAGS-nscd_gethst_r.c): Likewise.
11961         (CFLAGS-nscd_getai.c): Likewise.
11962         (CFLAGS-nscd_initgroups.c): Likewise.
11963         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
11964         (CFLAGS-pause.c): Likewise.
11965         (CFLAGS-pread.c): Likewise.
11966         (CFLAGS-pread64.c): Likewise.
11967         (CFLAGS-pwrite.c): Likewise.
11968         (CFLAGS-pwrite64.c): Likewise.
11969         (CFLAGS-sleep.c): Likewise.
11970         (CFLAGS-wait.c): Likewise.
11971         (CFLAGS-waitid.c): Likewise.
11972         (CFLAGS-waitpid.c): Likewise.
11973         (CFLAGS-getopt.c): Likewise.
11974         (CFLAGS-wordexp.c): Likewise.
11975         (CFLAGS-sysconf.c): Likewise.
11976         (CFLAGS-pathconf.c): Likewise.
11977         (CFLAGS-fpathconf.c): Likewise.
11978         (CFLAGS-spawn.c): Likewise.
11979         (CFLAGS-spawnp.c): Likewise.
11980         (CFLAGS-spawni.c): Likewise.
11981         (CFLAGS-glob.c): Likewise.
11982         (CFLAGS-glob64.c): Likewise.
11983         (CFLAGS-getconf.c): Likewise.
11984         (CFLAGS-nanosleep.c): Likewise.
11985         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
11986         (CFLAGS-getpwent.c): Likewise.
11987         (CFLAGS-getpw.c): Likewise.
11988         (CFLAGS-fgetpwent_r.c): Likewise.
11989         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
11990         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
11991         (CFLAGS-mq_timedreceive.c): Likewise.
11992         (CFLAGS-mq_timedsend.c): Likewise.
11993         (CFLAGS-clock_nanosleep.c): Likewise.
11994         (CFLAGS-librt-cancellation.c): Likewise.
11995         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
11996         (CFLAGS-getspent.c): Likewise.
11997         (CFLAGS-fgetspent.c): Likewise.
11998         (CFLAGS-fgetspent_r.c): Likewise.
11999         (CFLAGS-putspent.c): Likewise.
12000         (CFLAGS-getspnam.c): Likewise.
12001         (CFLAGS-getspnam_r.c): Likewise.
12002         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
12003         (CFLAGS-sigsuspend.c): Likewise.
12004         (CFLAGS-sigtimedwait.c): Likewise.
12005         (CFLAGS-sigwait.c): Likewise.
12006         (CFLAGS-sigwaitinfo.c): Likewise.
12007         (CFLAGS-sigreturn.c): Likewise.
12008         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
12009         (CFLAGS-vfwprintf.c): Likewise.
12010         (CFLAGS-tmpfile.c): Likewise.
12011         (CFLAGS-tmpfile64.c): Likewise.
12012         (CFLAGS-tempname.c): Likewise.
12013         (CFLAGS-psignal.c): Likewise.
12014         (CFLAGS-vprintf.c): Likewise.
12015         (CFLAGS-cuserid.c): Likewise.
12016         (CFLAGS-errlist.c): Likewise.
12017         (CFLAGS-siglist.c): Likewise.
12018         (CFLAGS-scanf15.c): Likewise.
12019         (CFLAGS-scanf17.c): Likewise.
12020         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
12021         (CFLAGS-msort.c): Likewise.
12022         (CFLAGS-qsort.c): Likewise.
12023         (CFLAGS-system.c): Likewise.
12024         (CFLAGS-fmtmsg.c): Likewise.
12025         (CFLAGS-strfmon.c): Likewise.
12026         (CFLAGS-strfmon_l.c): Likewise.
12027         (CFLAGS-strfromd.c): Likewise.
12028         (CFLAGS-strfromf.c): Likewise.
12029         (CFLAGS-strfroml.c): Likewise.
12030         (CFLAGS-tst-bsearch.c): Likewise.
12031         (CFLAGS-tst-qsort.c): Likewise.
12032         (CFLAGS-tst-makecontext2.c): Likewise.
12033         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
12034         (CFLAGS-xnlm_prot.c): Likewise.
12035         (CFLAGS-xrstat.c): Likewise.
12036         (CFLAGS-xyppasswd.c): Likewise.
12037         (CFLAGS-xklm_prot.c): Likewise.
12038         (CFLAGS-xrex.c): Likewise.
12039         (CFLAGS-xsm_inter.c): Likewise.
12040         (CFLAGS-xmount.c): Likewise.
12041         (CFLAGS-xrusers.c): Likewise.
12042         (CFLAGS-xspray.c): Likewise.
12043         (CFLAGS-xnfs_prot.c): Likewise.
12044         (CFLAGS-xrquota.c): Likewise.
12045         (CFLAGS-xkey_prot.c): Likewise.
12046         (CFLAGS-auth_unix.c): Likewise.
12047         (CFLAGS-key_call.c): Likewise.
12048         (CFLAGS-pmap_rmt.c): Likewise.
12049         (CFLAGS-clnt_perr.c): Likewise.
12050         (CFLAGS-openchild.c): Likewise.
12051         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
12052         (CFLAGS-msgsnd.c): Likewise.
12053         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
12054         * time/Makefile (CFLAGS-tzfile.c): Likewise.
12055         (CFLAGS-tzset.c): Likewise.
12056         (CFLAGS-getdate.c): Likewise.
12057         (CFLAGS-test_time.c): Likewise.
12058         (CPPFLAGS-tst-tzname.c): Likewise.
12059         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
12060         (CFLAGS-zic.c): Likewise.
12061         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
12062         (CFLAGS-wcswidth.c): Likewise.
12063         (CFLAGS-wcstol.c): Likewise.
12064         (CFLAGS-wcstoul.c): Likewise.
12065         (CFLAGS-wcstoll.c): Likewise.
12066         (CFLAGS-wcstoull.c): Likewise.
12067         (CFLAGS-wcstod.c): Likewise.
12068         (CFLAGS-wcstold.c): Likewise.
12069         (CFLAGS-wcstof128.c): Likewise.
12070         (CFLAGS-wcstof.c): Likewise.
12071         (CFLAGS-wcstol_l.c): Likewise.
12072         (CFLAGS-wcstoul_l.c): Likewise.
12073         (CFLAGS-wcstoll_l.c): Likewise.
12074         (CFLAGS-wcstoull_l.c): Likewise.
12075         (CFLAGS-wcstod_l.c): Likewise.
12076         (CFLAGS-wcstold_l.c): Likewise.
12077         (CFLAGS-wcstof128_l.c): Likewise.
12078         (CFLAGS-wcstof_l.c): Likewise.
12079         (CPPFLAGS-tst-wchar-h.c): Likewise.
12080         (CPPFLAGS-wcstold_l.c): Likewise.
12081 ---
12082 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
12083
12084         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
12085
12086 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12087             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12088
12089         * manual/tunables.texi (Hardware Capability Tunables): Document
12090         glibc.tune.cached_memopt.
12091         * sysdeps/powerpc/cpu-features.c: New file.
12092         * sysdeps/powerpc/cpu-features.h: New file.
12093         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
12094         _dl_powerpc_cpu_features.
12095         * sysdeps/powerpc/dl-tunables.list: New file.
12096         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
12097         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
12098         (INIT_ARCH): Initialize use_aligned_memopt.
12099         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
12100         IS_IN(rtld))]: Restrict dl_platform_init availability and
12101         initialize CPU features used by tunables.
12102         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
12103         Add memcpy-power8-cached.
12104         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
12105         __memcpy_power8_cached.
12106         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
12107         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
12108         New file.
12109
12110 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
12111
12112         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
12113         (CFLAGS-noinl-tester.c): Likewise.
12114         (CFLAGS-tst-strlen.c): Likewise.
12115         (CFLAGS-stratcliff.c): Likewise.
12116         (CFLAGS-test-ffs.c): Likewise.
12117         (CFLAGS-tst-inlcall.c): Likewise.
12118         (CFLAGS-tst-xbzero-opt.c): Likewise.
12119         (CFLAGS-memcpy.c): Likewise.
12120         (CFLAGS-wordcopy.c): Likewise.
12121
12122 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
12123
12124         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
12125         Store r15 on stack and add cfi rule.
12126         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
12127         Likewise.
12128
12129 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
12130
12131         [BZ #22577]
12132         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
12133         call.
12134
12135 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
12136
12137         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12138         Add s_sinf-sse2 and s_sinf-fma.
12139         (CFLAGS-s_sinf-fma.c): New.
12140         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
12141         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
12142         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
12143
12144 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
12145
12146         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
12147
12148 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
12149
12150         [BZ #22568]
12151         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
12152         part of result to imaginary part of argument if it is zero and the
12153         real part of the argument is not finite.
12154         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
12155         of result to real part of argument if it is zero and the imaginary
12156         part of the argument is not finite.
12157
12158 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
12159
12160         [BZ #22524]
12161         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
12162         and to the list of locales to be built for testing.
12163         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
12164         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
12165         and build the collation rules upon that.
12166
12167 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
12168
12169         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
12170         * manual/math.texi (Mathematics): Document support for _Float32.
12171         * math/Makefile (test-types): Add float32.
12172         * math/Versions (GLIBC_2.27): Add _Float32 functions.
12173         * stdlib/Versions (GLIBC_2.27): Likewise.
12174         * wcsmbs/Versions (GLIBC_2.27): Likewise.
12175         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
12176         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12177         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12178         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12179         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12180         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12181         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12182         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12183         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12184         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12185         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12186         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12187         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12188         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12189         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12190         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12191         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12192         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12193         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12194         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12195         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
12196         Likewise.
12197         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12198         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12199         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12200         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12201         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12203         Likewise.
12204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12205         Likewise.
12206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12207         Likewise.
12208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12209         Likewise.
12210
12211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12212         Likewise.
12213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
12214         Likewise.
12215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12216         Likewise.
12217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12218         Likewise.
12219         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12220         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12221         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12222         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12223         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12224         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12225         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12226         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12227         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12228         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12230         Likewise.
12231         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12232         Likewise.
12233         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12234         Likewise.
12235         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12236         Likewise.
12237         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12238         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12239         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12240         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12241         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12242         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12243         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
12244         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
12245
12246 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
12247
12248         * stdlib/strtof.c: Include <bits/floatn.h>
12249         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
12250         and later undefine as macro.  Define as weak alias if
12251         [!USE_WIDE_CHAR].
12252         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
12253         and later undefine as macro.  Define as weak alias if
12254         [USE_WIDE_CHAR].
12255         * stdlib/strtof_l.c: Include <bits/floatn.h>
12256         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
12257         and later undefine as macro.  Define as weak alias if
12258         [!USE_WIDE_CHAR].
12259         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
12260         and later undefine as macro.  Define as weak alias if
12261         [USE_WIDE_CHAR].
12262
12263         * stdlib/strfromf.c: Include <bits/floatn.h>.
12264         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
12265         and later undefine as macro and define as weak alias.
12266
12267         * math/test-float32.h: New file.
12268
12269         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
12270         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
12271         (libm_alias_float_other_r): Create f32 alias.
12272         (libm_alias_float_r): Use semicolon before call to
12273         libm_alias_float_other_r.
12274
12275         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
12276         second argument to libm_alias_float_other.
12277         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
12278         second argument to libm_alias_float_other.
12279         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
12280         argument to libm_alias_float_other.
12281
12282         [BZ #22561]
12283         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
12284         real part of result for argument 0 + i * NaN.
12285         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
12286         results for tests of 0 + i * NaN.
12287
12288 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12289
12290         * sysdeps/alpha/fpu/libm-test-ulps: Update.
12291
12292 2017-12-06  David S. Miller  <davem@davemloft.net>
12293
12294         * sysdeps/sparc/fpu/libm-test-ulps: Update
12295         exp_{downward,towardzero,upward} ulps.
12296
12297 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
12298
12299         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
12300         variables static.
12301
12302         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
12303         (Y0_2D): Likewise.
12304         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
12305         (Y0_2D): Likewise.
12306         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
12307         (Y0_2D): Likewise.
12308         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
12309         (Y0_2D): Likewise.
12310
12311 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
12312
12313         [BZ #22515]
12314         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
12315         and to the list of locales to be built for testing.
12316         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
12317         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
12318         and build the collation rules upon that.
12319
12320 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12321
12322         * NEWS: Add sinf to list of optimized functions.
12323
12324 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
12325
12326         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
12327         (__HAVE_FLOAT32X): Likewise.
12328         * manual/math.texi (Mathematics): Document support for _Float64
12329         and _Float32x.
12330         * math/Makefile (test-types): Add float64 and float32x.
12331         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
12332         functions.
12333         * stdlib/Versions (GLIBC_2.27): Likewise.
12334         * wcsmbs/Versions (GLIBC_2.27): Likewise.
12335         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
12336         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12337         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12338         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12339         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12340         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12341         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12342         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12343         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12344         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12345         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12346         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12347         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12348         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12349         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12350         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12351         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12352         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12353         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12354         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12355         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
12356         Likewise.
12357         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12358         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12359         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12360         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12361         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12363         Likewise.
12364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12365         Likewise.
12366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12367         Likewise.
12368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12369         Likewise.
12370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12371         Likewise.
12372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
12373         Likewise.
12374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12375         Likewise.
12376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12377         Likewise.
12378         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12379         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12380         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12381         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12382         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12383         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12384         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12385         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12386         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12387         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12388         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12389         Likewise.
12390         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12391         Likewise.
12392         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12393         Likewise.
12394         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12395         Likewise.
12396         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12397         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12398         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12399         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12400         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12401         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12402         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
12403         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
12404
12405 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
12406
12407         * bits/floatn-common.h: Include <bits/long-double.h>.
12408         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12409         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
12410         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12411         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
12412         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12413         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
12414         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12415         (__builtin_huge_valf64): Use __builtin_huge_vall.
12416         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12417         (__builtin_inff64): Use __builtin_infl.
12418         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12419         (__builtin_nanf64): Use __builtin_nanl.
12420         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12421         (__builtin_nansf64): Use __builtin_nansl.
12422
12423 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
12424             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12425             Carlos O'Donnell <carlos@redhat.com>
12426
12427         * elf/dl-tunables.list: Add elision parameters.
12428         * manual/tunables.texi: Add entries about elision tunable.
12429         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
12430         Add callback functions to dynamically enable/disable elision.
12431         Add multiple callbacks functions to set elision parameters.
12432         Deleted __libc_enable_secure check.
12433         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
12434         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
12435         * configure: Regenerated.
12436         * configure.ac: Option enable_lock_elision was deleted.
12437         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
12438         * config.make.in: Remove references to enable_lock_elision.
12439         * manual/install.texi: Elision configure option was removed.
12440         * INSTALL: Regenerated to remove enable_lock_elision.
12441         * nptl/Makefile:
12442         Disable elision so it can verify error case for destroying a mutex.
12443         * sysdeps/powerpc/nptl/elide.h:
12444         Cleanup ENABLE_LOCK_ELISION check.
12445         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
12446         * sysdeps/s390/configure: Regenerated.
12447         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
12448         * nptl/tst-mutex8.c:
12449         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
12450         * sysdeps/powerpc/powerpc32/sysdep.h:
12451         Deleted all ENABLE_LOCK_ELISION checks.
12452         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12453         * sysdeps/powerpc/sysdep.h: Likewise.
12454         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
12455         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
12456         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
12457         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
12458         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
12459         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
12460         enable-lock-elision.
12461
12462 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
12463
12464         * stdlib/strtod.c: Include <bits/floatn.h>.
12465         (BUILD_DOUBLE): New macro.
12466         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12467         (strtof64): Define and later undefine as macro.  Define as weak
12468         alias if [!USE_WIDE_CHAR].
12469         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12470         (wcstof64): Define and later undefine as macro.  Define as weak
12471         alias if [USE_WIDE_CHAR].
12472         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12473         (strtof32x): Define and later undefine as macro.  Define as weak
12474         alias if [!USE_WIDE_CHAR].
12475         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12476         (wcstof32x): Define and later undefine as macro.  Define as weak
12477         alias if [USE_WIDE_CHAR].
12478         * stdlib/strtod_l.c: Include <bits/floatn.h>.
12479         (BUILD_DOUBLE): New macro.
12480         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12481         (strtof64_l): Define and later undefine as macro.  Define as weak
12482         alias if [!USE_WIDE_CHAR].
12483         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12484         (wcstof64_l): Define and later undefine as macro.  Define as weak
12485         alias if [USE_WIDE_CHAR].
12486         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12487         (strtof32x_l): Define and later undefine as macro.  Define as weak
12488         alias if [!USE_WIDE_CHAR].
12489         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12490         (wcstof32x_l): Define and later undefine as macro.  Define as weak
12491         alias if [USE_WIDE_CHAR].
12492
12493 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12494
12495         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
12496         (reduced): Use ones as double instead of integer.
12497
12498 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12499
12500         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
12501
12502 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
12503
12504         * stdlib/strfromd.c: Include <bits/floatn.h>.
12505         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
12506         and later undefine as macro and define as weak alias.
12507         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
12508         Likewise.
12509
12510         * math/test-float32x.h: New file.
12511         * math/test-float64.h: Likewise.
12512
12513         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
12514         (libm_alias_double_other_r_f64): New macro.
12515         (libm_alias_double_other_r_f32x): Likewise.
12516         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
12517         libm_alias_double_other_r_f32x.
12518         (libm_alias_double_r): Use semicolon before call to
12519         libm_alias_double_other_r.
12520         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
12521         <bits/floatn.h>.
12522         (libm_alias_double_other_r_f64): New macro.
12523         (libm_alias_double_other_r_f32x): Likewise.
12524         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
12525         libm_alias_double_other_r_f32x.
12526
12527 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
12528
12529         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
12530         int.
12531         (SINF_FUNC): Likewise.  Replace floor with simple casts.
12532
12533 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
12534
12535         [BZ #22517]
12536         * localedata/Makefile: Add et_EE.UTF-8 to test-input
12537         and to the list of locales to be built for testing.
12538         * localedata/et_EE.UTF-8.in: New file for testing the collation.
12539         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
12540         and build the collation rules upon that.
12541
12542 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
12543
12544         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
12545         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
12546         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
12547         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
12548         instead of __insn__xxx.
12549         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
12550         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
12551         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
12552         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
12553         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
12554         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
12555
12556 2017-12-05  Florian Weimer  <fweimer@redhat.com>
12557
12558         Linux: Implement interfaces for memory protection keys
12559         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
12560         xsignal, xsysconf.
12561         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
12562         * support/xunistd.h (xsysconf): Declare.
12563         * support/xraise.c: New file.
12564         * support/xsigaction.c: Likewise.
12565         * support/xsignal.c: Likewise.
12566         * support/xsysconf.c: Likewise.
12567         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
12568         pkey_set, pkey_get, pkey_mprotect.
12569         [misc] (tests): Add tst-pkey.
12570         (tst-pkey): Link with -lpthread.
12571         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
12572         pkey_free, pkey_set, pkey_get, pkey_mprotect.
12573         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
12574         (PKEY_DISABLE_WRITE): Define.
12575         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
12576         Declare.
12577         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
12578         (SEGV_PKUERR): Add.
12579         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
12580         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
12581         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
12582         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
12583         Add.
12584         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
12585         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
12586         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
12587         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
12588         * sysdeps/unix/sysv/linux/**.abilist: Update.
12589
12590 2017-12-05  Florian Weimer  <fweimer@redhat.com>
12591
12592         * support/tst-test_compare.c (subprocess): Use long long instead
12593         of long argument for consistent type width across 32-bit and
12594         64-bit architectures.
12595         (do_test): Adjust expected output.
12596
12597 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
12598
12599         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
12600         (cosf): Define using libm_alias_float.
12601         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
12602         (fabsf): Define using libm_alias_float.
12603         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
12604         (fmaf): Define using libm_alias_float.
12605         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
12606         (rintf): Define using libm_alias_float.
12607         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
12608         (sinf): Define using libm_alias_float.
12609         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
12610         <libm-alias-float.h>.
12611         (modff): Define using libm_alias_float.
12612         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
12613         <libm-alias-float.h>.
12614         (logbf): Define using libm_alias_float.
12615         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
12616         <libm-alias-float.h>.
12617         (ceilf): Define using libm_alias_float.
12618         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
12619         <libm-alias-float.h>.
12620         (copysignf): Define using libm_alias_float.
12621         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
12622         <libm-alias-float.h>.
12623         (floorf): Define using libm_alias_float.
12624         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
12625         <libm-alias-float.h>.
12626         (llrintf): Define using libm_alias_float.
12627         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
12628         <libm-alias-float.h>.
12629         (llroundf): Define using libm_alias_float.
12630         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
12631         <libm-alias-float.h>.
12632         (lrintf): Define using libm_alias_float.
12633         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
12634         <libm-alias-float.h>.
12635         (lroundf): Define using libm_alias_float.
12636         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
12637         <libm-alias-float.h>.
12638         (nearbyintf): Define using libm_alias_float.
12639         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
12640         <libm-alias-float.h>.
12641         (rintf): Define using libm_alias_float.
12642         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
12643         <libm-alias-float.h>.
12644         (roundf): Define using libm_alias_float.
12645         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
12646         <libm-alias-float.h>.
12647         (truncf): Define using libm_alias_float.
12648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
12649         Include <libm-alias-float.h>.
12650         (ceilf): Define using libm_alias_float.
12651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12652         Include <libm-alias-float.h>.
12653         (copysignf): Define using libm_alias_float.
12654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
12655         Include <libm-alias-float.h>.
12656         (floorf): Define using libm_alias_float.
12657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
12658         Include <libm-alias-float.h>.
12659         (llrintf): Define using libm_alias_float.
12660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
12661         Include <libm-alias-float.h>.
12662         (llroundf): Define using libm_alias_float.
12663         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
12664         Include <libm-alias-float.h>.
12665         (logbf): Define using libm_alias_float.
12666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
12667         Include <libm-alias-float.h>.
12668         (lrintf): Define using libm_alias_float.
12669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
12670         Include <libm-alias-float.h>.
12671         (lroundf): Define using libm_alias_float.
12672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
12673         Include <libm-alias-float.h>.
12674         (modff): Define using libm_alias_float.
12675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
12676         Include <libm-alias-float.h>.
12677         (roundf): Define using libm_alias_float.
12678         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
12679         Include <libm-alias-float.h>.
12680         (truncf): Define using libm_alias_float.
12681         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
12682         <libm-alias-float.h>.
12683         (llrintf): Define using libm_alias_float.
12684         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
12685         <libm-alias-float.h>.
12686         (llroundf): Define using libm_alias_float.
12687         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
12688         <libm-alias-float.h>.
12689         (ceilf): Define using libm_alias_float.
12690         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
12691         <libm-alias-float.h>.
12692         (floorf): Define using libm_alias_float.
12693         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
12694         <libm-alias-float.h>.
12695         (llroundf): Define using libm_alias_float.
12696         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
12697         <libm-alias-float.h>.
12698         (lroundf): Define using libm_alias_float.
12699         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
12700         <libm-alias-float.h>.
12701         (roundf): Define using libm_alias_float.
12702         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
12703         <libm-alias-float.h>.
12704         (truncf): Define using libm_alias_float.
12705         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
12706         <libm-alias-float.h>.
12707         (copysignf): Define using libm_alias_float.
12708         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
12709         <libm-alias-float.h>.
12710         (llrintf): Define using libm_alias_float.
12711         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
12712         <libm-alias-float.h>.
12713         (llroundf): Define using libm_alias_float.
12714         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
12715         <libm-alias-float.h>.
12716         (lrintf): Define using libm_alias_float.
12717         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
12718         <libm-alias-float.h>.
12719         (lroundf): Define using libm_alias_float.
12720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
12721         <libm-alias-float.h>.
12722         (ceilf): Define using libm_alias_float.
12723         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
12724         <libm-alias-float.h>.
12725         (copysignf): Define using libm_alias_float.
12726         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
12727         <libm-alias-float.h>.
12728         (cosf): Define using libm_alias_float.
12729         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
12730         <libm-alias-float.h>.
12731         (floorf): Define using libm_alias_float.
12732         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
12733         <libm-alias-float.h>.
12734         (llrintf): Define using libm_alias_float.
12735         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
12736         <libm-alias-float.h>.
12737         (llroundf): Define using libm_alias_float.
12738         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
12739         <libm-alias-float.h>.
12740         (logbf): Define using libm_alias_float.
12741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
12742         <libm-alias-float.h>.
12743         (modff): Define using libm_alias_float.
12744         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
12745         <libm-alias-float.h>.
12746         (roundf): Define using libm_alias_float.
12747         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
12748         <libm-alias-float.h>.
12749         (sinf): Define using libm_alias_float.
12750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
12751         <libm-alias-float.h>.
12752         (truncf): Define using libm_alias_float.
12753         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
12754         <libm-alias-float.h>.
12755         (ceilf): Define using libm_alias_float.
12756         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
12757         <libm-alias-float.h>.
12758         (copysignf): Define using libm_alias_float.
12759         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
12760         <libm-alias-float.h>.
12761         (floorf): Define using libm_alias_float.
12762         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
12763         <libm-alias-float.h>.
12764         (llrintf): Define using libm_alias_float.
12765         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
12766         <libm-alias-float.h>.
12767         (llroundf): Define using libm_alias_float.
12768         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
12769         <libm-alias-float.h>.
12770         (nearbyintf): Define using libm_alias_float.
12771         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
12772         <libm-alias-float.h>.
12773         (rintf): Define using libm_alias_float.
12774         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
12775         <libm-alias-float.h>.
12776         (roundf): Define using libm_alias_float.
12777         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
12778         <libm-alias-float.h>.
12779         (truncf): Define using libm_alias_float.
12780         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
12781         <libm-alias-float.h>.
12782         (ceilf): Define using libm_alias_float.
12783         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
12784         <libm-alias-float.h>.
12785         (floorf): Define using libm_alias_float.
12786         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
12787         <libm-alias-float.h>.
12788         (llroundf): Define using libm_alias_float.
12789         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
12790         <libm-alias-float.h>.
12791         (roundf): Define using libm_alias_float.
12792         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
12793         <libm-alias-float.h>.
12794         (truncf): Define using libm_alias_float.
12795         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
12796         <libm-alias-float.h>.
12797         (copysignf): Define using libm_alias_float.
12798         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
12799         <libm-alias-float.h>.
12800         (llrintf): Define using libm_alias_float.
12801         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
12802         <libm-alias-float.h>.
12803         (llroundf): Define using libm_alias_float.
12804         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
12805         <libm-alias-float.h>.
12806         (cosf): Define using libm_alias_float.
12807         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
12808         <libm-alias-float.h>.
12809         (llrintf): Define using libm_alias_float.
12810         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
12811         <libm-alias-float.h>.
12812         (llroundf): Define using libm_alias_float.
12813         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
12814         <libm-alias-float.h>.
12815         (sinf): Define using libm_alias_float.
12816
12817 2017-12-04  Florian Weimer  <fweimer@redhat.com>
12818
12819         * support/check.h (TEST_COMPARE): Define.
12820         (support_test_compare_failure): Declare.
12821         * support/Makefile (libsupport-routines): Add
12822         support_test_compare_failure.
12823         (tests): Add tst-test_compare.
12824         * support /support_test_compare_failure.c: New file.
12825         * support/tst-test_compare.c: Likewise.
12826
12827 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
12828
12829         [BZ #22527]
12830         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
12831         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
12832         available, this rewrite of the collation rules does reproduce
12833         the test file in the same order.
12834
12835 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
12836
12837         [BZ #10580]
12838         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
12839         digraphs in the month and day names. Using single code points for
12840         digraphs is deprecated.  While there are dedicated Unicode
12841         codepoints, for the digraphs, these are included for backwards
12842         compatibility and modern texts use a sequence of Basic Latin
12843         characters. See: https://www.unicode.org/faq/ligature_digraph.html
12844         This makes the month and day names agree exactly with CLDR now,
12845         CLDR does not use the single code points for the digraphs either.
12846
12847 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
12848
12849         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
12850
12851 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
12852
12853         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
12854         of floor.
12855
12856 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12857
12858         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
12859         Define only for libc.so.
12860
12861 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
12862
12863         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
12864         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
12865          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
12866         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
12867         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12868
12869 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12870
12871         [BZ #5997]
12872         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
12873
12874 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
12875
12876         [BZ libc/19170]
12877         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
12878         PREINIT_FUNCTION_WEAK is nonzero.
12879         (gmon_initializer): New function.  Put procedure label for it in
12880         .init_array section.
12881         (_init): Don't call PREINIT_FUNCTION.
12882         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
12883         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
12884         value when map argument is null.
12885
12886         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
12887         depi instruction from PIC pc-relative sequence.
12888         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
12889         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
12890         (elf_machine_load_address): Likewise.
12891         (elf_machine_runtime_setup): Likewise.
12892
12893 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
12894
12895         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
12896         <libm-alias-double.h>.
12897         (logb): Define using libm_alias_double.
12898         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
12899         <libm-alias-double.h>.
12900         (copysign): Define using libm_alias_double.
12901         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
12902         <libm-alias-double.h>.
12903         (llrint): Define using libm_alias_double.
12904         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
12905         <libm-alias-double.h>.
12906         (llround): Define using libm_alias_double.
12907         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
12908         <libm-alias-double.h>.
12909         (lrint): Define using libm_alias_double.
12910         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
12911         <libm-alias-double.h>.
12912         (lround): Define using libm_alias_double.
12913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12914         Include <libm-alias-double.h>.
12915         (copysign): Define using libm_alias_double.
12916         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
12917         Include <libm-alias-double.h>.
12918         (llrint): Define using libm_alias_double.
12919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
12920         Include <libm-alias-double.h>.
12921         (llround): Define using libm_alias_double.
12922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
12923         <libm-alias-double.h>.
12924         (logb): Define using libm_alias_double.
12925         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
12926         Include <libm-alias-double.h>.
12927         (lrint): Define using libm_alias_double.
12928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
12929         Include <libm-alias-double.h>.
12930         (lround): Define using libm_alias_double.
12931         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
12932         <libm-alias-double.h>.
12933         (llrint): Define using libm_alias_double.
12934         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
12935         <libm-alias-double.h>.
12936         (llround): Define using libm_alias_double.
12937         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
12938         <libm-alias-double.h>.
12939         (llround): Define using libm_alias_double.
12940         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
12941         <libm-alias-double.h>.
12942         (lround): Define using libm_alias_double.
12943         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
12944         <libm-alias-double.h>.
12945         (copysign): Define using libm_alias_double.
12946         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
12947         <libm-alias-double.h>.
12948         (llrint): Define using libm_alias_double.
12949         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
12950         <libm-alias-double.h>.
12951         (llround): Define using libm_alias_double.
12952         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
12953         <libm-alias-double.h>.
12954         (lrint): Define using libm_alias_double.
12955         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
12956         <libm-alias-double.h>.
12957         (lround): Define using libm_alias_double.
12958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
12959         <libm-alias-double.h>.
12960         (copysign): Define using libm_alias_double.
12961         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
12962         <libm-alias-double.h>.
12963         (llrint): Define using libm_alias_double.
12964         (lrint): Likewise.
12965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
12966         <libm-alias-double.h>.
12967         (llround): Define using libm_alias_double.
12968         (lround): Likewise.
12969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
12970         <libm-alias-double.h>.
12971         (logb): Define using libm_alias_double.
12972         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
12973         <libm-alias-double.h>.
12974         (copysign): Define using libm_alias_double.
12975         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
12976         <libm-alias-double.h>.
12977         (llrint): Define using libm_alias_double.
12978         (lrint): Likewise.
12979         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
12980         <libm-alias-double.h>.
12981         (llround): Define using libm_alias_double.
12982         (lround): Likewise.
12983         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
12984         <libm-alias-double.h>.
12985         (llround): Define using libm_alias_double.
12986         (lround): Likewise.
12987         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
12988         <libm-alias-double.h>.
12989         (copysign): Define using libm_alias_double.
12990         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
12991         <libm-alias-double.h>.
12992         (llrint): Define using libm_alias_double.
12993         (lrint): Likewise.
12994         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
12995         <libm-alias-double.h>.
12996         (llround): Define using libm_alias_double.
12997         (lround): Likewise.
12998         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
12999         <libm-alias-double.h>.
13000         (llrint): Define using libm_alias_double.
13001         (lrint): Likewise.
13002         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
13003         <libm-alias-double.h>.
13004         (llround): Define using libm_alias_double.
13005         (lround): Likewise.
13006
13007 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
13008
13009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
13010         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
13011         compat symbol based on llround.
13012
13013         * sysdeps/powerpc/power7/fpu/s_logb.c
13014         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
13015         symbol based on __logb, not on logb.
13016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
13017         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
13018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
13019         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
13020
13021         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
13022         (rint): Define using libm_alias_double.
13023         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
13024         <libm-alias-double.h>.
13025         (modf): Define using libm_alias_double.
13026         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
13027         <libm-alias-double.h>.
13028         (ceil): Define using libm_alias_double.
13029         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
13030         <libm-alias-double.h>.
13031         (floor): Define using libm_alias_double.
13032         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
13033         <libm-alias-double.h>.
13034         (nearbyint): Define using libm_alias_double.
13035         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
13036         <libm-alias-double.h>.
13037         (rint): Define using libm_alias_double.
13038         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
13039         <libm-alias-double.h>.
13040         (round): Define using libm_alias_double.
13041         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
13042         <libm-alias-double.h>.
13043         (trunc): Define using libm_alias_double.
13044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
13045         <libm-alias-double.h>.
13046         (ceil): Define using libm_alias_double.
13047         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
13048         Include <libm-alias-double.h>.
13049         (floor): Define using libm_alias_double.
13050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
13051         <libm-alias-double.h>.
13052         (modf): Define using libm_alias_double.
13053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
13054         Include <libm-alias-double.h>.
13055         (round): Define using libm_alias_double.
13056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
13057         Include <libm-alias-double.h>.
13058         (trunc): Define using libm_alias_double.
13059         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
13060         <libm-alias-double.h>.
13061         (ceil): Define using libm_alias_double.
13062         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
13063         <libm-alias-double.h>.
13064         (floor): Define using libm_alias_double.
13065         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
13066         <libm-alias-double.h>.
13067         (round): Define using libm_alias_double.
13068         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
13069         <libm-alias-double.h>.
13070         (trunc): Define using libm_alias_double.
13071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
13072         <libm-alias-double.h>.
13073         (ceil): Define using libm_alias_double.
13074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
13075         <libm-alias-double.h>.
13076         (floor): Define using libm_alias_double.
13077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
13078         <libm-alias-double.h>.
13079         (modf): Define using libm_alias_double.
13080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
13081         <libm-alias-double.h>.
13082         (round): Define using libm_alias_double.
13083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
13084         <libm-alias-double.h>.
13085         (trunc): Define using libm_alias_double.
13086         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
13087         <libm-alias-double.h>.
13088         (ceil): Define using libm_alias_double.
13089         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
13090         <libm-alias-double.h>.
13091         (floor): Define using libm_alias_double.
13092         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
13093         <libm-alias-double.h>.
13094         (nearbyint): Define using libm_alias_double.
13095         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
13096         <libm-alias-double.h>.
13097         (rint): Define using libm_alias_double.
13098         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
13099         <libm-alias-double.h>.
13100         (round): Define using libm_alias_double.
13101         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
13102         <libm-alias-double.h>.
13103         (trunc): Define using libm_alias_double.
13104         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
13105         <libm-alias-double.h>.
13106         (ceil): Define using libm_alias_double.
13107         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
13108         <libm-alias-double.h>.
13109         (floor): Define using libm_alias_double.
13110         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
13111         <libm-alias-double.h>.
13112         (round): Define using libm_alias_double.
13113         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
13114         <libm-alias-double.h>.
13115         (trunc): Define using libm_alias_double.
13116
13117         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
13118         (fabs): Define using libm_alias_double.
13119         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
13120         (fma): Define using libm_alias_double.
13121         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
13122         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
13123         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
13124         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
13125
13126 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13127
13128         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
13129
13130         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
13131         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
13132         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
13133
13134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
13135         due redirect macro.
13136
13137 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
13138
13139         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
13140
13141 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13142
13143         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
13144         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
13145         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
13146         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
13147
13148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13149         (libm-sysdep_routines): Add s_nearbyintf-generic and
13150         s_nearbyint-generic.
13151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
13152         New file.
13153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
13154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
13155         Likewise.
13156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
13157         Likewise.
13158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
13159         file.
13160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
13161         Likewise.
13162
13163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13164         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
13165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
13166         file.
13167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
13168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
13169         Likewise.
13170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
13171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
13172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
13173
13174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13175         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
13176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
13177         file.
13178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
13179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
13180         Likewise.
13181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
13182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
13183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
13184
13185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13186         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
13187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
13188         file.
13189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
13190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
13191         Likewise.
13192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
13193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
13194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
13195
13196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13197         (sysdep_calls): New rule.
13198         (sysdep_routines): Use sysdep_calls as base.
13199         (libm-sysdep_routines): Add generic rule for symbols shared with
13200         libc.  Add s_copysign-generic and s_copysign-generic objects.
13201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
13202         New file.
13203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
13204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
13205         Likewise.
13206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
13207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
13208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
13209
13210 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
13211
13212         [BZ #22519]
13213         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
13214         the list of locales to be built for testing.
13215         * localedata/is_IS.UTF-8.in: New file.
13216         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
13217         on iso14651_t1.
13218
13219 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
13220
13221         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
13222         <libm-alias-float.h>.
13223         (fabsf): Define using libm_alias_float.
13224
13225 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
13226
13227         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
13228
13229 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
13230
13231         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
13232         <libm-alias-float.h>.
13233         (fabsf): Define using libm_alias_float.
13234         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
13235         <libm-alias-float.h>.
13236         (lrintf): Define using libm_alias_float.
13237         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
13238         <libm-alias-float.h>.
13239         (rintf): Define using libm_alias_float.
13240
13241         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
13242         <libm-alias-double.h>.
13243         (fabs): Define using libm_alias_double.
13244         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
13245         <libm-alias-double.h>.
13246         (lrint): Define using libm_alias_double.
13247         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
13248         <libm-alias-double.h>.
13249         (rint): Define using libm_alias_double.
13250
13251         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
13252         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
13253         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
13254         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
13255         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
13256         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
13257         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
13258         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
13259         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
13260         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
13261         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
13262         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
13263         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
13264         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
13265         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
13266         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
13267         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
13268         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
13269         s_atan_template.c.
13270         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
13271         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
13272         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
13273         s_ceil_template.c.
13274         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
13275         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
13276         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
13277         s_cos_template.c.
13278         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
13279         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
13280         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
13281         s_expm1_template.c.
13282         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
13283         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
13284         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
13285         s_fabs_template.c.
13286         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
13287         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
13288         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
13289         s_floor_template.c.
13290         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
13291         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
13292         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
13293         s_frexp_template.c.
13294         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
13295         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
13296         s_lrint_template.c.
13297         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
13298         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
13299         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
13300         s_modf_template.c.
13301         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
13302         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
13303         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
13304         s_nearbyint_template.c.
13305         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
13306         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
13307         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
13308         s_remquo_template.c.
13309         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
13310         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
13311         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
13312         s_rint_template.c.
13313         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
13314         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
13315         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
13316         s_sin_template.c.
13317         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
13318         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
13319         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
13320         s_sincos_template.c.
13321         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
13322         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
13323         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
13324         s_tan_template.c.
13325         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
13326         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
13327         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
13328         s_tanh_template.c.
13329         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
13330         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
13331         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
13332         s_trunc_template.c.
13333         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
13334         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
13335         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
13336         s_atan.c instead of including s_atan.c.
13337         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
13338         s_atanf.c instead of including s_atanf.c.
13339         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
13340         s_atanl.c instead of including s_atanl.c.
13341         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
13342         instead of s_atan.c.
13343         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
13344         instead of s_atanf.c.
13345         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
13346         instead of s_atanl.c.
13347
13348         * scripts/update-copyrights: Do not handle intl/plural.c
13349         specially.
13350
13351 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
13352
13353         [BZ #22432]
13354         * configure.ac (BISON): Require to be present.
13355         * configure: Regenerated.
13356         * intl/Makefile (generated): Add plural.c.
13357         [$(BISON) != no]: Make code unconditional.
13358         (plural.c): Change rule to $(objpfx)plural.c.
13359         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
13360         * intl/plural.c: Remove.
13361         * manual/install.texi (Tools for Compilation): Document bison as
13362         required.
13363         * INSTALL: Regenerated.
13364
13365 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
13366
13367         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
13368         <libm-alias-double.h>.
13369         (llrint): Define using libm_alias_double.
13370         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
13371         <libm-alias-float.h>.
13372         (llrintf): Define using libm_alias_float.
13373         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
13374         <libm-alias-ldouble.h>.
13375         (llrintl): Define using libm_alias_ldouble.
13376
13377         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
13378         declare_mgen_alias instead of weak_alias.
13379         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
13380         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
13381         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
13382
13383 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13384
13385         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13386         Add add_n-generic.
13387         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
13388         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
13389         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
13390
13391         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13392         Add submul_1-generic.
13393         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
13394         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
13395         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
13396
13397         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13398         Add addmul_1-generic.
13399         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
13400         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
13401         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
13402
13403         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13404         Add sub_n-generic.
13405         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
13406         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
13407         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
13408
13409         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13410         Add mul_1-generic.
13411         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
13412         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
13413         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
13414
13415 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
13416
13417         According to CLDR, collation rules for Serbian and Bosnian
13418         should be the same as for Croatian.
13419
13420         [BZ #22534]
13421         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
13422         and to the list of locales to be built for testing.
13423         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
13424         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
13425         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
13426         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
13427
13428 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
13429
13430         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
13431         to make test case pass.
13432         * localedata/hr_HR.UTF-8.in: Add more test strings.
13433
13434 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
13435
13436         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
13437
13438 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
13439
13440         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
13441         the list of locales to built for testing.
13442         * localedata/hr_HR.UTF-8.in: New file.
13443
13444 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
13445
13446         [BZ #10580]
13447         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
13448         iso14651_t1.
13449         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
13450         CLDR (except use ligatures for the digraphs, CLDR does not use
13451         the ligatures), add first_workday, some fixes in the date and time
13452         formats.
13453         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
13454         for Đ and đ.
13455         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
13456         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
13457         Add int_p_cs_precedes and int_n_cs_precedes.
13458         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
13459         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
13460         LC_MONETARY now).
13461         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
13462         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
13463         name_miss.
13464         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
13465         and lang_lib. Change postal_fmt.
13466
13467 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
13468
13469         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
13470         <setjmp.h>.
13471         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
13472         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
13473         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
13474         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
13475         * sysdeps/generic/setjmpP.h: New file.
13476         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
13477         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
13478         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
13479         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
13480         Add jmp_buf-ssp.sym.
13481         (tests): Add tst-saved_mask-1.
13482
13483 2017-11-30  Arjun Shankar  <arjun@redhat.com>
13484
13485         [BZ #22375]
13486         CVE-2017-17426
13487         * malloc/malloc.c (__libc_malloc): Use checked_request2size
13488         instead of request2size.
13489
13490 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
13491
13492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
13493         (__lllrint): Remove alias.
13494         (lllrint): Likewise.
13495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
13496         (__lllrintf): Likewise.
13497         (lllrintf): Likewise.
13498
13499         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
13500         <libm-alias-float.h>.
13501         (copysignf): Define using libm_alias_float.
13502         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
13503         <libm-alias-float.h>.
13504         (fabsf): Define using libm_alias_float.
13505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
13506         Include <libm-alias-float.h>.
13507         (copysignf): Define using libm_alias_float.
13508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
13509         <libm-alias-float.h>.
13510         (fabsf): Define using libm_alias_float.
13511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
13512         <libm-alias-float.h>.
13513         (fdimf): Define using libm_alias_float.
13514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
13515         <libm-alias-float.h>.
13516         (fmaf): Define using libm_alias_float.
13517         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
13518         <libm-alias-float.h>.
13519         (llrintf): Define using libm_alias_float.
13520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
13521         Include <libm-alias-float.h>.
13522         (nearbyintf): Define using libm_alias_float.
13523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
13524         <libm-alias-float.h>.
13525         (rintf): Define using libm_alias_float.
13526         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
13527         <libm-alias-float.h>.
13528         (llrintf): Define using libm_alias_float.
13529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
13530         <libm-alias-float.h>.
13531         (lrintf): Define using libm_alias_float.
13532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
13533         <libm-alias-float.h>.
13534         (nearbyintf): Define using libm_alias_float.
13535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
13536         <libm-alias-float.h>.
13537         (rintf): Define using libm_alias_float.
13538         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
13539         <libm-alias-float.h>.
13540         (ceilf): Define using libm_alias_float.
13541         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
13542         <libm-alias-float.h>.
13543         (floorf): Define using libm_alias_float.
13544         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
13545         <libm-alias-float.h>.
13546         (fmaf): Define using libm_alias_float.
13547         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
13548         <libm-alias-float.h>.
13549         (lrintf): Define using libm_alias_float.
13550         (llrintf): Likewise.
13551         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
13552         <libm-alias-float.h>.
13553         (nearbyintf): Define using libm_alias_float.
13554         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
13555         <libm-alias-float.h>.
13556         (rintf): Define using libm_alias_float.
13557         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
13558         <libm-alias-float.h>.
13559         (truncf): Define using libm_alias_float.
13560         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
13561         <libm-alias-float.h>.
13562         (copysignf): Define using libm_alias_float.
13563         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
13564         <libm-alias-float.h>.
13565         (fabsf): Define using libm_alias_float.
13566         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
13567         <libm-alias-float.h>.
13568         (lrintf): Define using libm_alias_float.
13569         (llrintf): Likewise.
13570         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
13571         <libm-alias-float.h>.
13572         (nearbyintf): Define using libm_alias_float.
13573         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
13574         <libm-alias-float.h>.
13575         (rintf): Define using libm_alias_float.
13576
13577 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
13578
13579         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
13580         <libm-alias-double.h>.
13581         (copysign): Define using libm_alias_double.
13582         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
13583         <libm-alias-double.h>.
13584         (fabs): Define using libm_alias_double.
13585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
13586         Include <libm-alias-double.h>.
13587         (copysign): Define using libm_alias_double.
13588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
13589         <libm-alias-double.h>.
13590         (fabs): Define using libm_alias_double.
13591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
13592         <libm-alias-double.h>.
13593         (fdim): Define using libm_alias_double.
13594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
13595         <libm-alias-double.h>.
13596         (fma): Define using libm_alias_double.
13597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
13598         <libm-alias-double.h>.
13599         (llrint): Define using libm_alias_double.
13600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
13601         Include <libm-alias-double.h>.
13602         (nearbyint): Define using libm_alias_double.
13603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
13604         <libm-alias-double.h>.
13605         (rint): Define using libm_alias_double.
13606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
13607         <libm-alias-double.h>.
13608         (fabs): Define using libm_alias_double.
13609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
13610         <libm-alias-double.h>.
13611         (llrint): Define using libm_alias_double.
13612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
13613         <libm-alias-double.h>.
13614         (nearbyint): Define using libm_alias_double.
13615         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
13616         <libm-alias-double.h>.
13617         (rint): Define using libm_alias_double.
13618         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
13619         <libm-alias-double.h>.
13620         (ceil): Define using libm_alias_double.
13621         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
13622         <libm-alias-double.h>.
13623         (floor): Define using libm_alias_double.
13624         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
13625         <libm-alias-double.h>.
13626         (fma): Define using libm_alias_double.
13627         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
13628         <libm-alias-double.h>.
13629         (lrint): Define using libm_alias_double.
13630         (llrint): Likewise.
13631         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
13632         <libm-alias-double.h>.
13633         (nearbyint): Define using libm_alias_double.
13634         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
13635         <libm-alias-double.h>.
13636         (rint): Define using libm_alias_double.
13637         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
13638         <libm-alias-double.h>.
13639         (trunc): Define using libm_alias_double.
13640         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
13641         <libm-alias-double.h>.
13642         (copysign): Define using libm_alias_double.
13643         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
13644         <libm-alias-double.h>.
13645         (fabs): Define using libm_alias_double.
13646         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
13647         <libm-alias-double.h>.
13648         (lrint): Define using libm_alias_double.
13649         (llrint): Likewise.
13650         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
13651         <libm-alias-double.h>.
13652         (nearbyint): Define using libm_alias_double.
13653         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
13654         <libm-alias-double.h>.
13655         (rint): Define using libm_alias_double.
13656
13657         [BZ #22229]
13658         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
13659         <math_ldbl_opt.h>.
13660         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
13661
13662         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13663         SPARC --disable-multi-arch glibc variants.
13664
13665         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
13666         <libm-alias-float.h>.
13667         (exp2f): Define using libm_alias_float, or libm_alias_float_other
13668         if [SHARED].
13669         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
13670         <libm-alias-float.h>.
13671         (exp2f): Define using libm_alias_float, or libm_alias_float_other
13672         if [SHARED].
13673         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
13674         <libm-alias-float.h>.
13675         (exp2f): Define using libm_alias_float, or libm_alias_float_other
13676         if [SHARED].
13677         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
13678         <libm-alias-float.h>.
13679         (exp2f): Define using libm_alias_float, or libm_alias_float_other
13680         if [SHARED].
13681         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
13682         <libm-alias-float.h>.
13683         (exp2f): Define using libm_alias_float, or libm_alias_float_other
13684         if [SHARED].
13685         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
13686         <libm-alias-float.h>.
13687         (ceilf): Define using libm_alias_float.
13688         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
13689         <libm-alias-float.h>.
13690         (floorf): Define using libm_alias_float.
13691         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
13692         <libm-alias-float.h>.
13693         (fmaf): Define using libm_alias_float.
13694         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
13695         <libm-alias-float.h>.
13696         (nearbyintf): Define using libm_alias_float.
13697         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
13698         <libm-alias-float.h>.
13699         (rintf): Define using libm_alias_float.
13700         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
13701         <libm-alias-float.h>.
13702         (truncf): Define using libm_alias_float.
13703         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
13704         (copysignf): Define using libm_alias_float.
13705         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
13706         (cosf): Define using libm_alias_float.
13707         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
13708         (fabsf): Define using libm_alias_float.
13709         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
13710         (fmaxf): Define using libm_alias_float.
13711         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
13712         (fminf): Define using libm_alias_float.
13713         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
13714         (llrintf): Define using libm_alias_float.
13715         [!__ILP32__] (lrintf): Likewise.
13716         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
13717         (sincosf): Define using libm_alias_float.
13718         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
13719         (sinf): Define using libm_alias_float.
13720         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
13721         (lrintf): Define using libm_alias_float.
13722
13723         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
13724         <libm-alias-double.h>.
13725         (atan): Define using libm_alias_double.
13726         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
13727         <libm-alias-double.h>.
13728         (ceil): Define using libm_alias_double.
13729         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
13730         <libm-alias-double.h>.
13731         (floor): Define using libm_alias_double.
13732         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
13733         <libm-alias-double.h>.
13734         (fma): Define using libm_alias_double.
13735         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
13736         <libm-alias-double.h>.
13737         (nearbyint): Define using libm_alias_double.
13738         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
13739         <libm-alias-double.h>.
13740         (rint): Define using libm_alias_double.
13741         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
13742         <libm-alias-double.h>.
13743         (sin): Define using libm_alias_double.
13744         (cos): Likewise.
13745         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
13746         <libm-alias-double.h>.
13747         (tan): Define using libm_alias_double.
13748         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
13749         <libm-alias-double.h>.
13750         (trunc): Define using libm_alias_double.
13751         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
13752         (copysign): Define using libm_alias_double.
13753         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
13754         (fabs): Define using libm_alias_double.
13755         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
13756         (fmax): Define using libm_alias_double.
13757         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
13758         (fmin): Define using libm_alias_double.
13759         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
13760         (llrint): Define using libm_alias_double.
13761         [!__ILP32__] (lrint): Likewise.
13762         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
13763         (lrint): Define using libm_alias_double.
13764
13765 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13766
13767         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13768         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
13769         objects.
13770         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
13771         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
13772         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
13773         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
13774         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
13775         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
13776
13777         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13778         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
13779         objects.
13780         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
13781         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
13782         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
13783         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
13784         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
13785         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
13786
13787         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13788         (libm-sysdep_routines): Add s_nearbyint-generic and
13789         s_nearbyintf-generic objects.
13790         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
13791         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
13792         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
13793         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
13794         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
13795         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
13796
13797         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13798         Add s_finitef-generic and s_finite-generic objects.
13799         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
13800         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
13801         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
13802         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
13803         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
13804         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
13805
13806         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13807         Add s_isinff-generic and s_isinf-generic objects.
13808         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
13809         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
13810         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
13811         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
13812         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
13813         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
13814
13815         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13816         Add s_isnanf-generic and s_isnan-generic objects.
13817         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
13818         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
13819         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
13820         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
13821         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
13822         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
13823
13824         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
13825         macro.
13826         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
13827         rule.
13828         (sysdep_routines): Use sysdep_calls as base.
13829         (libm-sysdep_routines): Add generic rule for symbols shared with
13830         libc.  Add s_signbit-generic and s_signbitf-generic objects.
13831         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
13832         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
13833         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
13834         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
13835         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
13836         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
13837
13838 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
13839
13840         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
13841         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
13842         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
13843         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
13844         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
13845         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
13846         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
13847         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
13848         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
13849         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
13850         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
13851         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
13852         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
13853         libm_alias_float_r.
13854         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
13855         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
13856         (logf): Likewise.
13857         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
13858         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
13859         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
13860         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
13861         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
13862         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
13863         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
13864         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
13865         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
13866         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
13867         libm_alias_float.
13868         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
13869         (cosf): Likewise.
13870         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
13871         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
13872         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
13873         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
13874         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
13875         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
13876         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
13877         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
13878         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
13879         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
13880         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
13881         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
13882         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
13883         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
13884         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
13885         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
13886         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
13887         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
13888         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
13889         libm_alias_float.
13890         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
13891         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
13892         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
13893         * sysdeps/ia64/fpu/w_lgammaf_main.c
13894         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
13895         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
13896
13897 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
13898             Alexandre Oliva  <aoliva@redhat.com>
13899
13900         [BZ #17750]
13901         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
13902         * localedata/fr_CA.UTF-8.in: New file with test data for backward
13903         accents sorting.
13904         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
13905         sorting.
13906         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
13907         * localedata/locales/de_DE (LC_COLLATE): Likewise.
13908         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
13909         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
13910         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
13911         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
13912         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
13913         instead of “ifdef DIACRIT_BACKWARD”.
13914
13915 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13916
13917         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
13918         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
13919         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
13920         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
13921         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
13922         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
13923         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13924         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13925         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13926         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13927         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
13928         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
13929         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13930         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13931         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
13932         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
13933         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
13934         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
13935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13936         ($(have-as-vis3) == yes): Remove conditional.
13937         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
13938         Likewise.
13939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
13940         file.
13941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
13942         file.
13943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
13944         file.
13945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
13946         file.
13947         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
13948         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
13949         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
13950         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
13951         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
13952         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
13953         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
13954         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
13955
13956 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
13957
13958         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
13959         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
13960         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
13961         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
13962         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
13963         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
13964         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
13965         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
13966         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
13967         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
13968         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
13969         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
13970         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
13971         libm_alias_double_r.
13972         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
13973         (log): Likewise.
13974         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
13975         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
13976         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
13977         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
13978         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
13979         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
13980         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
13981         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
13982         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
13983         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
13984         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
13985         libm_alias_double.
13986         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
13987         (cos): Likewise.
13988         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
13989         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
13990         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
13991         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
13992         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
13993         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
13994         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
13995         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
13996         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
13997         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
13998         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
13999         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
14000         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
14001         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
14002         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
14003         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
14004         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
14005         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
14006         libm_alias_double.
14007         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
14008         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
14009         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
14010         * sysdeps/ia64/fpu/w_lgamma_main.c
14011         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
14012         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
14013
14014 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
14015
14016         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
14017         address of $global$ into %dp register earlier.  Use pc-relative
14018         instruction sequence for PIC case.
14019
14020 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
14021
14022         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
14023         (asinhf): Define using libm_alias_float.
14024         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
14025         (atanf): Define using libm_alias_float.
14026         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
14027         (cbrtf): Define using libm_alias_float.
14028         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
14029         (ceilf): Define using libm_alias_float.
14030         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
14031         (copysignf): Define using libm_alias_float.
14032         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
14033         (expm1f): Define using libm_alias_float.
14034         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
14035         (fabsf): Define using libm_alias_float.
14036         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
14037         (floorf): Define using libm_alias_float.
14038         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
14039         (fmaxf): Define using libm_alias_float.
14040         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
14041         (fminf): Define using libm_alias_float.
14042         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
14043         (frexpf): Define using libm_alias_float.
14044         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
14045         (llrintf): Define using libm_alias_float.
14046         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
14047         (logbf): Define using libm_alias_float.
14048         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
14049         (lrintf): Define using libm_alias_float.
14050         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
14051         (nearbyintf): Define using libm_alias_float.
14052         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
14053         (remquof): Define using libm_alias_float.
14054         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
14055         (rintf): Define using libm_alias_float.
14056         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
14057         (truncf): Define using libm_alias_float.
14058         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
14059         <libm-alias-float.h>.
14060         (exp2f): Define using libm_alias_float, or libm_alias_float_other
14061         if [SHARED].
14062         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
14063         <libm-alias-float.h>.
14064         (expf): Define using libm_alias_float, or libm_alias_float_other
14065         if [SHARED].
14066         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
14067         <libm-alias-float.h>.
14068         (log2f): Define using libm_alias_float, or libm_alias_float_other
14069         if [SHARED].
14070         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
14071         <libm-alias-float.h>.
14072         (logf): Define using libm_alias_float, or libm_alias_float_other
14073         if [SHARED].
14074         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
14075         <libm-alias-float.h>.
14076         (powf): Define using libm_alias_float, or libm_alias_float_other
14077         if [SHARED].
14078         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
14079         <libm-alias-float.h>.
14080         (cosf): Define using libm_alias_float.
14081         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
14082         <libm-alias-float.h>.
14083         (sincosf): Define using libm_alias_float.
14084         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
14085         <libm-alias-float.h>.
14086         (sinf): Define using libm_alias_float.
14087         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
14088         (fmaxf): Define using libm_alias_float.
14089         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
14090         (fminf): Define using libm_alias_float.
14091         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14092         <libm-alias-float.h>.
14093         (fmaf): Define using libm_alias_float.
14094
14095         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
14096         (asinh): Define using libm_alias_double.
14097         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
14098         (atan): Define using libm_alias_double.
14099         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
14100         (cbrt): Define using libm_alias_double.
14101         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
14102         (ceil): Define using libm_alias_double.
14103         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
14104         (copysign): Define using libm_alias_double.
14105         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
14106         (expm1): Define using libm_alias_double.
14107         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
14108         (fabs): Define using libm_alias_double.
14109         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
14110         (fdim): Define using libm_alias_double.
14111         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
14112         (floor): Define using libm_alias_double.
14113         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
14114         (fmax): Define using libm_alias_double.
14115         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
14116         (fmin): Define using libm_alias_double.
14117         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
14118         (frexp): Define using libm_alias_double.
14119         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
14120         (llrint): Define using libm_alias_double.
14121         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
14122         (logb): Define using libm_alias_double.
14123         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
14124         (lrint): Define using libm_alias_double.
14125         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
14126         (nearbyint): Define using libm_alias_double.
14127         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
14128         (remquo): Define using libm_alias_double.
14129         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
14130         (rint): Define using libm_alias_double.
14131         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
14132         (trunc): Define using libm_alias_double.
14133         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
14134         (fmax): Define using libm_alias_double.
14135         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
14136         (fmin): Define using libm_alias_double.
14137         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
14138         (fma): Define using libm_alias_double.
14139
14140 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
14141
14142         [BZ #22370]
14143         * elf/dl-hwcaps.c (ROUND): Removed.
14144         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
14145         and ELF_NOTE_NEXT_OFFSET.
14146         * elf/dl-load.c (ROUND): Removed.
14147         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
14148         * elf/readelflib.c (ROUND): Removed.
14149         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
14150         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
14151         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
14152         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
14153
14154 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
14155
14156         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
14157         [!__fmaf] (fmaf): Define using libm_alias_float.
14158
14159         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
14160         [!__fma] (fma): Define using libm_alias_double.
14161         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
14162
14163 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
14164
14165         [BZ #22336]
14166         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
14167         and implement the collation rules for cs from CLDR on top of that.
14168         * Makefile: Add cs_CZ.UTF-8 to test-input.
14169         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
14170
14171 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14172
14173         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
14174
14175 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
14176             Icarus Sparry  <icarus.w.sparry@intel.com>
14177
14178         * benchtests/Makefile:Add BENCHSET to allow subsets of
14179         benchmarks to be run.
14180         * benchtests/README: Add documentation for: Running subsets of
14181         benchmarks.
14182
14183 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
14184
14185         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
14186         range of tests names.
14187
14188         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
14189         result from property and remove "max", min" and "mean" from
14190         required properties based on benchtests/bench-skeleton.c.
14191
14192 2017-11-28  Florian Weimer  <fweimer@redhat.com>
14193
14194         [BZ #20826]
14195         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
14196         due to Internet requirement.
14197         * posix/Makefile (tests): Remove tst-getaddrinfo4,
14198         tst-getaddrinfo5.
14199         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
14200
14201 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14202
14203         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14204         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
14205         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
14206         (sysdep_routines): Add memset-ultra1.
14207         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
14208         file.
14209         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
14210         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
14211         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
14212         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
14213         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
14214         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
14215         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
14216         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14217
14218         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
14219         file.
14220         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
14221         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
14222         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
14223         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
14224         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
14225         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
14226         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
14227         macro.
14228         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14229         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
14230         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
14231         (sysdep_routines): Add memcpy-ultra1.
14232         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
14233         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
14234
14235 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
14236
14237         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
14238         (cfloat_versions): Take function argument without trailing 'f'.
14239         Call libm_alias_float_other.
14240         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
14241         * sysdeps/alpha/fpu/cargf.c: Likewise.
14242         * sysdeps/alpha/fpu/cimagf.c: Likewise.
14243         * sysdeps/alpha/fpu/conjf.c: Likewise.
14244         * sysdeps/alpha/fpu/crealf.c: Likewise.
14245         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
14246         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
14247         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
14248         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
14249         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
14250         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
14251         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
14252         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
14253         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
14254         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
14255         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
14256         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
14257         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
14258         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
14259         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
14260         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
14261         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
14262         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
14263         (clog10f): Use libm_alias_float_other.
14264         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
14265         (ceilf): Define using libm_alias_float.
14266         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
14267         (copysignf): Define using libm_alias_float.
14268         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
14269         (fabsf): Define using libm_alias_float.
14270         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
14271         (floorf): Define using libm_alias_float.
14272         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
14273         (fmaxf): Define using libm_alias_float.
14274         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
14275         (fminf): Define using libm_alias_float.
14276         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
14277         (lrintf): Define using libm_alias_float.
14278         (llrintf): Likewise.
14279         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
14280         (lroundf): Define using libm_alias_float.
14281         (llroundf): Likewise.
14282         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
14283         (rintf): Define using libm_alias_float.
14284         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
14285         (truncf): Define using libm_alias_float.
14286
14287         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
14288         (ceilf): Define using libm_alias_float.
14289         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
14290         (floorf): Define using libm_alias_float.
14291         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
14292         (fmaf): Define using libm_alias_float.
14293         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
14294         (fmaxf): Define using libm_alias_float.
14295         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
14296         (fminf): Define using libm_alias_float.
14297         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
14298         (llrintf): Define using libm_alias_float.
14299         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
14300         (llroundf): Define using libm_alias_float.
14301         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
14302         (lrintf): Define using libm_alias_float.
14303         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
14304         (lroundf): Define using libm_alias_float.
14305         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
14306         <libm-alias-float.h>.
14307         (nearbyintf): Define using libm_alias_float.
14308         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
14309         (rintf): Define using libm_alias_float.
14310         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
14311         (roundf): Define using libm_alias_float.
14312         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
14313         (truncf): Define using libm_alias_float.
14314
14315         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
14316         (ceil): Define using libm_alias_double.
14317         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
14318         (copysign): Define using libm_alias_double.
14319         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
14320         (fabs): Define using libm_alias_double.
14321         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
14322         (floor): Define using libm_alias_double.
14323         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
14324         (fmax): Define using libm_alias_double.
14325         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
14326         (fmin): Define using libm_alias_double.
14327         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
14328         (lrint): Define using libm_alias_double.
14329         (llrint): Likewise.
14330         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
14331         (lround): Define using libm_alias_double.
14332         (llround): Likewise.
14333         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
14334         (rint): Define using libm_alias_double.
14335         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
14336         (trunc): Define using libm_alias_double.
14337
14338         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
14339         (libm_alias_double_r): Add semicolon after weak_alias call.
14340
14341 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
14342
14343         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
14344         (ceil): Define using libm_alias_double.
14345         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
14346         (floor): Define using libm_alias_double.
14347         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
14348         (fma): Define using libm_alias_double.
14349         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
14350         (fmax): Define using libm_alias_double.
14351         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
14352         (fmin): Define using libm_alias_double.
14353         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
14354         (llrint): Define using libm_alias_double.
14355         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
14356         (llround): Define using libm_alias_double.
14357         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
14358         (lrint): Define using libm_alias_double.
14359         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
14360         (lround): Define using libm_alias_double.
14361         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
14362         (nearbyint): Define using libm_alias_double.
14363         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
14364         (rint): Define using libm_alias_double.
14365         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
14366         (round): Define using libm_alias_double.
14367         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
14368         (trunc): Define using libm_alias_double.
14369
14370 2017-11-27  Florian Weimer  <fweimer@redhat.com>
14371
14372         * sysdeps/unix/sysv/linux/mlock2.c: New file.
14373         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
14374         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
14375         (tests): Add tst-mlock2.
14376         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
14377         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
14378         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
14379         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
14380         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
14381         for mlock.  Document mlock2.
14382
14383 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
14384
14385         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
14386         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
14387         Likewise.
14388         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
14389         Likewise.
14390         * sysdeps/x86/Makeconfig: New file.
14391         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
14392         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14393         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
14394         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14395         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14396         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14397         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
14398         Likewise.
14399         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14400         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14401         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14402         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14403         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14404         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14405         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14406         * manual/math.texi (Mathematics): Document support for _Float64x.
14407         * math/Versions (GLIBC_2.27): Add _Float64x functions.
14408         * stdlib/Versions (GLIBC_2.27): Likewise.
14409         * wcsmbs/Versions (GLIBC_2.27): Likewise.
14410         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
14411         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14412         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14413         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14414         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14415         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14416         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14417         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14418         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14419         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14420         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14422         Likewise.
14423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14424         Likewise.
14425         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14426         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14427         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14428         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14429         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14430         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14431         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14432         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14433         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14434         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14435         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14436         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14437         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
14438         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14439
14440 2017-11-27  Andreas Schwab  <schwab@suse.de>
14441
14442         * elf/Makefile (dl-routines): Add dl-sort-maps.
14443         * elf/dl-sort-maps.c: New file.
14444         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
14445         (_dl_sort_maps): Declare.
14446         * elf/dl-fini.c (_dl_sort_fini): Remove.
14447         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
14448         * elf/dl-close.c (_dl_close_worker): Likewise.
14449         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
14450         open-coding it.
14451         * elf/dl-open.c (dl_open_worker): Likewise.
14452
14453 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
14454
14455         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
14456         using libm_alias_float128.
14457         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
14458         Likewise.
14459         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
14460         Likewise.
14461         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
14462         (setpayloadsigf128): Likewise.
14463         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
14464         Likewise.
14465         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
14466         Likewise.
14467
14468         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
14469         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
14470         -mfloat128 to CFLAGS.
14471         ($(foreach
14472         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
14473         Likewise.
14474         (CFLAGS-libm-test-support-float64x.c): New variable.
14475         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
14476         $(f128-loader-link) to gnulib-tests.
14477
14478         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
14479         (libm_alias_float128_other_r): If
14480         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
14481         alias.
14482         (libm_alias_float128_r): Add semicolon after weak_alias call.
14483         * sysdeps/generic/libm-alias-ldouble.h
14484         (libm_alias_ldouble_other_r_f128): New macro.
14485         (libm_alias_ldouble_other_r_f64x): Likewise.
14486         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
14487         and libm_alias_ldouble_other_r_f64x.
14488         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
14489         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
14490         (libm_alias_ldouble_other_r_f128): New macro.
14491         (libm_alias_ldouble_other_r_f64x): Likewise.
14492         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
14493         and libm_alias_ldouble_other_r_f64x.
14494
14495         * stdlib/strfroml.c: Always include <stdlib.h>.
14496         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
14497         undefine as macro and define as weak alias.
14498         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
14499         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
14500         <stdlib.h>.
14501         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
14502         Define and later undefine as macro and define as weak alias.
14503
14504         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
14505         Define and later undefine as macro.  Define as weak alias if
14506         [!USE_WIDE_CHAR].
14507         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
14508         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
14509         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
14510         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
14511         Define and later undefine as macro.  Define as weak alias if
14512         [!USE_WIDE_CHAR].
14513         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
14514         Define and later undefine as macro.  Define as weak alias if
14515         [USE_WIDE_CHAR].
14516         * sysdeps/ieee754/float128/strtof128_l.c
14517         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
14518         Define and later undefine as macro.  Define as weak alias if
14519         [!USE_WIDE_CHAR].
14520         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
14521         Define and later undefine as macro.  Define as weak alias if
14522         [USE_WIDE_CHAR].
14523         * sysdeps/ieee754/ldbl-128/strtold_l.c
14524         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14525         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
14526         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14527         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
14528         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
14529         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14530         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
14531         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14532         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
14533         * sysdeps/ieee754/ldbl-96/strtold_l.c
14534         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14535         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
14536         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14537         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
14538
14539         * math/test-float64x.h: New file.
14540         * math/Makefile (type-float64x-yes): New variable.
14541         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
14542
14543         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
14544         function-like macro.
14545         (min_of_type_): Likewise.
14546         (min_of_type_l): Likewise.
14547         (min_of_type_f128): Likewise.
14548         (min_of_type): Pass () as last argument of __MATH_TG.
14549
14550         * stdlib/tst-strtod-round-skeleton.c
14551         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
14552         headers.
14553
14554         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
14555         for combinations of long double with _Float64 and _Float64x.
14556
14557         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
14558         (__DECL_SIMD_cosf32): Likewise.
14559         (__DECL_SIMD_cosf64): Likewise.
14560         (__DECL_SIMD_cosf32x): Likewise.
14561         (__DECL_SIMD_cosf64x): Likewise.
14562         (__DECL_SIMD_cosf128x): Likewise.
14563         (__DECL_SIMD_sinf16): Likewise.
14564         (__DECL_SIMD_sinf32): Likewise.
14565         (__DECL_SIMD_sinf64): Likewise.
14566         (__DECL_SIMD_sinf32x): Likewise.
14567         (__DECL_SIMD_sinf64x): Likewise.
14568         (__DECL_SIMD_sinf128x): Likewise.
14569         (__DECL_SIMD_sincosf16): Likewise.
14570         (__DECL_SIMD_sincosf32): Likewise.
14571         (__DECL_SIMD_sincosf64): Likewise.
14572         (__DECL_SIMD_sincosf32x): Likewise.
14573         (__DECL_SIMD_sincosf64x): Likewise.
14574         (__DECL_SIMD_sincosf128x): Likewise.
14575         (__DECL_SIMD_logf16): Likewise.
14576         (__DECL_SIMD_logf32): Likewise.
14577         (__DECL_SIMD_logf64): Likewise.
14578         (__DECL_SIMD_logf32x): Likewise.
14579         (__DECL_SIMD_logf64x): Likewise.
14580         (__DECL_SIMD_logf128x): Likewise.
14581         (__DECL_SIMD_expf16): Likewise.
14582         (__DECL_SIMD_expf32): Likewise.
14583         (__DECL_SIMD_expf64): Likewise.
14584         (__DECL_SIMD_expf32x): Likewise.
14585         (__DECL_SIMD_expf64x): Likewise.
14586         (__DECL_SIMD_expf128x): Likewise.
14587         (__DECL_SIMD_powf16): Likewise.
14588         (__DECL_SIMD_powf32): Likewise.
14589         (__DECL_SIMD_powf64): Likewise.
14590         (__DECL_SIMD_powf32x): Likewise.
14591         (__DECL_SIMD_powf64x): Likewise.
14592         (__DECL_SIMD_powf128x): Likewise.
14593
14594         * stdlib/Versions (libc): Move entries for wcstof128 and
14595         wcstof128_l to ....
14596         * wcsmbs/Versions (libc): ... here.
14597         Include <float128-abi.h>.
14598
14599 2017-11-24  Florian Weimer  <fweimer@redhat.com>
14600
14601         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14602         bits/mman-shared.h.
14603         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
14604         <bits/mman-shared.h>.
14605         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
14606         to ...
14607         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
14608         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
14609         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
14610         <bits/mman-shared.h>.
14611
14612 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14613
14614         [BZ #22457]
14615         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
14616         posix_memalign/free.
14617         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
14618
14619 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
14620
14621         [BZ #22469]
14622         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
14623         and implement the collation rules for pl from CLDR on top of that.
14624         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
14625         of locales to be built for testing.
14626         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
14627
14628 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
14629
14630         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
14631         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
14632         libm_alias_ldouble_other.
14633         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
14634         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
14635         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
14636         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
14637         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
14638         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
14639         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
14640         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
14641         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
14642         libm_alias_ldouble_r.
14643         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
14644         libm_alias_ldouble_other.
14645         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
14646         (log10l): Likewise.
14647         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
14648         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
14649         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
14650         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
14651         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
14652         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
14653         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
14654         (atan2l): Likewise.
14655         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
14656         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
14657         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
14658         libm_alias_ldouble.
14659         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
14660         (cosl): Likewise.
14661         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
14662         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
14663         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
14664         (expl): Likewise.
14665         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
14666         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
14667         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
14668         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
14669         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
14670         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
14671         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
14672         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
14673         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
14674         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
14675         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
14676         libm_alias_ldouble.
14677         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
14678         libm_alias_ldouble_other.
14679         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
14680         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
14681         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
14682         libm_alias_ldouble.
14683         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
14684         libm_alias_ldouble_other.
14685         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
14686         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
14687         * sysdeps/ia64/fpu/w_lgammal_main.c
14688         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
14689         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
14690
14691 2017-11-23  Florian Weimer  <fweimer@redhat.com>
14692
14693         * malloc/malloc.c (tcache_thread_shutdown): Rename from
14694         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
14695         alike.  Remove freeres marker.
14696         * malloc/arena.c (arena_thread_freeres): Call
14697         tcache_thread_shutdown.
14698
14699 2017-11-23  Florian Weimer  <fweimer@redhat.com>
14700
14701         [BZ #22459]
14702         Export nscd hash function as __nss_hash.
14703         * include/nss.h (__nss_hash): Declare.
14704         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
14705         symbol.
14706         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
14707         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
14708         of __nscd_hash.
14709         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
14710         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
14711         * nss/Makefiles (routines): Add nss_hash.
14712         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
14713         * nss/nss_hash.c: Rename from nis/nis_hash.c.
14714         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
14715         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
14716
14717 2017-11-23  Florian Weimer  <fweimer@redhat.com>
14718
14719         [BZ #22478]
14720         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
14721         Return error code, not -1.
14722         * signal/tst-sigwait-eintr.c: New file.
14723         * signal/Makefile (tests): Add tst-sigwait-eintr.
14724
14725 2017-11-23  Florian Weimer  <fweimer@redhat.com>
14726
14727         Linux: Add memfd_create system call wrapper
14728         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
14729         tst-memfd_create.
14730         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
14731         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
14732         [__USE_GNU] (memfd_create): Declare.
14733         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
14734         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
14735         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
14736         * sysdeps/unix/sysv/linux/**.abilist: Update.
14737         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
14738
14739 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
14740
14741         * localedata/gen-locale.sh: Fix typo in variable name.
14742
14743         * resolv/res_debug.c (p_secstodate): Condition definition on
14744         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
14745         directly as __p_secstodate, and as a compat symbol.  Do not use
14746         libresolv_hidden_def.
14747         * resolv/resolv.h (p_secstodate): Remove macro and function
14748         declaration.
14749         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
14750         using p_secstodate.
14751         * include/resolv.h (__p_secstodate): Do not use
14752         libresolv_hidden_proto.
14753         * resolv/Makefile (tests): Move tst-p_secstodate to ....
14754         (tests-internal): ... here.
14755         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
14756         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
14757         and declare and use __p_secstodate and use compat_symbol_reference
14758         in that case.
14759         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
14760         implementation returning 77.
14761
14762         [BZ #22463]
14763         * resolv/res_debug.c: Include <libc-diag.h>.
14764         (p_secstodate): Assert time_t at least as wide as u_long.  On
14765         overflow, use integer seconds since the epoch as output, or use
14766         "<overflow>" as output and set errno to EOVERFLOW if integer
14767         seconds since the epoch would be 14 or more characters.
14768         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
14769         for sprintf call.
14770         * resolv/tst-p_secstodate.c: New file.
14771         * resolv/Makefile (tests): Add tst-p_secstodate.
14772         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
14773
14774         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
14775         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
14776         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
14777
14778 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
14779
14780         * posix/regcomp.c (init_word_char): Add comments.
14781
14782 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
14783
14784         [BZ #22447]
14785         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
14786         strlen to compute length of ut_user and set trailing NUL byte of
14787         result explicitly.
14788
14789 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
14790
14791         [BZ #15537]
14792         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
14793         using “copy "iso14651_t1"” and then implementing the
14794         collation rules for lv from CLDR on top of that.
14795         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
14796         of locales to be built for testing.
14797         * lv_LV.UTF-8.in: New file with test data to test the Latvian
14798         sorting.
14799
14800 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
14801
14802         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
14803         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
14804         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
14805         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
14806         [__USE_MISC] (MADV_HWPOISON): New macro.
14807         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
14808
14809 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14810
14811         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
14812         -Wmissing-braces on GCC 4.9.
14813
14814 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
14815
14816         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
14817         * sysdeps/s390/s390-32/start.S (_start): Likewise
14818         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
14819         (thread_start): Likewise.
14820         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
14821         (thread_start): Likewise.
14822         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
14823         (__makecontext_ret): Likewise.
14824         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
14825         (__makecontext_ret): Likewise.
14826
14827 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
14828
14829         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
14830         __wcschrnul): Remove attribute_hidden.
14831
14832 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
14833
14834         regex: don't assume uint64_t or uint32_t
14835         This avoids -Werror=overflow errors for 32-bit systems in
14836         the 64-bit case.  Problem reported by Joseph Myers in:
14837         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
14838         Also, when this code is used in Gnulib it ports to platforms
14839         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
14840         them, and on some 32-bit compilers there is no uint64_t.
14841         Problem reported by Gianluigi Tiesi in:
14842         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
14843         * posix/regcomp.c (init_word_char): Don't assume that the types
14844         uint64_t and uint32_t exist.  Adapted from Gnulib patch
14845         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
14846         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
14847
14848 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14849
14850         * sysdeps/aarch64/memset-reg.h: New file.
14851         * sysdeps/aarch64/memset.S: Use it.
14852         (__memset): Rename to MEMSET macro.
14853         [ZVA_MACRO]: Use zva_macro.
14854         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14855         Add memset_generic and memset_falkor.
14856         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14857         (__libc_ifunc_impl_list): Add memset ifuncs.
14858         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
14859         local variable zva_size.
14860         * sysdeps/aarch64/multiarch/memset.c: New file.
14861         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
14862         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
14863         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
14864         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14865         (DCZID_DZP_MASK): New macro.
14866         (DCZID_BS_MASK): Likewise.
14867         (init_cpu_features): Read and set zva_size.
14868         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
14869         (struct cpu_features): New member zva_size.
14870
14871         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
14872         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
14873         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
14874
14875         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
14876         backwards.  Fix timing computation.
14877         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
14878         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
14879         on memset by N at a time.  Fix timing computation.
14880
14881 2017-11-20  Florian Weimer  <fweimer@redhat.com>
14882
14883         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
14884         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
14885
14886 2017-11-19  Florian Weimer  <fweimer@redhat.com>
14887
14888         manual: Document mprotect
14889         * manual/memory.texi (Memory Protection): New section.
14890         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
14891         documentation of PROT_* flags and reference the Memory Protection
14892         section instead.
14893
14894 2017-11-19  Florian Weimer  <fweimer@redhat.com>
14895
14896         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
14897         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
14898         (Scatter-Gather): ... to here.  Remove misleading comment.
14899
14900 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
14901
14902         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
14903         style.
14904
14905         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
14906         when /proc/<pid>/setgroups does not exist.
14907
14908 2017-11-18  Florian Weimer  <fweimer@redhat.com>
14909
14910         * sysdeps/unix/sysv/linux/tst-ttyname.c
14911         (become_root_in_mount_ns): Remove.
14912         (do_in_chroot_1): Call support_enter_mount_namespace.
14913         (do_in_chroot_2): Likewise.
14914         (do_test): Call support_become_root early.
14915
14916 2017-11-18  Florian Weimer  <fweimer@redhat.com>
14917
14918         * support/namespace.h (support_enter_mount_namespace): Declare.
14919         * support/support_enter_mount_namespace.c: New file.
14920         * support/Makefile (libsupport-routines): Add
14921         support_enter_mount_namespace.
14922
14923 2017-11-18  Florian Weimer  <fweimer@redhat.com>
14924
14925         * support/temp_file.c (support_create_temp_directory): Use
14926         test_dir and do not rely on the presence of the XXXXXX suffix.
14927         * support/temp_file.h (support_create_temp_directory): Update
14928         comment.
14929         * support/tst-xreadlink.c (do_test): Adjust.
14930         * support/support_chroot.c (support_chroot_create): Likewise.
14931
14932 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14933
14934         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
14935         macro.
14936         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
14937         htm-no-suspend.
14938
14939 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
14940
14941         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
14942         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
14943         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
14944         (ceill): Define using libm_alias_ldouble.
14945         * sysdeps/x86_64/fpu/s_copysignl.S: Include
14946         <libm-alias-ldouble.h>.
14947         (copysignl): Define using libm_alias_ldouble.
14948         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
14949         (fabsl): Define using libm_alias_ldouble.
14950         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
14951         (floorl): Define using libm_alias_ldouble.
14952         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14953         (fmaxl): Define using libm_alias_ldouble.
14954         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14955         (fminl): Define using libm_alias_ldouble.
14956         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
14957         (llrintl): Define using libm_alias_ldouble.
14958         (lrintl): Likewise.
14959         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
14960         <libm-alias-ldouble.h>.
14961         (nearbyintl): Define using libm_alias_ldouble.
14962         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
14963         (truncl): Define using libm_alias_ldouble.
14964         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
14965         <libm-alias-ldouble.h>.
14966         (lrintl): Define using libm_alias_ldouble.
14967
14968         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
14969         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
14970         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
14971         (asinhl): Define using libm_alias_ldouble.
14972         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
14973         (atanl): Define using libm_alias_ldouble.
14974         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
14975         (cbrtl): Define using libm_alias_ldouble.
14976         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
14977         (ceill): Define using libm_alias_ldouble.
14978         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
14979         (copysignl): Define using libm_alias_ldouble.
14980         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
14981         (fabsl): Define using libm_alias_ldouble.
14982         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
14983         (floorl): Define using libm_alias_ldouble.
14984         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14985         (fmaxl): Define using libm_alias_ldouble.
14986         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14987         (fminl): Define using libm_alias_ldouble.
14988         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
14989         (frexpl): Define using libm_alias_ldouble.
14990         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
14991         (llrintl): Define using libm_alias_ldouble.
14992         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
14993         (logbl): Define using libm_alias_ldouble.
14994         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
14995         (lrintl): Define using libm_alias_ldouble.
14996         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
14997         (nearbyintl): Define using libm_alias_ldouble.
14998         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
14999         (nextafterl): Define using libm_alias_ldouble.
15000         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
15001         (remquol): Define using libm_alias_ldouble.
15002         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
15003         (rintl): Define using libm_alias_ldouble.
15004         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
15005         (truncl): Define using libm_alias_ldouble.
15006         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
15007         (fmaxl): Define using libm_alias_ldouble.
15008         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
15009         (fminl): Define using libm_alias_ldouble.
15010
15011         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
15012         to C syntax instead of availability and properties of types.
15013         * bits/floatn.h [!__ASSEMBLER]: Likewise.
15014         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
15015         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
15016         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
15017         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
15018         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
15019
15020 2017-11-17  Florian Weimer  <fweimer@redhat.com>
15021
15022         support_become_root: Enable file creation in namespaces.
15023         * support/support_become_root.c (setup_mapping): New function.
15024         (support_become_root): Call it.
15025
15026 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
15027
15028         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
15029         macro.
15030
15031 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15032
15033         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
15034         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
15035
15036 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
15037
15038         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
15039
15040         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15041         version to 4.14.
15042
15043 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15044
15045         * INSTALL: Fix botched up regeneration.
15046
15047         * NEWS: Update sourceare link to https.
15048         * configure.ac: Likewise.
15049         * crypt/md5test-giant.c: Likewise.
15050         * dlfcn/bug-atexit1.c: Likewise.
15051         * dlfcn/bug-atexit2.c: Likewise.
15052         * localedata/README: Likewise.
15053         * malloc/tst-mallocfork.c: Likewise.
15054         * manual/install.texi: Likewise.
15055         * nptl/tst-pthread-getattr.c: Likewise.
15056         * stdio-common/tst-fgets.c: Likewise.
15057         * stdio-common/tst-fwrite.c: Likewise.
15058         * sunrpc/Makefile: Likewise.
15059         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
15060         * wcsmbs/tst-mbrtowc2.c: Likewise.
15061         * configure: Regenerate.
15062         * INSTALL: Regenerate.
15063
15064 2017-11-15  Martin Sebor  <msebor@redhat.com>
15065
15066         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
15067         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
15068         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
15069
15070 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
15071
15072         [BZ #22145]
15073         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
15074         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
15075
15076         [BZ #22145]
15077         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
15078         Defer is_pty check until end of the function.
15079         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15080
15081         [BZ #22145]
15082         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
15083         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
15084         (ttyname): Likewise.
15085         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
15086         (__ttyname_r): Likewise.
15087
15088         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
15089         int to bool.
15090
15091         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
15092
15093         * manual/terminal.texi (Is It a Terminal):
15094         Mention ENODEV for ttyname and ttyname_r.
15095
15096 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
15097
15098         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
15099         constant and macro.
15100
15101         * sysdeps/unix/sysv/linux/bits/mman-linux.h
15102         [__USE_MISC] (MADV_WIPEONFORK): New macro.
15103         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
15104         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
15105         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
15106         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
15107
15108 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15109
15110         * signal/sigrelse.c (sigrelse): Optimize implementation.
15111
15112         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
15113         (__sigpause): Rely on __sigsuspend to implement single thread
15114         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
15115
15116 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
15117
15118         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15119         kernel version to 4.14.
15120
15121 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
15122
15123         [BZ #22442]
15124         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
15125         Check if ifname is too long.
15126
15127 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
15128
15129         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
15130
15131 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
15132
15133         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
15134         was accidentally lost.
15135
15136 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
15137
15138         * localedata/locales/az_IR: Add standard copyright header.
15139
15140 2017-11-15  Florian Weimer  <fweimer@redhat.com>
15141
15142         [BZ #22439]
15143         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
15144         not just the top one.  Output a new "subheaps" statistic.
15145
15146 2017-11-15  Florian Weimer  <fweimer@redhat.com>
15147
15148         [BZ #22408]
15149         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
15150         under the per-arena lock.
15151         * malloc/Makefile (tests): Add tst-malloc_info.
15152         (tst-malloc_info): Link with libpthread.
15153         * malloc/tst-malloc_info.c: New file.
15154
15155 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
15156
15157         [BZ #21660]
15158         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
15159         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
15160         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
15161         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
15162         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
15163         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
15164         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
15165         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
15166         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
15167         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
15168         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
15169         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
15170         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
15171         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
15172         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
15173         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
15174         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
15175         (__floating_type): Likewise.
15176         (__real_integer_type): Likewise.
15177         (__complex_integer_type): Likewise.
15178         (__expr_is_real): Likewise.
15179         (__tgmath_real_type_sub): Likewise.
15180         (__tgmath_real_type): Likewise.
15181         (__tgmath_complex_type_sub): Likewise.
15182         (__tgmath_complex_type): Likewise.
15183         (__TGMATH_F128): Likewise.
15184         (__TGMATH_CF128): Likewise.
15185         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
15186         new macros.
15187         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
15188         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
15189         Likewise.
15190         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
15191         Likewise.
15192         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
15193         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
15194         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
15195         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
15196         Likewise.
15197         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
15198         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
15199         Likewise.
15200         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
15201         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
15202         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
15203         Likewise.
15204         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
15205         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
15206         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
15207         (cimag): Likewise.
15208         (creal): Likewise.
15209
15210 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
15211
15212         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
15213         for stpncpy calls for GCC 8.
15214         (test_strncat): Disable -Wstringop-truncation warning for strncat
15215         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
15216         strncat call for GCC 7.
15217         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
15218         calls for GCC 8.
15219         (test_memcmp): Use memcpy instead of strncpy for calls not copying
15220         trailing NUL.
15221
15222         * string/bug-strncat1.c: Include <libc-diag.h>.
15223         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
15224
15225 2017-11-13  Claude Paroz  <claude@2xlibre.net>
15226
15227         [BZ #22387]
15228         * localedata/locales/aa_DJ: Improved readibility by replacing
15229         <Uxxxx> sequences in the ASCII printable range by their ASCII
15230         character equivalents.
15231         * localedata/locales/aa_ER: Likewise.
15232         * localedata/locales/aa_ER@saaho: Likewise.
15233         * localedata/locales/aa_ET: Likewise.
15234         * localedata/locales/af_ZA: Likewise.
15235         * localedata/locales/agr_PE: Likewise.
15236         * localedata/locales/ak_GH: Likewise.
15237         * localedata/locales/am_ET: Likewise.
15238         * localedata/locales/anp_IN: Likewise.
15239         * localedata/locales/ar_AE: Likewise.
15240         * localedata/locales/ar_BH: Likewise.
15241         * localedata/locales/ar_DZ: Likewise.
15242         * localedata/locales/ar_EG: Likewise.
15243         * localedata/locales/ar_IN: Likewise.
15244         * localedata/locales/ar_IQ: Likewise.
15245         * localedata/locales/ar_JO: Likewise.
15246         * localedata/locales/ar_KW: Likewise.
15247         * localedata/locales/ar_LB: Likewise.
15248         * localedata/locales/ar_LY: Likewise.
15249         * localedata/locales/ar_MA: Likewise.
15250         * localedata/locales/ar_OM: Likewise.
15251         * localedata/locales/ar_QA: Likewise.
15252         * localedata/locales/ar_SA: Likewise.
15253         * localedata/locales/ar_SD: Likewise.
15254         * localedata/locales/ar_SS: Likewise.
15255         * localedata/locales/ar_SY: Likewise.
15256         * localedata/locales/ar_TN: Likewise.
15257         * localedata/locales/ar_YE: Likewise.
15258         * localedata/locales/as_IN: Likewise.
15259         * localedata/locales/ast_ES: Likewise.
15260         * localedata/locales/ayc_PE: Likewise.
15261         * localedata/locales/az_AZ: Likewise.
15262         * localedata/locales/az_IR: Likewise.
15263         * localedata/locales/be_BY: Likewise.
15264         * localedata/locales/be_BY@latin: Likewise.
15265         * localedata/locales/bem_ZM: Likewise.
15266         * localedata/locales/ber_DZ: Likewise.
15267         * localedata/locales/ber_MA: Likewise.
15268         * localedata/locales/bg_BG: Likewise.
15269         * localedata/locales/bhb_IN: Likewise.
15270         * localedata/locales/bho_IN: Likewise.
15271         * localedata/locales/bi_VU: Likewise.
15272         * localedata/locales/bn_BD: Likewise.
15273         * localedata/locales/bn_IN: Likewise.
15274         * localedata/locales/bo_CN: Likewise.
15275         * localedata/locales/bo_IN: Likewise.
15276         * localedata/locales/br_FR: Likewise.
15277         * localedata/locales/brx_IN: Likewise.
15278         * localedata/locales/bs_BA: Likewise.
15279         * localedata/locales/byn_ER: Likewise.
15280         * localedata/locales/ca_AD: Likewise.
15281         * localedata/locales/ca_ES: Likewise.
15282         * localedata/locales/ca_FR: Likewise.
15283         * localedata/locales/ca_IT: Likewise.
15284         * localedata/locales/ce_RU: Likewise.
15285         * localedata/locales/chr_US: Likewise.
15286         * localedata/locales/cmn_TW: Likewise.
15287         * localedata/locales/crh_UA: Likewise.
15288         * localedata/locales/cs_CZ: Likewise.
15289         * localedata/locales/csb_PL: Likewise.
15290         * localedata/locales/cv_RU: Likewise.
15291         * localedata/locales/cy_GB: Likewise.
15292         * localedata/locales/da_DK: Likewise.
15293         * localedata/locales/de_AT: Likewise.
15294         * localedata/locales/de_BE: Likewise.
15295         * localedata/locales/de_CH: Likewise.
15296         * localedata/locales/de_DE: Likewise.
15297         * localedata/locales/de_IT: Likewise.
15298         * localedata/locales/de_LI: Likewise.
15299         * localedata/locales/de_LU: Likewise.
15300         * localedata/locales/doi_IN: Likewise.
15301         * localedata/locales/dv_MV: Likewise.
15302         * localedata/locales/dz_BT: Likewise.
15303         * localedata/locales/el_CY: Likewise.
15304         * localedata/locales/el_GR: Likewise.
15305         * localedata/locales/en_AG: Likewise.
15306         * localedata/locales/en_AU: Likewise.
15307         * localedata/locales/en_BW: Likewise.
15308         * localedata/locales/en_CA: Likewise.
15309         * localedata/locales/en_DK: Likewise.
15310         * localedata/locales/en_GB: Likewise.
15311         * localedata/locales/en_HK: Likewise.
15312         * localedata/locales/en_IE: Likewise.
15313         * localedata/locales/en_IL: Likewise.
15314         * localedata/locales/en_IN: Likewise.
15315         * localedata/locales/en_NG: Likewise.
15316         * localedata/locales/en_NZ: Likewise.
15317         * localedata/locales/en_PH: Likewise.
15318         * localedata/locales/en_SG: Likewise.
15319         * localedata/locales/en_US: Likewise.
15320         * localedata/locales/en_ZA: Likewise.
15321         * localedata/locales/en_ZM: Likewise.
15322         * localedata/locales/en_ZW: Likewise.
15323         * localedata/locales/eo: Likewise.
15324         * localedata/locales/es_AR: Likewise.
15325         * localedata/locales/es_BO: Likewise.
15326         * localedata/locales/es_CL: Likewise.
15327         * localedata/locales/es_CO: Likewise.
15328         * localedata/locales/es_CR: Likewise.
15329         * localedata/locales/es_CU: Likewise.
15330         * localedata/locales/es_DO: Likewise.
15331         * localedata/locales/es_EC: Likewise.
15332         * localedata/locales/es_ES: Likewise.
15333         * localedata/locales/es_GT: Likewise.
15334         * localedata/locales/es_HN: Likewise.
15335         * localedata/locales/es_MX: Likewise.
15336         * localedata/locales/es_NI: Likewise.
15337         * localedata/locales/es_PA: Likewise.
15338         * localedata/locales/es_PE: Likewise.
15339         * localedata/locales/es_PR: Likewise.
15340         * localedata/locales/es_PY: Likewise.
15341         * localedata/locales/es_SV: Likewise.
15342         * localedata/locales/es_US: Likewise.
15343         * localedata/locales/es_UY: Likewise.
15344         * localedata/locales/es_VE: Likewise.
15345         * localedata/locales/et_EE: Likewise.
15346         * localedata/locales/eu_ES: Likewise.
15347         * localedata/locales/eu_ES@euro: Likewise.
15348         * localedata/locales/fa_IR: Likewise.
15349         * localedata/locales/ff_SN: Likewise.
15350         * localedata/locales/fi_FI: Likewise.
15351         * localedata/locales/fil_PH: Likewise.
15352         * localedata/locales/fo_FO: Likewise.
15353         * localedata/locales/fr_BE: Likewise.
15354         * localedata/locales/fr_CA: Likewise.
15355         * localedata/locales/fr_CH: Likewise.
15356         * localedata/locales/fr_FR: Likewise.
15357         * localedata/locales/fr_LU: Likewise.
15358         * localedata/locales/fur_IT: Likewise.
15359         * localedata/locales/fy_DE: Likewise.
15360         * localedata/locales/fy_NL: Likewise.
15361         * localedata/locales/ga_IE: Likewise.
15362         * localedata/locales/gd_GB: Likewise.
15363         * localedata/locales/gez_ER: Likewise.
15364         * localedata/locales/gez_ET: Likewise.
15365         * localedata/locales/gl_ES: Likewise.
15366         * localedata/locales/gu_IN: Likewise.
15367         * localedata/locales/gv_GB: Likewise.
15368         * localedata/locales/ha_NG: Likewise.
15369         * localedata/locales/hak_TW: Likewise.
15370         * localedata/locales/he_IL: Likewise.
15371         * localedata/locales/hi_IN: Likewise.
15372         * localedata/locales/hif_FJ: Likewise.
15373         * localedata/locales/hne_IN: Likewise.
15374         * localedata/locales/hr_HR: Likewise.
15375         * localedata/locales/hsb_DE: Likewise.
15376         * localedata/locales/ht_HT: Likewise.
15377         * localedata/locales/hu_HU: Likewise.
15378         * localedata/locales/hy_AM: Likewise.
15379         * localedata/locales/i18n: Likewise.
15380         * localedata/locales/ia_FR: Likewise.
15381         * localedata/locales/id_ID: Likewise.
15382         * localedata/locales/ig_NG: Likewise.
15383         * localedata/locales/ik_CA: Likewise.
15384         * localedata/locales/is_IS: Likewise.
15385         * localedata/locales/it_CH: Likewise.
15386         * localedata/locales/it_IT: Likewise.
15387         * localedata/locales/iu_CA: Likewise.
15388         * localedata/locales/ja_JP: Likewise.
15389         * localedata/locales/ka_GE: Likewise.
15390         * localedata/locales/kk_KZ: Likewise.
15391         * localedata/locales/kl_GL: Likewise.
15392         * localedata/locales/kn_IN: Likewise.
15393         * localedata/locales/ko_KR: Likewise.
15394         * localedata/locales/kok_IN: Likewise.
15395         * localedata/locales/ks_IN: Likewise.
15396         * localedata/locales/ks_IN@devanagari: Likewise.
15397         * localedata/locales/ku_TR: Likewise.
15398         * localedata/locales/kw_GB: Likewise.
15399         * localedata/locales/ky_KG: Likewise.
15400         * localedata/locales/lb_LU: Likewise.
15401         * localedata/locales/lg_UG: Likewise.
15402         * localedata/locales/li_BE: Likewise.
15403         * localedata/locales/li_NL: Likewise.
15404         * localedata/locales/lij_IT: Likewise.
15405         * localedata/locales/ln_CD: Likewise.
15406         * localedata/locales/lo_LA: Likewise.
15407         * localedata/locales/lt_LT: Likewise.
15408         * localedata/locales/lv_LV: Likewise.
15409         * localedata/locales/lzh_TW: Likewise.
15410         * localedata/locales/mag_IN: Likewise.
15411         * localedata/locales/mai_IN: Likewise.
15412         * localedata/locales/mg_MG: Likewise.
15413         * localedata/locales/mhr_RU: Likewise.
15414         * localedata/locales/mi_NZ: Likewise.
15415         * localedata/locales/mk_MK: Likewise.
15416         * localedata/locales/ml_IN: Likewise.
15417         * localedata/locales/mn_MN: Likewise.
15418         * localedata/locales/mni_IN: Likewise.
15419         * localedata/locales/mr_IN: Likewise.
15420         * localedata/locales/ms_MY: Likewise.
15421         * localedata/locales/mt_MT: Likewise.
15422         * localedata/locales/my_MM: Likewise.
15423         * localedata/locales/nan_TW: Likewise.
15424         * localedata/locales/nan_TW@latin: Likewise.
15425         * localedata/locales/nb_NO: Likewise.
15426         * localedata/locales/nds_DE: Likewise.
15427         * localedata/locales/nds_NL: Likewise.
15428         * localedata/locales/ne_NP: Likewise.
15429         * localedata/locales/nhn_MX: Likewise.
15430         * localedata/locales/niu_NU: Likewise.
15431         * localedata/locales/niu_NZ: Likewise.
15432         * localedata/locales/nl_AW: Likewise.
15433         * localedata/locales/nl_BE: Likewise.
15434         * localedata/locales/nl_NL: Likewise.
15435         * localedata/locales/nn_NO: Likewise.
15436         * localedata/locales/nr_ZA: Likewise.
15437         * localedata/locales/nso_ZA: Likewise.
15438         * localedata/locales/oc_FR: Likewise.
15439         * localedata/locales/om_ET: Likewise.
15440         * localedata/locales/om_KE: Likewise.
15441         * localedata/locales/or_IN: Likewise.
15442         * localedata/locales/os_RU: Likewise.
15443         * localedata/locales/pa_IN: Likewise.
15444         * localedata/locales/pa_PK: Likewise.
15445         * localedata/locales/pap_AW: Likewise.
15446         * localedata/locales/pap_CW: Likewise.
15447         * localedata/locales/pl_PL: Likewise.
15448         * localedata/locales/ps_AF: Likewise.
15449         * localedata/locales/pt_BR: Likewise.
15450         * localedata/locales/pt_PT: Likewise.
15451         * localedata/locales/quz_PE: Likewise.
15452         * localedata/locales/raj_IN: Likewise.
15453         * localedata/locales/ro_RO: Likewise.
15454         * localedata/locales/ru_RU: Likewise.
15455         * localedata/locales/ru_UA: Likewise.
15456         * localedata/locales/rw_RW: Likewise.
15457         * localedata/locales/sa_IN: Likewise.
15458         * localedata/locales/sat_IN: Likewise.
15459         * localedata/locales/sc_IT: Likewise.
15460         * localedata/locales/sd_IN: Likewise.
15461         * localedata/locales/sd_IN@devanagari: Likewise.
15462         * localedata/locales/se_NO: Likewise.
15463         * localedata/locales/sgs_LT: Likewise.
15464         * localedata/locales/shs_CA: Likewise.
15465         * localedata/locales/si_LK: Likewise.
15466         * localedata/locales/sid_ET: Likewise.
15467         * localedata/locales/sk_SK: Likewise.
15468         * localedata/locales/sl_SI: Likewise.
15469         * localedata/locales/sm_WS: Likewise.
15470         * localedata/locales/so_DJ: Likewise.
15471         * localedata/locales/so_ET: Likewise.
15472         * localedata/locales/so_KE: Likewise.
15473         * localedata/locales/so_SO: Likewise.
15474         * localedata/locales/sq_AL: Likewise.
15475         * localedata/locales/sq_MK: Likewise.
15476         * localedata/locales/sr_ME: Likewise.
15477         * localedata/locales/sr_RS: Likewise.
15478         * localedata/locales/sr_RS@latin: Likewise.
15479         * localedata/locales/ss_ZA: Likewise.
15480         * localedata/locales/st_ZA: Likewise.
15481         * localedata/locales/sv_FI: Likewise.
15482         * localedata/locales/sv_SE: Likewise.
15483         * localedata/locales/sw_KE: Likewise.
15484         * localedata/locales/sw_TZ: Likewise.
15485         * localedata/locales/szl_PL: Likewise.
15486         * localedata/locales/ta_IN: Likewise.
15487         * localedata/locales/ta_LK: Likewise.
15488         * localedata/locales/tcy_IN: Likewise.
15489         * localedata/locales/te_IN: Likewise.
15490         * localedata/locales/tg_TJ: Likewise.
15491         * localedata/locales/th_TH: Likewise.
15492         * localedata/locales/the_NP: Likewise.
15493         * localedata/locales/ti_ER: Likewise.
15494         * localedata/locales/ti_ET: Likewise.
15495         * localedata/locales/tig_ER: Likewise.
15496         * localedata/locales/tk_TM: Likewise.
15497         * localedata/locales/tl_PH: Likewise.
15498         * localedata/locales/tn_ZA: Likewise.
15499         * localedata/locales/to_TO: Likewise.
15500         * localedata/locales/tpi_PG: Likewise.
15501         * localedata/locales/tr_CY: Likewise.
15502         * localedata/locales/tr_TR: Likewise.
15503         * localedata/locales/ts_ZA: Likewise.
15504         * localedata/locales/tt_RU: Likewise.
15505         * localedata/locales/tt_RU@iqtelif: Likewise.
15506         * localedata/locales/ug_CN: Likewise.
15507         * localedata/locales/uk_UA: Likewise.
15508         * localedata/locales/unm_US: Likewise.
15509         * localedata/locales/ur_IN: Likewise.
15510         * localedata/locales/ur_PK: Likewise.
15511         * localedata/locales/uz_UZ: Likewise.
15512         * localedata/locales/uz_UZ@cyrillic: Likewise.
15513         * localedata/locales/ve_ZA: Likewise.
15514         * localedata/locales/vi_VN: Likewise.
15515         * localedata/locales/wa_BE: Likewise.
15516         * localedata/locales/wae_CH: Likewise.
15517         * localedata/locales/wal_ET: Likewise.
15518         * localedata/locales/wo_SN: Likewise.
15519         * localedata/locales/xh_ZA: Likewise.
15520         * localedata/locales/yi_US: Likewise.
15521         * localedata/locales/yo_NG: Likewise.
15522         * localedata/locales/yue_HK: Likewise.
15523         * localedata/locales/yuw_PG: Likewise.
15524         * localedata/locales/zh_CN: Likewise.
15525         * localedata/locales/zh_HK: Likewise.
15526         * localedata/locales/zh_SG: Likewise.
15527         * localedata/locales/zh_TW: Likewise.
15528         * localedata/locales/zu_ZA: Likewise.
15529
15530 2017-11-13  Florian Weimer  <fweimer@redhat.com>
15531
15532         * support/next_to_fault.h, support/next_to_fault.c: New files.
15533         * support/Makefile (libsupport-routines): Add next_to_fault.
15534         * resolv/tst-inet_pton.c (struct next_to_fault)
15535         (next_to_fault_allocate, next_to_fault_free): Remove.
15536         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
15537
15538 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
15539
15540         * elf/dl-support.c: Include <dl-procruntime.c>.
15541         * include/link.h: Include <link_map.h>.
15542         * sysdeps/generic/dl-procruntime.c: New file.
15543         * sysdeps/generic/link_map.h: Likewise.
15544         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
15545         the writable ld.so namespace.
15546
15547 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
15548
15549         timezone: pacify GCC -Wstringop-truncation
15550         Problem reported by Martin Sebor in:
15551         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
15552         * timezone/zic.c (writezone): Use memcpy, not strncpy.
15553
15554 2017-11-12  Florian Weimer  <fweimer@redhat.com>
15555
15556         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
15557         tst-xreadlink.
15558         (tests): Add tst-xreadlink.
15559         * support/support.h (xstrndup): Declare.
15560         * support/xunistd.h (xunlink, xreadlink): Declare.
15561         * support/temp_file.h (support_create_temp_directory): Declare.
15562         * support/temp_file.c (support_create_temp_directory): New function.
15563         * support/support_chroot.c (support_chroot_create): Use it.
15564         * support/xreadlink.c: New file.
15565         * support/xstrndup.c: Likewise.
15566         * support/xunlink.c: Likewise.
15567         * support/tst-xreadlink.c: Likewise.
15568
15569 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
15570
15571         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
15572
15573 2017-11-11  Florian Weimer  <fweimer@redhat.com>
15574
15575         [BZ #22409]
15576         [BZ #22412]
15577         * resolv/res_comp.c (printable_string, binary_hnok)
15578         (binary_leading_dash): New functions.
15579         (res_hnok): Reimplement using these functions and ns_name_pton.
15580         (res_ownok): Likewise.
15581         (res_mailok): Reimplement using printable_string, ns_name_pton and
15582         binary_hnok.
15583         (res_dnok): Reimplement using printable_string and ns_name_pton.
15584         * resolv/tst-res_hnok.c (tests): Add additional tests.
15585         (LETTERDIGITS, PRINTABLE): Define.
15586         (do_test): Adjust one_char results.
15587
15588 2017-11-11  Florian Weimer  <fweimer@redhat.com>
15589
15590         [BZ #22413]
15591         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
15592         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
15593
15594 2017-11-11  Florian Weimer  <fweimer@redhat.com>
15595
15596         * resolv/tst-ns_name_pton.c: New file.
15597         * resolv/Makefile (tests): Add tst-ns_name_pton.
15598         (tst-ns_name_pton): Link against libresolv.
15599
15600 2017-11-11  Florian Weimer  <fweimer@redhat.com>
15601
15602         * resolv/tst-res_hnok.c: New file.
15603         * resolv/Makefile (tests): Add tst-res_hnok.
15604         (tst-res_hnok): Link against libresolv.
15605
15606 2017-11-11  Florian Weimer  <fweimer@redhat.com>
15607
15608         * resolv/tst-resolv-network.c: Use test framework instead explicit
15609         main function.
15610
15611 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
15612
15613         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
15614         <jmp_buf-macros.h>.
15615         [!_ISOMAC] (STR_HELPER): New.
15616         [!_ISOMAC] (STR): Likewise.
15617         [!_ISOMAC] (TEST_SIZE): Likewise.
15618         [!_ISOMAC] (TEST_ALIGN): Likewise.
15619         [!_ISOMAC] (TEST_OFFSET): Likewise.
15620         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
15621         field offsets of jmp_buf as well as sigjmp_buf.
15622         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
15623         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
15624         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
15625         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
15626         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
15627         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
15628         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
15629         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
15630         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
15631         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
15632         Likewise.
15633         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
15634         Likewise.
15635         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
15636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
15637         Likewise.
15638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
15639         Likewise.
15640         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
15641         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
15642         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
15643         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
15644         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
15645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
15646         Likewise.
15647         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
15648         Likewise.
15649         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
15650         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
15651         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
15652
15653 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
15654
15655         * include/float.h
15656         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15657         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
15658         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15659         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
15660         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15661         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
15662         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15663         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
15664         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15665         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
15666         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15667         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
15668         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15669         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
15670         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15671         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
15672         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15673         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
15674         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15675         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
15676         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15677         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
15678         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15679         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
15680         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15681         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
15682         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15683         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
15684         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15685         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
15686         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15687         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
15688         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15689         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
15690         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15691         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
15692         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15693         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
15694         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15695         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
15696         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15697         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
15698         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15699         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
15700         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15701         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
15702         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15703         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
15704         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15705         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
15706         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15707         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
15708         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15709         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
15710         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15711         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
15712         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15713         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
15714         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15715         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
15716         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15717         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
15718         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15719         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
15720         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15721         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
15722         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15723         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
15724         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15725         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
15726         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15727         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
15728         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15729         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
15730         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15731         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
15732         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15733         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
15734         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15735         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
15736         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15737         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
15738         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15739         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
15740         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15741         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
15742         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15743         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
15744
15745         * stdlib/tst-strtod.h (F16): New macro.
15746         (F32): Likewise.
15747         (F64): Likewise.
15748         (F32X): Likewise.
15749         (F64X): Likewise.
15750         (F128X): Likewise.
15751         (IF_FLOAT16): Likewise.
15752         (IF_FLOAT32): Likewise.
15753         (IF_FLOAT64): Likewise.
15754         (IF_FLOAT32X): Likewise.
15755         (IF_FLOAT64X): Likewise.
15756         (IF_FLOAT128X): Likewise.
15757         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
15758         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
15759         (STRTOD_TEST_FOREACH): Likewise.
15760         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
15761         (CHOOSE_f64): Likewise.
15762         (CHOOSE_f32x): Likewise.
15763         (CHOOSE_f64x): Likewise.
15764
15765 2017-11-07  Andreas Schwab  <schwab@suse.de>
15766
15767         * nptl/Makefile (tests-internal): Remove tst-typesizes.
15768
15769 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
15770
15771         [BZ #22403]
15772         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
15773         to be escaped.
15774         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
15775         to be escaped.
15776
15777 2017-11-07  Claude Paroz  <claude@2xlibre.net>
15778
15779         [BZ #22403]
15780         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
15781         to be escaped.
15782         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
15783         to be escaped.
15784         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
15785         to be escaped.
15786
15787 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15788
15789         [BZ #22298]
15790         * nptl/allocatestack.c (allocate_stack): Check if
15791         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
15792         __PTHREAD_MUTEX_HAVE_PREV is defined.
15793         * nptl/descr.h (pthread): Likewise.
15794         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
15795         Likewise.
15796         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15797         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15798         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
15799         * sysdeps/nptl/bits/thread-shared-types.h
15800         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
15801         defines.
15802         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
15803         of __WORDSIZE for internal layout.
15804         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
15805         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
15806         instead of __WORDSIZE whether to use an union for __spins and __list
15807         fields.
15808         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
15809         case.
15810         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
15811         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
15812         defines.
15813         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
15814         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15815         Likewise.
15816         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
15817         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15818         Likewise.
15819         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
15820         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15821         Likewise.
15822         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
15823         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15824         Likewise.
15825         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
15826         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15827         Likewise.
15828         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
15829         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15830         Likewise.
15831         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
15832         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15833         Likewise.
15834         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
15835         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15836         Likewise.
15837         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
15838         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15839         Likewise.
15840         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
15841         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15842         Likewise.
15843         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
15844         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15845         Likewise.
15846         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
15847         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15848         Likewise.
15849         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
15850         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15851         Likewise.
15852         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
15853         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15854         Likewise.
15855
15856         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
15857         New macros.
15858         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
15859         checks for expected input type size.
15860         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
15861         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15862         Likewise.
15863         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15864         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
15865         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
15866         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
15867         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
15868         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
15869         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
15870         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
15871         superflous runtime assert check.
15872         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
15873         Likewise.
15874         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
15875         Likewise.
15876         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
15877         Likewise.
15878         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
15879         Likewise.
15880         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
15881         Likewise.
15882         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
15883         Likewise.
15884         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
15885         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
15886         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
15887         Likewise.
15888         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
15889         Likewise.
15890         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
15891         Likewise.
15892         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
15893         Likewise.
15894         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
15895         Likewise.
15896         * nptl/pthread_attr_setinheritsched.c
15897         (__pthread_attr_setinheritsched): Likewise.
15898         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
15899         Likewise.
15900         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
15901         Likewise.
15902         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
15903         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
15904         __old_pthread_attr_setstack): Likewise.
15905         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
15906         Likewise.
15907         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
15908         Likewise.
15909         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
15910         Likewise.
15911         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
15912         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
15913         Likewise.
15914         * nptl/tst-typesizes.c: Remove file.
15915
15916         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
15917         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
15918         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
15919         checks for internal pthread_mutex_t offsets.
15920         * sysdeps/aarch64/nptl/pthread-offsets.h
15921         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
15922         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
15923         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
15924         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
15925         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
15926         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
15927         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
15928         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
15929         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
15930         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
15931         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
15932         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
15933         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
15934         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
15935         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
15936         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
15937         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
15938         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
15939
15940 2017-11-07  Florian Weimer  <fweimer@redhat.com>
15941
15942         * bits/mman-linux.h: Move ...
15943         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
15944         comment.
15945         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
15946         outdated comment.
15947
15948 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15949
15950         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
15951         Redefine STRNLEN as __strnlen_power8.
15952
15953 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15954
15955         * signal/sighold.c (sighold): Optimize implementation.
15956
15957         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
15958         __NR_rt_sigqueueinfo.
15959
15960         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
15961         __sigtimedwait.
15962         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
15963         assume __NR_rt_sigtimedwait.
15964         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
15965         and add LIBC_CANCEL_HANDLED for cancellation marking.
15966         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
15967
15968         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
15969         (sysdeps_routines): Add memchr_noneon.
15970         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
15971         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
15972         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
15973         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
15974         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
15975         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
15976         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
15977
15978         * sysdeps/arm/arm-ifunc.h: New file.
15979         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
15980         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
15981         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
15982         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
15983         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
15984         (__memcpy_neon): Avoid create hidden alias.
15985         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
15986         (__memcpy_vfp): Likewise.
15987         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
15988         (sysdep_routines): Add memcpy_arm.
15989         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
15990
15991 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
15992
15993         [BZ #22362]
15994         * Makerules (make-link-multidir): New.
15995         * config.make.in (multidir): New.
15996         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
15997         * configure: Regenerated.
15998         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
15999         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
16000         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
16001         New target.
16002
16003 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
16004
16005         [BZ #22402]
16006         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
16007         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
16008
16009 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
16010
16011         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
16012         to be escaped.
16013
16014 2017-11-04  Florian Weimer  <fweimer@redhat.com>
16015
16016         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
16017
16018 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
16019
16020         * math/math.h [__HAVE_DISTINCT_FLOAT16
16021         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
16022         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
16023         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
16024         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
16025         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
16026         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
16027         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
16028         (__MATH_TG_F32): New macro.
16029         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
16030         (__MATH_TG_F64X): Likewise.
16031         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
16032         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
16033
16034 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
16035
16036         * po/de.po: Update translations.
16037         * po/ru.po: Likewise.
16038
16039 2017-11-03  Florian Weimer  <fweimer@redhat.com>
16040
16041         * manual/filesys.texi (Hard Links): Document linkat.
16042
16043 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
16044
16045         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
16046         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
16047         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
16048         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
16049         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
16050         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
16051         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
16052         the same as _Float128.
16053         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
16054         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
16055         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
16056
16057         * stdlib/stdlib.h
16058         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
16059         Declare.
16060         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
16061         Likewise.
16062         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
16063         Likewise.
16064         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16065         (strtof32x): Likewise.
16066         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16067         (strtof64x): Likewise.
16068         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16069         (strtof128x): Likewise.
16070         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16071         (strfromf16): Likewise.
16072         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16073         (strfromf32): Likewise.
16074         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16075         (strfromf64): Likewise.
16076         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16077         (strfromf32x): Likewise.
16078         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16079         (strfromf64x): Likewise.
16080         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16081         (strfromf128x): Likewise.
16082         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
16083         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
16084         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
16085         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
16086         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
16087         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
16088
16089 2017-11-03  Richard Henderson  <rth@twiddle.net>
16090
16091         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
16092
16093 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16094
16095         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
16096
16097 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16098
16099         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
16100         DT_TLSDESC_GOT initialization.
16101         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
16102         (_dl_tlsdesc_resolve_hold): Likewise.
16103         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
16104         (_dl_tlsdesc_resolve_hold): Likewise.
16105         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
16106         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
16107
16108 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16109
16110         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
16111
16112 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16113
16114         [BZ #18572]
16115         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
16116         non-lazily for R_ARM_TLS_DESC.
16117
16118 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16119
16120         [BZ #17078]
16121         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
16122         R_ARM_TLS_DESC case.
16123         (elf_machine_lazy_rel): Remove the prelink check.
16124
16125 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16126
16127         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
16128         DT_TLSDESC_GOT initialization.
16129         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
16130         (_dl_tlsdesc_resolve_rela): Likewise.
16131         (_dl_tlsdesc_resolve_hold): Likewise.
16132         (_dl_tlsdesc_undefweak): Remove ldar.
16133         (_dl_tlsdesc_dynamic): Likewise.
16134         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
16135         (_dl_tlsdesc_resolve_rela): Likewise.
16136         (_dl_tlsdesc_resolve_hold): Likewise.
16137         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
16138         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
16139         (_dl_tlsdesc_resolve_rela): Likewise.
16140         (_dl_tlsdesc_resolve_hold): Likewise.
16141
16142 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16143
16144         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
16145         binding and initialization non-lazily for R_AARCH64_TLSDESC.
16146
16147 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16148
16149         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
16150         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
16151
16152 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
16153
16154         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
16155         Declare.
16156         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
16157         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
16158         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
16159         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
16160         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
16161         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
16162         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
16163         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
16164         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
16165         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
16166         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
16167
16168 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
16169
16170         [BZ #22382]
16171         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
16172         * localedata/locales/tpi_PG: Add standard header.
16173
16174 2017-11-02  Florian Weimer  <fweimer@redhat.com>
16175
16176         test-errno-linux: quotactl can fail with EPERM in containers.
16177         * sysdeps/unix/sysv/linux/test-errno-linux.c
16178         (LIST, LIST_FORWARD): New macros.
16179         (check_error_in_list): New function.
16180         (test_wrp_rv): Accept list of permitted error codes.
16181         (test_wrp_rv2): Remove.
16182         (test_wrp): Call test_wrp_rv with list of error codes.
16183         (test_wrp2): Accept list of error codes.
16184         (do_test): Adjust.  Allow EPERM for quotactl.
16185
16186 2017-11-02  Florian Weimer  <fweimer@redhat.com>
16187
16188         * stdio-common/bug16.c (do_test): Use array_length.
16189         * stdio-common/errlist.c (_sys_nerr): Likewise.
16190         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
16191         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
16192         * stdio-common/psiginfo.c (psiginfo): Use array_length.
16193         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
16194         (do_test): Use array_length.
16195         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
16196         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
16197         * stdio-common/tst-printf-round.c (do_test): Likewise.
16198         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
16199         (CHECK): Use array_length.
16200         * stdio-common/tstdiomisc.c (t3, F): Likewise.
16201         * stdio-common/tstscanf.c (main): Likewise.
16202         * stdio-common/vfprintf.c (process_string_arg): Likewise.
16203
16204 2017-11-02  Florian Weimer  <fweimer@redhat.com>
16205
16206         Add array_length and array_end macros.
16207         * include/array_length.h: New file.
16208
16209 2017-11-02  Florian Weimer  <fweimer@redhat.com>
16210
16211         [BZ #22332]
16212         * posix/tst-glob-tilde.c (do_noescape): New variable.
16213         (one_test): Process it.
16214         (do_test): Set do_noescape.  Add unescaping test case.
16215
16216 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
16217
16218         * math/complex.h
16219         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
16220         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
16221         with appropriate macros defined and undefined.
16222         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
16223         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16224         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
16225         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16226         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
16227         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16228         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
16229         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16230         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
16231         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16232
16233         * math/complex.h
16234         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
16235         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
16236         that for long double.  Do not condition define and undefine of
16237         _Mdouble_complex_ on [__CFLOAT128].
16238
16239 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
16240
16241         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
16242         of <sysdeps/generic/sysdep.h>.
16243         (ALIGNARG): Removed.
16244         (ASM_SIZE_DIRECTIVE): Likewise.
16245         (ENTRY): Likewise.
16246         (END): Likewise.
16247         (ENTRY_CHK): Likewise.
16248         (END_CHK): Likewise.
16249         (syscall_error): Likewise.
16250         (mcount): Likewise.
16251         (PSEUDO_END): Likewise.
16252         (L): Likewise.
16253         (atom_text_section): Likewise.
16254         * sysdeps/x86/sysdep.h: New file.
16255         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
16256         of <sysdeps/generic/sysdep.h>.
16257         (ALIGNARG): Removed.
16258         (ASM_SIZE_DIRECTIVE): Likewise.
16259         (ENTRY): Likewise.
16260         (END): Likewise.
16261         (ENTRY_CHK): Likewise.
16262         (END_CHK): Likewise.
16263         (syscall_error): Likewise.
16264         (mcount): Likewise.
16265         (PSEUDO_END): Likewise.
16266         (L): Likewise.
16267         (atom_text_section): Likewise.
16268
16269 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
16270
16271         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
16272         category of LC_CTYPE set to "i18n:2012".
16273         * localedata/locales/i18n_ctype: Regenerate.
16274
16275 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
16276
16277         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
16278         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
16279         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
16280         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
16281
16282         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
16283         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
16284         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
16285         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
16286
16287 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
16288
16289         * math/complex.h
16290         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
16291         New macro.
16292         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
16293         Likewise.
16294         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
16295         Likewise.
16296         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16297         (CMPLXF32X): Likewise.
16298         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16299         (CMPLXF64X): Likewise.
16300         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16301         (CMPLXF128X): Likewise.
16302
16303         * math/math.h
16304         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
16305         (__MATH_EVAL_FMT2): Define to add 0.0f.
16306
16307 2017-10-31  Alan Modra  <amodra@gmail.com>
16308
16309         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
16310         include sysdep.h.
16311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
16312         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
16313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
16314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
16315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
16316         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
16317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
16318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
16319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
16320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
16321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
16322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
16323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
16324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
16325         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
16326         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
16327         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
16328         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
16329         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
16330         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
16331         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
16332         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
16333         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
16334         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
16335         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
16336         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
16337         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
16338         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
16339         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
16340         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
16341         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
16342         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
16343         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
16344         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
16345         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
16346         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
16347         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
16348         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
16349         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
16350         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
16351         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
16352         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
16353         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
16354         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
16355         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
16356         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
16357         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
16358         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
16359         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
16360         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
16361         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
16362         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
16363         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
16364         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
16365         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
16366         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
16367         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
16368         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
16369         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
16370         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
16371         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
16372         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
16373         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
16374         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
16375         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
16376         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
16377         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
16378         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
16379         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
16380
16381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
16382         include sysdep.h and math_ldbl_opt.h.
16383
16384         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
16385         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
16386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
16387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
16388         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
16389         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
16390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
16391         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
16392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
16393         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
16394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
16395         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
16396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
16397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
16398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
16399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
16400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
16401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
16402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
16403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
16404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
16405         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
16406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
16407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
16408         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
16409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
16410
16411 2017-10-31  Alan Modra  <amodra@gmail.com>
16412
16413         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
16414         string/strncase_l.c, not string/strncase.c.
16415         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
16416         (libc_hidden_def): Redefine.
16417
16418 2017-10-31  Alan Modra  <amodra@gmail.com>
16419
16420         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
16421         (__STRCMP, STRCMP, __strcasecmp_l): Define.
16422         (__strcasecmp): Don't define.
16423
16424 2017-10-31  Alan Modra  <amodra@gmail.com>
16425
16426         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
16427         IS_IN (libc).
16428         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
16429         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
16430         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
16431
16432 2017-10-31  Alan Modra  <amodra@gmail.com>
16433
16434         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
16435         USE_AS_STPNCPY.
16436
16437 2017-10-31  Alan Modra  <amodra@gmail.com>
16438
16439         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
16440         Redefine only when SHARED.
16441
16442 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
16443
16444         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
16445         Include <bits/math-finite.h> with appropriate macros defined and
16446         undefined.
16447         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
16448         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
16449         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
16450         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
16451         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
16452
16453         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
16454         [!_Mlong_double_] (_Mlong_double_): Likewise.
16455         [!_Mfloat16_] (_Mfloat16_): Likewise.
16456         [!_Mfloat32_] (_Mfloat32_): Likewise.
16457         [!_Mfloat64_] (_Mfloat64_): Likewise.
16458         [!_Mfloat128_] (_Mfloat128_): Likewise.
16459         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
16460         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
16461         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
16462         (_Mdouble_): Define without indirection through those macros.
16463         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
16464         [!_Mfloat128_] (_Mfloat128_): Likewise.
16465         [_Mlong_double_] (_Mlong_double_): Likewise.
16466         (_Mdouble_): Define without indirection through those macros.
16467         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
16468         not add -D_Mlong_double_=double.
16469         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
16470         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
16471
16472 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
16473
16474         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
16475
16476 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
16477
16478         * sysdeps/x86/libc-start.c: Reformat.
16479
16480 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
16481
16482         [BZ #22353]
16483         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
16484         (1): Renamed to ...
16485         (L(Src0)): This.
16486         (L(Src1)): New.
16487         (L(Src2)): Likewise.
16488         (L(1)): Renamed to ...
16489         (L(Src3)): This.
16490
16491 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
16492
16493         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
16494         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
16495         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
16496         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
16497         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
16498         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
16499         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
16500         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
16501         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
16502         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
16503         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
16504         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
16505         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
16506         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
16507         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
16508         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
16509         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
16510         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
16511         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
16512         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
16513         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
16514         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
16515         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
16516         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
16517         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
16518         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
16519         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
16520         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
16521         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
16522         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
16523         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
16524         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
16525         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
16526         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
16527         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
16528         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
16529         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
16530         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
16531         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
16532         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
16533         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
16534         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
16535         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
16536         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
16537         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
16538         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
16539         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
16540         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
16541         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
16542         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
16543         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
16544         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
16545         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
16546         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
16547         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
16548         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
16549         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
16550         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
16551         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
16552         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
16553         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
16554         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
16555         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
16556         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
16557         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
16558         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
16559
16560 2017-10-30  Florian Weimer  <fweimer@redhat.com>
16561
16562         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
16563         always defined.
16564         * io/tst-mkdirat.c (do_test): Likewise.
16565         * io/tst-mkfifoat.c (do_test): Likewise.
16566         * io/tst-mknodat.c (do_test): Likewise.
16567         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
16568         * locale/programs/locale.c (select_dirs): Likewise.
16569         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
16570         * posix/bug-glob2.c (my_readdir): Likewise.
16571         * posix/tst-dir.c (main): Likewise.
16572         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
16573         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
16574
16575 2017-10-30  Florian Weimer  <fweimer@redhat.com>
16576
16577         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
16578         just __USE_GNU.
16579
16580 2017-10-30  Florian Weimer  <fweimer@redhat.com>
16581
16582         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
16583         Convert to support/test-driver.c.
16584         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
16585         New macro parameters.
16586         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
16587         * posix/tst-gnuglob.c: New file.
16588         * posix/tst-gnuglob64.c: Likewise.
16589         * posix/Makefile (tests): Add tst-gnuglob64.
16590
16591 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
16592
16593         [BZ #19485]
16594         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
16595         and use a better translation for March in “mon”.
16596         * localedata/locales/csb_PL: Use more ASCII to improve the
16597         readability of the source.
16598
16599 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
16600
16601         [BZ #13953]
16602         * localedata/locales/km_KH: Use ASCII as much
16603         as possible for better readability of the source and
16604         remove useless comments.
16605         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
16606         was commented out and apparently wrong anyway because it was
16607         using Lao characters. If Buddhist era should be used
16608         for km_KH, a native speaker should write the correct formaat
16609         for Khmer.
16610         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
16611         (According to CLDR, the first weekday for Cambodia is Sunday).
16612         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
16613         (These were using Lao characters which must be wrong. If we get
16614         the correct data from a native speaker, we could add it back, until
16615         then it is better not to have name_mr and name_mrs at all than
16616         having it wrong).
16617
16618 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
16619
16620         * locale/loadlocale.c: Correct size of
16621         _nl_value_type_LC_<category> arrays.
16622
16623 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
16624
16625         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
16626         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
16627         with appropriate macros defined and undefined.
16628         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
16629         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
16630         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
16631         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
16632         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
16633
16634 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
16635
16636         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16637         "-O2 -march=i586".
16638
16639 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
16640
16641         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
16642         with lowercase letters to make it agree with CLDR.
16643
16644 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
16645
16646         [BZ #15260]
16647         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
16648         first letters of yesstr and nostr in yesexpr and noexpr,
16649         not for the full words.
16650         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
16651         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
16652         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
16653         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
16654         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
16655         first letters of yesstr and nostr in yesexpr and noexpr,
16656         until now only English was matched in yesexpr and noexpr.
16657         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
16658         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
16659         fil but not for tl. As tl and fil are very similar, using fil
16660         is probably better than using English.
16661
16662 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
16663
16664         [BZ #21706]
16665         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
16666         in yesstr and nostr.
16667
16668 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
16669
16670         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
16671         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
16672         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
16673         Likewise.
16674         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
16675         Likewise.
16676         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
16677         Likewise.
16678         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
16679         Likewise.
16680         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16681         (SNANF128X): Likewise.
16682
16683         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
16684         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
16685         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16686         (HUGE_VAL_F32): Likewise.
16687         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16688         (HUGE_VAL_F64): Likewise.
16689         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16690         (HUGE_VAL_F32X): Likewise.
16691         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16692         (HUGE_VAL_F64X): Likewise.
16693         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16694         (HUGE_VAL_F128X): Likewise.
16695
16696 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
16697
16698         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
16699         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
16700         for the br_FR locale.
16701
16702 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
16703
16704         [BZ #21706]
16705         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
16706
16707 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
16708
16709         * locale/programs/record-status.h: Define globals, and function
16710         prototypes. Move function bodies...
16711         * locale/programs/record-status.c: ... to here. New file.
16712         * iconv/Makefile (iconv_prog-modules): Add record-status.
16713         * locale/Makefile (lib-modules): Likewise.
16714         * iconv/iconv_prog.c: Remove verbose.
16715         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
16716         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
16717         record a warning about ASCII compatibility.
16718         * locale/programs/ld-monetary.c (monetary_finish): If
16719         warn_int_curr_symbol is true then record a warning about the symbol
16720         not being in our ISO 4217 list.
16721         * locale/programs/locale.c: Include record-status.h. Remove verbose.
16722         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
16723         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
16724         (OPT_NO_WARN): Define.
16725         (OPT_WARN): Define.
16726         (options): Add entry for --no-warnings, and --warnings.
16727         (set_warnings): New function to enable/disable warnings.
16728         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
16729         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
16730         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
16731         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
16732         Pass flags to generate_locale.
16733         (generate_locale): Accept new flag argument and pass it to localedef
16734         invocation.
16735         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
16736         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
16737
16738         * localedata/Makefile (test-input-data): Use full file name.
16739         * localedata/da_DK.in: Rename to...
16740         * localedata/da_DK.ISO-8859-1.in: ...this.
16741         * localedata/de_DE.in: Rename to...
16742         * localedata/de_DE.ISO-8859-1.in: ...this.
16743         * localedata/en_US.in: Rename to...
16744         * localedata/en_US.ISO-8859-1.in: ...this.
16745         * localedata/fr_FR.in: Rename to...
16746         * localedata/fr_FR.UTF-8.in: ... this.
16747         * localedata/hr_HR.in: Rename to...
16748         * localedata/hr_HR.ISO-8859-2.in: ...this.
16749         * localedata/hu_HU.in: Rename to...
16750         * localedata/hu_HU.UTF-8.in: ...this.
16751         * localedata/si_LK.in: Rename to...
16752         * localedata/si_LK.UTF-8.in: ...this.
16753         * localedata/sv_SE.in: Rename to...
16754         * localedata/sv_SE.ISO-8859-1.in: ...this.
16755         * localedata/tr_TR.in: Rename to...
16756         * localedata/tr_TR.UTF-8.in: ...this.
16757         * localedata/uk_UA.in: Rename to...
16758         * localedata/uk_UA.UTF-8.in: ...this.
16759         * localedata/sort-test.sh: Test file is locale name with the
16760         suffix.
16761
16762         * localedata/unicode-gen/Makefile (check_i18n): Rename to
16763         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
16764         file.
16765         * localedata/locales/i18n_ctype: Regenerate.
16766         * localedata/locales/tr_TR: Likewise.
16767         * localedata/locales/translit_circle: Likewise.
16768         * localedata/locales/translit_cjk_compat: Likewise.
16769         * localedata/locales/translit_combining: Likewise.
16770         * localedata/locales/translit_compat: Likewise.
16771         * localedata/locales/translit_font: Likewise.
16772         * localedata/locales/translit_fraction: Likewise.
16773
16774 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16775
16776         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
16777         lxvd2x/stxvd2x with lvx/stvx.
16778         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
16779
16780 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
16781
16782         * include/alloc_buffer.h: Replace "if if " with "if " in
16783         comments.
16784         * sysdeps/mips/memcpy.S: Likkewise.
16785         * sysdeps/mips/memset.S: Likewise.
16786         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
16787         Likewise.
16788         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
16789         Likewise.
16790         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
16791         Likewise.
16792
16793 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
16794
16795         [BZ #15261]
16796         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
16797         yesexpr and noexpr.
16798         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
16799         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
16800         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
16801         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
16802         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
16803         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
16804         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
16805
16806 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
16807
16808         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
16809         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
16810         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
16811         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
16812         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
16813         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
16814         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
16815         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
16816         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
16817         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
16818         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
16819         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
16820
16821 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
16822
16823         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
16824         as possible for better readability of the source.
16825         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
16826         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
16827         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
16828         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
16829         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
16830         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
16831         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
16832         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
16833         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
16834         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
16835         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
16836         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
16837         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
16838         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
16839         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
16840         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
16841         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
16842         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
16843         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
16844         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
16845         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
16846         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
16847         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
16848         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
16849         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
16850         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
16851         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
16852         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
16853         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
16854         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
16855         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
16856         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
16857         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
16858         * localedata/locales/en_US (LC_MESSAGES): Likewise.
16859         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
16860         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
16861         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
16862         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
16863         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
16864         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
16865         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
16866         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
16867         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
16868         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
16869         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
16870         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
16871         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
16872         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
16873         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
16874         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
16875         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
16876         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
16877         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
16878         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
16879         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
16880         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
16881         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
16882         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
16883         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
16884         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
16885         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
16886         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
16887         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
16888         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
16889         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
16890         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
16891         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
16892         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
16893         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
16894         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
16895         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
16896         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
16897         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
16898         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
16899         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
16900         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
16901         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
16902         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
16903         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
16904         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
16905         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
16906         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
16907         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
16908         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
16909         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
16910         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
16911         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
16912         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
16913         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
16914         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
16915         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
16916         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
16917         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
16918         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
16919         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
16920         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
16921         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
16922         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
16923         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
16924         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
16925         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
16926         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
16927         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
16928         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
16929         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
16930         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
16931         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
16932         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
16933         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
16934         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
16935         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
16936         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
16937         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
16938         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
16939         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
16940         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
16941         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
16942         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
16943         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
16944         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
16945         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
16946         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
16947         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
16948         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
16949         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
16950         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
16951         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
16952         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
16953         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
16954         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
16955         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
16956         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
16957         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
16958         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
16959         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
16960         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
16961         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
16962         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
16963         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
16964         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
16965         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
16966         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
16967         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
16968         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
16969         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
16970         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
16971         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
16972         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
16973         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
16974         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
16975         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
16976         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
16977         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
16978         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
16979         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
16980         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
16981         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
16982         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
16983         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
16984         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
16985         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
16986         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
16987         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
16988         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
16989         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
16990         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
16991         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
16992         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
16993         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
16994         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
16995         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
16996         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
16997         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
16998         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
16999
17000 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17001
17002         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
17003         (Use first letters of yesstr and nostr correctly instead of using
17004         full words).
17005
17006 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17007
17008         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
17009         (Use first letters of yesstr and nostr correctly).
17010
17011 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17012
17013         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
17014         also check for the first characters of yesstr and nostr.
17015         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
17016         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
17017
17018 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17019
17020         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
17021         also check for Chinese characters.
17022
17023 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17024
17025         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
17026         match also for the contents of yesstr and nostr. As the first letter
17027         of yesstr and nostr is equal, checking only for the first letter
17028         is not enough.
17029
17030 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17031
17032         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
17033         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
17034
17035 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17036
17037         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
17038         of main contributor.
17039
17040 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17041
17042         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
17043         instead of using English.
17044
17045 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17046
17047         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
17048         by including the first letters of nostr and yesexpr in the regexp.
17049         Also make it more readable by using ASCII where possible.
17050
17051 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
17052
17053         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
17054         the first letter of nostr in the regexp. It agrees with CLDR now.
17055         Also make it more readable by using ASCII where possible.
17056
17057 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
17058
17059         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
17060         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
17061         these strings contain a U+17D6 (which somewhat looks like a colon)
17062         instead of a real colon to separate the full words for “yes”
17063         and “no” from the single letter responses.
17064
17065 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
17066
17067         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
17068         it agree with CLDR (include the first letter of yesstr).
17069         Also make it more readable by using ASCII where possible.
17070
17071 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
17072
17073         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
17074         and improve yesexpr and noexpr. The yesstr and nostr apparently
17075         came from CLDR. And CLDR has a bug there: these strings contain
17076         a U+0903 (which looks like a colon) instead of a real colon
17077         to separate the full words for “yes” and “no” from the single
17078         letter responses.
17079
17080 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
17081
17082         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
17083         letters of the full yesstr and nostr in yesexpr and noexpr.
17084
17085 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
17086
17087         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
17088         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
17089         * localedata/locales/an_ES: Make source more readable by using ASCII
17090         where possible.
17091
17092 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
17093
17094         [BZ #20952]
17095         * localedata/locales/yuw_PG: New file.
17096         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
17097         * locale/iso-639.def: Add Yau (Uruwa).
17098
17099 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
17100
17101         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
17102
17103 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
17104
17105         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
17106         (__libc_realloc): Likewise.
17107         (_mid_memalign): Likewise.
17108         (__libc_calloc): Likewise.
17109
17110 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
17111
17112         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
17113         by adding the generic +1 and -0 as in all other locales.
17114         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
17115         day names and make it more readable by using ASCII where possible.
17116
17117 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
17118
17119         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
17120         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
17121
17122 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17123
17124         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
17125         WNOHANG in waitpid call.
17126
17127 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
17128
17129         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
17130         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
17131
17132         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
17133         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
17134         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
17135         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
17136         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
17137         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
17138         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
17139         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
17140         variables.
17141
17142 2017-10-23  Michael Collison  <michael.collison@arm.com>
17143
17144         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
17145         with __builtin_sqrt.
17146         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
17147         with __builtin_sqrtf.
17148         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
17149         with __builtin_ceil.
17150         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
17151         with __builtin_ceilf.
17152         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
17153         with __builtin_floor.
17154         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
17155         with __builtin_floorf.
17156         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
17157         with __builtin_fma.
17158         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
17159         with __builtin_fmaf.
17160         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
17161         with __builtin_fmax.
17162         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
17163         with __builtin_fmaxf.
17164         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
17165         with __builtin_fmin.
17166         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
17167         with __builtin_fminf.
17168         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
17169         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
17170         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
17171         with builtin_rint and conversion to int.
17172         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
17173         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
17174         with builtin_llround.
17175         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
17176         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
17177         with builtin_rint and conversion to long int.
17178         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
17179         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
17180         with builtin_lround.
17181         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
17182         with builtin_lroundf.
17183         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
17184         statements with __builtin_nearbyint.
17185         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
17186         statements with __builtin_nearbyintf.
17187         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
17188         with __builtin_rint.
17189         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
17190         with __builtin_rintf.
17191         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
17192         with __builtin_round.
17193         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
17194         with __builtin_roundf.
17195         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
17196         with __builtin_trunc.
17197         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
17198         with __builtin_truncf.
17199         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
17200         and s_l[l]round[f].c too.
17201
17202 2017-10-23  Alan Modra  <amodra@gmail.com>
17203
17204         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
17205         Adjust stack after restoring regs.  Add missing LR cfi_restore.
17206
17207 2017-10-23  Alan Modra  <amodra@gmail.com>
17208
17209         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
17210         Move LR save and frame setup/teardown and LR restore to
17211         immediately around memset call.  Provide cfi.
17212
17213 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17214
17215         * sysdeps/i386/fpu/e_powf.S: Removed.
17216         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
17217         * sysdeps/i386/fpu/w_powf.c: Likewise.
17218         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
17219         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17220         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17221         Add e_powf-sse2.
17222         (CFLAGS-e_powf-sse2.c): New.
17223         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
17224         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
17225
17226 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17227
17228         * sysdeps/i386/fpu/e_log2f.S: Removed.
17229         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
17230         * sysdeps/i386/fpu/w_log2f.c: Likewise.
17231         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
17232         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17233         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17234         Add e_log2f-sse2.
17235         (CFLAGS-e_log2f-sse2.c): New.
17236         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
17237         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
17238
17239 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17240
17241         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17242         Add e_powf-fma.
17243         (CFLAGS-e_powf-fma.c): New.
17244         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
17245         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
17246
17247 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17248
17249         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17250         Add e_log2f-fma.
17251         (CFLAGS-e_log2f-fma.c): New.
17252         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
17253         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
17254
17255 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17256
17257         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17258         Add e_logf-fma.
17259         (CFLAGS-e_logf-fma.c): New.
17260         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
17261         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
17262
17263 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17264
17265         * sysdeps/i386/fpu/e_logf.S: Removed.
17266         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
17267         * sysdeps/i386/fpu/w_logf.c: Likewise.
17268         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
17269         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
17270         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17271         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17272         Add e_logf-sse2.
17273         (CFLAGS-e_logf-sse2.c): New.
17274         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
17275         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
17276
17277 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17278
17279         * sysdeps/i386/fpu/e_exp2f.S: Removed.
17280         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
17281         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
17282         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17283         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17284         Add e_exp2f-sse2.
17285         (CFLAGS-e_exp2f-sse2.c): New.
17286         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
17287         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
17288
17289 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17290
17291         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17292         Add e_exp2f-fma.
17293         (CFLAGS-e_exp2f-fma.c): New.
17294         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
17295         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
17296
17297 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17298
17299         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
17300         * sysdeps/i386/fpu/e_expf.S: Likewise.
17301         * sysdeps/i386/fpu/math_errf.c: Likewise.
17302         * sysdeps/i386/fpu/w_expf.c: Likewise.
17303         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
17304         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
17305         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
17306         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
17307         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17308         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17309         Remove e_expf-ia32.
17310         (CFLAGS-e_expf-sse2.c): New.
17311         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
17312         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
17313
17314 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
17315
17316         * sysdeps/x86_64/fpu/e_expf.S: Removed.
17317         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
17318         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
17319         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
17320         e_expf.c.
17321         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
17322         New.
17323         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
17324         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
17325         Renamed to ...
17326         (__redirect_expf): This.
17327         (SYMBOL_NAME): Changed to expf.
17328         (__ieee754_expf): Renamed to ...
17329         (__expf): This.
17330         (__GI___expf): This.
17331         (__ieee754_expf): Add strong_alias.
17332         (__expf_finite): Likewise.
17333         (__expf): New.
17334         Include <sysdeps/ieee754/flt-32/e_expf.c>.
17335
17336 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
17337
17338         [BZ #22332]
17339         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
17340         unescaping.
17341
17342 2017-10-21  Florian Weimer  <fweimer@redhat.com>
17343
17344         * posix/Makefile (tests): Add tst-glob-tilde.
17345         (tests-special): Add tst-glob-tilde-mem.out
17346         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
17347         (tst-glob-tilde-mem.out): Add mtrace check.
17348         * posix/tst-glob-tilde.c: New file.
17349
17350 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
17351
17352         * bits/floatn-common.h: New file.
17353         * math/Makefile (headers): Add bits/floatn-common.h.
17354         * bits/floatn.h: Include <bits/floatn-common.h>.
17355         * sysdeps/ia64/bits/floatn.h: Likewise.
17356         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
17357         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
17358         * sysdeps/powerpc/bits/floatn.h: Likewise.
17359         * sysdeps/x86/bits/floatn.h: Likewise.
17360
17361 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17362
17363         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
17364         indicates whether compiler emits an warning for alias for
17365         functions with incompatible types.
17366
17367         [BZ #22273]
17368         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
17369         the auxiliary process is terminated by a signal before calling _exit
17370         or execve.
17371
17372 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17373
17374         [BZ #21265]
17375         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
17376         New.
17377         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
17378         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
17379         and bit_arch_XSAVEC_Usable if needed.
17380         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
17381         and bit_arch_Use_dl_runtime_resolve_opt.
17382         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
17383         Removed.
17384         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
17385         (bit_arch_Prefer_No_AVX512): Updated.
17386         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
17387         (bit_arch_XSAVEC_Usable): New.
17388         (STATE_SAVE_OFFSET): Likewise.
17389         (STATE_SAVE_MASK): Likewise.
17390         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
17391         (cpu_features): Add xsave_state_size and xsave_state_full_size.
17392         (index_arch_Use_dl_runtime_resolve_opt): Removed.
17393         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
17394         (index_arch_XSAVEC_Usable): New.
17395         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17396         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
17397         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
17398         is enabled.
17399         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
17400         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
17401         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
17402         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
17403         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
17404         _dl_runtime_resolve_xsavec.
17405         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
17406         Removed.
17407         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
17408         instead of VEC_SIZE.
17409         (REGISTER_SAVE_BND0): Removed.
17410         (REGISTER_SAVE_BND1): Likewise.
17411         (REGISTER_SAVE_BND3): Likewise.
17412         (REGISTER_SAVE_RAX): Always defined to 0.
17413         (VMOV): Removed.
17414         (_dl_runtime_resolve_avx): Likewise.
17415         (_dl_runtime_resolve_avx_slow): Likewise.
17416         (_dl_runtime_resolve_avx_opt): Likewise.
17417         (_dl_runtime_resolve_avx512): Likewise.
17418         (_dl_runtime_resolve_avx512_opt): Likewise.
17419         (_dl_runtime_resolve_sse): Likewise.
17420         (_dl_runtime_resolve_sse_vex): Likewise.
17421         (USE_FXSAVE): New.
17422         (_dl_runtime_resolve_fxsave): Likewise.
17423         (USE_XSAVE): Likewise.
17424         (_dl_runtime_resolve_xsave): Likewise.
17425         (USE_XSAVEC): Likewise.
17426         (_dl_runtime_resolve_xsavec): Likewise.
17427         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
17428         Removed.
17429         (_dl_runtime_resolve_avx512_opt): Likewise.
17430         (_dl_runtime_resolve_avx): Likewise.
17431         (_dl_runtime_resolve_avx_opt): Likewise.
17432         (_dl_runtime_resolve_sse): Likewise.
17433         (_dl_runtime_resolve_sse_vex): Likewise.
17434         (_dl_runtime_resolve_fxsave): New.
17435         (_dl_runtime_resolve_xsave): Likewise.
17436         (_dl_runtime_resolve_xsavec): Likewise.
17437
17438 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
17439
17440         [BZ #22320]
17441         CVE-2017-15670
17442         * posix/glob.c (__glob): Fix one-byte overflow.
17443
17444 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
17445
17446         * malloc/malloc.c (sysdep-cancel.h): Add include.
17447
17448 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
17449
17450         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
17451
17452 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
17453
17454         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
17455         (tests): Remove $(objpfx)ga_test depdendency.
17456         * resolv/ga_test.c: Remove file.
17457
17458 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
17459
17460         [BZ #18812]
17461         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
17462         * localedata/locales/kab_DZ: New file.
17463
17464 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17465
17466         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
17467         _dl_relocate_static_pie instead of _dl_start to compute load
17468         address in static PIE.
17469
17470 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17471
17472         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
17473
17474 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
17475
17476         [BZ #13605]
17477         * localedata/SUPPORTED: Add shn_MM/UTF-8.
17478         * localedata/locales/shn_MM: New file.
17479
17480 2017-10-20  Florian Weimer  <fweimer@redhat.com>
17481
17482         [BZ #22321]
17483         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
17484         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
17485         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
17486         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
17487         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
17488         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
17489
17490 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
17491
17492         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
17493
17494 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
17495
17496         * sysdeps/mips/ieee754/bits/floatn.h: New file.
17497
17498         [BZ #22322]
17499         * sysdeps/mips/bits/long-double.h: Move to ....
17500         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
17501
17502 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
17503
17504         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
17505
17506 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
17507             H.J. Lu  <hongjiu.lu@intel.com>
17508
17509         [BZ #22299]
17510         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17511         GLRO(dl_platform) to NULL.
17512         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
17513         (modules-names): Add tst-platformmod-1 and
17514         x86_64/tst-platformmod-2.
17515         (CFLAGS-tst-platform-1.c): New.
17516         (CFLAGS-tst-platformmod-1.c): Likewise.
17517         (CFLAGS-tst-platformmod-2.c): Likewise.
17518         (LDFLAGS-tst-platformmod-2.so): Likewise.
17519         ($(objpfx)tst-platform-1): Likewise.
17520         ($(objpfx)tst-platform-1.out): Likewise.
17521         (tst-platform-1-ENV): Likewise.
17522         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
17523         * sysdeps/x86_64/tst-platform-1.c: New file.
17524         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
17525         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
17526
17527 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
17528
17529         [BZ #13994]
17530         * locale/iso-639.def: Add Karbi.
17531         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
17532         * localedata/locales/mjw_IN: New file.
17533
17534 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
17535
17536         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
17537         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
17538         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
17539         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
17540         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
17541         (libm_alias_ldouble_other_r): Also create _Float128 alias.
17542         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
17543         <bits/floatn.h>.
17544         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
17545         (libm_alias_ldouble_other_r): Also create _Float128 alias.
17546         * manual/math.texi (Mathematics): Document additional architecture
17547         support for _Float128.
17548         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
17549         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17550         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17551         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17552         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17553         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17554         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17555         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17556         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17557         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17558         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17559         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17560         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17561         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17562         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17563
17564 2017-10-18  Renlin Li  <renlin.li@arm.com>
17565
17566         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
17567         _DYNAMIC symbol to calculate load address.
17568
17569 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
17570
17571         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
17572         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
17573         summary bits.
17574         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
17575         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
17576
17577 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
17578
17579         [BZ #16777]
17580         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
17581         and improve readability by using more ASCII.
17582         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
17583         and improve readability by using more ASCII.
17584
17585 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
17586
17587         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
17588         not all targets support atomics on bool.
17589
17590 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
17591
17592         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
17593         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
17594         __f128.
17595         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17596         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
17597         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17598         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
17599         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17600         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
17601
17602 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17603
17604         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
17605         defines.
17606
17607 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
17608
17609         [BZ #22159]
17610         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
17611         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
17612         (do_check_remalloced_chunk): Fix build bug.
17613         (do_check_malloc_state): Add assert that checks arena->top.
17614         (malloc_consolidate): Remove initialization.
17615         (int_mallinfo): Remove call to malloc_consolidate.
17616          (__libc_mallopt): Clarify why malloc_consolidate is needed.
17617
17618 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
17619
17620         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
17621         (have_fastchunks): Remove.
17622         (clear_fastchunks): Remove.
17623         (set_fastchunks): Remove.
17624         (malloc_state): Add have_fastchunks.
17625         (malloc_init_state): Use have_fastchunks.
17626         (do_check_malloc_state): Remove incorrect invariant checks.
17627         (_int_malloc): Use have_fastchunks.
17628         (_int_free): Likewise.
17629         (malloc_consolidate): Likewise.
17630
17631 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
17632
17633         * malloc/malloc.c (tcache_put): Inline.
17634         (tcache_get): Inline.
17635
17636 2017-10-17  Jordi Mallach  <jordi@gnu.org>
17637
17638         Aurelien Jarno  <aurelien@aurel32.net>
17639         [BZ #2522]
17640         * localedata/locales/ca_ES@valencia: New file.
17641         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
17642
17643 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
17644
17645         [BZ #22296]
17646         * math/math.h: Let signbit use the builtin in C++ mode with gcc
17647         < 6.x
17648
17649 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17650
17651         * scripts/build-many-glibcs.py (Context.add_all_configs):
17652         Add arm-linux-gnueabihf multiarch extra_glibcs.
17653
17654         * sysdeps/generic/ifunc-init.h: New file.
17655         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
17656
17657 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
17658
17659         [BZ #22019]
17660         * localedata/locales/el_GR: Set n_cs_precedes to 0.
17661         * localedata/locales/el_CY: copy "el_GR" because it is identical.
17662         * stdlib/tst-strfmon_l.c: adapt test case.
17663
17664 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
17665
17666         * sysdeps/generic/float128-abi.h: New file.
17667         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
17668         non-__prefixed symbols to ....
17669         * math/Versions: ... here.  Include <float128-abi.h>.
17670         * stdlib/Versions ... and here.  Include <float128-abi.h>
17671
17672 2017-10-16  Florian Weimer  <fweimer@redhat.com>
17673
17674         * version.h (VERSION): Switch to ".9000" as the development
17675         version suffix.
17676
17677 2017-10-16  Florian Weimer  <fweimer@redhat.com>
17678
17679         [BZ #22050]
17680         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
17681         compat_symbol_reference to access non-default version.
17682
17683 2017-10-16  Florian Weimer  <fweimer@redhat.com>
17684
17685         * malloc/Makefile (others-extras): Set to mcheck-init.o.
17686
17687 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
17688
17689         * include/shlib-compat.h (compat_symbol_reference): Update
17690         comment.
17691
17692 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
17693
17694         * math/Makefile (test-types): Add
17695         $(type-float128-$(float128-alias-fcts)).
17696         * math/test-float128.h (TYPE_STR): Define conditional on
17697         [FLT128_MANT_DIG == LDBL_MANT_DIG].
17698         (ULP_IDX): Likewise.
17699         (ULP_I_IDX): Likewise.
17700
17701         * stdlib/strtold.c: Include <bits/floatn.h>
17702         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
17703         and later undefine as macro.  Define as weak alias if
17704         [!USE_WIDE_CHAR].
17705         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
17706         and later undefine as macro.  Define as weak alias if
17707         [USE_WIDE_CHAR].
17708         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
17709         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
17710         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
17711         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
17712         Define and later undefine as macro.  Define as weak alias if
17713         [USE_WIDE_CHAR].
17714         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
17715         <bits/floatn.h>.
17716         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
17717         Define and later undefine as macro.  Define as weak alias if
17718         [!USE_WIDE_CHAR].
17719         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
17720         Define and later undefine as macro.  Define as weak alias if
17721         [USE_WIDE_CHAR].
17722
17723 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
17724
17725         * localedata/collate-test.c (allocate_arrays): Don't use \n in
17726         record_verbose messages.
17727
17728 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
17729
17730         [BZ #22052]
17731         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
17732         to silence -O3 -Wall warning with GCC 7.
17733
17734 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
17735
17736         * Makeconfig (+link-static-before-libc): Use the first of
17737         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
17738         * gmon/Makefile (tests): Add tst-gmon-static.
17739         (tests-static): Likewise.
17740         (CFLAGS-tst-gmon-static.c): New.
17741         (CRT-tst-gmon-static): Likewise.
17742         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
17743         (tst-gmon-static-ENV): Likewise.
17744         (tests-special): Likewise.
17745         ($(objpfx)tst-gmon-static.out): Likewise.
17746         (clean-tst-gmon-static-data): Likewise.
17747         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
17748         * gmon/tst-gmon-static-gprof.sh: New file.
17749         * gmon/tst-gmon-static.c: Likewise.
17750
17751 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
17752
17753         [BZ #22295]
17754         * locale/programs/linereader.c (get_string): Don't warn on
17755         non-symbolic character.
17756
17757         [BZ #22294]
17758         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
17759         int_curr_symbol.
17760
17761         [BZ #22292]
17762         * locale/programs/record-status.h: New file
17763         * locale/programs/locale.c: Add comment.
17764         * locale/programs/charmap-dir.c: Don't include error.h.
17765         (charmap_opendir): Use record_error.
17766         * locale/programs/charmap.c: Don't include error.h.
17767         (charmap_read): Use record_error, and record_warning.
17768         (parse_charmap): Likewise.
17769         * locale/programs/ld-address.c: Don't include error.h.
17770         (address_finish): Use record_error, and record_warning.
17771         * locale/programs/ld-collate.c: Don't include error.h.
17772         (collate_finish): Use record_error, and record_error_at_line.
17773         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
17774         (ctype_class_new): Likewise.
17775         (ctype_map_new): Likewise.
17776         (set_one_default): Likewise.
17777         (set_class_defaults): Likewise.
17778         (translit_flatten): Likewise.
17779         (allocate_arrays): Use record_error, and record_verbose.
17780         * locale/programs/ld-identification.c: Don't include error.h.
17781         (indentation_finish): Use record_error and record_warning.
17782         * locale/programs/ld-measurement.c: Don't include error.h.
17783         (measurement_finish): Use record_error.
17784         * locale/programs/ld-messages.c
17785         (message_finish): Likewise.
17786         * locale/programs/ld-monetary.c
17787         (monetary_finish): Likewise.
17788         * locale/programs/ld-name.c (name_finish): Use record_error
17789         and record_warning.
17790         * locale/programs/ld-numeric.c
17791         (numeric_finish): Use record_error.
17792         * locale/programs/ld-paper.c: Don't include error.h.
17793         (paper_finish): Use record_error.
17794         * locale/programs/ld-telephone.c: Don't include error.h.
17795         (telephone_finish): Use record_error.
17796         * locale/programs/ld-time.c (time_finish): Likewise.
17797         * locale/programs/linereader.h (lr_error): Make inline func.
17798         * locale/programs/localedef.c: Define recorded_warning_count,
17799         and recorded_error_count.
17800         (main): Use record_error. Use recorded_error_count and
17801         recorded_warning_count to issue correct error returns.
17802         (add_to_readlist): Use record_error.
17803         (find_locale): Likewise.
17804         (load_locale): Likewise.
17805         * locale/programs/localedef.h: Remove be_quiet
17806         and WITH_CUR_LOCALE.
17807         * locale/programs/locarchive.c (compare_from_file): Use
17808         record_error.
17809         * locale/programs/locfile.c (write_locale_data): Use
17810         record_error.
17811         * locale/programs/repertoire.c: Dont include error.h.
17812         (repertoire_complain): Use record_error.
17813         * localedata/tst-fmon.sh: Expect failures from localedef.
17814         * localedata/tst-locale.sh: Likewise.
17815         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
17816
17817         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
17818         (REPORTS): Likewise.
17819         (check): Likewise.
17820         (i18n): Rename to...
17821         (i18n_ctype): ...this.
17822         (i18n-report): Rename to...
17823         (i18n_ctype-report): ...this.
17824         * localedata/locales/i18n_ctype: Regenerate.
17825         * localedata/locales/i18n: copy i18n_ctype.
17826
17827 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
17828
17829         * stdlib/strfroml.c: Include <bits/floatn.h>.
17830         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
17831         Define before include of <stdlib.h> and undefine afterwards, then
17832         define as weak alias.
17833
17834         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
17835         Undefine and restore default definition.  Use
17836         libm_alias_ldouble_other.
17837
17838 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
17839
17840         [BZ #22153]
17841         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
17842         in coredumps.
17843
17844 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
17845
17846         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17847         Assign sym_map to be map for local symbols, as TLS relocations
17848         use sym_map to determine whether the symbol is defined and to
17849         extract the TLS information.
17850         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17851         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17852
17853 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17854
17855         [BZ #22189]
17856         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
17857         (math_force_eval): Add powerpc version.
17858
17859         [BZ #22142]
17860         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
17861         -DBL_MAX.
17862         (do_test): Likewise.
17863         * stdio-common/tst-printf.sh: Likewise.
17864         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
17865         ifdef clause in order to set the carry bit right.  Replace r0 by
17866         0 without changing the behavior.
17867
17868 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
17869
17870         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
17871         <libm-alias-ldouble.h>.
17872         (fabsl): Define using libm_alias_ldouble.
17873         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
17874         <libm-alias-ldouble.h>.
17875         (fabsl): Define using libm_alias_ldouble.
17876
17877         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
17878         Remove conditional code.
17879
17880         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
17881         Rename to __clog10_internal_l.
17882         (__clog10_internal_l): Define aliases using
17883         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
17884         with __clog10.
17885
17886 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17887
17888         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
17889         * benchtests/sincosf-inputs: New file.
17890         * benchtests/cosf-inputs: New file.
17891         * benchtests/sinf-inputs: New file.
17892
17893 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17894
17895         * posix/tst-spawn.c (do_test): Wait for both children.
17896
17897 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
17898
17899         [BZ #22284]
17900         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
17901         tests-pie): Add tst-gmon-pie.
17902         (CFLAGS-tst-gmon-pie.c): New.
17903         (CRT-tst-gmon-pie): Likewise.
17904         (tst-gmon-pie-ENV): Likewise.
17905         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
17906         ($(objpfx)tst-gmon-pie.out): Likewise.
17907         (clean-tst-gmon-pie-data): Likewise.
17908         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
17909         * gmon/gmon.c [PIC]: Include <link.h>.
17910         [PIC] (callback): New function.
17911         (write_hist): Add an argument for load address.  Subtract load
17912         address from PCs.
17913         (write_call_graph): Likewise.
17914         (write_gmon): Call __dl_iterate_phdr to get load address, pass
17915         it to write_hist and write_call_graph.
17916         * gmon/tst-gmon-pie.c: New file.
17917
17918 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
17919
17920         * math/Makefile (test-types-basic): New variable.
17921         (test-types): Likewise.
17922         (libm-test-support): Use $(test-types) instead of $(types).
17923         (libm-tests-base-normal): Likewise.
17924         (libm-tests-base-finite): Likewise.
17925         (libm-tests-base-inline): Likewise.
17926         (generated): Likewise.
17927         ($(objpfx)libm-test-support-$(t).c): Likewise.
17928         (libm-tests-for-type iterator): Likewise.
17929         (libm-test-support iterator): Likewise.
17930         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
17931         (ulp_idx): Use ULP_IDX.
17932         * math/test-ldouble.h: Include <float.h>.
17933         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
17934         (ULP_IDX): New macro.
17935         (ULP_I_IDX): Likewise.
17936         * math/test-double.h (ULP_IDX): Likewise.
17937         (ULP_I_IDX): Likewise.
17938         * math/test-float.h (ULP_IDX): Likewise.
17939         (ULP_I_IDX): Likewise.
17940         * math/test-float128.h (ULP_IDX): Likewise.
17941         (ULP_I_IDX): Likewise.
17942
17943 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17944
17945         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
17946         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
17947         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
17948         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
17949         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
17950         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
17951         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
17952         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
17953         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
17954         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
17955         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
17956         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
17957         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
17958         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17959         (SINGLE_THREAD_BY_GLOBAL): Define.
17960         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17961         Likewise.
17962         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17963         Likewise.
17964         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17965         Likewise.
17966         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17967         Likewise.
17968         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
17969         (SINGLE_THREAD_BY_GLOBAL): Likewise.
17970         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17971         Likewise.
17972
17973 2017-10-11  Andreas Schwab  <schwab@suse.de>
17974
17975         * nis/Makefile (aux): Remove.
17976         * nscd/Makefile (aux): Add nscd_hash.
17977         (nscd-modules): Likewise.
17978         ($(objpfx)nscd): Don't depend on libnsl.
17979         * nscd/nscd_hash.c: New file.
17980         * nscd/nscd_hash.h: Likewise.
17981         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
17982         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
17983         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
17984         instead of <nis/rpcsvc/nis.h>.
17985         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
17986
17987 2017-10-11  Florian Weimer  <fweimer@redhat.com>
17988
17989         [BZ #22078]
17990         Avoid large NSS buffers with many addresses, aliases.
17991         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
17992         using dynarrays and struct alloc_buffer.
17993         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
17994         (tst-nss-files-hosts-multi): Link with -ldl.
17995         * nss/tst-nss-files-hosts-multi.c: New file.
17996
17997 2017-10-11  Florian Weimer  <fweimer@redhat.com>
17998
17999         [BZ #18023]
18000         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
18001         scratch_buffer.  Eliminate gotos.
18002
18003 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
18004
18005         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
18006         libm_alias_ldouble_other.
18007         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
18008         undefine and redefine.
18009         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
18010         (exp10l): Do not define here.
18011         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
18012         (weak_alias): Undefine and redefine.
18013         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
18014         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
18015         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
18016         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
18017
18018         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
18019         [!__fma] (fma): Define using libm_alias_double.
18020         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
18021         [!__fmaf] (fmaf): Define using libm_alias_float.
18022         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
18023         (fmal): Define using libm_alias_ldouble.
18024
18025 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
18026
18027         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
18028         New macro.
18029         (libm_alias_double_other): Likewise.
18030         (libm_alias_double_r): Use libm_alias_double_other_r.
18031         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
18032         New macro.
18033         (libm_alias_float_other): Likewise.
18034         (libm_alias_float_r): Use libm_alias_float_other_r.
18035         * sysdeps/generic/libm-alias-float128.h
18036         (libm_alias_float128_other_r): New macro.
18037         (libm_alias_float128_other): Likewise.
18038         (libm_alias_float128_r): Use libm_alias_float128_other_r.
18039         * sysdeps/generic/libm-alias-ldouble.h
18040         (libm_alias_ldouble_other_r): New macro.
18041         (libm_alias_ldouble_other): Likewise.
18042         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
18043         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
18044         (libm_alias_double_other_r): New macro.
18045         (libm_alias_double_other): Likewise.
18046         (libm_alias_double_r): Use libm_alias_double_other_r.
18047         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
18048         (libm_alias_ldouble_other_r): New macro.
18049         (libm_alias_ldouble_other): Likewise.
18050         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
18051         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
18052         [!USE_AS_COMPAT]: Use libm_alias_double_other.
18053         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
18054         [!USE_AS_COMPAT]: Use libm_alias_float_other.
18055         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
18056         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
18057         * math/w_exp2f.c: Use libm_alias_float_other.
18058         * math/w_expf.c: Likewise.
18059         * math/w_log2f.c: Likewise.
18060         * math/w_logf.c: Likewise.
18061         * math/w_powf.c: Likewise.
18062         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
18063         [!__exp2f]: Use libm_alias_float_other.
18064         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
18065         [!__expf]: Use libm_alias_float_other.
18066         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
18067         [!__log2f]: Use libm_alias_float_other.
18068         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
18069         [!__logf]: Use libm_alias_float_other.
18070         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
18071         [!__powf]: Use libm_alias_float_other.
18072
18073 2017-10-10  Florian Weimer  <fweimer@redhat.com>
18074
18075         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
18076         function.
18077         (_nss_files_gethostbyname3_r): Call it.
18078
18079 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
18080
18081         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
18082         error.  Remove default definition of declare_mgen_alias.
18083         [!declare_mgen_alias_r]: Likewise.
18084         * sysdeps/generic/math-type-macros-double.h
18085         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
18086         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
18087         (declare_mgen_alias_r): Likewise.
18088         * sysdeps/generic/math-type-macros-float128.h
18089         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
18090         * sysdeps/generic/math-type-macros-ldouble.h
18091         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
18092         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
18093         macro.
18094         (declare_mgen_alias_r_s): Likewise.
18095         (declare_mgen_alias_r): Likewise.
18096         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
18097         (lgamma_r): Define using libm_alias_double_r.
18098         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
18099         (lgammaf_r): Define using libm_alias_float_r.
18100         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
18101         (lgammal_r): Define using libm_alias_ldouble_r.
18102         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
18103         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
18104
18105 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18106
18107         * lib/glob.c (__glob_pattern_type): Remove now-spurious
18108         extern declaration.
18109
18110 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
18111
18112         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
18113
18114 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
18115
18116         [BZ #21326]
18117         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
18118         [__cplusplus >= 201103] (__USE_ISOC99): Define.
18119         * math/Makefile (test-math-cxx11): New test.
18120         * math/test-math-cxx11.cc: New file.
18121
18122 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
18123
18124         * login/openpty.c (openpty): Close slave pty file descriptor on error.
18125
18126         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
18127         call to allocate the slave pty file descriptor.
18128
18129 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
18130
18131         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
18132         [!__fma] (fma): Define using libm_alias_double.
18133         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
18134         [!__fma] (fma): Define using libm_alias_double.
18135
18136         * sysdeps/ieee754/float128/float128_private.h: Include
18137         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
18138         (libm_alias_ldouble_r): Undefine and redefine.
18139         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
18140         <libm-alias-ldouble.h>.
18141         (asinhl): Define using libm_alias_ldouble.
18142         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
18143         <libm-alias-ldouble.h>.
18144         (atanl): Define using libm_alias_ldouble.
18145         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
18146         <libm-alias-ldouble.h>.
18147         (cbrtl): Define using libm_alias_ldouble.
18148         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
18149         <libm-alias-ldouble.h>.
18150         (ceill): Define using libm_alias_ldouble.
18151         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
18152         <libm-alias-ldouble.h>.
18153         (copysignl): Define using libm_alias_ldouble.
18154         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
18155         <libm-alias-ldouble.h>.
18156         (cosl): Define using libm_alias_ldouble.
18157         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
18158         <libm-alias-ldouble.h>.
18159         (erfl): Define using libm_alias_ldouble.
18160         (erfcl): Likewise.
18161         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
18162         <libm-alias-ldouble.h>.
18163         (expm1l): Define using libm_alias_ldouble.
18164         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
18165         <libm-alias-ldouble.h>.
18166         (fabsl): Define using libm_alias_ldouble.
18167         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
18168         <libm-alias-ldouble.h>.
18169         (floorl): Define using libm_alias_ldouble.
18170         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
18171         <libm-alias-ldouble.h>.
18172         (fmal): Define using libm_alias_ldouble.
18173         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
18174         <libm-alias-ldouble.h>.
18175         (frexpl): Define using libm_alias_ldouble.
18176         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
18177         libm_alias_ldouble.
18178         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
18179         <libm-alias-ldouble.h>.
18180         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
18181         libm_alias_ldouble.
18182         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
18183         <libm-alias-ldouble.h>.
18184         (getpayloadl): Define using libm_alias_ldouble.
18185         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
18186         <libm-alias-ldouble.h>.
18187         (llrintl): Define using libm_alias_ldouble.
18188         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
18189         <libm-alias-ldouble.h>.
18190         (llroundl): Define using libm_alias_ldouble.
18191         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
18192         <libm-alias-ldouble.h>.
18193         (logbl): Define using libm_alias_ldouble.
18194         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
18195         <libm-alias-ldouble.h>.
18196         (lrintl): Define using libm_alias_ldouble.
18197         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
18198         <libm-alias-ldouble.h>.
18199         (lroundl): Define using libm_alias_ldouble.
18200         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
18201         <libm-alias-ldouble.h>.
18202         (modfl): Define using libm_alias_ldouble.
18203         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
18204         <libm-alias-ldouble.h>.
18205         (nearbyintl): Define using libm_alias_ldouble.
18206         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
18207         <libm-alias-ldouble.h>.
18208         (nextafterl): Define using libm_alias_ldouble.
18209         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
18210         <libm-alias-ldouble.h>.
18211         (nextupl): Define using libm_alias_ldouble.
18212         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
18213         <libm-alias-ldouble.h>.
18214         (remquol): Define using libm_alias_ldouble.
18215         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
18216         <libm-alias-ldouble.h>.
18217         (rintl): Define using libm_alias_ldouble.
18218         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
18219         <libm-alias-ldouble.h>.
18220         (roundevenl): Define using libm_alias_ldouble.
18221         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
18222         <libm-alias-ldouble.h>.
18223         (roundl): Define using libm_alias_ldouble.
18224         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
18225         using libm_alias_ldouble.
18226         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
18227         <libm-alias-ldouble.h>.
18228         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
18229         Define using libm_alias_ldouble.
18230         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
18231         <libm-alias-ldouble.h>.
18232         (sincosl): Define using libm_alias_ldouble.
18233         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
18234         <libm-alias-ldouble.h>.
18235         (sinl): Define using libm_alias_ldouble.
18236         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
18237         <libm-alias-ldouble.h>.
18238         (tanhl): Define using libm_alias_ldouble.
18239         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
18240         <libm-alias-ldouble.h>.
18241         (tanl): Define using libm_alias_ldouble.
18242         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
18243         <libm-alias-ldouble.h>.
18244         (totalorderl): Define using libm_alias_ldouble.
18245         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
18246         <libm-alias-ldouble.h>.
18247         (totalordermagl): Define using libm_alias_ldouble.
18248         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
18249         <libm-alias-ldouble.h>.
18250         (truncl): Define using libm_alias_ldouble.
18251         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
18252         libm_alias_ldouble.
18253         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
18254         libm_alias_ldouble.
18255         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
18256         <libm-alias-ldouble.h>.
18257         (weak_alias): Do not undefine and redefine.
18258         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18259         (copysignl): Define with long_double_symbol only if [IS_IN
18260         (libc)].
18261         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
18262         <libm-alias-ldouble.h>.
18263         (weak_alias): Do not undefine and redefine.
18264         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18265         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
18266         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
18267         <libm-alias-ldouble.h>.
18268         (weak_alias): Do not undefine and redefine.
18269         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18270         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
18271         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
18272         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
18273         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
18274         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
18275         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
18276         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
18277         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
18278         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
18279         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
18280         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
18281         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
18282         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
18283         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
18284         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
18285         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
18286         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
18287         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
18288         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
18289         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
18290         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
18291         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
18292         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
18293         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
18294         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
18295
18296 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
18297
18298         [BZ #22111]
18299         * malloc/malloc.c (tcache_shutting_down): Use bool type.
18300         (tcache_thread_freeres): Set tcache_shutting_down before
18301         freeing the tcache.
18302         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
18303         * malloc/tst-malloc-tcache-leak.c: New file.
18304
18305 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18306
18307         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
18308         back to powerpc32 file.
18309         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
18310         (memrchr): Add __memrchr_power8 to ifunc list.
18311         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
18312         extra bytes for unaligned inputs.
18313
18314 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
18315
18316         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
18317         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
18318         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
18319         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
18320         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
18321
18322 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
18323
18324         * sysdeps/arm/libm-test-ulps: Update.
18325
18326         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
18327         <libm-alias-ldouble.h>.
18328         (asinhl): Define using libm_alias_ldouble.
18329         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
18330         <libm-alias-ldouble.h>.
18331         (cbrtl): Define using libm_alias_ldouble.
18332         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
18333         <libm-alias-ldouble.h>.
18334         (copysignl): Define using libm_alias_ldouble.
18335         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
18336         <libm-alias-ldouble.h>.
18337         (cosl): Define using libm_alias_ldouble.
18338         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
18339         <libm-alias-ldouble.h>.
18340         (erfl): Define using libm_alias_ldouble.
18341         (erfcl): Likewise.
18342         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
18343         <libm-alias-ldouble.h>.
18344         (fmal): Define using libm_alias_ldouble.
18345         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
18346         <libm-alias-ldouble.h>.
18347         (frexpl): Define using libm_alias_ldouble.
18348         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
18349         libm_alias_ldouble.
18350         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
18351         <libm-alias-ldouble.h>.
18352         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
18353         libm_alias_ldouble.
18354         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
18355         <libm-alias-ldouble.h>.
18356         (getpayloadl): Define using libm_alias_ldouble.
18357         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
18358         <libm-alias-ldouble.h>.
18359         (llrintl): Define using libm_alias_ldouble.
18360         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
18361         <libm-alias-ldouble.h>.
18362         (llroundl): Define using libm_alias_ldouble.
18363         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
18364         <libm-alias-ldouble.h>.
18365         (lrintl): Define using libm_alias_ldouble.
18366         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
18367         <libm-alias-ldouble.h>.
18368         (lroundl): Define using libm_alias_ldouble.
18369         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
18370         <libm-alias-ldouble.h>.
18371         (modfl): Define using libm_alias_ldouble.
18372         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
18373         <libm-alias-ldouble.h>.
18374         (nextupl): Define using libm_alias_ldouble.
18375         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
18376         <libm-alias-ldouble.h>.
18377         (remquol): Define using libm_alias_ldouble.
18378         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
18379         <libm-alias-ldouble.h>.
18380         (roundevenl): Define using libm_alias_ldouble.
18381         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
18382         <libm-alias-ldouble.h>.
18383         (roundl): Define using libm_alias_ldouble.
18384         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
18385         using libm_alias_ldouble.
18386         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
18387         <libm-alias-ldouble.h>.
18388         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
18389         <libm-alias-ldouble.h>.
18390         (setpayloadsigl): Define using libm_alias_ldouble.
18391         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
18392         <libm-alias-ldouble.h>.
18393         (sincosl): Define using libm_alias_ldouble.
18394         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
18395         <libm-alias-ldouble.h>.
18396         (sinl): Define using libm_alias_ldouble.
18397         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
18398         <libm-alias-ldouble.h>.
18399         (tanhl): Define using libm_alias_ldouble.
18400         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
18401         <libm-alias-ldouble.h>.
18402         (tanl): Define using libm_alias_ldouble.
18403         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
18404         <libm-alias-ldouble.h>.
18405         (totalorderl): Define using libm_alias_ldouble.
18406         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
18407         <libm-alias-ldouble.h>.
18408         (totalordermagl): Define using libm_alias_ldouble.
18409         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
18410         libm_alias_ldouble.
18411         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
18412         libm_alias_ldouble.
18413
18414 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18415
18416         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
18417         memmove_falkor.
18418         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
18419         (__libc_ifunc_impl_list): Likewise.
18420         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
18421         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
18422
18423         * benchtests/bench-memmove-walk.c: New file.
18424         * benchtests/Makefile (string-benchset): Add it.
18425
18426         * benchtests/bench-memset-walk.c: New file.
18427         * benchtests/Makefile (string-benchset): Add it.
18428
18429         * benchtests/bench-memcpy-walk.c: New file.
18430         * benchtests/Makefile (string-benchset): Add it.
18431
18432 2017-10-05  Florian Weimer  <fweimer@redhat.com>
18433
18434         nscd: Eliminate compilation time dependency in the build output.
18435         * nscd/nscd_stat.c (STATDATA_VERSION)
18436         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
18437         (STATDATA_VERSION_FULL): New macro definitions.
18438         (compilation): Remove.
18439         (struct statdata): Adjust version member.
18440         (send_stats): Set version from STATDATA_VERSION_FULL.
18441         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
18442
18443 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
18444
18445         * configure.ac (--enable-add-ons): Remove option.
18446         (machine): Do not mention add-ons in comment.
18447         (LIBC_PRECONFIGURE): Likewise.
18448         (add_ons): Remove variable and sanity checks and logic to locate
18449         add-ons.
18450         (add_ons_automatic): Remove variable.
18451         (configured_add_ons): Likewise.
18452         (add_ons_sfx): Likewise.
18453         (add_ons_pfx): Likewise.
18454         (add_on_subdirs): Likewise.
18455         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
18456         consideration of add-ons in Implies handling.
18457         (sysdeps_add_ons): Likewise.
18458         * configure: Regenerated.
18459         * libidn/configure.ac: Remove.
18460         * libidn/configure: Likewise.
18461         * sysdeps/unix/inet/configure.ac: New file.
18462         * sysdeps/unix/inet/configure: New generated file.
18463         * sysdeps/unix/inet/Subdirs: Add libidn.
18464         * Makeconfig (sysdeps-srcdirs): Remove variable.
18465         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
18466         ($(common-objpfx)config.status): Do not depend on add-on files.
18467         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
18468         comment.
18469         (all-subdirs): Do not include $(add-on-subdirs).
18470         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
18471         * config.make.in (add-ons): Remove variable.
18472         (add-on-subdirs): Likewise.
18473         (sysdeps-add-ons): Likewise.
18474         * manual/Makefile (add-chapters): Remove.
18475         ($(objpfx)texis): Do not depend on $(add-chapters).
18476         (nonexamples): Do not handle $(add-chapters).
18477         (examples): Do not handle $(add-ons).
18478         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
18479         libc-texinfo.sh.
18480         * manual/install.texi (Installation): Do not mention add-ons.
18481         (--enable-add-ons): Do not document configure option.
18482         * INSTALL: Regenerated.
18483         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
18484         * manual/maint.texi (Hierarchy Conventions): Do not mention
18485         add-ons.
18486         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
18487         --enable-add-ons.
18488         * scripts/gen-sorted.awk: Do not handle Subdirs files from
18489         add-ons.
18490         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
18491         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
18492
18493 2017-10-05  Andreas Schwab  <schwab@suse.de>
18494
18495         [BZ #15142]
18496         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
18497         (_IO_flush_all_lockp): Always lock list_all_lock.
18498         (_IO_flush_all_linebuffered): Likewise.
18499         (_IO_unbuffer_all): Likewise.
18500
18501 2017-10-05  Florian Weimer  <fweimer@redhat.com>
18502
18503         [BZ #15436]
18504         Do not flush stdio streams on abort.
18505         * stdlib/abort.c (fflush): Remove macro definition.
18506         (abort): Remove stages related to stdio flushing.
18507
18508 2017-10-05  Florian Weimer  <fweimer@redhat.com>
18509
18510         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
18511
18512 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
18513
18514         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18515
18516 2017-10-05  Florian Weimer  <fweimer@redhat.com>
18517
18518         * support/support_format_hostent.c (support_format_hostent): Add
18519         more error information for NETDB_INTERNAL.
18520
18521 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
18522
18523         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
18524         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
18525         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
18526         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
18527         AC_DEFINE if multi-arch is enabled.
18528         * sysdeps/i386/configure: Regenerated.
18529
18530 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
18531
18532         * Makeconfig (+link-static-before-libc): Use
18533         $(DEFAULT-LDFLAGS-$(@F)).
18534         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
18535         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
18536         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
18537
18538 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
18539
18540         * elf/Makefile (tests): Add tst-main1.
18541         (modules-names): Add tst-main1mod.
18542         ($(objpfx)tst-main1): New.
18543         (CRT-tst-main1): Likewise.
18544         (LDFLAGS-tst-main1): Likewise.
18545         (LDLIBS-tst-main1): Likewise.
18546         (tst-main1mod.so-no-z-defs): Likewise.
18547         * elf/tst-main1.c: New file.
18548         * elf/tst-main1mod.c: Likewise.
18549
18550 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
18551
18552         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
18553
18554 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
18555
18556         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
18557         (fma): Define using libm_alias_double.
18558         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
18559         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
18560         <math_ldbl_opt.h>.
18561         (fmal): Do not define as compat symbol here.
18562         * sysdeps/alpha/fpu/s_fma.c: New file.
18563
18564 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18565
18566         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
18567
18568 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
18569
18570         [BZ #22229]
18571         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
18572         <math_ldbl_opt.h>
18573         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
18574         and libc.
18575         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
18576         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
18577         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
18578         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
18579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18580         Include <math_ldbl_opt.h>
18581         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
18582         and libc.
18583         (compat_symbol): Undefine and redefine.
18584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
18585         <math_ldbl_opt.h>
18586         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
18587         (compat_symbol): Undefine and redefine.
18588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
18589         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
18590         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
18591         GLIBC_2_1 for libm.
18592         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
18593         GLIBC_2.0 copysignl symbol.
18594         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18595         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
18596
18597         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
18598
18599 2017-10-04  Florian Weimer  <fweimer@redhat.com>
18600
18601         * scripts/check-local-headers.sh: Ignore nspr4 header file
18602         directory in addition to nspr.
18603
18604 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
18605
18606         [BZ #17956]
18607         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
18608         * configure: Regenerate.
18609         * crypt/Makefile (nss-cpp-flags): New variable.
18610         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
18611         (CPPFLAGS-md5-crypt.c): Use it.
18612         * scripts/check-local-headers.sh: Ignore nspr header file
18613         directory.
18614
18615 2017-10-04  Andreas Schwab  <schwab@suse.de>
18616
18617         * nis/Makefile (services): Remove compat.
18618         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
18619         ($(objpfx)libnss_compat.so): Remove rule.
18620         * nis/Versions (libnss_compat): Remove.
18621         * nss/Makefile (services): Add compat.
18622         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
18623         * nss/Versions (libnss_compat): Define.
18624         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
18625         Don't include <rpc/types.h>.  Replace bool_t by bool.
18626         * nss/nss_compat/compat-initgroups.c: Likewise.
18627         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
18628         instead of <rpcsrv/ypclnt.h>.
18629         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
18630         yp_get_default_domain.
18631         * nss/nss_compat/compat-pwd.c: Likewise.
18632         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
18633         yp_get_default_domain.
18634         * nss/nss_compat/nisdomain.c: New file.
18635         * nss/nss_compat/nisdomain.h: Likewise.
18636
18637 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18638
18639         [BZ #22244]
18640         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
18641         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
18642
18643 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18644
18645         [BZ #22243]
18646         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
18647         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
18648
18649 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
18650
18651         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
18652         "movl main@GOTOFF(%ebx), %eax".
18653
18654 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
18655
18656         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
18657         allow undefined _DYNAMIC in PIE libc.a.
18658         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
18659         Likewse.
18660
18661 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
18662
18663         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
18664         check _DYNAMIC.
18665
18666 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
18667
18668         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
18669         check _DYNAMIC.
18670
18671 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
18672
18673         * math/test-math-iscanonical.cc (error): Replace bool with int.
18674
18675 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
18676
18677         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
18678         (modf): Define using libm_alias_double, only if [!__modf].
18679         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
18680         <libm-alias-double.h>.
18681         (modf): Define using libm_alias_double, only if [!__modf].
18682         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
18683         compat symbol here.
18684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
18685         (weak_alias): Do not undefine and redefine.
18686         (strong_alias): Likewise.
18687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
18688         (weak_alias): Likewise.
18689         (strong_alias): Likewise.
18690
18691         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
18692         (logb): Define using libm_alias_double, only if [!__logb].
18693         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
18694         <libm-alias-double.h>.
18695         (logb): Define using libm_alias_double, only if [!__logb].
18696         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
18697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
18698         (weak_alias): Do not undefine and redefine.
18699         (strong_alias): Likewise.
18700         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
18701         (weak_alias): Likewise.
18702         (strong_alias): Likewise.
18703
18704 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
18705
18706         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
18707         Check SHARED instead PIC.
18708
18709 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
18710
18711         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
18712         [!__fmaf] (fmaf): Define using libm_alias_float.
18713
18714         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
18715         (frexp): Define using libm_alias_double.
18716         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
18717         <libm-alias-double.h>.
18718         (frexp): Define using libm_alias_double.
18719         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
18720         compat symbol here.
18721
18722 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
18723
18724         [BZ #22235]
18725         * math/math.h: Trivial fix for unbalanced parentheses in comment.
18726         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
18727         (CFLAGS-test-math-iscanonical.cc): New variable.
18728         * math/test-math-iscanonical.cc: New file.
18729         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
18730         Provide a C++ implementation based on function overloading,
18731         rather than using __MATH_TG, which uses C-only builtins.
18732         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
18733         Likewise.
18734         * sysdeps/powerpc/powerpc64le/Makefile
18735         (CFLAGS-test-math-iscanonical.cc): New variable.
18736
18737 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
18738
18739         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
18740         (ceil): Define using libm_alias_double.
18741         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
18742         (floor): Define using libm_alias_double.
18743         * sysdeps/ieee754/dbl-64/s_llround.c: Include
18744         <libm-alias-double.h>.
18745         (llround): Define using libm_alias_double.
18746         * sysdeps/ieee754/dbl-64/s_lround.c: Include
18747         <libm-alias-double.h>.
18748         (lround): Define using libm_alias_double.
18749         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
18750         <libm-alias-double.h>.
18751         (nearbyint): Define using libm_alias_double.
18752         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
18753         <libm-alias-double.h>.
18754         (remquo): Define using libm_alias_double.
18755         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
18756         (rint): Define using libm_alias_double.
18757         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
18758         (round): Define using libm_alias_double.
18759         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
18760         (trunc): Define using libm_alias_double.
18761         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
18762         <libm-alias-double.h>.
18763         (ceil): Define using libm_alias_double.
18764         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
18765         <libm-alias-double.h>.
18766         (floor): Define using libm_alias_double.
18767         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
18768         <libm-alias-double.h>.
18769         (llround): Define using libm_alias_double.
18770         [_LP64] (lround): Likewise.
18771         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
18772         <libm-alias-double.h>.
18773         [!_LP64] (lround): Define using libm_alias_double.
18774         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
18775         <libm-alias-double.h>.
18776         (nearbyint): Define using libm_alias_double.
18777         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
18778         <libm-alias-double.h>.
18779         (remquo): Define using libm_alias_double.
18780         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
18781         <libm-alias-double.h>.
18782         (rint): Define using libm_alias_double.
18783         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
18784         <libm-alias-double.h>.
18785         (round): Define using libm_alias_double.
18786         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
18787         <libm-alias-double.h>.
18788         (trunc): Define using libm_alias_double.
18789         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
18790         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
18791         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
18792         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
18793         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
18794         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
18795         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
18796         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
18797         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
18798
18799 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18800
18801         * math/w_remainder.c: New file.
18802         * math/w_remainderf.c: New file.
18803         * math/w_remainderl.c: New file.
18804
18805 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
18806
18807         * elf/rtld.c (BOOTSTRAP_MAP): New.
18808         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
18809         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18810         Likewise.
18811         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18812         Likewise.
18813         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18814         Likewise.
18815
18816 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18817
18818         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
18819         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
18820         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
18821         rtld_hidden_data_ver): Define to empty.
18822         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
18823         __assert_perror_fail): Likewise.
18824         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18825         (__rewinddir): Likewise.
18826         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18827         (__profile_frequency): Likewise.
18828         * include/setjmp.h (__sigsetjmp): Likewise.
18829         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
18830         __libc_sigaction): Likewise.
18831         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
18832         not set hidden attribute.
18833         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
18834         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
18835         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
18836         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
18837         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
18838         __fxstatat64): Likewise.
18839         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18840         (__uname): Likewise.
18841         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18842         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
18843         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
18844         (NO_RTLD_HIDDEN): Set.
18845         * sysdeps/mach/hurd/configure: Refresh.
18846         * config.h.in: Refresh.
18847
18848 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
18849
18850         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
18851         (atan): Define using libm_alias_double.
18852         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
18853         (tan): Define using libm_alias_double.
18854         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
18855         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
18856
18857         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
18858         define as weak alias of __atan.  Do not define any aliases if
18859         [__atan].
18860         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
18861         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
18862         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
18863         as weak alias of __tan.  Do not define any aliases if [__tan].
18864         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
18865         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
18866         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
18867         __atan.
18868         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
18869         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
18870         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
18871         and define as weak alias of __atan.
18872         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
18873         __atan.
18874         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
18875         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
18876         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
18877         define as weak alias of __tan.
18878
18879 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18880
18881         * math/w_lgamma.c: New file.
18882         * math/w_lgammaf.c: New file.
18883         * math/w_lgammal.c: New file.
18884
18885 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18886
18887         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
18888         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
18889         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
18890         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
18891         * sysdeps/ieee754/flt-32/w_logf.c: New file.
18892         * sysdeps/ieee754/flt-32/w_powf.c: New file.
18893         * sysdeps/i386/fpu/w_log2f.c: New file.
18894         * sysdeps/i386/fpu/w_logf.c: New file.
18895         * sysdeps/i386/fpu/w_powf.c: New file.
18896         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
18897         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
18898         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
18899
18900 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18901             H.J. Lu  <hongjiu.lu@intel.com>
18902
18903         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
18904         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
18905         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
18906         * sysdeps/ieee754/flt-32/w_expf.c: New file.
18907         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
18908         the new expf code.
18909         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
18910         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
18911         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
18912         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
18913         * sysdeps/i386/fpu/w_exp2f.c: New file.
18914         * sysdeps/i386/fpu/w_expf.c: New file.
18915         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
18916         * sysdeps/x86_64/fpu/w_expf.c: New file.
18917
18918 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18919
18920         * math/Versions (logf): New libm symbol at GLIBC_2.27.
18921         (log2f): Likewise.
18922         (powf): Likewise.
18923         * math/w_log2f.c: New file.
18924         * math/w_logf.c: New file.
18925         * math/w_powf.c: New file.
18926         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
18927         * math/w_logf_compat.c (__logf_compat): Likewise.
18928         * math/w_powf_compat.c (__powf_compat): Likewise.
18929         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
18930         * sysdeps/ia64/fpu/e_logf.S: Likewise.
18931         * sysdeps/ia64/fpu/e_powf.S: Likewise.
18932         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
18933         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18934         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18935         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18936         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18937         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18938         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18939         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18940         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18941         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18942         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18943         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18945         Likewise.
18946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18947         Likewise.
18948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18949         Likewise.
18950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18951         Likewise.
18952         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18953         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18954         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18955         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18956         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18957         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18958         Likewise.
18959         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18960         Likewise.
18961         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18962         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18963         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18964
18965 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18966
18967         * sysdeps/powerpc/powerpc64/multiarch/Makefile
18968         (sysdep_routines): Add memrchr_power8.
18969         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
18970         (memrchr): Add __memrchr_power8 to list of memrchr functions.
18971         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
18972         New file.
18973         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
18974         (memrchr): Add __memrchr_power8 to ifunc list.
18975         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
18976
18977 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
18978
18979         [BZ #18822]
18980         * sysdeps/unix/sysv/linux/posix_fadvise64.c
18981         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
18982         libc_hidden_def.
18983         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18984         (__posix_fallocate64_l64): Likewise.
18985
18986 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
18987
18988         [BZ #18822]
18989         * sysdeps/unix/sysv/linux/sched_setaffinity.c
18990         (__sched_setaffinity_new): Add libc_hidden_proto and
18991         libc_hidden_def.
18992
18993 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
18994
18995         [BZ #18822]
18996         * include/glob.h (__glob64): Add libc_hidden_proto.
18997         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
18998         libc_hidden_def.
18999
19000 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19001
19002         [BZ #18822]
19003         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
19004         attribute_hidden.
19005
19006 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19007
19008         [BZ #18822]
19009         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
19010
19011 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19012
19013         [BZ #18822]
19014         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
19015         libc_hidden_def.
19016
19017 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19018
19019         [BZ #18822]
19020         * csu/version.c (__libc_print_version): Add attribute_hidden.
19021
19022 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19023
19024         [BZ #18822]
19025         * include/libc-internal.h (__init_misc): Add attribute_hidden.
19026
19027 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19028
19029         [BZ #18822]
19030         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
19031
19032 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19033
19034         [BZ #18822]
19035         * nscd/nscd_helper.c (__nis_hash): New prototype.
19036
19037 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19038
19039         [BZ #18822]
19040         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
19041         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
19042         libc_hidden_def.
19043         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
19044         * termios/tcgetattr.c (__tcgetattr): Likewise.
19045
19046 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19047
19048         [BZ #18822]
19049         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
19050         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
19051         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
19052         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
19053         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
19054
19055 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19056
19057         [BZ #18822]
19058         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
19059
19060 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19061
19062         [BZ #18822]
19063         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
19064         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
19065
19066 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19067
19068         [BZ #18822]
19069         * intl/hash-string.h (__hash_string): Add attribute_hidden.
19070
19071 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19072
19073         [BZ #18822]
19074         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
19075         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
19076
19077 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19078
19079         [BZ #18822]
19080         * include/ifreq.h: New file.
19081         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
19082         (__ifreq): Likewise.
19083         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
19084         (__ifreq): Likewise.
19085
19086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19087
19088         [BZ #18822]
19089         * include/idna.h: New file.
19090         * inet/getnameinfo.c: Include <idna.h> instead of
19091         <libidn/idna.h>.
19092         (__idna_to_unicode_lzlz): Removed.
19093         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
19094         <libidn/idna.h>.
19095         (__idna_to_ascii_lz): Removed.
19096         (__idna_to_unicode_lzlz): Likewise.
19097
19098 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19099
19100         [BZ #18822]
19101         * include/plural-exp.h: New file.
19102         * intl/plural-exp.c: Include <plural-exp.h> instead of
19103         "plural-exp.h".
19104
19105 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19106
19107         [BZ #18822]
19108         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
19109         "getsourcefilter.h".
19110         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
19111         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
19112         "getsourcefilter.h".
19113         (__get_sol): Removed.
19114
19115 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19116
19117         [BZ #18822]
19118         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
19119         to ...
19120         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
19121
19122 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19123
19124         [BZ #18822]
19125         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
19126         attribute_hidden.
19127
19128 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19129
19130         [BZ #18822]
19131         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
19132
19133 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19134
19135         [BZ #18822]
19136         * include/search.h (__tdestroy): Add libc_hidden_proto.
19137         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
19138
19139 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19140
19141         [BZ #18822]
19142         * include/assert.h (__assert_fail_base): Add attribute_hidden.
19143
19144 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19145
19146         [BZ #18822]
19147         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
19148         attribute_hidden.
19149
19150 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19151
19152         [BZ #18822]
19153         * include/signal.h (__kill): Add libc_hidden_proto.
19154         (__sigblock): Likewise.
19155         (__sigprocmask): Likewise.
19156         (__sigaltstack): Likewise.
19157         * signal/kill.c (__kill): Add libc_hidden_def.
19158         * signal/sigblock.c (__sigblock): Likewise.
19159         * signal/sigprocmask.c (__sigprocmask): Likewise.
19160         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
19161         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
19162         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
19163         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
19164         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
19165         Likewise.
19166         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
19167         Likewise.
19168         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
19169         (__sigprocmask): Likewise.
19170         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
19171         Likewise.
19172         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
19173         (__sigprocmask): Likewise.
19174         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
19175         Likewise.
19176
19177 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19178
19179         [BZ #18822]
19180         * include/string.h (__strsep): Add libc_hidden_proto.
19181         * string/strsep.c (__strsep): Add libc_hidden_def.
19182
19183 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19184
19185         [BZ #18822]
19186         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
19187         attribute_hidden.
19188         (__spawni): Likewise.
19189
19190 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19191
19192         [BZ #18822]
19193         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
19194         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
19195         libc_hidden_def.
19196
19197 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19198
19199         [BZ #18822]
19200         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
19201
19202 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19203
19204         [BZ #18822]
19205         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
19206         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
19207         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
19208         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
19209         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
19210         Likewise.
19211         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
19212         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
19213
19214 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19215
19216         [BZ #18822]
19217         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
19218         (__dcigettext): Likewise.
19219
19220 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19221
19222         [BZ #18822]
19223         * include/sys/sysinfo.h (__get_nprocs_conf): Add
19224         libc_hidden_proto.
19225         (__get_nprocs): Likewise.
19226         (__get_phys_pages): Likewise.
19227         (__get_avphys_pages): Likewise.
19228         (__get_child_max): Add attribute_hidden.
19229         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
19230         (__get_nprocs): Likewise.
19231         (__get_phys_pages): Likewise.
19232         (__get_avphys_pages): Likewise.
19233         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
19234         libc_hidden_def.
19235         (__get_nprocs): Likewise.
19236         (__get_phys_pages): Likewise.
19237         (__get_avphys_pages): Likewise.
19238         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
19239         libc_hidden_def.
19240         (__get_nprocs_conf): Likewise.
19241         (__get_phys_pages): Likewise.
19242         (__get_avphys_pages): Likewise.
19243
19244 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19245
19246         [BZ #18822]
19247         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
19248         attribute_hidden.
19249         (__netlink_close): Likewise.
19250         (__netlink_free_handle): Likewise.
19251         (__netlink_request): Likewise.
19252
19253 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19254
19255         [BZ #18822]
19256         * include/rpc/rpc.h (__rpc_thread_variables): Add
19257         attribute_hidden.
19258         (__rpc_thread_svc_cleanup): Likewise.
19259         (__rpc_thread_clnt_cleanup): Likewise.
19260         (__rpc_thread_key_cleanup): Likewise.
19261
19262 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19263
19264         [BZ #18822]
19265         * include/sys/uio.h (__readv): Add libc_hidden_proto.
19266         (__writev): Likewise.
19267         * misc/readv.c (__readv): Add libc_hidden_def.
19268         * misc/writev.c (__writev): Likewise.
19269         * sysdeps/posix/readv.c (__readv): Likewise.
19270         * sysdeps/posix/writev.c (__writev): Likewise.
19271         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
19272         (__readv): Likewise.
19273         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
19274         (__writev): Likewise.
19275
19276 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19277
19278         [BZ #18822]
19279         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
19280         (__regcomp): Add libc_hidden_proto.
19281         (__regexec): Likewise.
19282         (__regfree): Likewise.
19283         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
19284         (__regfree): Likewise.
19285         * posix/regexec.c (__regexec): Likewise.
19286
19287 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19288
19289         [BZ #18822]
19290         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
19291         (__getutent): Likewise.
19292         (__getutid): Likewise.
19293         (__getutline): Likewise.
19294         (__pututline): Likewise.
19295         (__getutent_r): Likewise.
19296         (__getutid_r): Likewise.
19297         (__getutline_r): Likewise.
19298         (__utmpname): Add attribute_hidden.
19299         (__setutent): Likewise.
19300         (__endutent): Likewise.
19301         * login/getutent.c (__getutent): Add libc_hidden_def.
19302         * login/getutent_r.c (__getutent_r): Likewise.
19303         (__pututline): Likewise.
19304         * login/getutid.c (__getutid): Likewise.
19305         * login/getutid_r.c (__getutid_r): Likewise.
19306         * login/getutline.c (__getutline): Likewise.
19307         * login/getutline_r.c (__getutline_r): Likewise.
19308         * login/updwtmp.c (__updwtmp): Likewise.
19309
19310 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19311
19312         [BZ #18822]
19313         * include/dirent.h (__opendir): Always add attribute_hidden.
19314         (__fdopendir): Likewise.
19315         (__closedir): Likewise.
19316         (__readdir): Likewise.
19317         (__readdir64): Add libc_hidden_proto.
19318         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
19319         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
19320         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
19321         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
19322         New alias.
19323
19324 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19325
19326         [BZ #18822]
19327         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
19328         * include/netdb.h (__gethostbyaddr_r): Likewise.
19329         (__gethostbyname_r): Likewise.
19330         (__gethostbyname2_r): Likewise.
19331         (__getnetbyaddr_r): Likewise.
19332         (__getnetbyname_r): Likewise.
19333         (__getservbyname_r): Likewise.
19334         (__getservbyport_r): Likewise.
19335         (__getprotobyname_r): Likewise.
19336         (__getprotobynumber_r): Likewise.
19337         (__getnetgrent_r): Likewise.
19338         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
19339         (__getrpcbynumber_r): Likewise.
19340         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
19341
19342 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19343
19344         [BZ #18822]
19345         * include/stdio.h (__fcloseall): Add attribute_hidden.
19346         (__getline): Likewise.
19347         (__path_search): Likewise.
19348         (__gen_tempname): Likewise.
19349         (__libc_message): Likewise.
19350         (__flockfile): Likewise.
19351         (__funlockfile): Likewise.
19352         (__fxprintf): Likewise.
19353         (__fxprintf_nocancel): Likewise.
19354
19355 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19356
19357         [BZ #18822]
19358         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
19359         (__sgetsgent_r): Likewise.
19360
19361 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19362
19363         [BZ #18822]
19364         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
19365         (__statfs64): Likewise.
19366         (__fstatfs64): Likewise.
19367         * include/sys/statvfs.h (__statvfs64): Likewise.
19368         (__fstatvfs64): Likewise.
19369         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
19370         (__statfs_filesize_max): Likewise.
19371         (__statfs_symlinks): Likewise.
19372         (__statfs_chown_restricted): Likewise.
19373
19374 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19375
19376         [BZ #18822]
19377         * include/time.h (__tzstring): Add attribute_hidden.
19378         (__tzfile_read): Likewise.
19379         (__tzfile_compute): Likewise.
19380         (__tzfile_default): Likewise.
19381         (__tzset_parse_tz): Likewise.
19382         (__offtime): Likewise.
19383         (__asctime_r): Likewise.
19384         (__tzset): Likewise.
19385         (__tz_convert): Likewise.
19386         (__getdate_r): Likewise.
19387         (__getclktck): Likewise.
19388
19389 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19390
19391         [BZ #18822]
19392         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
19393         (__nscd_unmap): Likewise.
19394         (__nscd_cache_search): Likewise.
19395         (__nscd_get_nl_timestamp): Likewise.
19396         (__nscd_getpwnam_r): Likewise.
19397         (__nscd_getpwuid_r): Likewise.
19398         (__nscd_getgrnam_r): Likewise.
19399         (__nscd_getgrgid_r): Likewise.
19400         (__nscd_gethostbyname_r): Likewise.
19401         (__nscd_gethostbyname2_r): Likewise.
19402         (__nscd_gethostbyaddr_r): Likewise.
19403         (__nscd_getai): Likewise.
19404         (__nscd_getgrouplist): Likewise.
19405         (__nscd_getservbyname_r): Likewise.
19406         (__nscd_getservbyport_r): Likewise.
19407         (__nscd_innetgr): Likewise.
19408         (__nscd_setnetgrent): Likewise.
19409
19410 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19411
19412         [BZ #18822]
19413         * include/gmp.h: Declare internal functions only if _ISOMAC is
19414         undefined.
19415         (__mpn_extract_double): Add attribute_hidden.
19416         (__mpn_extract_long_double): Likewise.
19417         (__mpn_extract_float128): Likewise.
19418         (__mpn_construct_float): Likewise.
19419         (__mpn_construct_double): Likewise.
19420         (__mpn_construct_long_double): Likewise.
19421         (__mpn_construct_float128): Likewise.
19422         (mpn_add_1): Likewise.
19423         (mpn_addmul_1): Likewise.
19424         (mpn_add_n): Likewise.
19425         (mpn_cmp): Likewise.
19426         (mpn_divrem): Likewise.
19427         (mpn_lshift): Likewise.
19428         (mpn_mul): Likewise.
19429         (mpn_mul_1): Likewise.
19430         (mpn_rshift): Likewise.
19431         (mpn_sub_1): Likewise.
19432         (mpn_submul_1): Likewise.
19433         (mpn_sub_n): Likewise.
19434
19435 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19436
19437         [BZ #18822]
19438         * include/wchar.h (__wcsnlen): Add attribute_hidden.
19439         (__wcscat): Likewise.
19440         (__btowc): Likewise.
19441         (__wcrtomb): Likewise.
19442         (__mbsrtowcs): Likewise.
19443         (__wcsrtombs): Likewise.
19444         (__mbsnrtowcs): Likewise.
19445         (__wcsnrtombs): Likewise.
19446         (__wcsncpy): Likewise.
19447         (__wcpncpy): Likewise.
19448         (__wmemcpy): Likewise.
19449         (__wmempcpy): Likewise.
19450         (__wmemmove): Likewise.
19451         (__wcschrnul): Likewise.
19452         (__vfwscanf): Likewise.
19453         (__vswprintf): Likewise.
19454         (__fwprintf): Likewise.
19455         (__vfwprintf): Likewise.
19456
19457 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19458
19459         [BZ #18822]
19460         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
19461         (__getgrgid_r): Likewise.
19462         (__getgrnam_r): Likewise.
19463         * include/pwd.h (__getpwuid_r): Likewise.
19464         (__getpwnam_r): Likewise.
19465         (__fgetpwent_r): Likewise.
19466         * include/shadow.h (__getspnam_r): Likewise.
19467         (__sgetspent_r): Likewise.
19468         (__fgetspent_r): Likewise.
19469
19470 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19471
19472         [BZ #18822]
19473         * include/unistd.h (__access): Add attribute_hidden.
19474         (__lseek64): Likewise.
19475         (__libc_pread64): Likewise.
19476         (__pipe2): Likewise.
19477         (__sleep): Likewise.
19478         (__chdir): Likewise.
19479         (__fchdir): Likewise.
19480         (__getcwd): Likewise.
19481         (__rmdir): Likewise.
19482         (__execvpe): Likewise.
19483         (__execve): Likewise.
19484         (__setsid): Likewise.
19485         (__getuid): Likewise.
19486         (__geteuid): Likewise.
19487         (__getgid): Likewise.
19488         (__getegid): Likewise.
19489         (__getgroups): Likewise.
19490         (__group_member): Likewise.
19491         (__ttyname_r): Likewise.
19492         (__isatty): Likewise.
19493         (__readlink): Likewise.
19494         (__unlink): Likewise.
19495         (__gethostname): Likewise.
19496         (__profil): Likewise.
19497         (__getdtablesize): Likewise.
19498         (__brk): Likewise.
19499         (__ftruncate): Likewise.
19500         (__ftruncate64): Likewise.
19501
19502 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19503
19504         [BZ #18822]
19505         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
19506         * argp/argp-fs-xinl.c: Likewise.
19507         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
19508         * argp/argp-parse.c: Include <argp.h>.
19509         * argp/argp-xinl.c: Likewise.
19510         * include/argp-fmtstream.h: New file.
19511         * include/argp.h (__argp_error): Add attribute_hidden.
19512         (__argp_failure): Likewise.
19513         (__argp_input): Likewise.
19514         (__argp_state_help): Likewise.
19515
19516 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19517
19518         [BZ #18822]
19519         * include/wchar.h (____wcstof_l_internal): New prototype.
19520         (____wcstod_l_internal): Likewise.
19521         (____wcstold_l_internal): Likewise.
19522         (____wcstol_l_internal): Likewise.
19523         (____wcstoul_l_internal): Likewise.
19524         (____wcstoll_l_internal): Likewise.
19525         (____wcstoull_l_internal): Likewise.
19526         (____wcstof128_l_internal): Likewise.
19527         * sysdeps/ieee754/float128/wcstof128.c
19528         (____wcstof128_l_internal): Removed.
19529         * sysdeps/ieee754/float128/wcstof128_l.c
19530         (____wcstof128_l_internal): Likewise.
19531         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
19532         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
19533         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
19534         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
19535         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
19536         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
19537         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
19538         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
19539         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
19540         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
19541
19542 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19543
19544         [BZ #18822]
19545         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
19546         instead of <sys/statvfs.h>.
19547         (__internal_statvfs): Removed.
19548         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
19549         instead of <sys/statvfs.h>.
19550         (__internal_statvfs64): Removed.
19551         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
19552         "internal_statvfs.h" instead of <sys/statvfs.h>.
19553         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
19554         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
19555         instead of <sys/statvfs.h>.
19556         (__internal_statvfs): Removed.
19557         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
19558         instead of <sys/statvfs.h>.
19559         (__internal_statvfs64): Removed.
19560
19561 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19562
19563         [BZ #18822]
19564         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
19565         (__gconv_close): Likewise.
19566         (__gconv): Likewise.
19567         (__gconv_find_transform): Likewise.
19568         (__gconv_lookup_cache): Likewise.
19569         (__gconv_compare_alias_cache): Likewise.
19570         (__gconv_load_cache): Likewise.
19571         (__gconv_get_path): Likewise.
19572         (__gconv_close_transform): Likewise.
19573         (__gconv_release_cache): Likewise.
19574         (__gconv_find_shlib): Likewise.
19575         (__gconv_release_shlib): Likewise.
19576         (__gconv_get_builtin_trans): Likewise.
19577         (__gconv_compare_alias): Likewise.
19578         * include/dlfcn.h (_dlerror_run): Likewise.
19579         * include/stdio.h (__fortify_fail_abort): Likewise.
19580         * include/time.h (__tz_compute): Likewise.
19581         (__strptime_internal): Likewise.
19582         * intl/gettextP.h (_nl_find_domain): Likewise.
19583         (_nl_load_domain): Likewise.
19584         (_nl_find_msg): Likewise.
19585         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
19586         (EXTRACT_PLURAL_EXPRESSION): Likewise.
19587         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
19588         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
19589         (__gai_find_request): Likewise.
19590         (__gai_remove_request): Likewise.
19591         (__gai_notify): Likewise.
19592         (__gai_notify_only): Likewise.
19593         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
19594         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
19595         (_dl_non_dynamic_init): Likewise.
19596         (_dl_aux_init): Likewise.
19597         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
19598         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
19599         Likewise.
19600         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
19601         (__wcsmbs_clone_conv): Likewise.
19602         (__wcsmbs_named_conv): Likewise.
19603
19604 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19605
19606         [BZ #18822]
19607         * include/stdlib.h (__random): Add attribute_hidden.
19608         (__random_r): Likewise.
19609         (__srandom_r): Likewise.
19610         (__initstate_r): Likewise.
19611         (__setstate_r): Likewise.
19612         (__erand48_r): Likewise.
19613         (__nrand48_r): Likewise.
19614         (__jrand48_r): Likewise.
19615         (__srand48_r): Likewise.
19616         (__seed48_r): Likewise.
19617         (__lcong48_r): Likewise.
19618         (__drand48_iterate): Likewise.
19619         (__setenv): Likewise.
19620         (__unsetenv): Likewise.
19621         (__clearenv): Likewise.
19622         (__ptsname_r): Likewise.
19623         (__posix_openpt): Likewise.
19624         (__add_to_environ): Likewise.
19625         (__realpath): Add libc_hidden_proto.
19626         (__ecvt_r): Likewise.
19627         (__fcvt_r): Likewise.
19628         (__qecvt_r): Likewise.
19629         (__qfcvt_r): Likewise.
19630         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
19631         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
19632
19633 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
19634
19635         [BZ #18822]
19636         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
19637         * include/time.h (__mktime_internal): Likewise.
19638         * libio/iolibio.h (__fopen_internal): Likewise.
19639
19640 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
19641
19642         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
19643         pointer in frame.
19644         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
19645         Correct offset used to restore PIC register.
19646
19647 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
19648
19649         [BZ libc/22165]
19650         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
19651         code to load address of __getcontext_ret when generating PIC code.
19652
19653 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
19654
19655         * elf/Makefile (tests-static-internal): Add
19656         tst-tls1-static-non-pie.
19657         (LDFLAGS-tst-tls1-static-non-pie): New.
19658         * elf/tst-tls1-static-non-pie.c: New file.
19659
19660 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
19661
19662         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
19663         (asinh): Define using libm_alias_double.
19664         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
19665         (cbrt): Define using libm_alias_double.
19666         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
19667         <libm-alias-double.h>.
19668         (copysign): Define using libm_alias_double.
19669         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
19670         (erf): Define using libm_alias_double.
19671         (erfc): Likewise.
19672         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
19673         (expm1): Define using libm_alias_double.
19674         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
19675         (fabs): Define using libm_alias_double.
19676         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
19677         libm_alias_double.
19678         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
19679         <libm-alias-double.h>.
19680         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
19681         libm_alias_double.
19682         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
19683         <libm-alias-double.h>.
19684         (getpayload): Define using libm_alias_double.
19685         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
19686         <libm-alias-double.h>.
19687         (llrint): Define using libm_alias_double.
19688         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
19689         (lrint): Define using libm_alias_double.
19690         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
19691         <libm-alias-double.h>.
19692         (nextup): Define using libm_alias_double.
19693         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
19694         <libm-alias-double.h>.
19695         (roundeven): Define using libm_alias_double.
19696         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
19697         libm_alias_double.
19698         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
19699         <libm-alias-double.h>.
19700         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
19701         using libm_alias_double.
19702         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
19703         (cos): Define using libm_alias_double.
19704         (sin): Likewise.
19705         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
19706         <libm-alias-double.h>.
19707         (sincos): Define using libm_alias_double.
19708         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
19709         (tanh): Define using libm_alias_double.
19710         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
19711         <libm-alias-double.h>.
19712         (totalorder): Define using libm_alias_double.
19713         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
19714         <libm-alias-double.h>.
19715         (totalordermag): Define using libm_alias_double.
19716         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
19717         libm_alias_double.
19718         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
19719         libm_alias_double.
19720         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
19721         <libm-alias-double.h>.
19722         (getpayload): Define using libm_alias_double.
19723         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
19724         <libm-alias-double.h>.
19725         (roundeven): Define using libm_alias_double.
19726         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
19727         <libm-alias-double.h>.
19728         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
19729         <libm-alias-double.h>.
19730         (totalorder): Define using libm_alias_double.
19731         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
19732         <libm-alias-double.h>.
19733         (totalordermag): Define using libm_alias_double.
19734         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
19735         libc compat symbol here.
19736         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
19737         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
19738         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
19739         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
19740         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
19741         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
19742         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
19743         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
19744         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
19745         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
19746
19747 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
19748
19749         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
19750         _dl_relocate_static_pie instead of _dl_start to compute load
19751         address in static PIE.  Return 0 if _DYNAMIC is undefined for
19752         static executable.
19753
19754 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
19755
19756         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
19757         _DYNAMIC is undefined for static executable.
19758
19759 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
19760
19761         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
19762
19763 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
19764
19765         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19766
19767 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
19768
19769         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
19770         (__ieee754_lgamma_r): Use fabs rather than __fabs.
19771         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
19772         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
19773         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
19774         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
19775         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
19776         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
19777         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
19778         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
19779         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
19780         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
19781         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
19782         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
19783         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
19784         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
19785         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
19786
19787 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
19788
19789         * math/bits/cmathcalls.h (cimag): Remove inline.
19790         (creal): Remove inline.
19791         (conj): Remove inline.
19792
19793 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19794
19795         * math/Makefile (type-float-routines): Add e_powf_log2_data.
19796         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
19797         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
19798         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
19799         (issignalingf_inline): Likewise.
19800         (POWF_LOG2_TABLE_BITS): Likewise.
19801         (POWF_LOG2_POLY_ORDER): Likewise.
19802         (POWF_SCALE_BITS): Likewise.
19803         (POWF_SCALE): Likewise.
19804         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
19805         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
19806         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
19807
19808 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19809
19810         * math/Makefile (type-float-routines): Add e_log2f_data.
19811         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
19812         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
19813         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
19814         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
19815         * sysdeps/i386/fpu/e_log2f_data.c: New file.
19816         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
19817         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
19818
19819 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19820
19821         * math/Makefile (type-float-routines): Add e_logf_data.
19822         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
19823         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
19824         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
19825         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
19826         * sysdeps/i386/fpu/e_logf_data.c: New file.
19827         * sysdeps/ia64/fpu/e_logf_data.c: New file.
19828         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
19829
19830 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
19831
19832         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
19833         undefined _DYNAMIC in PIE libc.a.
19834         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
19835         Likewse.
19836
19837 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
19838
19839         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
19840         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
19841         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
19842         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
19843         (__signbit): Remove.
19844         (__signbitl): Remove.
19845         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
19846         (__signbit): Remove.
19847         (__signbitl): Remove.
19848         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
19849         (__signbit): Remove.
19850         (__signbitl): Remove.
19851         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
19852         (__signbit): Remove.
19853         (__signbitl): Remove.
19854         * sysdeps/tile/bits/mathinline.h: Delete file.
19855         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
19856         (__signbit): Remove.
19857         (__signbitl): Remove.
19858
19859 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
19860
19861         * math/math.h: Improve handling of C99 isgreater macros.
19862         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
19863         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
19864         * sysdeps/powerpc/bits/mathinline.h: Likewise.
19865         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
19866         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
19867
19868 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19869
19870         * sysdeps/aarch64/libm-test-ulps: Update.
19871
19872 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
19873
19874         [BZ #22225]
19875         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
19876         math_opt_barrier on argument when doing arithmetic on it.
19877         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19878         Likewise.  Use math_force_eval not math_opt_barrier after
19879         arithmetic.
19880         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
19881         math_opt_barrier on argument when doing arithmetic on it.
19882         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
19883         Likewise.
19884
19885 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
19886
19887         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
19888         libc_hidden_def.
19889         (__freeifaddrs): Likewise.
19890
19891 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19892
19893         * include/dirent.h (__dirfd): New declaration.
19894         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
19895         alias.
19896         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
19897         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
19898         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
19899         * include/unistd.h (__revoke): New declaration.
19900         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
19901         alias.
19902         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
19903         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
19904         revoke.
19905         * include/dirent.h (__seekdir): New declaration.
19906         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
19907         redefine as weak alias.
19908         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
19909         of seekdir.
19910         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
19911         and use libc_hidden_def on them.
19912         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
19913         them.
19914         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
19915         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
19916         instead of getifaddrs and freeifaddrs.
19917
19918 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
19919
19920         [BZ #18822]
19921         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
19922         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
19923         (__dso_handle): Remove declaration.
19924         * dlfcn/tstatexit.c (__dso_handle): Removed.
19925         (main): Don't check __dso_handle.
19926         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
19927         (main): Don't check __dso_handle.
19928         * include/dso_handle.h: New file.
19929         * malloc/mtrace.c: Include <dso_handle.h>.
19930         (mtrace): Pass __dso_handle directly.
19931         * nptl/pthread_atfork.c: Include <dso_handle.h>.
19932         (__dso_handle): Remove declaration.
19933         (__pthread_atfork): Pass __dso_handle directly.
19934         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
19935         (__dso_handle): Removed.
19936         * posix/wordexp-test.c: Include <dso_handle.h>.
19937         (__dso_handle): Remove declaration.
19938         (__app_register_atfork): Pass __dso_handle directly.
19939         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
19940         (__dso_handle): Remove declaration.
19941         (at_quick_exit): Pass __dso_handle directly.
19942         * stdlib/atexit.c: Include <dso_handle.h>.
19943         (__dso_handle): Remove declaration.
19944         (atexit): Pass __dso_handle directly.
19945         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
19946         (__dso_handle): Removed.
19947
19948 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
19949
19950         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
19951         using VDSO.
19952
19953 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
19954
19955         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
19956         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
19957         values to correct default value for given type.
19958
19959 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
19960
19961         [BZ #22101]
19962         * elf/Makefile (tests): Add tst-debug1.
19963         ($(objpfx)tst-debug1): New.
19964         ($(objpfx)tst-debug1.out): Likewise.
19965         ($(objpfx)tst-debug1mod1.so): Likewise.
19966         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
19967         with p_filesz == 0.
19968         * elf/tst-debug1.c: New file.
19969
19970 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
19971
19972         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
19973         Define using __ifunc.
19974
19975 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19976
19977         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
19978         exp2f() values.
19979
19980 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
19981
19982         [BZ #22156]
19983         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
19984
19985 2017-09-26  Florian Weimer  <fweimer@redhat.com>
19986
19987         * resolv/Makefile (tests-internal): Fix typo in comment.
19988
19989 2017-09-26  Florian Weimer  <fweimer@redhat.com>
19990
19991         * resolv/nss_dns/dns-host.c: Fix typo in comment.
19992
19993 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19994
19995         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
19996         Use an union instead of a max_align_t array for __space,
19997         so that __space is the same size on all platforms.
19998         * malloc/scratch_buffer_grow_preserve.c
19999         (__libc_scratch_buffer_grow_preserve): Likewise.
20000
20001         [BZ #22183]
20002         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
20003         version to 2.
20004         * posix/Makefile (routines): Add glob-lstat-compat and
20005         glob64-lstat-compat.
20006         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
20007         * posix/glob-lstat-compat.c: New file.
20008         * posix/glob64-lstat-compat.c: Likewise.
20009         * posix/tst-glob_lstat_compat.c: Likewise.
20010         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
20011         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
20012         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
20013         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
20014         Likewise.
20015         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
20016         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
20017         * posix/glob.c (glob_lstat): New function.
20018         (glob): Rename to __glob and add versioned symbol to 2.27.
20019         (glob_in_dir): Use glob_lstat.
20020         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
20021         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20022         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
20023         2.27.
20024         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
20025         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
20026         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
20027         gl_lstat on glob call.
20028         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
20029         and glob64 symbols.
20030         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20031         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20032         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20033         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20034         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20035         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20036         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20037         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20038         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
20039         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20040         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20041         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20043         Likewise.
20044         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
20045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
20046         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20047         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20048         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20049         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20050         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20051         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
20052         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
20053         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20054         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20055         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20056
20057 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
20058
20059         * configure.ac (AS): Require binutils 2.25 or later.
20060         * configure: Regenerated.
20061
20062 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
20063
20064         [BZ #22207]
20065         * stdlib/test-atexit-race-common.c (do_test): Minimize required
20066         VM size.
20067
20068 2017-09-25  DJ Delorie  <dj@redhat.com>
20069
20070         [BZ #22161]
20071         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
20072         resetting timeout.
20073
20074 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
20075
20076         * sysdeps/ieee754/dbl-64/sincos32.h
20077         [SINCCOS32_H]: Remove define.
20078         [SINCOS32_H]: Define.
20079
20080 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20081
20082         * math/Versions (expf): New libm symbol at GLIBC_2.27.
20083         (exp2f): Likewise.
20084         * math/w_exp2f.c: New file.
20085         * math/w_expf.c: New file.
20086         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
20087         * math/w_expf_compat.c (__expf_compat): Likewise.
20088         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
20089         * sysdeps/ia64/fpu/e_expf.S: Likewise.
20090         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
20091         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20092         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20093         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20094         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20095         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20096         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20097         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20098         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20099         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20100         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20101         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20103         Likewise.
20104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20105         Likewise.
20106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20107         Likewise.
20108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20109         Likewise.
20110         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20111         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20112         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20113         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20114         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20115         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20116         Likewise.
20117         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20118         Likewise.
20119         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20120         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20121         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20122
20123 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20124
20125         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
20126         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
20127         (roundtoint, converttoint): Likewise.
20128         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
20129         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
20130         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
20131         * sysdeps/ieee754/flt-32/math_config.h: New file.
20132         * sysdeps/ieee754/flt-32/math_errf.c: New file.
20133         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
20134         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
20135         * sysdeps/i386/fpu/math_errf.c: New file.
20136         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
20137         * sysdeps/ia64/fpu/math_errf.c: New file.
20138         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
20139         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
20140
20141 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20142
20143         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
20144         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
20145         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
20146         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
20147         to make sure that these symbols are defined.
20148         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
20149         of <limits.h>
20150         (__need_NULL): Do not define.
20151         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
20152         alignment.
20153         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
20154         CMGROUP_MAX, cmsgcred): Do not define.
20155         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
20156         NULL.
20157         * bits/socket.h: Likewise.
20158         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
20159         __gettimeofday instead of gettimeofday.
20160         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
20161         instead of settimeofday.
20162
20163 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
20164
20165         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
20166         (asinhf): Define using libm_alias_float.
20167         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
20168         (atanf): Define using libm_alias_float.
20169         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
20170         (cbrtf): Define using libm_alias_float.
20171         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
20172         (ceilf): Define using libm_alias_float.
20173         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
20174         <libm-alias-float.h>.
20175         (copysignf): Define using libm_alias_float.
20176         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
20177         (cosf): Define using libm_alias_float.
20178         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
20179         (erff): Define using libm_alias_float.
20180         (erfcf): Likewise.
20181         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
20182         (expm1f): Define using libm_alias_float.
20183         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
20184         (fabsf): Define using libm_alias_float.
20185         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
20186         (floorf): Define using libm_alias_float.
20187         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
20188         (frexpf): Define using libm_alias_float.
20189         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
20190         libm_alias_float.
20191         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
20192         <libm-alias-float.h>.
20193         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
20194         libm_alias_float.
20195         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
20196         <libm-alias-float.h>.
20197         (getpayloadf): Define using libm_alias_float.
20198         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
20199         <libm-alias-float.h>.
20200         (llrintf): Define using libm_alias_float.
20201         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
20202         <libm-alias-float.h>.
20203         (llroundf): Define using libm_alias_float.
20204         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
20205         (logbf): Define using libm_alias_float.
20206         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
20207         (lrintf): Define using libm_alias_float.
20208         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
20209         (lroundf): Define using libm_alias_float.
20210         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
20211         (modff): Define using libm_alias_float.
20212         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
20213         <libm-alias-float.h>.
20214         (nearbyintf): Define using libm_alias_float.
20215         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
20216         <libm-alias-float.h>.
20217         (nextafterf): Define using libm_alias_float.
20218         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
20219         <libm-alias-float.h>.
20220         (nextupf): Define using libm_alias_float.
20221         * sysdeps/ieee754/flt-32/s_remquof.c: Include
20222         <libm-alias-float.h>.
20223         (remquof): Define using libm_alias_float.
20224         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
20225         (rintf): Define using libm_alias_float.
20226         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
20227         <libm-alias-float.h>.
20228         (roundevenf): Define using libm_alias_float.
20229         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
20230         (roundf): Define using libm_alias_float.
20231         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
20232         using libm_alias_float.
20233         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
20234         <libm-alias-float.h>.
20235         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
20236         Define using libm_alias_float.
20237         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
20238         <libm-alias-float.h>.
20239         (sincosf): Define using libm_alias_float.
20240         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
20241         (sinf): Define using libm_alias_float.
20242         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
20243         (tanf): Define using libm_alias_float.
20244         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
20245         (tanhf): Define using libm_alias_float.
20246         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
20247         <libm-alias-float.h>.
20248         (totalorderf): Define using libm_alias_float.
20249         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
20250         <libm-alias-float.h>.
20251         (totalordermagf): Define using libm_alias_float.
20252         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
20253         (truncf): Define using libm_alias_float.
20254         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
20255         libm_alias_float.
20256         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
20257         libm_alias_float.
20258
20259 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20260
20261         [BZ #22146]
20262         math/math.h: Let fpclassify use the builtin in C++ mode, even
20263         when optimazing for size.
20264
20265 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
20266
20267         * csu/Makefile (generated): Do not add version-info.h.
20268         (before-compile): Likewise.
20269         (all-Banner-files): Remove variable.
20270         ($(objpfx)version-info.h): Remove rule.
20271         * csu/version.c (banner): Do not include "version-info.h".
20272         * libidn/Banner: Remove.
20273         * manual/contrib.texi (Simon Josefsson): New entry.
20274
20275 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20276
20277         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
20278         Remove conditionals on LDBL_MANT_DIG.
20279         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
20280         (__ieee754_lgammal_r): Likewise.
20281
20282 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20283
20284         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
20285         _Float128 and L().
20286         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
20287         _Float128 and L(). Replace _Float128 with long double and L(x)
20288         with xL, throughout the file.
20289         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
20290         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
20291         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
20292         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
20293
20294 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20295
20296         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
20297         sysdeps/ieee754/ldbl-128ibm.
20298         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
20299         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
20300         of including it.  Keep _Float128 and L() intact.  These will be
20301         reviewed by a separate patch.
20302         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
20303         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
20304         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
20305         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
20306
20307 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20308
20309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
20310         (__finitef128): Define to __redirect___finitef128.
20311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
20312         (__isinff128): Define to __redirect___isinff128.
20313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
20314         (__isnanf128): Define to __redirect___isnanf128.
20315
20316 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20317
20318         * sysdeps/powerpc/powerpc64le/Makefile
20319         (CFLAGS-tst-strtod-nan-locale.c): New variable.
20320         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
20321
20322 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
20323             Carlos O'Donell  <carlos@redhat.com>
20324
20325         [BZ #22180]
20326         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
20327         * stdlib/test-dlclose-exit-race.c: New file.
20328         * stdlib/test-dlclose-exit-race-helper.c: New file.
20329         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
20330
20331 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
20332
20333         * crypt/Banner: Remove file.
20334         * nptl/Banner: Likewise.
20335         * resolv/Banner: Likewise.
20336         * soft-fp/Banner: Likewise.
20337         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
20338         ($(objpfx)version.d): Remove dependency on banner.h.
20339         ($(objpfx)version.os): Likewise.
20340         * nptl/version.c (banner): Do not include banner.h.
20341         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
20342         Jelinek and BIND code.
20343
20344 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
20345             Carlos O'Donell  <carlos@redhat.com>
20346
20347         * support/xdlfcn.h: New file.
20348         * support/xdlfcn.c: New file.
20349         * support/Makefile (libsupport-routines): Add xdlfcn.
20350         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
20351
20352 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
20353
20354         [BZ #20142]
20355         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20356         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
20357         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
20358         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
20359         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
20360         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
20361         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
20362         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
20363
20364 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
20365             Ricky Zhou  <rickyz@google.com>
20366             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
20367
20368         [BZ #14333]
20369         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
20370         Remove atomics.
20371         (__new_exitfn): Fail registration when we finished at_exit processing.
20372         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
20373         * stdlib/on_exit.c (__on_exit): Likewise.
20374         * stdlib/exit.c (__exit_funcs_done): New variable.
20375         (__run_exit_handlers): Use __exit_funcs_lock.
20376         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
20377         declarations.
20378         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
20379         (test-cxa_atexit-race, test-on_exit-race): New tests.
20380         * stdlib/test-atexit-race-common.c: New file.
20381         * stdlib/test-atexit-race.c: New file.
20382         * stdlib/test-at_quick_exit-race.c: New file.
20383         * stdlib/test-cxa_atexit-race.c: New file.
20384         * stdlib/test-on_exit-race.c: New file.
20385
20386 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20387
20388         * benchtests/Makefile: Add exp2f and log2f benchmarks.
20389         * benchtests/exp2f-inputs: Copy of expf-inputs.
20390         * benchtests/log2f-inputs: Copy of logf-inputs.
20391
20392 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
20393
20394         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
20395         Explicitly take address of first element of array arguments in
20396         call to INLINE_SYSCALL.
20397
20398 2017-09-19  Andreas Schwab  <schwab@suse.de>
20399
20400         [BZ #22134]
20401         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
20402         execveat first.
20403         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
20404         unimplemented.
20405         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
20406         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
20407         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
20408         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
20409         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20410         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
20411         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20412         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
20413         * posix/Makefile (tests): Add tst-fexecve.
20414         * posix/tst-fexecve.c: New file.
20415
20416 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
20417
20418         * benchtests/Makefile: Add logf benchmark.
20419         * benchtests/logf-inputs: Add reduced trace from wrf_r.
20420
20421 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
20422
20423         * benchtests/Makefile: Add expf benchmark.
20424         * benchtests/expf-inputs: Add reduced trace from wrf_r.
20425
20426 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
20427
20428         * csu/Makefile: Add -funwind-tables to libc-start.c.
20429         * debug/Makefile: Add -funwind-tables to backtrace.c.
20430         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
20431         * sysdeps/arm/Makefile: Likewise.
20432         * sysdeps/i386/Makefile: Likewise.
20433         * sysdeps/m68k/Makefile: Likewise.
20434         * sysdeps/mips/Makefile: Likewise.
20435         * sysdeps/nios2/Makefile: Likewise.
20436         * sysdeps/sh/Makefile: Likewise.
20437         * sysdeps/sparc/Makefile: Likewise.
20438
20439 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
20440
20441         * benchtests/Makefile (bench-math): Add trunc and truncf.
20442         (CFLAGS-bench-trunc.c): New variable.
20443         (CFLAGS-bench-truncf.c): Likewise.
20444         * benchtests/trunc-inputs: New file.
20445         * benchtests/truncf-inputs: Likewise.
20446
20447 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20448
20449         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
20450
20451 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
20452
20453         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
20454         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
20455         redefine.
20456         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
20457         (exp10l): Define as weak alias.
20458         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
20459         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
20460         and redefine.
20461         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
20462         (remainderl): Define as weak alias.
20463
20464         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
20465         (fmal): Define using libm_alias_ldouble.
20466         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
20467         (acoshl): Define using libm_alias_ldouble.
20468         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
20469         (acosl): Define using libm_alias_ldouble.
20470         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
20471         (asinl): Define using libm_alias_ldouble.
20472         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
20473         (atan2l): Define using libm_alias_ldouble.
20474         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
20475         (atanhl): Define using libm_alias_ldouble.
20476         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
20477         (coshl): Define using libm_alias_ldouble.
20478         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
20479         (exp10l): Define using libm_alias_ldouble.
20480         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
20481         (exp2l): Define using libm_alias_ldouble.
20482         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
20483         (expl): Define using libm_alias_ldouble.
20484         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
20485         (fmodl): Define using libm_alias_ldouble.
20486         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
20487         (hypotl): Define using libm_alias_ldouble.
20488         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
20489         (j0l): Define using libm_alias_ldouble.
20490         (y0l): Likewise.
20491         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
20492         (j1l): Define using libm_alias_ldouble.
20493         (y1l): Likewise.
20494         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
20495         (jnl): Define using libm_alias_ldouble.
20496         (ynl): Likewise.
20497         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
20498         (log10l): Define using libm_alias_ldouble.
20499         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
20500         (log2l): Define using libm_alias_ldouble.
20501         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
20502         (logl): Define using libm_alias_ldouble.
20503         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
20504         (powl): Define using libm_alias_ldouble.
20505         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
20506         (remainderl): Define using libm_alias_ldouble.
20507         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
20508         (sinhl): Define using libm_alias_ldouble.
20509         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
20510         (sqrtl): Define using libm_alias_ldouble.
20511         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
20512         (tgammal): Define using libm_alias_ldouble.
20513         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
20514         (exp10l): Do not use long_double_symbol here.
20515         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
20516         [LIBM_SVID_COMPAT] (remainderl): Likewise.
20517         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
20518         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
20519         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
20520         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
20521         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
20522         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
20523         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
20524         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
20525         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
20526         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
20527         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
20528         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
20529         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
20530         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
20531         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
20532         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
20533         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
20534         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
20535         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
20536         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
20537
20538 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
20539
20540         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
20541         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
20542
20543 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20544
20545         * io/read.c (read): Add libc_hidden_weak.
20546         * sysdeps/mach/hurd/read.c (read): Likewise.
20547         * io/write.c (write): Likewise.
20548         * sysdeps/mach/hurd/write.c (write): Likewise.
20549         * io/pread64.c (__pread64): Likewise.
20550         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
20551         * posix/pread64.c (__pread64): Add libc_hidden_def.
20552
20553 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20554
20555         * benchtests/scripts/compare_strings.py: New option -g.
20556         (draw_graph): Print a message that a graph is being generated.
20557         (process_results): Generate graph only if -g is passed.
20558         (main): Process option -g.
20559
20560         * benchtests/scripts/compare_strings.py (process_results):
20561         Better spacing for output.
20562
20563         * benchtests/scripts/compare_strings.py: Use argparse.
20564         * benchtests/README: Document existence of compare_strings.py.
20565
20566 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
20567
20568         * math/s_fma.c: Include <libm-alias-double.h>.
20569         (fma): Define using libm_alias_double.
20570         * math/s_nextafter.c: Include <libm-alias-double.h>.
20571         (nextafter): Define using libm_alias_double.
20572         * math/w_acos_compat.c: Include <libm-alias-double.h>.
20573         (acos): Define using libm_alias_double.
20574         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
20575         (aocsh): Define using libm_alias_double.
20576         * math/w_asin_compat.c: Include <libm-alias-double.h>.
20577         (asin): Define using libm_alias_double.
20578         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
20579         (atan2): Define using libm_alias_double.
20580         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
20581         (atanh): Define using libm_alias_double.
20582         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
20583         (cosh): Define using libm_alias_double.
20584         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
20585         (exp10): Define using libm_alias_double.
20586         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
20587         (exp2): Define using libm_alias_double.
20588         * math/w_exp_compat.c: Include <libm-alias-double.h>.
20589         (exp): Define using libm_alias_double.
20590         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
20591         (fmod): Define using libm_alias_double.
20592         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
20593         (hypot): Define using libm_alias_double.
20594         * math/w_j0_compat.c: Include <libm-alias-double.h>.
20595         (j0): Define using libm_alias_double.
20596         (y0): Likewise.
20597         * math/w_j1_compat.c: Include <libm-alias-double.h>.
20598         (j1): Define using libm_alias_double.
20599         (y1): Likewise.
20600         * math/w_jn_compat.c: Include <libm-alias-double.h>.
20601         (jn): Define using libm_alias_double.
20602         (yn): Likewise.
20603         * math/w_log10_compat.c: Include <libm-alias-double.h>.
20604         (log10): Define using libm_alias_double.
20605         * math/w_log2_compat.c: Include <libm-alias-double.h>.
20606         (log2): Define using libm_alias_double.
20607         * math/w_log_compat.c: Include <libm-alias-double.h>.
20608         (log): Define using libm_alias_double.
20609         * math/w_pow_compat.c: Include <libm-alias-double.h>.
20610         (pow): Define using libm_alias_double.
20611         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
20612         (remainder): Define using libm_alias_double.
20613         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
20614         (sinh): Define using libm_alias_double.
20615         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
20616         (sqrt): Define using libm_alias_double.
20617         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
20618         (tgamma): Define using libm_alias_double.
20619         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
20620         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
20621         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
20622         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
20623         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
20624         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
20625         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
20626         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
20627         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
20628         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
20629         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
20630         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
20631         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
20632         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
20633         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
20634         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
20635         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
20636         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
20637         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
20638         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
20639         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
20640         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
20641         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
20642         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
20643         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
20644
20645         * math/e_acoshl.c: Remove.
20646         * math/e_acosl.c: Likewise.
20647         * math/e_asinl.c: Likewise.
20648         * math/e_atan2l.c: Likewise.
20649         * math/e_atanhl.c: Likewise.
20650         * math/e_coshl.c: Likewise.
20651         * math/e_expl.c: Likewise.
20652         * math/e_fmodl.c: Likewise.
20653         * math/e_gammal_r.c: Likewise.
20654         * math/e_hypotl.c: Likewise.
20655         * math/e_j0l.c: Likewise.
20656         * math/e_j1l.c: Likewise.
20657         * math/e_jnl.c: Likewise.
20658         * math/e_lgammal_r.c: Likewise.
20659         * math/e_log10l.c: Likewise.
20660         * math/e_log2l.c: Likewise.
20661         * math/e_logl.c: Likewise.
20662         * math/e_powl.c: Likewise.
20663         * math/e_rem_pio2l.c: Likewise.
20664         * math/e_sinhl.c: Likewise.
20665         * math/e_sqrtf128.c: Likewise.
20666         * math/e_sqrtl.c: Likewise.
20667         * math/k_cosl.c: Likewise.
20668         * math/k_sinl.c: Likewise.
20669         * math/k_tanl.c: Likewise.
20670         * math/s_asinhl.c: Likewise.
20671         * math/s_atanl.c: Likewise.
20672         * math/s_cbrtl.c: Likewise.
20673         * math/s_erfl.c: Likewise.
20674         * math/s_expm1l.c: Likewise.
20675         * math/s_log1pl.c: Likewise.
20676         * math/s_tanhl.c: Likewise.
20677
20678 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20679
20680         [BZ #21745]
20681         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
20682         [$(subdir) = math] (sysdep_calls): New variable.  Has the
20683         previous contents of sysdep_routines, but re-sorted..
20684         [$(subdir) = math] (sysdep_routines): Re-use the contents from
20685         sysdep_calls.
20686         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
20687         defined in sysdep_calls and replace by the respective m_* names.
20688         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
20689         (compat_symbol): Undefine to avoid duplicated compat symbols in
20690         libc.
20691
20692 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
20693
20694         * math/s_fmaf.c: Include <libm-alias-float.h>.
20695         (fmaf): Define using libm_alias_float.
20696         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
20697         (acosf): Define using libm_alias_float.
20698         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
20699         (acoshf): Define using libm_alias_float.
20700         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
20701         (asinf): Define using libm_alias_float.
20702         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
20703         (atan2f): Define using libm_alias_float.
20704         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
20705         (atanhf): Define using libm_alias_float.
20706         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
20707         (coshf): Define using libm_alias_float.
20708         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
20709         (exp10f): Define using libm_alias_float.
20710         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
20711         (fmodf): Define using libm_alias_float.
20712         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
20713         (hypotf): Define using libm_alias_float.
20714         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
20715         (j0f): Define using libm_alias_float.
20716         (y0f): Likewise.
20717         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
20718         (j1f): Define using libm_alias_float.
20719         (y1f): Likewise.
20720         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
20721         (jnf): Define using libm_alias_float.
20722         (ynf): Likewise.
20723         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
20724         (log10f): Define using libm_alias_float.
20725         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
20726         (log2f): Define using libm_alias_float.
20727         * math/w_logf_compat.c: Include <libm-alias-float.h>.
20728         (logf): Define using libm_alias_float.
20729         * math/w_powf_compat.c: Include <libm-alias-float.h>.
20730         (powf): Define using libm_alias_float.
20731         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
20732         (remainderf): Define using libm_alias_float.
20733         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
20734         (sinhf): Define using libm_alias_float.
20735         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
20736         (sqrtf): Define using libm_alias_float.
20737         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
20738         (tgammaf): Define using libm_alias_float.
20739
20740 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
20741
20742         * include/math.h (roundeven): Change hidden_proto call to
20743         __roundeven.
20744         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
20745         alias.
20746         [NO_LONG_DOUBLE] (__j0l): New strong alias.
20747         (y0): Rename to __y0 and define as weak alias.
20748         [NO_LONG_DOUBLE] (__y0l): New strong alias.
20749         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
20750         alias.
20751         (y0f): Rename to __y0f and define as weak alias.
20752         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
20753         alias.
20754         [NO_LONG_DOUBLE] (__j1l): New strong alias.
20755         (y1): Rename to __y1 and define as weak alias.
20756         [NO_LONG_DOUBLE] (__y1l): New strong alias.
20757         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
20758         alias.
20759         (y1f): Rename to __y1f and define as weak alias.
20760         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
20761         alias.
20762         [NO_LONG_DOUBLE] (__jnl): New strong alias.
20763         (yn): Rename to __yn and define as weak alias.
20764         [NO_LONG_DOUBLE] (__ynl): New strong alias.
20765         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
20766         alias.
20767         (ynf): Rename to __ynf and define as weak alias.
20768         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
20769         (fromfp): Define as weak alias.
20770         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
20771         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
20772         (fromfpx): Define as weak alias.
20773         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
20774         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
20775         __getpayload and define as weak alias.
20776         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
20777         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
20778         __roundeven and define as weak alias.
20779         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
20780         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
20781         __setpayload.
20782         (setpayload): Define as weak alias.
20783         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
20784         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
20785         __setpayloadsig.
20786         (setpayloadsig): Define as weak alias.
20787         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
20788         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
20789         __totalorder and define as weak alias.
20790         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
20791         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
20792         to __totalordermag and define as weak alias.
20793         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
20794         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
20795         (ufromfp): Define as weak alias.
20796         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
20797         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
20798         __ufromfpx.
20799         (ufromfpx): Define as weak alias.
20800         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
20801         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
20802         Rename to __getpayload and define as weak alias.
20803         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
20804         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
20805         Rename to __roundeven and define as weak alias.
20806         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
20807         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
20808         Rename to __totalorder and define as weak alias.
20809         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
20810         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
20811         (totalordermag): Rename to __totalordermag and define as weak
20812         alias.
20813         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
20814         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
20815         macro.
20816         (__roundevenl): Likewise.
20817         (__totalorderl): Likewise.
20818         (__totalordermagl): Likewise
20819         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
20820         __fromfpf128.
20821         (fromfpf128): Define as weak alias.
20822         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
20823         __fromfpxf128.
20824         (fromfpxf128): Define as weak alias.
20825         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
20826         __setpayloadf128.
20827         (setpayloadf128): Define as weak alias.
20828         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
20829         __setpayloadsigf128.
20830         (setpayloadsigf128): Define as weak alias.
20831         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
20832         __ufromfpf128.
20833         (ufromfpf128): Define as weak alias.
20834         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
20835         __ufromfpxf128.
20836         (ufromfpxf128): Define as weak alias.
20837         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
20838         (fromfpf): Define as weak alias.
20839         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
20840         __fromfpxf.
20841         (fromfpxf): Define as weak alias.
20842         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
20843         __getpayloadf and define as weak alias.
20844         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
20845         __roundevenf and define as weak alias.
20846         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
20847         __setpayloadf.
20848         (setpayloadf): Define as weak alias.
20849         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
20850         __setpayloadsigf.
20851         (setpayloadsigf): Define as weak alias.
20852         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
20853         __totalorderf and define as weak alias.
20854         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
20855         Rename to __totalordermagf and define as weak alias.
20856         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
20857         __ufromfpf.
20858         (ufromfpf): Define as weak alias.
20859         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
20860         __ufromfpxf.
20861         (ufromfpxf): Define as weak alias.
20862         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
20863         __fromfpl.
20864         (fromfpl): Define as weak alias.
20865         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
20866         __fromfpxl.
20867         (fromfpxl): Define as weak alias.
20868         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
20869         to __getpayloadl and define as weak alias.
20870         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
20871         __roundevenl and define as weak alias.
20872         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
20873         __setpayloadl.
20874         (setpayloadl): Define as weak alias.
20875         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
20876         __setpayloadsigl.
20877         (setpayloadsigl): Define as weak alias.
20878         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
20879         to __totalorderl and define as weak alias.
20880         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
20881         Rename to __totalordermagl and define as weak alias.
20882         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
20883         __ufromfpl.
20884         (ufromfpl): Define as weak alias.
20885         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
20886         __ufromfpxl.
20887         (ufromfpxl): Define as weak alias.
20888         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
20889         __fromfpl.
20890         (fromfpl): Define as weak alias.
20891         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
20892         __fromfpxl.
20893         (fromfpxl): Define as weak alias.
20894         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
20895         Rename to __getpayloadl and define as weak alias.
20896         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
20897         to __roundevenl and define as weak alias.  Call __roundeven
20898         instead of roundeven.
20899         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
20900         __setpayloadl.
20901         (setpayloadl): Define as weak alias.
20902         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
20903         __setpayloadsigl.
20904         (setpayloadsigl): Define as weak alias.
20905         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
20906         Rename to __totalorderl and define as weak alias.
20907         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
20908         Rename to __totalordermagl and define as weak alias.
20909         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
20910         __ufromfpl.
20911         (ufromfpl): Define as weak alias.
20912         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
20913         __ufromfpxl.
20914         (ufromfpxl): Define as weak alias.
20915         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
20916         __fromfpl.
20917         (fromfpl): Define as weak alias.
20918         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
20919         __fromfpxl.
20920         (fromfpxl): Define as weak alias.
20921         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
20922         __getpayloadl and define as weak alias.
20923         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
20924         __roundevenl and define as weak alias.
20925         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
20926         __setpayloadl.
20927         (setpayloadl): Define as weak alias.
20928         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
20929         __setpayloadsigl.
20930         (setpayloadsigl): Define as weak alias.
20931         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
20932         __totalorderl and define as weak alias.
20933         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
20934         Rename to __totalordermagl and define as weak alias.
20935         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
20936         __ufromfpl.
20937         (ufromfpl): Define as weak alias.
20938         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
20939         __ufromfpxl.
20940         (ufromfpxl): Define as weak alias.
20941
20942 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20943
20944         * benchtests/bench-string.h (realloc_bufs): New function.
20945         (test_init): Call it.
20946         * benchtests/bench-memset-large.c (do_test): Likewise.
20947         * benchtests/bench-memset.c (do_test): Likewise.
20948
20949         * benchtests/bench-memset-large.c: Print output in JSON
20950         format.
20951         * benchtests/bench-memset.c: Likewise.
20952
20953 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
20954
20955         [BZ #21084]
20956         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
20957         * iconvdata/Makefile: Add IBM858.
20958         * iconvdata/gconv-modules: Likewise.
20959         * iconvdata/tst-tables.sh: Likewise.
20960         * iconvdata/ibm858.c: New file.
20961         * localedata/charmaps/IBM858: Likewise.
20962
20963 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
20964
20965         [BZ #22023]
20966         * locales/niu_NZ (LC_TIME): copy "niu_NU".
20967         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
20968
20969 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
20970
20971         [BZ #22112]
20972         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
20973         and add tel_int_fmt.
20974
20975 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
20976
20977         * sysdeps/generic/libm-alias-float128.h: New file.
20978         * sysdeps/generic/math-type-macros-float128.h: Include
20979         <libm-alias-float128.h>.
20980         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
20981
20982 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
20983
20984         * sysdeps/generic/libm-alias-ldouble.h: New file.
20985         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
20986         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
20987         * sysdeps/generic/math-type-macros-ldouble.h: Include
20988         <libm-alias-ldouble.h>.
20989         [!declare_mgen_alias] (declare_mgen_alias): Define to use
20990         libm_alias_ldouble.
20991
20992 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20993
20994         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
20995         * math/w_exp_compat.c: ... here.
20996         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
20997         * math/w_expf_compat.c: ... here.
20998         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
20999         * math/w_expl_compat.c: ... here.
21000         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
21001         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
21002         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
21003         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
21004
21005 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
21006
21007         * math/w_scalbln_template.c (strong_alias): Do not undefine and
21008         redefine.
21009         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
21010         macro.
21011         (ldexpl): Only define as compat symbol for libc, not libm.
21012         (scalbnl): Define as compat symbol for libc here.
21013         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
21014         define for [IS_IN (libc)].
21015         (__ldexpl_2): Remove alias.
21016         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
21017         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
21018         name in long_double_symbol call.
21019         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
21020         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
21021         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
21022         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
21023         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
21024         Remove macro.
21025         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
21026         Define as compat symbol.
21027
21028 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21029
21030         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
21031         * sysdeps/unix/sysv/linux/alpha/Makefile
21032         [$(subdir) = csu] (sysdep_routines): Remove rule.
21033
21034 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
21035
21036         * sysdeps/generic/libm-alias-double.h: New file.
21037         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
21038         * sysdeps/generic/math-type-macros-double.h: Include
21039         <libm-alias-double.h>.
21040         [declare_mgen_alias] (declare_mgen_alias): Define to use
21041         libm_alias_double.
21042         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
21043         (M_LIBM_NEED_COMPAT): Remove macro.
21044         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
21045         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
21046         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
21047         code.
21048         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21049         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21050         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21051         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21052         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21053         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21054         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21055         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21056         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21057         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21058         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21059         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21060         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21061         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21062         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21063         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21064         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21065         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21066         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21067         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21068         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21069         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21070         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21071         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21072         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21073         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21074         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21075         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
21076         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
21077         macro.
21078         (declare_mgen_alias): New macro.
21079         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
21080         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
21081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
21082         (M_LIBM_NEED_COMPAT): Remove macro.
21083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
21084         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
21085         <first-versions.h>.
21086         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
21087         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
21088
21089 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
21090
21091         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
21092         (declare_mgen_alias_2): Remove.
21093         * sysdeps/generic/math-type-macros-double.h
21094         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
21095         Likewise.
21096         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
21097         alias.
21098         (ldexp): Define with declare_mgen_alias.
21099         (scalbn): Likewise.
21100
21101 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
21102
21103         * grp/initgroups.c: Include config.h.
21104         (DEFAULT_CONFIG): New macro.
21105         (internal_getgrouplist): Use DEFAULT_CONFIG.
21106         * nscd/initgrcache.c (addinitgroupsX): Likewise.
21107         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
21108         (DEFAULT_DEFCONFIG): New macro.
21109         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
21110         * nss/grp-lookup.c: Include config.h
21111         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
21112         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
21113         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
21114         * manual/nss.texi: Update default values section.
21115
21116 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
21117
21118         [BZ #21967]
21119         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
21120         New.
21121         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
21122         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
21123         Handle MathVec_Prefer_No_AVX512.
21124         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
21125         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
21126         is set.
21127
21128 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21129
21130         * posix/sched_primax.c (__sched_get_priority_max): Add
21131         libc_hidden_def.
21132         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
21133         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
21134         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
21135         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
21136         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
21137         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
21138         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
21139         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
21140         Add aliases.
21141
21142 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
21143
21144         * sysdeps/generic/libm-alias-float.h: New file.
21145         * sysdeps/generic/math-type-macros-float.h: Include
21146         <libm-alias-float.h>.
21147         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
21148
21149 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
21150
21151         [BZ #22093]
21152         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
21153         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
21154         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
21155         (HWCAP_IMPORTANT): Likewise.
21156         (HWCAP_X86_64): New enum.
21157         (HWCAP_X86_AVX512_1): Updated.
21158         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
21159         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
21160         (modules-names): Add x86_64/tst-x86_64mod-1.
21161         (LDFLAGS-tst-x86_64mod-1.so): New.
21162         ($(objpfx)tst-x86_64-1): Likewise.
21163         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
21164         (tst-x86_64-1-clean): Likewise.
21165         * sysdeps/x86_64/tst-x86_64-1.c: New file.
21166         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
21167
21168 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21169
21170         * po/sv.po: Update translations.
21171         * po/fr.po: Likewise.
21172
21173 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21174
21175         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
21176         seconds.
21177         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
21178         seconds.
21179         * elf/rtld-Rules: Fix $(error) use.
21180
21181 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
21182
21183         [BZ #14925]
21184         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
21185         * locale/iso-639.def: Change “Bengali” to “Bangla”.
21186         * localedata/locales/bn_BD: “Bengali” was still used in some
21187         comments. Change it to “Bangla”.
21188
21189 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
21190
21191         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
21192
21193 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
21194
21195         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
21196         thunderx2t99p1 to list of cpu names.
21197         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
21198         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
21199
21200 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
21201
21202         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
21203         Use strcmp instead of tunable_is_name.
21204
21205 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
21206
21207         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
21208         (F_GET_RW_HINT): New macro.
21209         [__USE_GNU] (F_SET_RW_HINT): Likewise.
21210         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
21211         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
21212         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
21213         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
21214         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
21215         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
21216         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
21217         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
21218
21219         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
21220         (F_ADD_SEALS): New macro.
21221         [__USE_GNU] (F_GET_SEALS): Likewise.
21222         [__USE_GNU] (F_SEAL_SEAL): Likewise.
21223         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
21224         [__USE_GNU] (F_SEAL_GROW): Likewise.
21225         [__USE_GNU] (F_SEAL_WRITE): Likewise.
21226
21227 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21228
21229         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21230         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21231         * posix/glob_internal.h (__glob_pattern_type):
21232         * posix/glob.c (glob):
21233         * posix/glob_pattern_p.c (__glob_pattern_p):
21234         Use them.
21235
21236         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
21237         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
21238         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
21239         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
21240         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
21241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
21242         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
21243         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
21244         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
21245         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
21246         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
21247         * sysdeps/wordsize-64/glob.c: Likewise.
21248         * sysdeps/wordsize-64/glob64.c: Likewise.
21249         * sysdeps/wordsize-64/globfree.c: Likewise.
21250         * sysdeps/wordsize-64/globfree64.c: Likewise.
21251         * sysdeps/unix/sysv/linux/glob.c: New file.
21252         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
21253         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
21254         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
21255         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
21256         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
21257         adds !GLOB_NO_OLD_VERSION as an extra condition.
21258         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
21259         using relative path instead of absolute one.
21260         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
21261         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
21262         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
21263         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
21264         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
21265         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
21266
21267         [BZ #1062]
21268         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
21269         (glob): Use the same scratch buffer for both getlogin_r and
21270         getpwnam_r.  Don’t require preallocation of the login name.  This
21271         simplifies storage allocation, and corrects the handling of
21272         long login names.
21273
21274         [BZ #1062]
21275         * posix/glob.c (glob): Port recent patches to platforms
21276         lacking getpwnam_r.
21277         (glob): Fix longstanding misuse of errno after getpwnam_r, which
21278         returns an error number rather than setting errno.
21279
21280         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
21281         instead of GCC extension.
21282         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
21283         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
21284         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
21285
21286         [BZ #866]
21287         [BZ #1062]
21288         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
21289         * posix/bug-glob1.c: Remove file.
21290         * posix/tst-glob_symlinks.c: New file.
21291         * posix/glob.c (__lstat64): New macro.
21292         (is_dir): New function.
21293         (glob, glob_in_dir): Match symlinks even if they are dangling.
21294         (link_stat, link_exists_p): Remove.  All uses removed.
21295
21296         [BZ #1062]
21297         [BZ #19971]
21298         * posix/glob.c (struct readdir_result): Remove skip_entry member.
21299         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21300         All uses removed.
21301
21302         [BZ #1062]
21303         CVE-2017-15671
21304         * posix/Makefile (routines): Add globfree, globfree64, and
21305         glob_pattern_p.
21306         * posix/flexmember.h: New file.
21307         * posix/glob_internal.h: Likewise.
21308         * posix/glob_pattern_p.c: Likewise.
21309         * posix/globfree.c: Likewise.
21310         * posix/globfree64.c: Likewise.
21311         * sysdeps/gnu/globfree64.c: Likewise.
21312         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
21313         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
21314         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
21315         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
21316         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
21317         * sysdeps/wordsize-64/globfree.c: Likewise.
21318         * sysdeps/wordsize-64/globfree64.c: Likewise.
21319         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
21320         [NDEBUG): Remove comments.
21321         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
21322         (dirent_type): New type.  Use uint_fast8_t not
21323         uint8_t, as C99 does not require uint8_t.
21324         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
21325         (struct readdir_result): Use dirent_type.  Do not define skip_entry
21326         unless it is needed; this saves a byte on platforms lacking d_ino.
21327         (readdir_result_type, readdir_result_skip_entry):
21328         New functions, replacing ...
21329         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21330          these functions, which were removed.  This makes the callers
21331         easier to read.  All callers changed.
21332         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21333         (size_add_wrapv, glob_use_alloca): New static functions.
21334         (glob, glob_in_dir): Check for size_t overflow in several places,
21335         and fix some size_t checks that were not quite right.
21336         Remove old code using SHELL since Bash no longer
21337         uses this.
21338         (glob, prefix_array): Separate MS code better.
21339         (glob_in_dir): Remove old Amiga and VMS code.
21340         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21341         separate files.
21342         (glob_in_dir): Do not rely on undefined behavior in accessing
21343         struct members beyond their bounds.  Use a flexible array member
21344         instead
21345         (link_stat): Rename from link_exists2_p and return -1/0 instead of
21346         0/1.  Caller changed.
21347         (glob): Fix memory leaks.
21348         * posix/glob64 (globfree64): Move to separate file.
21349         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
21350         (globfree64): Remove hidden alias.
21351         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
21352         oldglob.
21353         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
21354         separate file.
21355         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
21356         define.
21357         Move compat code to separate file.
21358         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
21359         separate file.
21360
21361 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
21362
21363         * resolv/tst-resolv-qtypes.c (domain): Changed to
21364         "const char domain[] =".
21365
21366 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
21367
21368         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21369         version to 3.1.6.
21370
21371         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
21372         (TCP_MD5SIG_EXT): Likewise.
21373         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
21374         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
21375         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
21376
21377         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
21378
21379 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
21380
21381         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
21382
21383 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
21384
21385         [BZ #22100]
21386         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
21387
21388 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21389
21390         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
21391         before assuming that the file is empty.  Avoid testing buffer content
21392         when nread == 0.
21393
21394 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21395
21396         [BZ #18858]
21397         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
21398         Remove define.
21399         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
21400         Likewise.
21401         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
21402         Likewise.
21403         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
21404         Likewise.
21405         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
21406         Likewise.
21407         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
21408         Likewise.
21409         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
21410         Likewise.
21411
21412 2017-09-06  Florian Weimer  <fweimer@redhat.com>
21413
21414         * malloc/dynarray_emplace_enlarge.c
21415         (__libc_dynarray_emplace_enlarge): Add missing else.
21416
21417 2017-09-06  Florian Weimer  <fweimer@redhat.com>
21418
21419         [BZ #22096]
21420         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
21421         case of failure to obtain the global conf object.
21422
21423 2017-09-06  Florian Weimer  <fweimer@redhat.com>
21424
21425         [BZ #22095]
21426         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
21427         dynarray allocation failure.
21428
21429 2017-09-06  Florian Weimer  <fweimer@redhat.com>
21430
21431         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
21432         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
21433         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
21434         New functions.
21435         (response): Call them.  Add 'p', '6' flag processing.
21436         (test_reverse): New function.
21437         (test_get2_any): Call it.
21438         (test_no_inet6): Add 'p' test.
21439         (test_inet6): Likewise.
21440
21441 2017-09-06  Florian Weimer  <fweimer@redhat.com>
21442
21443         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
21444         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
21445         the QNAME.
21446         (test_gai): Adjust query names.  Add additional tests.
21447         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
21448         test_get2.  Adjust query names.  Add additional tests.
21449         (test_no_inet6): New function, extracted from threadfunc.
21450         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
21451         Add additional tests.
21452
21453 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
21454
21455         [BZ #22070]
21456         * localedata/unicode-gen/utf8_gen.py: Set the width for
21457         characters with Prepended_Concatenation_Mark property to 1
21458         * localedata/charmaps/UTF-8: Updated using the improved script.
21459
21460 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
21461
21462         [BZ #21750]
21463         * localedata/unicode-gen/utf8_gen.py: Improve the script to
21464         use the range notation for all ranges of neighbouring characters
21465         with the same width.
21466
21467 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
21468
21469         * sysdeps/generic/math-type-macros-double.h: Include
21470         <math-svid-compat.h>.
21471         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21472         * sysdeps/generic/math-type-macros-float.h: Include
21473         <math-svid-compat.h>.
21474         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21475         * sysdeps/generic/math-type-macros-ldouble.h: Include
21476         <math-svid-compat.h>.
21477         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21478         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
21479         condition.
21480         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
21481         * math/w_acosf_compat.c: Likewise.
21482         * math/w_acosh_compat.c: Likewise.
21483         * math/w_acoshf_compat.c: Likewise.
21484         * math/w_acoshl_compat.c: Likewise.
21485         * math/w_acosl_compat.c: Likewise.
21486         * math/w_asin_compat.c: Likewise.
21487         * math/w_asinf_compat.c: Likewise.
21488         * math/w_asinl_compat.c: Likewise.
21489         * math/w_atan2_compat.c: Likewise.
21490         * math/w_atan2f_compat.c: Likewise.
21491         * math/w_atan2l_compat.c: Likewise.
21492         * math/w_atanh_compat.c: Likewise.
21493         * math/w_atanhf_compat.c: Likewise.
21494         * math/w_atanhl_compat.c: Likewise.
21495         * math/w_cosh_compat.c: Likewise.
21496         * math/w_coshf_compat.c: Likewise.
21497         * math/w_coshl_compat.c: Likewise.
21498         * math/w_exp10_compat.c: Likewise.
21499         * math/w_exp10f_compat.c: Likewise.
21500         * math/w_exp10l_compat.c: Likewise.
21501         * math/w_exp2_compat.c: Likewise.
21502         * math/w_exp2f_compat.c: Likewise.
21503         * math/w_exp2l_compat.c: Likewise.
21504         * math/w_fmod_compat.c: Likewise.
21505         * math/w_fmodf_compat.c: Likewise.
21506         * math/w_fmodl_compat.c: Likewise.
21507         * math/w_hypot_compat.c: Likewise.
21508         * math/w_hypotf_compat.c: Likewise.
21509         * math/w_hypotl_compat.c: Likewise.
21510         * math/w_j0_compat.c: Likewise.
21511         * math/w_j0f_compat.c: Likewise.
21512         * math/w_j0l_compat.c: Likewise.
21513         * math/w_j1_compat.c: Likewise.
21514         * math/w_j1f_compat.c: Likewise.
21515         * math/w_j1l_compat.c: Likewise.
21516         * math/w_jn_compat.c: Likewise.
21517         * math/w_jnf_compat.c: Likewise.
21518         * math/w_jnl_compat.c: Likewise.
21519         * math/w_lgamma_r_compat.c: Likewise.
21520         * math/w_lgammaf_r_compat.c: Likewise.
21521         * math/w_lgammal_r_compat.c: Likewise.
21522         * math/w_log10_compat.c: Likewise.
21523         * math/w_log10f_compat.c: Likewise.
21524         * math/w_log10l_compat.c: Likewise.
21525         * math/w_log2_compat.c: Likewise.
21526         * math/w_log2f_compat.c: Likewise.
21527         * math/w_log2l_compat.c: Likewise.
21528         * math/w_log_compat.c: Likewise.
21529         * math/w_logf_compat.c: Likewise.
21530         * math/w_logl_compat.c: Likewise.
21531         * math/w_pow_compat.c: Likewise.
21532         * math/w_powf_compat.c: Likewise.
21533         * math/w_powl_compat.c: Likewise.
21534         * math/w_remainder_compat.c: Likewise.
21535         * math/w_remainderf_compat.c: Likewise.
21536         * math/w_remainderl_compat.c: Likewise.
21537         * math/w_sinh_compat.c: Likewise.
21538         * math/w_sinhf_compat.c: Likewise.
21539         * math/w_sinhl_compat.c: Likewise.
21540         * math/w_sqrt_compat.c: Likewise.
21541         * math/w_sqrtf_compat.c: Likewise.
21542         * math/w_sqrtl_compat.c: Likewise.
21543         * math/w_tgamma_compat.c: Likewise.
21544         * math/w_tgammaf_compat.c: Likewise.
21545         * math/w_tgammal_compat.c: Likewise.
21546         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
21547         [LIBM_SVID_COMPAT].
21548         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
21549         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
21550         [LIBM_SVID_COMPAT].
21551         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
21552         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
21553         [LIBM_SVID_COMPAT].
21554         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
21555         * sysdeps/i386/fpu/w_sqrt.c: New file.
21556         * sysdeps/ia64/fpu/w_acos.c: Likewise.
21557         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
21558         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
21559         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
21560         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
21561         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
21562         * sysdeps/ia64/fpu/w_asin.c: Likewise.
21563         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
21564         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
21565         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
21566         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
21567         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
21568         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
21569         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
21570         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
21571         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
21572         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
21573         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
21574         * sysdeps/ia64/fpu/w_exp.c: Likewise.
21575         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
21576         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
21577         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
21578         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
21579         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
21580         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
21581         * sysdeps/ia64/fpu/w_expf.c: Likewise.
21582         * sysdeps/ia64/fpu/w_expl.c: Likewise.
21583         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
21584         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
21585         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
21586         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
21587         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
21588         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
21589         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
21590         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
21591         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
21592         * sysdeps/ia64/fpu/w_log.c: Likewise.
21593         * sysdeps/ia64/fpu/w_log10.c: Likewise.
21594         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
21595         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
21596         * sysdeps/ia64/fpu/w_log2.c: Likewise.
21597         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
21598         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
21599         * sysdeps/ia64/fpu/w_logf.c: Likewise.
21600         * sysdeps/ia64/fpu/w_logl.c: Likewise.
21601         * sysdeps/ia64/fpu/w_pow.c: Likewise.
21602         * sysdeps/ia64/fpu/w_powf.c: Likewise.
21603         * sysdeps/ia64/fpu/w_powl.c: Likewise.
21604         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
21605         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
21606         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
21607         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
21608         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
21609         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
21610         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
21611         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
21612         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
21613         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
21614         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
21615         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
21616         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
21617         [LIBM_SVID_COMPAT].
21618         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
21619         * sysdeps/ieee754/k_standard.c: Likewise.
21620         * sysdeps/ieee754/k_standardf.c: Likewise.
21621         * sysdeps/ieee754/k_standardl.c: Likewise.
21622         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
21623         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
21624         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
21625         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
21626         long_double_symbol call on [LIBM_SVID_COMPAT].
21627         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
21628         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
21629         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
21630         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
21631         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
21632         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
21633         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
21634         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
21635         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
21636         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
21637         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
21638         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
21639         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
21640         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
21641         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
21642         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
21643         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
21644         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
21645         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
21646         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
21647         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
21648         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
21649
21650 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
21651
21652         * include/shlib-compat.h (TEST_COMPAT): New Macro.
21653         * malloc/tst-mallocstate.c: Convert from test-skeleton
21654         to test-driver.  Ifdef code using TEST_COMPAT macro.
21655         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
21656         * math/test-matherr.c: Likewise.
21657
21658 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
21659
21660         [BZ #22086]
21661         * debug/pcprofiledump.c (main): Use byte-swapped mask when
21662         comparing word with byte-swapped constant.
21663
21664 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
21665
21666         [BZ #20498]
21667         * locale/iso-639.def: add Miskito.
21668         * localedata/SUPPORTED: Add miq_NI/UTF-8.
21669         * localedata/locales/miq_NI: New file.
21670
21671 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
21672
21673         [BZ #18822]
21674         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
21675         (__mkdir): Likewise.
21676         * io/chmod.c (__chmod): Add libc_hidden_def.
21677         * io/mkdir.c (__mkdir): Likewise.
21678         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
21679         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
21680         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
21681         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
21682
21683 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
21684
21685         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21686         version to 4.13.
21687
21688         [BZ #22082]
21689         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
21690         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
21691
21692 2017-09-04  Florian Weimer  <fweimer@redhat.com>
21693
21694         * math/math.h: Issue warning if log is defined.
21695
21696 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
21697
21698         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21699         kernel version to 4.13.
21700
21701 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21702
21703         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
21704         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
21705         parameter.
21706         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
21707         just <bits/types.h>.
21708         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
21709         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
21710         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
21711         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
21712         * misc/preadv2.c: Include <errno.h>.
21713         * misc/preadv64v2.c: Include <errno.h>.
21714         * misc/pwritev2.c: Include <errno.h>.
21715         * misc/pwritev64v2.c: Include <errno.h>.
21716         * sysdeps/posix/preadv2.c: Include <errno.h>.
21717         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
21718         Fix <unistd.h> inclusion.
21719         * sysdeps/posix/pwritev2.c: Include <errno.h>.
21720         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
21721         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
21722         __strtoul_internal): New functions.
21723         * sysdeps/posix/pause.c: Include <sigsetops.h>.
21724         * sysdeps/posix/system.c: Include <sigsetops.h>.
21725         * sysdeps/mach/hurd/i386/Makefile
21726         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
21727         [$(subdir) = csu] (sysdep-only-routines): Likewise.
21728         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
21729         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
21730         __feraiseexcept_renamed to feraiseexcept instead of
21731         __GI_feraiseexcept.
21732         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
21733         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
21734         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
21735         RWF_NOWAIT): Define to 0 if undefined already.
21736         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
21737         boils down to 0.
21738         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
21739         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
21740
21741 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
21742
21743         * manual/math.texi (pow10): Do not document.
21744         (pow10f): Likewise.
21745         (pow10l): Likewise.
21746         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
21747         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
21748         * math/libm-test-exp10.inc (pow10_test): Remove.
21749         (do_test): Do not call pow10.
21750         * math/w_exp10_compat.c (pow10): Make into compat symbol.
21751         [NO_LONG_DOUBLE] (pow10l): Likewise.
21752         * math/w_exp10f_compat.c (pow10f): Likewise.
21753         * math/w_exp10l_compat.c (pow10l): Likewise.
21754         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
21755         (pow10): Make into compat symbol.
21756         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
21757         (pow10f): Make into compat symbol.
21758         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
21759         (pow10l): Make into compat symbol.
21760         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
21761         pow10.
21762         (CFLAGS-nldbl-pow10.c): Remove variable..
21763         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
21764         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
21765         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
21766         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
21767         Undefine and redefine.
21768         (pow10l): Make into compat symbol.
21769         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
21770         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
21771         * sysdeps/arm/libm-test-ulps: Likewise.
21772         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
21773         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21774         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21775         * sysdeps/microblaze/libm-test-ulps: Likewise.
21776         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
21777         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21778         * sysdeps/nios2/libm-test-ulps: Likewise.
21779         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21780         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
21781         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
21782         * sysdeps/sh/libm-test-ulps: Likewise.
21783         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
21784         * sysdeps/tile/libm-test-ulps: Likewise.
21785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21786
21787 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
21788
21789         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
21790
21791 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
21792
21793         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
21794         "../ChangeLog.old/ChangeLog.8".
21795         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
21796         "../ChangeLog.old/ChangeLog.14".
21797
21798 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
21799
21800         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
21801         Threads Library.
21802
21803 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
21804
21805         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
21806
21807 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
21808
21809         * csu/version.c (banner): Remove "by Roland McGrath et al.".
21810         * nptl/Banner: Remove "by Ulrich Drepper et al.".
21811
21812 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
21813
21814         * stdlib/tst-atexit-common.c (do_test): Test support for at least
21815         32 atexit handlers.
21816
21817 2017-09-01  Zack Weinberg  <zackw@panix.com>
21818
21819         * math/math.h (HUGE_VAL): Improve commentary.
21820
21821 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21822             Andreas Schwab  <schwab@suse.de>
21823
21824         [BZ #21530]
21825         * include/stdio.h (__gen_tempfd): New function.
21826         * stdio-common/Makefile (routines): Add gentempfd.
21827         * stdio-common/gentempfd.c: New file.
21828         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
21829         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
21830         unnamed file first.
21831
21832 2017-09-01  Florian Weimer  <fweimer@redhat.com>
21833
21834         [BZ #21915]
21835         [BZ #21922]
21836         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
21837         result to determine success or failure, not the errno value.
21838         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
21839         (tst-nss-files-hosts-erange): Link with -ldl.
21840         * nss/tst-nss-files-hosts-erange.c: New file.
21841         * nss/tst-resolv-basic.c (response): Handle nodata.example.
21842         (do_test): Add NO_DATA tests.
21843         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
21844         (do_test): Call it.
21845
21846 2017-09-01  Florian Weimer  <fweimer@redhat.com>
21847
21848         [BZ #21922]
21849         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
21850         coming from gethostbyname2_r.
21851
21852 2017-09-01  Florian Weimer  <fweimer@redhat.com>
21853
21854         * support/namespace.h (struct support_chroot_configuration): Add
21855         hosts, host_conf.
21856         (struct support_chroot): Add path_hosts, path_host_conf.
21857         * support/support_chroot.c (write_file): New function.
21858         (support_chroot_create): Call it to process /etc/resolv.conf,
21859         /etc/hosts, /etc/host.conf.
21860         (support_chroot_free): Update.
21861
21862 2017-09-01  Florian Weimer  <fweimer@redhat.com>
21863
21864         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
21865         status indicates it is set.
21866
21867 2017-09-01  Florian Weimer  <fweimer@redhat.com>
21868
21869         [BZ #20532]
21870         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
21871         function lookup failures more reliable.
21872
21873 2017-09-01  Florian Weimer  <fweimer@redhat.com>
21874
21875         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
21876         (getcanonname): Likewise.
21877         (gaih_inet): Likewise.
21878
21879 2017-09-01  Florian Weimer  <fweimer@redhat.com>
21880
21881         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
21882         (getcanonname): Likewise.
21883         (gaih_inet): Likewise.
21884
21885 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
21886             Richard Henderson <rth@twiddle.net>
21887
21888         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
21889         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
21890         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
21891         (IREG_SIZE, OREG_SIZE): New macros.
21892         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
21893         (IREG_SIZE, OREG_SIZE): New macros.
21894         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
21895         (IREG_SIZE): New macro.
21896         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
21897         (IREG_SIZE): New macro.
21898         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
21899         New includes.
21900         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
21901         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
21902         (__CONCATX): Handle exceptions correctly on large values that may
21903         set FE_INVALID.
21904         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
21905         Initialize if not already set.
21906         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
21907
21908 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21909
21910         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
21911         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
21912         Likewise.
21913         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
21914         Likewise.
21915         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
21916         Likewise.
21917         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
21918         Likewise.
21919         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
21920         Likewise.
21921         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
21922         Likewise.
21923         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
21924         Likewise.
21925         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
21926         (NO_CANCELLATION): Likewise.
21927         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
21928         Likewise.
21929         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
21930         Likewise.
21931         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
21932         Likewise.
21933         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
21934         (NO_CANCELLATION): Likewise.
21935         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
21936         (NO_CANCELLATION): Likewise.
21937         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
21938         Likewise
21939         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
21940         Likewise.
21941         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
21942         Likewise.
21943         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
21944         Likewise.
21945         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
21946         hidden prototype.
21947         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
21948         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
21949
21950 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
21951
21952         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
21953         in resolver call.
21954
21955 2017-08-31  Florian Weimer  <fweimer@redhat.com>
21956
21957         * include/libc-symbols.h (internal_function): Remove.
21958
21959 2017-08-31  Florian Weimer  <fweimer@redhat.com>
21960
21961         * stdlib/fmtmsg.c (internal_addseverity): Remove
21962         internal_function.
21963
21964 2017-08-31  Florian Weimer  <fweimer@redhat.com>
21965
21966         * stdio-common/printf_fp.c (group_number): Remove
21967         internal_function.
21968         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
21969
21970 2017-08-31  Florian Weimer  <fweimer@redhat.com>
21971
21972         * posix/fnmatch.c (internal_function): Remove definition.
21973         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
21974         * posix/regcomp.c (peek_token, init_word_char)
21975         (duplicate_node_closure, fetch_token, peek_token)
21976         (peek_token_bracket, build_range_exp, build_collating_symbol):
21977         Likewise.
21978         * posix/regex_internal.c (re_string_construct_common)
21979         (create_ci_newstate, create_cd_newstate, re_string_allocate)
21980         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
21981         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
21982         (re_string_translate_buffer, re_string_reconstruct)
21983         (re_string_peek_byte_case, re_string_fetch_byte_case)
21984         (re_string_destruct, re_string_context_at, re_node_set_alloc)
21985         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
21986         (re_node_set_add_intersect, re_node_set_init_union)
21987         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
21988         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
21989         (re_dfa_add_node, calc_state_hash, re_acquire_state)
21990         (re_acquire_state_context): Likewise.
21991         * posix/regex_internal.h (internal_function): Remove definition.
21992         (re_string_realloc_buffers, build_wcs_buffer)
21993         (build_wcs_upper_buffer, build_upper_buffer)
21994         (re_string_translate_buffer, re_string_context_at)
21995         (re_string_char_size_at, re_string_wchar_at)
21996         (re_string_elem_size_at): Likewise.
21997         * posix/regexec.c (match_ctx_init, match_ctx_clean)
21998         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
21999         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
22000         (re_search_internal, re_search_2_stub, re_search_stub)
22001         (re_copy_regs, prune_impossible_nodes, check_matching)
22002         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
22003         (free_fail_stack_return, sift_states_iter_mb)
22004         (sift_states_backward, build_sifted_states)
22005         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
22006         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
22007         (check_subexp_limits, sift_states_bkref, merge_state_array)
22008         (find_recover_state, transit_state, merge_state_with_log)
22009         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
22010         (transit_state_mb, transit_state_bkref, get_subexp)
22011         (get_subexp_sub, find_subexp_node, check_arrival)
22012         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
22013         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
22014         (check_node_accept_bytes, find_collation_sequence_value)
22015         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
22016         (acquire_init_state_context, check_halt_node_context)
22017         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
22018         (sub_epsilon_src_nodes): Likewise.
22019         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
22020         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
22021         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
22022         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
22023         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
22024         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
22025         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
22026         * sysdeps/posix/ttyname.c (getttyname): Likewise.
22027         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
22028         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
22029         (PREADV): Likewise.
22030         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
22031         (PREADV): Likewise.
22032         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
22033         (PWRITEV): Likewise.
22034         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
22035         (PWRITEV): Likewise.
22036         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
22037         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22038
22039 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22040
22041         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
22042         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
22043         Remove internal_function.
22044         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
22045         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
22046         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
22047         (__deallocate_stack, __libc_pthread_init)
22048         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
22049         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
22050         (__libc_disable_asynccancel, __librt_disable_asynccancel):
22051         Likewise.
22052         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
22053         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
22054         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
22055         Likewise.
22056         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
22057         (__pthread_mutex_unlock_usercnt): Likewise.
22058
22059 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22060
22061         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
22062         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
22063         (fts_safe_changedir): Remove internal_function.
22064         * io/ftw.c (internal_function): Remove definition.
22065         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
22066
22067 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22068
22069         * inet/deadline.c (__deadline_current_time)
22070         (__deadline_from_timeval, __deadline_to_ms): Remove
22071         internal_function.
22072         * inet/getnameinfo.c (nrl_domainname): Likewise.
22073         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
22074         * inet/inet6_option.c (add_pad): Likewise.
22075         * inet/net-internal.h (__deadline_current_time)
22076         (__deadline_from_timeval, __deadline_to_ms): Likewise.
22077         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
22078         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
22079         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
22080
22081 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
22082
22083         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
22084         include <bits/nan.h>.
22085         * math/Makefile (headers): Remove bits/nan.h.
22086         * bits/nan.h: Remove.
22087         * sysdeps/ieee754/bits/nan.h: Likewise.
22088         * sysdeps/mips/bits/nan.h: Likewise.
22089
22090         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
22091         not include <bits/inf.h>.
22092         * math/Makefile (headers): Remove bits/inf.h.
22093         * bits/inf.h: Remove.
22094         * sysdeps/ieee754/bits/inf.h: Likewise.
22095
22096         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
22097         bits/huge_vall.h or bits/huge_val_flt128.h.
22098         (HUGE_VAL): Define directly here.
22099         [__USE_ISOC99] (HUGE_VALF): Likewise.
22100         [__USE_ISOC99] (HUGE_VALL): Likewise.
22101         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22102         (HUGE_VAL_F128): Likewise.
22103         * math/Makefile (headers): Remove bits/huge_val.h,
22104         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
22105         * bits/huge_val.h: Remove.
22106         * bits/huge_val_flt128.h: Likewise.
22107         * bits/huge_valf.h: Likewise.
22108         * bits/huge_vall.h: Likewise.
22109         * sysdeps/ia64/bits/huge_vall.h: Likewise.
22110         * sysdeps/ieee754/bits/huge_val.h: Likewise.
22111         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
22112         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
22113         * sysdeps/sh/bits/huge_val.h: Likewise.
22114         * sysdeps/sparc/bits/huge_vall.h: Likewise.
22115         * sysdeps/x86/bits/huge_vall.h: Likewise.
22116
22117 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22118
22119         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
22120         internal_function.
22121         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
22122         Likewise.
22123         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
22124         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
22125         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
22126         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
22127         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22128         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
22129         * elf/dl-libc.c (dlerror_run): Likewise.
22130         * elf/dl-load.c (add_name_to_object, decompose_rpath)
22131         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
22132         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
22133         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
22134         Likewise.
22135         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
22136         (_dl_higher_prime_number, _dl_strtoul): Likewise.
22137         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
22138         * elf/dl-profile.c (_dl_start_profile): Likewise.
22139         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
22140         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
22141         Likewise.
22142         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
22143         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
22144         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
22145         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
22146         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
22147         (_dl_allocate_tls_storage): Likewise.
22148         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
22149         (_dl_check_all_versions): Likewise.
22150         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
22151         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
22152         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
22153         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22154         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
22155         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
22156         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
22157         internal_function from __dl_start.
22158         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
22159         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
22160         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
22161         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
22162         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
22163         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
22164         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
22165         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
22166         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
22167         (_dl_next_ld_env_entry, _dl_important_hwcaps)
22168         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
22169         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
22170         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
22171         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
22172         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
22173         Likewise.
22174         (struct rtld_global_ro): Remove internal_function from the
22175         _dl_lookup_symbol_x member.
22176         (_dl_symbol_value): Remove.  No longer defined anywhere.
22177         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
22178         internal_function.
22179         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22180         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
22181         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
22182         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
22183         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
22184         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
22185         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
22186         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
22187         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
22188         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
22189         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22190         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
22191
22192 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22193
22194         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
22195         Remove internal_function.
22196         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
22197         Likewise.
22198         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
22199         Likewise.
22200
22201 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22202
22203         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
22204         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
22205         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
22206
22207 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22208
22209         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
22210         (__gai_enqueue_request): Remove internal_function.
22211         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
22212         (__gai_remove_request, __gai_notify, __gai_notify_only)
22213         (__gai_sigqueue): Likewise.
22214         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
22215         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
22216         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
22217         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22218         Likewise.
22219
22220 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22221
22222         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
22223         * include/dirent.h (__opendirat, __getdents, __getdents64)
22224         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
22225         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
22226         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
22227         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
22228         Likewise.
22229         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
22230
22231 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22232
22233         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
22234         internal_function.
22235         (GETCWD_RETURN_TYPE): Likewise.
22236
22237 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22238
22239         * include/time.h (__tz_compute, __strptime_internal): Remove
22240         internal_function.
22241         * time/strptime_l.c (__strptime_internal): Likewise.
22242         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
22243
22244 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22245
22246         * iconv/gconv.c (__gconv): Remove internal_function.
22247         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
22248         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
22249         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
22250         (__gconv_release_cache): Likewise.
22251         * iconv/gconv_close.c (__gconv_close): Likewise.
22252         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
22253         (read_conf_file, __gconv_get_path): Likewise.
22254         * iconv/gconv_db.c (derivation_lookup, add_derivation)
22255         (__gconv_release_step, gen_steps, increment_counter)
22256         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
22257         (__gconv_close_transform, free_modules_db): Likewise.
22258         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
22259         Likewise.
22260         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
22261         (__gconv_find_transform, __gconv_lookup_cache)
22262         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
22263         (__gconv_close_transform, __gconv_release_cache)
22264         (__gconv_loaded_object, __gconv_release_shlib)
22265         (__gconv_compare_alias): Likewise.
22266         * iconv/gconv_open.c (__gconv_open): Likewise.
22267         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
22268         * iconv/iconvconfig.c (add_module): Likewise.
22269         * intl/dcigettext.c (plural_lookup, guess_category_value)
22270         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
22271         * intl/eval-plural.h (plural_eval): Likewise.
22272         * intl/finddomain.c (_nl_find_domain): Likewise.
22273         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
22274         (_nl_load_domain, _nl_find_msg): Likewise.
22275         (internal_function): Remove definition.
22276         * intl/loadinfo.h (internal_function): Likewise.
22277         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
22278         internal_function.
22279         * intl/localealias.c (internal_function): Remove definition.
22280         (read_alias_file): Remove internal_function.
22281         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
22282         * intl/plural-exp.h (internal_function): Remove definition.
22283         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
22284         internal_function.
22285         * intl/plural.c: Regenerate.
22286         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
22287         * locale/coll-lookup.c (__collidx_table_lookup)
22288         (__collseq_table_lookup): Likewise.
22289         * locale/coll-lookup.h (__collidx_table_lookup)
22290         (__collseq_table_lookup): Likewise.
22291         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
22292         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
22293         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
22294         (_nl_unload_locale): Likewise.
22295         * locale/localeinfo.h (struct __locale_data): Remove
22296         internal_function from cleanup member.
22297         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
22298         (_nl_remove_locale, _nl_load_locale_from_archive)
22299         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
22300         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
22301         (_nl_cleanup_time): Remove internal_function.
22302         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
22303         (_nl_parse_alt_digit): Likewise.
22304         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
22305         (_nl_select_era_entry): Likewise.
22306         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
22307         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
22308         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
22309         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
22310         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
22311
22312 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22313
22314         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
22315         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
22316         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
22317         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
22318         Likewise.
22319         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
22320         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
22321         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
22322         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
22323         Likewise.
22324         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
22325
22326 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22327
22328         * misc/getttyent.c (skip, value): Remove internal_function.
22329         * misc/syslog.c (openlog_internal): Likewise.
22330         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
22331
22332 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22333
22334         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
22335         (__nss_rewrite_field): Remove internal_function.
22336         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
22337         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
22338         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
22339         * nss/nsswitch.c (nss_parse_file, nss_getline)
22340         (nss_parse_service_list, nss_new_service): Likewise.
22341         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
22342         * nss/valid_field.c (__nss_valid_field): Likewise.
22343         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
22344
22345 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22346
22347         * malloc/arena.c (__malloc_fork_lock_parent)
22348         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
22349         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
22350         internal_function from defintions.
22351         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
22352         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
22353         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
22354         internal_function from declarations.
22355         * malloc/malloc.c (internal_function): Do not define.
22356         (mem2mem_check): Remove internal_function from declaration.
22357         (munmap_chunk, mremap_chunk): Remove internal_function.
22358         * malloc/mtrace.c (tr_where): Likewise.
22359
22360 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22361
22362         * include/rpc/pmap_clnt.h (__get_socket): Remove
22363         internal_function.
22364         * sunrpc/auth_des.c (synchronize): Likewise.
22365         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
22366         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
22367         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
22368         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
22369         (key_call): Likewise.
22370         * sunrpc/pm_getport.c (__get_socket): Likewise.
22371         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
22372         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
22373         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
22374         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
22375         (invalidate): Likewise.
22376         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
22377         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
22378         (set_input_fragment, get_input_bytes): Likewise.
22379
22380 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22381
22382         * malloc/malloc.c (_int_free): Remove locked variable and related
22383         asserts.
22384
22385 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
22386
22387         [BZ #22051]
22388         * Makerules (build-module-helper-objlist): Filter out
22389         $(elf-objpfx)sofini.os.
22390         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
22391         needed.
22392
22393 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22394
22395         * libio/fcloseall.c: Assume weak_alias is defined.
22396         * libio/feof.c: Likewise.
22397         * libio/fileno.c: Likewise.
22398         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
22399         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
22400         definitions.
22401         (_IO_file_open): Call __open directly.
22402         (_IO_new_file_sync): Assume ESPIPE is defined.
22403         (_IO_file_seekoff_maybe_mmap): Call __read directly.
22404         (_IO_new_file_write): Call __write directly.
22405         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
22406         * libio/ftello64.c (__ftello64): Assume EIO is defined.
22407         * libio/genops.c: Assume _LIBC is defined.
22408         (save_for_backup): Remove internal_function.
22409         * libio/getc.c: Assume weak_alias is defined.
22410         * libio/getwc.c: Likewise.
22411         * libio/iofclose.c: Assume _LIBC is defined.
22412         * libio/iofdopen.c: Likewise.
22413         (_IO_fcntl): Remove macro definition.
22414         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
22415         Call __fcntl directly.
22416         * libio/iofflush.c: Assume weak_alias is defined.
22417         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
22418         defined.
22419         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
22420         * libio/iofgets.c: Likewise.
22421         * libio/iofopen.c: Assume _LIBC is defined.
22422         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
22423         * libio/iofputs.c: Assume weak_alias is defined.
22424         * libio/iofread.c: Likewise.
22425         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
22426         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22427         * libio/ioftell.c: Assume weak_alias is defined.
22428         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
22429         * libio/iofwide.c: Assume _LIBC is defined.
22430         (_IO_fwide): Drop SHARED conditional because it is implied by
22431         SHLIB_COMPAT.
22432         * libio/iofwrite.c: Assume weak_alias is defined.
22433         * libio/iogetdelim.c: Likewise.
22434         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
22435         * libio/iogetwline.c (wmemcpy): Remove macro definition.
22436         (_IO_getwline): Call __wmemcpy directly.
22437         * libio/iopopen.c: Assume _LIBC is defined.
22438         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
22439         (_IO_close): Remove macro definitions.
22440         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
22441         _exit directly.
22442         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
22443         directly.
22444         * libio/ioputs.c: Assume weak_alias is defined.
22445         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
22446         * libio/iosetbuffer.c: Assume weak_alias is defined.
22447         * libio/iosetvbuf.c: Likewise.
22448         * libio/ioungetc.c: Likewise.
22449         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
22450         libc_hidden_def, libc_hidden_weak, NULL are defined.
22451         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
22452         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
22453         defined.
22454         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
22455         definitions.
22456         (_IO_old_file_init_internal): Drop SHARED conditional because it
22457         is implied by SHLIB_COMPAT.
22458         (_IO_old_file_fopen): Call __open directly.
22459         (_IO_old_file_sync): Assume ESPIPE is defined.
22460         (_IO_old_file_write): Call __write directly.
22461         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
22462         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
22463         Call __fcntl directly.
22464         * libio/oldiofgetpos.c: Assume weak_alias is defined.
22465         (_IO_old_fgetpos): Assume EIO is defined.
22466         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
22467         (_IO_old_fgetpos64): Assume EIO is defined.
22468         * libio/oldiofsetpos.c: Assume weak_alias is defined.
22469         (_IO_old_fsetpos): Assume EIO is defined.
22470         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
22471         (_IO_old_fsetpos64): Assume EIO is defined.
22472         * libio/oldiopopen.c:  Assume _LIBC is defined.
22473         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
22474         (_IO_close): Remove macro definitions.
22475         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
22476         directly.
22477         (_IO_old_proc_close): Call __close, __waitpid directly.
22478         * libio/put.c: Assume weak_alias is defined.
22479         * libio/stdfiles.c: Assume _LIBC is defined.
22480         * libio/stdio.c: Likewise.
22481         * libio/wfileops.c: Likewise.
22482         (_IO_wfile_sync): Assume ESPIPE is defined.
22483         * libio/wgenops.c: Assume _LIBC is defined.
22484         (save_for_wbackup): Remove internal_function.
22485
22486 2017-08-31  Florian Weimer  <fweimer@redhat.com>
22487
22488         * malloc/malloc.c (top_check): Change return type to void.  Remove
22489         internal_function.
22490         * malloc/hooks.c (top_check): Likewise.
22491         (malloc_check, realloc_check, memalign_check): Adjust.
22492
22493 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
22494
22495         [BZ #21457]
22496         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
22497         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
22498         sigcontext and namespace requirements.
22499         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
22500         * sysdeps/m68k/sys/ucontext.h: Likewise.
22501         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
22502         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
22503         <bits/sigcontext.h>.
22504         (__ctx): Define earlier.
22505         (mcontext_t): Define structure contents rather than using struct
22506         sigcontext.
22507         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
22508         __glibc_reserved1 instead of __reserved.
22509         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
22510         <bits/sigcontext.h>.
22511         (__ctx): Define earlier.
22512         (mcontext_t): Define structure contents rather than using struct
22513         sigcontext.
22514         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
22515         mcontext_t instead of struct sigcontext.
22516         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
22517         <bits/sigcontext.h>.
22518         (__ctx): Define earlier.
22519         (mcontext_t): Define structure contents rather than using struct
22520         sigcontext.
22521         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
22522         <bits/sigcontext.h>.
22523         (__ctx): Define earlier.
22524         (mcontext_t): Define structure contents rather than using struct
22525         sigcontext.
22526         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
22527         mcontext_t instead of struct sigcontext.
22528         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
22529         mcontext_t instead of struct sigcontext.
22530         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
22531         <bits/sigcontext.h>.
22532         (__ctx): New macro.
22533         (struct __ia64_fpreg_mcontext): New type.
22534         (mcontext_t): Define structure contents rather than using struct
22535         sigcontext.
22536         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
22537         (uc_sigmask): Define using __ctx.
22538         (uc_stack): Likewise.
22539         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
22540         <bits/sigcontext.h>.
22541         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22542         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
22543         <bits/sigcontext.h>.
22544         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
22545         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
22546         <bits/sigcontext.h>.
22547         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
22548         <bits/sigcontext.h>.
22549         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
22550         <bits/sigcontext.h>.
22551         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
22552         <bits/sigcontext.h>.
22553         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
22554         <bits/sigcontext.h>.
22555         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
22556         <bits/sigcontext.h>.
22557         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
22558         <bits/sigcontext.h>.
22559         (__ctx): Define earlier.
22560         (mcontext_t): Define structure contents rather than using struct
22561         sigcontext.
22562         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
22563         <bits/sigcontext.h>.  Include <bits/types.h>.
22564         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
22565         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
22566         (test-xfail-XPG42/ucontext.h/conform): Likewise.
22567         (test-xfail-UNIX98/signal.h/conform): Likewise.
22568         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
22569         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
22570         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
22571         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
22572         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
22573         (test-xfail-POSIX2008/signal.h/conform): Likewise.
22574         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
22575         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
22576         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
22577
22578 2017-08-30  Florian Weimer  <fweimer@redhat.com>
22579
22580         * malloc/dynarray_emplace_enlarge.c
22581         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
22582         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
22583         * malloc/tst-dynarray.c (test_long_overflow): New function.
22584         (do_test): Call it.
22585
22586 2017-08-30  Florian Weimer  <fweimer@redhat.com>
22587
22588         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
22589         (set_arena_corrupt): Remove definitions.
22590         (mtrim): Do not check for corrupt arena.
22591         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
22592         Likewise.
22593
22594 2017-08-30  Florian Weimer  <fweimer@redhat.com>
22595
22596         [BZ #21754]
22597         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
22598         check_action.
22599         (ptmalloc_init): Do not set or use check_action.
22600         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
22601         call to malloc_printerr.  Remove return statement.
22602         (free_check): Likewise.  Remove arena unlock.
22603         (top_check): Update comment.  Adjust call to malloc_printerr.
22604         Remove heap repair code.
22605         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
22606         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
22607         (sysmalloc): Adjust call to malloc_printerr.
22608         (munmap_chunk, __libc_realloc): Likewise.  Remove return
22609         statement.
22610         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
22611         Remove errout label and corresponding gotos.
22612         (_int_free): Likewise.  Remove arena unlock.
22613         (do_set_mallopt_check): Do not set check_action.
22614         (malloc_printerr): Adjust parameter list.  Do not mark arena as
22615         corrupt.
22616         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
22617         comment.
22618         * manual/probes.texi (Memory Allocation Probes): Remove
22619         memory_mallopt_check_action.
22620
22621 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
22622
22623         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
22624         Use pointer to uint64_t instead of long int for sp.
22625
22626 2017-08-30  Florian Weimer  <fweimer@redhat.com>
22627
22628         [BZ #21754]
22629         * malloc/malloc.c (malloc_printerr): Always terminate the process,
22630         without printing a backtrace.  Do not leak any information in the
22631         error message.
22632         * manual/memory.texi (Heap Consistency Checking): Update.
22633         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
22634
22635 2017-08-30  Florian Weimer  <fweimer@redhat.com>
22636
22637         Do not scale NPTL tests with available number of CPUs.
22638         * nptl/tst-cond16.c (count): Set to constant value of 8.
22639         * nptl/tst-cond18.c (count): Likewise.
22640
22641 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
22642
22643         [BZ #22035]
22644         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
22645         Define to take a second argument that is a macro that
22646         concatentates a suffix, not the suffix itself.
22647         (__CONCAT_d): New macro.
22648         (__CONCAT_f): Likewise.
22649         (__CONCAT_l): Likewise.
22650
22651 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
22652
22653         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
22654         by child.
22655
22656 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22657             Aurelien Jarno  <aurelien@aurel32.net>
22658             Maciej W. Rozycki  <macro@imgtec.com>
22659
22660         [BZ #21956]
22661         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
22662         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
22663         `mips16-syscall6' and `mips16-syscall7'.
22664         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
22665         (CFLAGS-mips16-syscall7.c): Remove.
22666         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
22667         Remove `__mips16_syscall5', `__mips16_syscall6' and
22668         `__mips16_syscall7'.
22669         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
22670         (__mips16_syscall0): Rename `__mips16_syscall_return' to
22671         `__mips_syscall_return'.
22672         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
22673         (__mips16_syscall1): Likewise.
22674         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
22675         (__mips16_syscall2): Likewise.
22676         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
22677         (__mips16_syscall3): Likewise.
22678         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
22679         (__mips16_syscall4): Likewise.
22680         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
22681         Remove.
22682         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
22683         Remove.
22684         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
22685         Remove.
22686         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
22687         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
22688         `__mips16_syscall5'.  Remove prototype.
22689         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
22690         `__mips16_syscall6'.  Remove prototype.
22691         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
22692         `__mips16_syscall7'.  Remove prototype.
22693         (__nomips16, __mips16_syscall_return): Move to...
22694         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
22695         (__nomips16, __mips_syscall_return): ... here.
22696         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
22697         `__mips16_syscall_return' to `__mips_syscall_return'.
22698         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
22699         `internal_syscall##nr'.
22700         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
22701         `internal_syscall##nr'.
22702         (FORCE_FRAME_POINTER): Remove.
22703         (__mips_syscall5): New prototype.
22704         (internal_syscall5): Rewrite to call `__mips_syscall5'.
22705         (__mips_syscall6): New prototype.
22706         (internal_syscall6): Rewrite to call `__mips_syscall6'.
22707         (__mips_syscall7): New prototype.
22708         (internal_syscall7): Rewrite to call `__mips_syscall7'.
22709         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
22710         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
22711         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
22712         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
22713         (sysdep_routines): Add libc-do-syscall.
22714         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
22715         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
22716
22717 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22718
22719         [BZ #21672]
22720         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
22721         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
22722         (advise_stack_range): New function.
22723         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
22724         stack non required to advise_stack_range at allocatestack.c
22725
22726 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22727
22728         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
22729
22730 2017-08-29  Florian Weimer  <fweimer@redhat.com>
22731
22732         [BZ #22026]
22733         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
22734         __end_fct.  Mangle __end_fct after setting it to NULL.
22735         * iconv/Makefile (tests): Add tst-gconv-init-failure.
22736         (modules-names, modules-names-tests): Add
22737         tst-gconv-init-failure-mod.
22738         (gconv-modules): New target.
22739         (tst-gconv-init-failure-mod.so): Link against libsupport.
22740         (tst-gconv-init-failure): Depend on gconv-modules,
22741         tst-gconv-init-failure-mod.so.
22742         * iconv/tst-gconv-init-failure-mod.c: New file.
22743         * iconv/tst-gconv-init-failure.c: Likewise.
22744         * iconv/test-gconv-modules: Likewise.
22745
22746 2017-08-29  Florian Weimer  <fweimer@redhat.com>
22747
22748         [BZ #22025]
22749         * iconv/gconv_db.c (free_derivation): Remove redundant
22750         parentheses.
22751         (gen_steps): Unconditionally mangle __btowc_fct after
22752         initialization.
22753         (increment_counter): Likewise.  Do not call init_fct for internal
22754         modules.
22755
22756 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
22757
22758         [BZ #22028]
22759         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
22760         (_MSUF_): Remove macro.
22761         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
22762         Likewise.
22763         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
22764         (__REDIRFROM_X): New macro.
22765         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
22766         Likewise.
22767         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
22768         (__REDIRTO_X): Likewise.
22769         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
22770         arguments.
22771         (__MATH_REDIRCALL_2): Likewise.
22772         (__MATH_REDIRCALL_INTERNAL): Likewise.
22773         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
22774         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
22775         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
22776         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
22777         * math/test-finite-macros.c: New file.
22778         * math/Makefile (tests): Add test-finite-macros.
22779         (CFLAGS-test-finite-macros.c): New variable.
22780
22781 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
22782             Jeff Law  <law@redhat.com>
22783
22784         [BZ #22025]
22785         Mangle NULL pointers in iconv/gconv.
22786         * iconv/gconv_cache.c (find_module): Demangle init_fct before
22787         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
22788         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
22789         is non-NULL before demangling the end_fct.  Check for NULL
22790         end_fct after demangling.
22791         (__gconv_release_step): Demangle the end_fct before checking
22792         it for NULL.   Remove assert on __shlibc_handle != NULL.
22793         (gen_steps): Don't check btowc_fct for NULL before mangling.
22794         Demangle init_fct before checking for NULL.
22795         (increment_counter): Likewise.
22796         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
22797         end_fct for NULL before mangling.
22798         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
22799         for NULL.
22800
22801 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
22802
22803         [BZ #21971]
22804         * locale/iso-639.def: add Morisyen.
22805
22806 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
22807
22808         [BZ #21930]
22809         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
22810         (iszero): New C++ implementation that does not use
22811         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
22812         signaling nans are enabled, since __builtin_types_compatible_p
22813         is a C-only feature.
22814         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
22815         defined, include ieee754_float128.h for access to the union and
22816         member ieee854_float128.ieee.
22817         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
22818         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
22819         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
22820         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
22821         options of test-math-zero on powerpc64le.
22822
22823 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
22824
22825         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
22826         Change double to float.
22827
22828 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
22829
22830         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
22831         unconditional.
22832         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
22833         conditional code; define contents only for [LIBM_SVID_COMPAT].
22834
22835 2017-08-28  Florian Weimer  <fweimer@redhat.com>
22836
22837         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
22838         (abi-lp64_be-options): Remove.
22839         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
22840         (abi-hard-options): Likewise.
22841         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
22842         (abi-o32_hard-options, abi-o32_soft_2008-options)
22843         (abi-o32_hard_2008-options, abi-n32_soft-options)
22844         (abi-n32_hard-options, abi-n32_soft_2008-options)
22845         (abi-n32_hard_2008-options, abi-n64_soft-options)
22846         (abi-n64_hard-options, abi-n64_soft_2008-options)
22847         (abi-n64_hard_2008-options): Likewise.
22848         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
22849         (abi-64-v1-options, abi-64-v2-options): Likewise.
22850         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
22851         (abi-64-options): Likewise.
22852         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
22853         (abi-64-options): Likewise.
22854         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
22855         (abi-64-options): Likewise.
22856         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
22857         (abi-64-options, abi-x32-options): Likewise.
22858
22859 2017-08-28  Florian Weimer  <fweimer@redhat.com>
22860
22861         Store supported list of SYS_* system calls in the source tree.
22862         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
22863         (bits/syscall.h): Generate from list file.
22864         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
22865         [$(subdir) = misc] (tests): Add tst-syscall-list.
22866         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
22867         [$(subdir) = misc] (tst-syscall-list-macros.list)
22868         [$(subdir) = misc] (tst-syscall-list-nr.list)
22869         (tst-syscall-list-sys.list): Helper targets for new
22870         tst-syscall-list test.
22871         [$(subdir) = misc] (tst-syscall-list.out): Run test script
22872         tst-syscall-list.sh.
22873         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
22874         target. Do not include bits/syscall.d.
22875         [$(subdir) = misc] (generated): Do not update.
22876         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
22877         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
22878         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
22879         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
22880
22881 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
22882
22883         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
22884         (tst-cxa_atexit, tst-on_exit): Likewise.
22885         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
22886         tst-cxa_atexit, and tst-on_exit.
22887         * stdlib/tst-atexit-common.c: New file.
22888         * stdlib/tst-atexit.c: New file.
22889         * stdlib/tst-at_quick_exit.c: New file.
22890         * stdlib/tst-cxa_atexit.c: New file.
22891         * stdlib/tst-on_exit.c: New file.
22892
22893 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22894
22895         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
22896         * mach/stack_chk_fail_local.c: New file.
22897         * hurd/stack_chk_fail_local.c: New file.
22898         * mach/Machrules ($(interface-library)-routines): Add
22899         stack_chk_fail_local.
22900         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
22901         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
22902         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
22903         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
22904         * hurd/Makefile (CFLAGS-hurdstartup.o,
22905         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
22906
22907 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
22908
22909         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
22910         (index_cpu_*, index_arch_*): Removed.
22911
22912 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22913
22914         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
22915         Use uint64_t instead of unsigned long.
22916
22917 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
22918
22919         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
22920         [__HAVE_DISTINCT_FLOAT128].
22921
22922         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
22923         of <bits/math-finite.h>.
22924         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
22925         inclusion of <bits/math-finite.h>.
22926         * math/bits/math-finite.h (__REDIRTO_X): Do not define
22927         conditionally on [__MATH_DECLARING_LDOUBLE && defined
22928         __NO_LONG_DOUBLE_MATH].
22929         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
22930         (__MATH_REDIRCALL_2): Likewise.
22931         (__MATH_REDIRCALL_INTERNAL): Likewise.
22932         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
22933         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
22934         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
22935
22936         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
22937         Remove file.
22938         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
22939         Likewise.
22940         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
22941         Likewise.
22942         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
22943         Likewise.
22944         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
22945         Likewise.
22946         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
22947         Likewise.
22948         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
22949         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
22950         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
22951         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
22952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
22953         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
22954         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
22955         w_sqrtf_compat-ppc32.
22956
22957 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
22958
22959         * math/math.h [defined __cplusplus] (issignaling): In the long
22960         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
22961         is not defined.  Call __issignaling, otherwise.
22962
22963 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22964
22965         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
22966         syscall definitions and replace __builtin_expect with __glibc_likely.
22967         * sysdeps/unix/syscall-template.S: Update comment about cancellable
22968         syscall.
22969          (SYSCALL_CANCELLABLE): Removedefinition
22970         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
22971         definition.
22972         (PSEUDO_END): Likewise.
22973         [IS_IN (libpthread)] (CENABLE): Likewise.
22974         [IS_IN (libpthread)] (CDISABLE): Likewise.
22975         [IS_IN (libc)] (CENABLE): Likewise.
22976         [IS_IN (libc)] (CENABLE): Likewise.
22977         [IS_IN (librt)] (CDISABLE): Likewise.
22978         [IS_IN (librt)] (CDISABLE): Likewise.
22979         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22980         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
22981         definition.
22982         (PSEUDO_END): Likewise.
22983         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
22984         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
22985         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
22986         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
22987         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
22988         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
22989         (CENABLE): Likewise.
22990         (CDISABLE): Likewise.
22991         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22992         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
22993         defintion.
22994         (PSEUDO_END): Likewise.
22995         [IS_IN (libpthread)] (CENABLE): Likewise.
22996         [IS_IN (libpthread)] (CDISABLE): Likewise.
22997         [IS_IN (libc)] (CENABLE): Likewise.
22998         [IS_IN (libc)] (CENABLE): Likewise.
22999         [IS_IN (librt)] (CDISABLE): Likewise.
23000         [IS_IN (librt)] (CDISABLE): Likewise.
23001         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23002         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
23003         definition.
23004         (PSEUDO_END): Likewise.
23005         [IS_IN (libpthread)] (CENABLE): Likewise.
23006         [IS_IN (libpthread)] (CDISABLE): Likewise.
23007         [IS_IN (libc)] (CENABLE): Likewise.
23008         [IS_IN (libc)] (CENABLE): Likewise.
23009         [IS_IN (librt)] (CDISABLE): Likewise.
23010         [IS_IN (librt)] (CDISABLE): Likewise.
23011         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23012         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
23013         definition.
23014         (PSEUDO_END): Likewise.
23015         [IS_IN (libpthread)] (CENABLE): Likewise.
23016         [IS_IN (libpthread)] (CDISABLE): Likewise.
23017         [IS_IN (libc)] (CENABLE): Likewise.
23018         [IS_IN (libc)] (CENABLE): Likewise.
23019         [IS_IN (librt)] (CDISABLE): Likewise.
23020         [IS_IN (librt)] (CDISABLE): Likewise.
23021         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23022         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
23023         definition.
23024         (PSEUDO_END): Likewise.
23025         [IS_IN (libpthread)] (CENABLE): Likewise.
23026         [IS_IN (libpthread)] (CDISABLE): Likewise.
23027         [IS_IN (libc)] (CENABLE): Likewise.
23028         [IS_IN (libc)] (CENABLE): Likewise.
23029         [IS_IN (librt)] (CDISABLE): Likewise.
23030         [IS_IN (librt)] (CDISABLE): Likewise.
23031         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23032         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
23033         definition.
23034         (PSEUDO_END): Likewise.
23035         [IS_IN (libpthread)] (CENABLE): Likewise.
23036         [IS_IN (libpthread)] (CDISABLE): Likewise.
23037         [IS_IN (libc)] (CENABLE): Likewise.
23038         [IS_IN (libc)] (CENABLE): Likewise.
23039         [IS_IN (librt)] (CDISABLE): Likewise.
23040         [IS_IN (librt)] (CDISABLE): Likewise.
23041         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23042         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
23043         definition.
23044         (PSEUDO_END): Likewise.
23045         [IS_IN (libpthread)] (CENABLE): Likewise.
23046         [IS_IN (libpthread)] (CDISABLE): Likewise.
23047         [IS_IN (libc)] (CENABLE): Likewise.
23048         [IS_IN (libc)] (CENABLE): Likewise.
23049         [IS_IN (librt)] (CDISABLE): Likewise.
23050         [IS_IN (librt)] (CDISABLE): Likewise.
23051         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23052         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
23053         Remove definition.
23054         (PSEUDO_END): Likewise.
23055         [IS_IN (libpthread)] (CENABLE): Likewise.
23056         [IS_IN (libpthread)] (CDISABLE): Likewise.
23057         [IS_IN (libc)] (CENABLE): Likewise.
23058         [IS_IN (libc)] (CENABLE): Likewise.
23059         [IS_IN (librt)] (CDISABLE): Likewise.
23060         [IS_IN (librt)] (CDISABLE): Likewise.
23061         (SINGLE_THREAD_P): Likewise.
23062         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
23063         definition.
23064         (PSEUDO_END): Likewise.
23065         [IS_IN (libpthread)] (CENABLE): Likewise.
23066         [IS_IN (libpthread)] (CDISABLE): Likewise.
23067         [IS_IN (libc)] (CENABLE): Likewise.
23068         [IS_IN (libc)] (CENABLE): Likewise.
23069         [IS_IN (librt)] (CDISABLE): Likewise.
23070         [IS_IN (librt)] (CDISABLE): Likewise.
23071         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23072         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
23073         definition.
23074         (PSEUDO_END): Likewise.
23075         [IS_IN (libpthread)] (CENABLE): Likewise.
23076         [IS_IN (libpthread)] (CDISABLE): Likewise.
23077         [IS_IN (libc)] (CENABLE): Likewise.
23078         [IS_IN (libc)] (CENABLE): Likewise.
23079         [IS_IN (librt)] (CDISABLE): Likewise.
23080         [IS_IN (librt)] (CDISABLE): Likewise.
23081         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23082         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
23083         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23084         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
23085         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
23086         definition.
23087         (PSEUDO_END): Likewise.
23088         [IS_IN (libpthread)] (CENABLE): Likewise.
23089         [IS_IN (libpthread)] (CDISABLE): Likewise.
23090         [IS_IN (libc)] (CENABLE): Likewise.
23091         [IS_IN (libc)] (CENABLE): Likewise.
23092         [IS_IN (librt)] (CDISABLE): Likewise.
23093         [IS_IN (librt)] (CDISABLE): Likewise.
23094         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23095         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
23096         definition.
23097         (PSEUDO_END): Likewise.
23098         [IS_IN (libpthread)] (CENABLE): Likewise.
23099         [IS_IN (libpthread)] (CDISABLE): Likewise.
23100         [IS_IN (libc)] (CENABLE): Likewise.
23101         [IS_IN (libc)] (CENABLE): Likewise.
23102         [IS_IN (librt)] (CDISABLE): Likewise.
23103         [IS_IN (librt)] (CDISABLE): Likewise.
23104         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23105         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
23106         definition.
23107         (PSEUDO_END): Likewise.
23108         [IS_IN (libpthread)] (CENABLE): Likewise.
23109         [IS_IN (libpthread)] (CDISABLE): Likewise.
23110         [IS_IN (libc)] (CENABLE): Likewise.
23111         [IS_IN (libc)] (CENABLE): Likewise.
23112         [IS_IN (librt)] (CDISABLE): Likewise.
23113         [IS_IN (librt)] (CDISABLE): Likewise.
23114         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23115         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
23116         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23117         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
23118         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
23119         definition.
23120         (PSEUDO_END): Likewise.
23121         [IS_IN (libpthread)] (CENABLE): Likewise.
23122         [IS_IN (libpthread)] (CDISABLE): Likewise.
23123         [IS_IN (libc)] (CENABLE): Likewise.
23124         [IS_IN (libc)] (CENABLE): Likewise.
23125         [IS_IN (librt)] (CDISABLE): Likewise.
23126         [IS_IN (librt)] (CDISABLE): Likewise.
23127         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23128         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
23129         definition.
23130         (PSEUDO_END): Likewise.
23131         [IS_IN (libpthread)] (CENABLE): Likewise.
23132         [IS_IN (libpthread)] (CDISABLE): Likewise.
23133         [IS_IN (libc)] (CENABLE): Likewise.
23134         [IS_IN (libc)] (CENABLE): Likewise.
23135         [IS_IN (librt)] (CDISABLE): Likewise.
23136         [IS_IN (librt)] (CDISABLE): Likewise.
23137         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23138
23139 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23140
23141         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
23142
23143 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
23144
23145         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23146
23147 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
23148
23149         [BZ #21982]
23150         * string/stratcliff.c (do_test): Declare size, nchars, inner,
23151         middle and outer with size_t instead of int.  Repleace %d and
23152         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
23153         "MAX (outer, nchars - 64)" to support unsigned outer and
23154         nchars.  Also exit loop when outer == 0.
23155
23156 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23157
23158         * include/fcntl.h (__fcntl_nocancel): Remove definition.
23159         * include/signal.h (__sigsuspend_nocancel): Likewise.
23160         * include/time.h (__nanosleep_nocancel): Likewise.
23161         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
23162         * login/utmp_file.c: Include non cancellable syscall header.
23163         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
23164         prototype.
23165
23166 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
23167
23168         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
23169         .byte sequences with AVX512F instructions.
23170         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
23171         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
23172         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
23173         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
23174         Likewise.
23175         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23176         Likewise.
23177
23178 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23179             Steve Ellcey  <sellcey@cavium.com>
23180
23181         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
23182         Use PTR_REG macro in cmp instruction.
23183
23184 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23185
23186         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
23187         Change the return type of the ifunc resolver to match the return
23188         type of the target function.
23189
23190 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23191
23192         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
23193         (preadv64): Likewise.
23194         (pwrite64(: Likewise.
23195         (pwritev64): Likewise.
23196
23197         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23198         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
23199         (LOAD_ARGS_0): Likewise.
23200         (LOAD_ARGS_1): Likewise.
23201         (LOAD_ARGS_2): Likewise.
23202         (LOAD_ARGS_3): Likewise.
23203         (LOAD_ARGS_4): Likewise.
23204         (LOAD_ARGS_5): Likewise.
23205         (LOAD_ARGS_6): Likewise.
23206         (LOAD_REGS_0): Likewise.
23207         (LOAD_REGS_1): Likewise.
23208         (LOAD_REGS_2): Likewise.
23209         (LOAD_REGS_3): Likewise.
23210         (LOAD_REGS_4): Likewise.
23211         (LOAD_REGS_5): Likewise.
23212         (LOAD_REGS_6): Likewise.
23213         (ASM_ARGS_0): Likewise.
23214         (ASM_ARGS_1): Likewise.
23215         (ASM_ARGS_2): Likewise.
23216         (ASM_ARGS_3): Likewise.
23217         (ASM_ARGS_4): Likewise.
23218         (ASM_ARGS_5): Likewise.
23219         (ASM_ARGS_6): Likewise.
23220         (LOAD_ARGS_TYPES_1): Likewise.
23221         (LOAD_ARGS_TYPES_2): Likewise.
23222         (LOAD_ARGS_TYPES_3): Likewise.
23223         (LOAD_ARGS_TYPES_4): Likewise.
23224         (LOAD_ARGS_TYPES_5): Likewise.
23225         (LOAD_ARGS_TYPES_6): Likewise.
23226         (LOAD_REGS_TYPES_1): Likewise.
23227         (LOAD_REGS_TYPES_2): Likewise.
23228         (LOAD_REGS_TYPES_3): Likewise.
23229         (LOAD_REGS_TYPES_4): Likewise.
23230         (LOAD_REGS_TYPES_5): Likewise.
23231         (LOAD_REGS_TYPES_6): Likewise.
23232         (TYPEFY): New define.
23233         (ARGIFY): Likewise.
23234         (internal_syscall0): Likewise.
23235         (internal_syscall1): Likewise.
23236         (internal_syscall2): Likewise.
23237         (internal_syscall3): Likewise.
23238         (internal_syscall4): Likewise.
23239         (internal_syscall5): Likewise.
23240         (internal_syscall6): Likewise.
23241         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
23242         (INTERNAL_SYSCALL_NCS): Remove define.
23243         (internal_syscall1): Add define.
23244
23245 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23246
23247         * math/w_remainder_compat.c: Remove duplicate inclusion of
23248         math-svid-compat.h.
23249         * math/w_remainderf_compat.c: Likewise.
23250         * math/w_remainderl_compat.c: Likewise.
23251
23252 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23253
23254         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23255
23256 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
23257
23258         [BZ #21684]
23259         * math/tgmath.h (__floating_type): Simplify definitions.
23260         (__real_integer_type): New macro.
23261         (__complex_integer_type): Likewise.
23262         (__expr_is_real): Likewise.
23263         (__tgmath_real_type_sub): Update comment to describe handling of
23264         complex types.
23265         (__tgmath_complex_type_sub): New macro.
23266         (__tgmath_complex_type): Likewise.
23267         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23268         (__TGMATH_CF128): Use __expr_is_real.
23269         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
23270         __expr_is_real.
23271         (__TGMATH_BINARY_REAL_IMAG): Likewise.
23272         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
23273         * math/gen-tgmath-tests.py (Type.create_type): Create complex
23274         integer types.
23275
23276 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23277
23278         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
23279         macro.
23280         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
23281         alias.
23282         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
23283         Likewise.
23284
23285         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
23286         nanosleep_not_cancel with __nanosleep_nocancel.
23287         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
23288         (__nanosleep_nocancel): New macro.
23289         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
23290         function.
23291         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
23292         macro.
23293         (__nanosleep_nocancel): New prototype.
23294
23295         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
23296         pause_not_cancel with __pause_nocancel.
23297         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
23298         (__pause_nocancel): New macro.
23299         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
23300         macro.
23301         (__pause_nocancel): New prototype.
23302         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
23303
23304 2017-08-22  Martin Sebor  <msebor@redhat.com>
23305
23306         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
23307         to return a pointer to the same type as the target function.
23308
23309 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
23310
23311         [BZ #18822]
23312         [BZ #21986]
23313         * include/printf.h (__printf_fphex): Add attribute_hidden.
23314         (__guess_grouping): New prototype.
23315         * stdio-common/printf_fp.c (__guess_grouping): Removed.
23316         * stdio-common/reg-printf.c (__register_printf_specifier): Add
23317         libc_hidden_proto and libc_hidden_def.
23318         * stdlib/strfmon_l.c (__guess_grouping): Removed.
23319         (__vstrfmon_l): Remove the third argument passed to
23320         __guess_grouping.
23321
23322 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23323
23324         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
23325         definition for issignaling that does not rely on __MATH_TG,
23326         since __MATH_TG uses __builtin_types_compatible_p, which is only
23327         available in C mode.
23328         (CFLAGS-test-math-issignaling.cc): New variable.
23329         * math/Makefile [CXX] (tests): Add test-math-issignaling.
23330         * math/test-math-issignaling.cc: New test for C++ implementation
23331         of type-generic issignaling.
23332         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
23333         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
23334         options of test-math-issignaling on powerpc64le.
23335
23336 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
23337
23338         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23339         building libc.a.
23340         (hidden_proto): Likewise.
23341         (hidden_tls_proto): Likewise.
23342         (__hidden_proto): Likewise.
23343
23344 2017-08-22  Florian Weimer  <fweimer@redhat.com>
23345
23346         math: Statically link tests of internal functionality.
23347         * math/Makefile (tests): Remove atest-exp, atest-sincos,
23348         atest-exp2.
23349         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
23350         (gmp-objs): Remove assignment.
23351         (atest-exp, atest-sincos, atest-exp2): Remove targets.
23352
23353 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
23354
23355         [BZ #21987]
23356         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
23357         and copy to ...
23358         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
23359         ... here.
23360         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
23361         ... and here.
23362
23363         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
23364         variable definitions above inclusion of ../Rules.
23365
23366 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
23367
23368         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
23369         case calling __builtin_unreachable.
23370
23371 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23372
23373         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
23374         __waitpid_nocancel.
23375         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
23376         (__waitpid_nocancel): New macro.
23377         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
23378         macro.
23379         (__waitpid_nocancel): Replace macro with a function.
23380         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
23381         function.
23382
23383         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
23384         __fcntl_nocancel.
23385         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
23386         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
23387
23388         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
23389         __writev_nocancel_nostatus.
23390         (write_call_graph): Likewise.
23391         (write_bb_counts): Likewise.
23392         * resolv/herror.c (herror): Likewise.
23393         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
23394         macro.
23395         (__writev_nocancel_nostatus): New macro.
23396         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
23397         Remove macro.
23398         (__writev_nocancel_nostatus): New function.
23399
23400 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
23401
23402         Revert:
23403         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23404
23405         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23406         building libc.a.
23407         (hidden_proto): Likewise.
23408         (hidden_tls_proto): Likewise.
23409         (__hidden_proto): Likewise.
23410
23411         [BZ #21973]
23412         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
23413         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
23414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
23415         Likewise.
23416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
23417         Likewise.
23418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
23419         Likewise.
23420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
23421         Likewise.
23422         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
23423         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
23424         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
23425         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
23426         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
23427         GLIBC_2.0 sqrtl symbol.
23428
23429         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
23430         [__USE_MISC] (_LIB_VERSION): Likewise.
23431         [__USE_MISC] (struct exception): Likewise.
23432         [__USE_MISC] (matherr): Likewise.
23433         [__USE_MISC] (DOMAIN): Likewise.
23434         [__USE_MISC] (SING): Likewise.
23435         [__USE_MISC] (OVERFLOW): Likewise.
23436         [__USE_MISC] (UNDERFLOW): Likewise.
23437         [__USE_MISC] (TLOSS): Likewise.
23438         [__USE_MISC] (PLOSS): Likewise.
23439         [__USE_MISC] (HUGE): Likewise.
23440         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
23441         * math/math-svid-compat.h: New file.
23442         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
23443         and matherrl.
23444         * include/math.h [!_ISOMAC] (__matherr): Remove.
23445         * manual/arith.texi (FP Exceptions): Do not document matherr.
23446         * math/Makefile (tests): Change test-matherr to test-matherr-3.
23447         (tests-internal): New variable.
23448         (install-lib): Do not add libieee.a.
23449         (non-lib.a): Likewise.
23450         (extra-objs): Do not add libieee.a and ieee-math.o.
23451         (CPPFLAGS-s_lib_version.c): Remove variable.
23452         ($(objpfx)libieee.a): Remove rule.
23453         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
23454         * math/ieee-math.c: Remove.
23455         * math/libm-test-support.c (matherr): Remove.
23456         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
23457         and license notices.  Include <math-svid-compat.h> and
23458         <shlib-compat.h>.
23459         (matherr): Undefine as macro.  Use compat_symbol_reference.
23460         (_LIB_VERSION): Likewise.
23461         * math/test-matherr-2.c: New file.
23462         * math/test-matherr-3.c: Likewise.
23463         * sysdeps/generic/math_private.h (__kernel_standard): Remove
23464         declaration.
23465         (__kernel_standard_f): Likewise.
23466         (__kernel_standard_l): Likewise.
23467         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
23468         <math_private.h>.  Include <math-svid-compat.h>.
23469         (_LIB_VERSION): Undefine as macro.
23470         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
23471         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
23472         [LIBM_SVID_COMPAT], use compat_symbol.
23473         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
23474         <math_private.h>.  Include <math-svid-compat.h>.
23475         (matherr): Undefine as macro.
23476         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
23477         compat_symbol.
23478         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
23479         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
23480         compat_symbol_reference.
23481         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
23482         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
23483         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
23484         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
23485         (MATHERR_D): Remove declaration.
23486         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
23487         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
23488         [LIBM_BUILD] (pmatherrf): Likewise.
23489         [LIBM_BUILD] (pmatherr): Likewise.
23490         [LIBM_BUILD] (pmatherrl): Likewise.
23491         (DOMAIN): Likewise.
23492         (SING): Likewise.
23493         (OVERFLOW): Likewise.
23494         (UNDERFLOW): Likewise.
23495         (TLOSS): Likewise.
23496         (PLOSS): Likewise.
23497         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
23498         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
23499         compat_symbol.
23500         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
23501         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
23502         compat_symbol.
23503         * math/lgamma-compat.h: Include <math-svid-compat.h>.
23504         * math/w_acos_compat.c: Likewise.
23505         * math/w_acosf_compat.c: Likewise.
23506         * math/w_acosh_compat.c: Likewise.
23507         * math/w_acoshf_compat.c: Likewise.
23508         * math/w_acoshl_compat.c: Likewise.
23509         * math/w_acosl_compat.c: Likewise.
23510         * math/w_asin_compat.c: Likewise.
23511         * math/w_asinf_compat.c: Likewise.
23512         * math/w_asinl_compat.c: Likewise.
23513         * math/w_atan2_compat.c: Likewise.
23514         * math/w_atan2f_compat.c: Likewise.
23515         * math/w_atan2l_compat.c: Likewise.
23516         * math/w_atanh_compat.c: Likewise.
23517         * math/w_atanhf_compat.c: Likewise.
23518         * math/w_atanhl_compat.c: Likewise.
23519         * math/w_cosh_compat.c: Likewise.
23520         * math/w_coshf_compat.c: Likewise.
23521         * math/w_coshl_compat.c: Likewise.
23522         * math/w_exp10_compat.c: Likewise.
23523         * math/w_exp10f_compat.c: Likewise.
23524         * math/w_exp10l_compat.c: Likewise.
23525         * math/w_exp2_compat.c: Likewise.
23526         * math/w_exp2f_compat.c: Likewise.
23527         * math/w_exp2l_compat.c: Likewise.
23528         * math/w_fmod_compat.c: Likewise.
23529         * math/w_fmodf_compat.c: Likewise.
23530         * math/w_fmodl_compat.c: Likewise.
23531         * math/w_hypot_compat.c: Likewise.
23532         * math/w_hypotf_compat.c: Likewise.
23533         * math/w_hypotl_compat.c: Likewise.
23534         * math/w_j0_compat.c: Likewise.
23535         * math/w_j0f_compat.c: Likewise.
23536         * math/w_j0l_compat.c: Likewise.
23537         * math/w_j1_compat.c: Likewise.
23538         * math/w_j1f_compat.c: Likewise.
23539         * math/w_j1l_compat.c: Likewise.
23540         * math/w_jn_compat.c: Likewise.
23541         * math/w_jnf_compat.c: Likewise.
23542         * math/w_jnl_compat.c: Likewise.
23543         * math/w_lgamma_main.c: Likewise.
23544         * math/w_lgamma_r_compat.c: Likewise.
23545         * math/w_lgammaf_main.c: Likewise.
23546         * math/w_lgammaf_r_compat.c: Likewise.
23547         * math/w_lgammal_main.c: Likewise.
23548         * math/w_lgammal_r_compat.c: Likewise.
23549         * math/w_log10_compat.c: Likewise.
23550         * math/w_log10f_compat.c: Likewise.
23551         * math/w_log10l_compat.c: Likewise.
23552         * math/w_log2_compat.c: Likewise.
23553         * math/w_log2f_compat.c: Likewise.
23554         * math/w_log2l_compat.c: Likewise.
23555         * math/w_log_compat.c: Likewise.
23556         * math/w_logf_compat.c: Likewise.
23557         * math/w_logl_compat.c: Likewise.
23558         * math/w_pow_compat.c: Likewise.
23559         * math/w_powf_compat.c: Likewise.
23560         * math/w_powl_compat.c: Likewise.
23561         * math/w_remainder_compat.c: Likewise.
23562         * math/w_remainderf_compat.c: Likewise.
23563         * math/w_remainderl_compat.c: Likewise.
23564         * math/w_scalb_compat.c: Likewise.
23565         * math/w_scalbf_compat.c: Likewise.
23566         * math/w_scalbl_compat.c: Likewise.
23567         * math/w_sinh_compat.c: Likewise.
23568         * math/w_sinhf_compat.c: Likewise.
23569         * math/w_sinhl_compat.c: Likewise.
23570         * math/w_sqrt_compat.c: Likewise.
23571         * math/w_sqrtf_compat.c: Likewise.
23572         * math/w_sqrtl_compat.c: Likewise.
23573         * math/w_tgamma_compat.c: Likewise.
23574         * math/w_tgammaf_compat.c: Likewise.
23575         * math/w_tgammal_compat.c: Likewise.
23576         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
23577         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
23578         * sysdeps/ieee754/k_standard.c: Likewise.
23579         * sysdeps/ieee754/k_standardf.c: Likewise.
23580         * sysdeps/ieee754/k_standardl.c: Likewise.
23581         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
23582         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
23583         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
23584         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
23585         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
23586         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
23587         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
23588         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
23589         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
23590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
23591         Likewise.
23592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
23593         Likewise.
23594         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
23595         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
23596         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
23597         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
23598
23599 2017-08-21  Florian Weimer  <fweimer@redhat.com>
23600
23601         [BZ #21864]
23602         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
23603         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
23604         Move before inclusion of ../Rules.
23605
23606 2017-08-21  Florian Weimer  <fweimer@redhat.com>
23607
23608         [BZ #21972]
23609         * assert/assert.h (assert): Use static_cast (bool) for C++.
23610         Use the ternary operator in the warning branch for GNU C.
23611         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
23612         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
23613         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
23614         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
23615         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
23616
23617 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23618
23619         [BZ #18822]
23620         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23621         (__syscall_clock_gettime): Add attribute_hidden.
23622         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
23623         (__start_context): Likewise.
23624
23625 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23626
23627         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23628         building libc.a.
23629         (hidden_proto): Likewise.
23630         (hidden_tls_proto): Likewise.
23631         (__hidden_proto): Likewise.
23632
23633 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23634
23635         * include/libc-symbols.h (attribute_hidden): Enable hidden
23636         visibility in libc.a compiled with PIE.
23637
23638 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23639
23640         [BZ #18822]
23641         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
23642         Add attribute_hidden.
23643
23644 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23645
23646         [BZ #21864]
23647         * Makerules (all-nonlib): Add $(others-extras).
23648         * catgets/Makefile (others-extras): New.
23649         * elf/Makefile (others-extras): Likewise.
23650         * nss/Makefile (others-extras): Likewise.
23651
23652 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23653
23654         [BZ #18822]
23655         * csu/libc-start.c (__libc_multiple_libcs): Removed.
23656         * elf/dl-open.c: Include <libc-internal.h>.
23657         (__libc_multiple_libcs): Removed.
23658         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
23659         <hp-timing.h>.
23660         * include/libc-internal.h (__libc_multiple_libcs): New.
23661         * misc/sbrk.c: Include <libc-internal.h>.
23662         (__libc_multiple_libcs): Removed.
23663
23664 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
23665
23666         [BZ #18822]
23667         * grp/initgroups.c (__nss_group_database): Removed.
23668         (__nss_initgroups_database): Likewise.
23669         * nscd/gai.c (__nss_hosts_database): Likewise.
23670         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
23671         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
23672         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
23673         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
23674         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
23675         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
23676         attribute_hidden.
23677         * nss/nsswitch.c (__nss_database_custom): Define only if
23678         USE_NSCD is defined.
23679         (__nss_configure_lookup): Use __nss_database_custom only if
23680         USE_NSCD is defined.
23681         * nss/nsswitch.h (__nss_database_custom): Declare only if
23682         USE_NSCD is defined.  Add attribute_hidden.
23683         (__nss_setent): Add attribute_hidden.
23684         (__nss_endent): Likewise.
23685         (__nss_getent_r): Likewise.
23686         (__nss_getent): Likewise.
23687         (DEFINE_DATABASE): Declare __nss_##arg##_database.
23688
23689 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
23690
23691         [BZ #18822]
23692         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
23693         libc_hidden_proto and libc_hidden_def.
23694
23695 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
23696
23697         [BZ #18822]
23698         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
23699         Add libc_hidden_proto.
23700         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
23701         Add libc_hidden_def.
23702
23703 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
23704
23705         [BZ #21974]
23706         * gmon/Makefile (routines): Remove bb_init_func and
23707         bb_exit_func.
23708         (elide-routines.os): Removed.
23709         * gmon/bb_exit_func.c: Likewise.
23710         * gmon/bb_init_func.c: Likewise.
23711         * include/sys/gmon.h (__bb): Likewise.
23712         (__bb_init_func): Likewise.
23713         (__bb_exit_func): Likewise.
23714         * sysdeps/alpha/bb_init_func.S: Likewise.
23715
23716 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
23717
23718         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
23719         * include/setjmp.h (____longjmp_chk): Here.  Add
23720         attribute_hidden.
23721
23722 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
23723
23724         [BZ #18822]
23725         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
23726         attribute_hidden.
23727         (__strspn_sse2): Likewise.
23728
23729 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23730
23731         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
23732         (close_not_cancel_no_status): Likewise.
23733         (__close_nocancel): New macro.
23734         (__close_nocancel_nostatus): Likewise.
23735         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
23736         macro.
23737         (close_not_cancel): Likewise.
23738         (close_not_cancel_no_status): Likewise.
23739         (__close_nocancel): New prototype.
23740         (__close_nocancel_nostatus): New function.
23741         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
23742         * catgets/open_catalog.c (__open_catalog): Replace
23743         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
23744         * gmon/gmon.c (write_gmon): Likewise.
23745         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
23746         * intl/loadmsgcat.c (close): Likewise.
23747         * io/ftw.c (open_dir_stream): Likewise.
23748         (ftw_startup): Likewise.
23749         * libio/fileops.c (_IO_file_open): Likewise.
23750         (_IO_file_close_mmap): Likewise.
23751         (_IO_file_close): Likewise.
23752         * libio/iopopen.c (_IO_dup2): Likewise.
23753         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
23754         * locale/loadlocale.c (_nl_load_locale): Likewise.
23755         * login/utmp_file.c (pututline_file): Likewise.
23756         (endutent_file): Likewise.
23757         * misc/daemon.c (daemon): Likewise.
23758         * nscd/nscd_getai.c (__nscd_getai): Likewise.
23759         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
23760         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
23761         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
23762         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
23763         * nscd/nscd_helper.c (open_socket): Likewise.
23764         (__nscd_open_socket): Likewise.
23765         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
23766         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
23767         (__nscd_innetgr): Likewise.
23768         * nss/nss_db/db-open.c (internal_setent): Likewise.
23769         * resolv/res-close.c (__res_iclose): Likewise.
23770         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
23771         * sysdeps/posix/closedir.c (__closedir): Likewise.
23772         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
23773         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
23774         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
23775         (opendir_tail): Likewise.
23776         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23777         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
23778         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
23779         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
23780         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23781         (gethostid): Likewise.
23782         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23783         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23784         Likewise.
23785         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
23786         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
23787         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23788         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23789         Likewise.
23790         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
23791         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
23792         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23793         Likewise.
23794         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
23795         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23796         Likewise.
23797         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23798         Likewise.
23799         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
23800         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23801         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23802         __close_nocancel.
23803
23804         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
23805         (openat_not_cancel_3): Likewise.
23806         (openat64_not_cancel_3): Likewise).
23807         (openat_not_cancel_3): Likewise).
23808         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
23809         macro.
23810         (openat_not_cancel_3): Likewise.
23811         (openat64_not_cancel): Likewise.
23812         (openat64_not_cancel_3): Likewise.
23813         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
23814         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
23815         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
23816         __open{64}_nocancel.
23817         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
23818         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
23819         * sysdeps/posix/opendir.c (__opendirat): Likewise.
23820
23821 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
23822
23823         [BZ #18822]
23824         * include/argz.h (__argz_create_sep): New function prototype.
23825         (__argz_append): Likewise.
23826         (__argz_add): Likewise.
23827         (__argz_add_sep): Likewise.
23828         (__argz_delete): Likewise.
23829         (__argz_insert): Likewise.
23830         (__argz_replace): Likewise.
23831         * string/argz.h (__argz_create_sep): Removed.
23832         (__argz_append): Likewise.
23833         (__argz_add): Likewise.
23834         (__argz_add_sep): Likewise.
23835         (__argz_delete): Likewise.
23836         (__argz_insert): Likewise.
23837         (__argz_replace): Likewise.
23838
23839 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
23840
23841         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
23842         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
23843         (GNU_PROPERTY_STACK_SIZE): Likewie.
23844         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
23845         (GNU_PROPERTY_LOPROC): Likewise.
23846         (GNU_PROPERTY_HIPROC): Likewise.
23847         (GNU_PROPERTY_LOUSER): Likewise.
23848         (GNU_PROPERTY_HIUSER): Likewise.
23849         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
23850         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
23851         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
23852         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
23853         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
23854         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
23855         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
23856         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
23857         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
23858         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
23859         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
23860         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
23861         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
23862         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
23863         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
23864         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
23865         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
23866         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
23867         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
23868         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
23869         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
23870         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
23871         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
23872
23873 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23874
23875         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
23876         in C++ mode.
23877
23878 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
23879
23880         [BZ #21930]
23881         * math/math.h (isinf): Check if in C or C++ mode before using
23882         __builtin_types_compatible_p, since this is a C mode feature.
23883
23884 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23885
23886         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
23887         (__write_nocancel): New macro.
23888         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
23889         Rewrite as a function prototype.
23890         (write_not_cancel): Remove macro.
23891         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
23892         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
23893         (write_gmon): Likewise.
23894         * libio/fileops.c (_IO_new_file_write): Likewise.
23895         * login/utmp_file.c (pututline_file): Likewise.
23896         (updwtmp_file): Likewise.
23897         * stdio-common/psiginfo.c (psiginfo): Likewise.
23898         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23899         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23900         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23901         Likewise.
23902         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23903         Likewise.
23904
23905         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
23906         (__read_nocancel): New macro.
23907         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23908         __read_nocancel.
23909         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
23910         macro.
23911         (__read_nocancel): New prototype.
23912         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
23913         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
23914         with __read_nocancel.
23915         * intl/loadmsgcat.c (read): Likewise.
23916         * libio/fileops.c (_IO_file_read): Likewise.
23917         * locale/loadlocale.c (_nl_load_locale): Likewise.
23918         * login/utmp_file.c (getutent_r_file): Likewise.
23919         (internal_getut_r): Likewise.
23920         (getutline_r_file): Likewise.
23921         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
23922         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
23923         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23924         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23925         Likewise.
23926         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
23927         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23928         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23929         Likewise.
23930         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23931         Likewise.
23932         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23933         Likewise.
23934         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23935         Likewise.
23936         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23937
23938 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
23939
23940         [BZ #21966]
23941         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
23942         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
23943         usable.
23944
23945 2017-08-17  DJ Delorie  <dj@redhat.com>
23946
23947         * bug17079.c: Update to new test harness.
23948         * test-digits-dots.c: Likewise.
23949         * test-netdb.c: Likewise.
23950         * tst-field.c: Likewise.
23951         * tst-nss-getpwent.c: Likewise.
23952         * tst-nss-static.c: Likewise.
23953         * tst-nss-test1.c: Likewise.
23954         * tst-nss-test2.c: Likewise.
23955         * tst-nss-test3.c: Likewise.
23956         * tst-nss-test4.c: Likewise.
23957         * tst-nss-test5.c: Likewise.
23958
23959 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23960
23961         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
23962         (open_not_cancel_2): Likewise.
23963         (open_nocancel): New macro.
23964         (open64_nocancel): Likewise.
23965         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
23966         (open_not_cancel_2): Likewise.
23967         (__open_nocancel): New prototype.
23968         (__open64_nocancel): Likewise.
23969         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23970         __open_nocancel.
23971         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
23972         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
23973         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
23974         with __open_nocancel.
23975         * csu/check_fds.c (check_one_fd): Likewise.
23976         * gmon/gmon.c (write_gmon): Likewise.
23977         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
23978         * intl/loadmsgcat.c (open): Likewise.
23979         * libio/fileops.c (_IO_file_open): Likewise.
23980         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
23981         * locale/loadlocale.c (_nl_load_locale): Likewise.
23982         * login/utmp_file.c (setutent_file): Likewise.
23983         * misc/daemon.c (daemon): Likewise.
23984         * nss/nss_db/db-open.c (internal_setent): Likewise.
23985         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
23986         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
23987         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
23988         (__opendir): Likewise.
23989         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23990         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
23991         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23992         (gethostid): Likewise.
23993         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23994         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23995         Likewise.
23996         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
23997         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
23998         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23999         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
24000         Likewise.
24001         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
24002         Likewise.
24003         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
24004         Likewise.
24005         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
24006         Likewise.
24007         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
24008         Likewise.
24009         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
24010         Likewise.
24011         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
24012         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
24013
24014 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
24015
24016         * benchtests/bench-skeleton.c (main): Add support for
24017         latency benchmarking.
24018         * benchtests/scripts/bench.py: Add support for latency benchmarking.
24019
24020 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
24021
24022         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
24023         the startup object.
24024
24025 2017-08-17  Florian Weimer  <fweimer@redhat.com>
24026
24027         * include/sys/socket.h (__opensock): Remove internal_function.
24028         * socket/opensock.c (__opensock): Likewise.
24029         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
24030
24031 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
24032
24033         [BZ #21944]
24034         * signal/bits/types/__sigval_t.h: New file.
24035         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
24036         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
24037         and define sigval_t using __sigval_t.
24038         * include/bits/types/__sigval_t.h: New file.
24039         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
24040         instead of <bits/types/__sigval_t.h>.
24041         (struct sigevent): Use __sigval_t instead of sigval_t.
24042         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
24043         instead of <bits/types/__sigval_t.h>.
24044         (siginfo_t): Use __sigval_t instead of sigval_t.
24045         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
24046         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
24047         (struct sigevent): Use __sigval_t instead of sigval_t.
24048         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
24049         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
24050         (siginfo_t): Use __sigval_t instead of sigval_t.
24051         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
24052
24053 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
24054
24055         * NEWS: Remove "[Add new features here]" for 2.27.
24056
24057 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
24058
24059         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
24060         libc.so.
24061
24062 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
24063
24064         * NEWS: Mention x86-64 FMA optimization.
24065
24066 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
24067
24068         [BZ #21912]
24069         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24070         Add e_expf-fma.
24071         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
24072         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
24073         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
24074
24075 2017-08-16  Andreas Schwab  <schwab@suse.de>
24076
24077         [BZ #16750]
24078         CVE-2009-5064
24079         * elf/ldd.bash.in: Never run file directly.
24080
24081 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
24082
24083         [BZ #21955]
24084         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
24085         (L(SP_INF_0)): Likewise.
24086
24087 2017-08-15  Florian Weimer  <fweimer@redhat.com>
24088
24089         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
24090         run-built-tests.
24091
24092 2017-08-15  Florian Weimer  <fweimer@redhat.com>
24093
24094         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
24095         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
24096         BROKEN_THREAD_SIGNALS code.
24097         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
24098         request_list): Remove caller_pid member used for
24099         BROKEN_THREAD_SIGNALS.
24100         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
24101         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
24102         Remove BROKEN_THREAD_SIGNALS support.
24103         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
24104         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
24105
24106 2017-08-15  Florian Weimer  <fweimer@redhat.com>
24107
24108         * gmon/Makefile (tests): Add tst-gmon.
24109         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
24110         Set.
24111         (tests-special): Add tst-gmon-prof.out.
24112         (tst-gmon.out): Depend on clean-tst-gmon-data.
24113         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
24114         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
24115         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
24116         startup object.
24117         * aclocal.m4 (GPROF): Set and substitute.
24118         * config.amke.in (GPROF): Set.
24119         * configure: Regenerate.
24120
24121 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
24122
24123         * elf/elf.h A (NT_PPC_TAR): New macro.
24124         (NT_PPC_PPR): Likewise.
24125         (NT_PPC_DSCR): Likewise.
24126         (NT_PPC_EBB): Likewise.
24127         (NT_PPC_PMU): Likewise.
24128         (NT_PPC_TM_CGPR): Likewise.
24129         (NT_PPC_TM_CFPR): Likewise.
24130         (NT_PPC_TM_CVMX): Likewise.
24131         (NT_PPC_TM_CVSX): Likewise.
24132         (NT_PPC_TM_SPR): Likewise.
24133         (NT_PPC_TM_CTAR): Likewise.
24134         (NT_PPC_TM_CPPR): Likewise.
24135         (NT_PPC_TM_CDSCR): Likewise.
24136
24137 2017-08-15  Florian Weimer  <fweimer@redhat.com>
24138
24139         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
24140         regparm (2) instead of internal_function.
24141         (_MCOUNT_DECL): Adjust.
24142
24143 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
24144
24145         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
24146         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
24147
24148 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
24149
24150         * conform/data/sys/wait.h-data (si_value): Do not expect for
24151         XPG42.
24152
24153 2017-08-14  Florian Weimer  <fweimer@redhat.com>
24154
24155         [BZ #21962]
24156         NSS: Create stubs for accidentally exported lookup functions.
24157         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
24158         Remove declaration.
24159         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
24160         (ether_hostton): Call __nss_ethers_lookup2 instead.
24161         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
24162         (ether_ntohost): Call __nss_ethers_lookup2 instead.
24163         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
24164         (setup): Call __nss_netgroup_lookup2 instead.
24165         * nss/Makefile (routines): Add compat-lookup.
24166         * nss/Versions (GLIBC_2.27): Add symbol version.
24167         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
24168         (DB_COMPAT_FCT): Remove.
24169         * nss/compat-lookup.c: New file.
24170         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
24171         from databases.def.
24172         * nss/service-lookup.c (NO_COMPAT): Remove definition.
24173         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
24174         (netname2user): Call __nss_publickey_lookup2 instead.
24175         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
24176         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
24177         instead.
24178
24179 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24180             Sergei Trofimovich  <slyfox@inbox.ru>
24181
24182         [BZ #21908]
24183         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
24184         Rename to MMAP2_PAGE_UNIT.
24185         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
24186         __OFF_T_MATCHES_OFF64_T is not defined.
24187         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
24188         uint64_t.
24189         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
24190         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
24191
24192 2017-08-14  Florian Weimer  <fweimer@redhat.com>
24193
24194         i386: Do not set internal_function.
24195         * config.h.in (USE_REGPARMS, internal_function): Remove.
24196         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
24197         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
24198
24199 2017-08-14  Florian Weimer  <fweimer@redhat.com>
24200
24201         * elf/dl-init.c (_dl_init): Remove internal_function.
24202         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
24203         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
24204
24205 2017-08-14  Florian Weimer  <fweimer@redhat.com>
24206
24207         * elf/rtld.c (_dl_start): Remove internal_function.
24208         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
24209         _dl_start.
24210
24211 2017-08-14  Florian Weimer  <fweimer@redhat.com>
24212
24213         * elf/dl-fini.c (_dl_fini): Remove internal_function
24214         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
24215
24216 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
24217
24218         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
24219         (bit_cpu_SHSTK): Likewise.
24220         (index_cpu_IBT): Likewise.
24221         (index_cpu_SHSTK): Likewise.
24222         (reg_IBT): Likewise.
24223         (reg_SHSTK): Likewise.
24224         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24225         Handle index_cpu_IBT and index_cpu_SHSTK.
24226
24227 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
24228
24229         [BZ #19982]
24230         * po/fr.po: Fix spelling mistake.
24231
24232 2017-08-13  Florian Weimer  <fweimer@redhat.com>
24233
24234         * elf/dl-addr.c (_dl_addr): Remove internal_function.
24235         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
24236         (_dl_catch_error, _dl_receive_error): Likewise.
24237         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
24238         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
24239         (_dl_deallocate_tls): Likewise.
24240         * include/dlfcn.h (_dl_addr): Likewise.
24241         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
24242         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
24243         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
24244         Likewise.
24245
24246 2017-08-13  Florian Weimer  <fweimer@redhat.com>
24247
24248         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
24249         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
24250         internal_function.
24251         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
24252
24253 2017-08-13  Florian Weimer  <fweimer@redhat.com>
24254
24255         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
24256         internal_function.
24257         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
24258         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
24259         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
24260         internal_function from _dl_make_stack_executable_hook member.
24261         (_dl_make_stack_executable): Remove internal_function.
24262         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
24263         Likewise.
24264         * sysdeps/unix/sysv/linux/dl-execstack.c
24265         (_dl_make_stack_executable): Likewise.
24266
24267 2017-08-13  Florian Weimer  <fweimer@redhat.com>
24268
24269         * sysdeps/unix/sysv/linux/netlinkaccess.h
24270         (__netlink_assert_response): Remove internal_function.
24271         * sysdeps/unix/sysv/linux/netlink_assert_response.c
24272         (__netlink_assert_response): Likewise.
24273
24274 2017-08-13  Florian Weimer  <fweimer@redhat.com>
24275
24276         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
24277         internal_function.
24278         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
24279
24280 2017-08-13  Florian Weimer  <fweimer@redhat.com>
24281
24282         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
24283         internal_function.
24284         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
24285         * inet/netgroup.h (__internal_setnetgrent)
24286         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
24287         * inet/getnetgrent_r.c (__internal_setnetgrent)
24288         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
24289         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
24290         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
24291         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
24292         * nss/nsswitch.h (db_lookup_function): Likewise.
24293
24294 2017-08-13  Florian Weimer  <fweimer@redhat.com>
24295
24296         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
24297         Remove internal_function.
24298         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
24299         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
24300         message argument on the stack.
24301         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
24302         Likeweise.
24303
24304 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
24305
24306         Adapt test case data to the changes in the thousands
24307         separators.
24308
24309         [BZ #20756]
24310         * localedata/tst-langinfo.sh: Adapt test case data.
24311         * stdlib/tst-strfmon_l.c: Likewise.
24312         * stdlib/tst-strtod4.c: Likewise.
24313         * stdlib/tst-strtod5i.c: Likewise.
24314
24315 2017-08-11  Florian Weimer  <fweimer@redhat.com>
24316
24317         [BZ #21242]
24318         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
24319         Suppress pedantic warning resulting from statement expression.
24320         (__ASSERT_FUNCTION): Add missing __extension__.
24321
24322 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24323
24324         * benchtests/bench-memmove-large.c: Print output in JSON
24325         format.
24326         * benchtests/bench-memmove.c: Likewise.
24327
24328         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
24329         * benchtests/bench-memchr.c (do_one_test): Likewise.
24330         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
24331         * benchtests/bench-memcpy.c (do_one_test): Likewise.
24332         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
24333         * benchtests/bench-memmove.c (do_one_test): Likewise.
24334         * benchtests/bench-memset-large.c (do_one_test): Likewise.
24335         * benchtests/bench-memset.c (do_one_test): Likewise.
24336         * benchtests/bench-string.h (test_init): Remove memsets.
24337
24338 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
24339
24340         * manual/lang.texi
24341         (Computing the Width of an Integer Data Type): Rename section to
24342         "Width of an Integer Type".  Remove inaccurate statement regarding
24343         lack of C language facilities for determining width of integer
24344         types, and reorder content to improve flow and context of
24345         discussion.
24346
24347 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
24348
24349         * lang.texi (va_copy): Change standard from ISO to C99.
24350         (__va_copy): Add standard and header annotation.
24351         Update description for clarity of origins and current use.
24352
24353 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24354
24355         [BZ #21941]
24356         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
24357         xssqrtqp requires operands to be in Vector Registers
24358         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
24359         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
24360         (__ieee754_sqrtf128): Likewise.
24361
24362 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
24363
24364         * sysdeps/aarch64/memcmp.S (memcmp):
24365         Rewrite of optimized memcmp.
24366
24367 2017-08-10  Florian Weimer  <fweimer@redhat.com>
24368
24369         Introduce ld.so exceptions.
24370         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
24371         (_dl_exception_create, _dl_exception_create_format)
24372         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
24373         (_dl_catch_exception): Declare.
24374         (_dl_catch_error): Update comment.
24375         * elf/dl-error-skeleton.c (struct catch): Replace objname,
24376         errstring, malloced members with exception member.
24377         (_dl_out_of_memory): Remove.
24378         (fatal_error): New function, extracted from _dl_signal_error.
24379         (_dl_signal_exception, _dl_signal_cexception): New functions.
24380         (_dl_signal_error): Call _dl_exception_create to allocate an
24381         exception object.
24382         (_dl_catch_exception): New function, based on _dl_catch_error.
24383         (_dl_catch_error): Implement using _dl_catch_exception.
24384         * elf/dl-exception.c: New file.
24385         * elf/Makefile (dl-routines): Add dl-exception.
24386         (elide-routines.os): Likewise.
24387         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
24388         _dl_exception_create_format, _dl_exception_free.
24389         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
24390         _dl_signal_exception.
24391         * elf/dl-lookup.c (make_string): Remove.
24392         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
24393         _dl_signal_cexception, _dl_exception_free.
24394         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
24395         _dl_signal_exception.
24396         * elf/dl-sym.c (do_sym): Likewise.
24397         * elf/dl-version.c (make_string): Remove.
24398         (match_symbol): Use _dl_exception_create_format,
24399         _dl_signal_cexception, _dl_exception_free.
24400         (_dl_check_map_versions): Likewise.
24401         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
24402         _dl_catch_exception.
24403         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
24404         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
24405         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
24406         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
24407         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
24408         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
24409         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
24410         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
24411         Likewise.
24412         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
24413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
24414         (ld.so): Likewise.
24415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
24416         (ld.so): Likewise.
24417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
24418         Likewise.
24419         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
24420         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
24421         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
24422         Likewise.
24423         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
24424         Likewise.
24425         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
24426
24427 2017-08-10  Florian Weimer  <fweimer@redhat.com>
24428
24429         * inet/net-internal.h (__inet6_scopeid_pton): Remove
24430         attribute_hidden, internal_function.
24431         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
24432         internal_function.
24433
24434 2017-08-10  Florian Weimer  <fweimer@redhat.com>
24435
24436         * malloc/malloc.c (get_max_fast): Reimplement as an inline
24437         function which calls __builtin_unreachable.
24438
24439 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
24440
24441         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
24442         Indian monetary formatting
24443         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
24444         test cases.
24445
24446 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
24447
24448         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
24449         Fix typo in comment.
24450
24451         [BZ #21928]
24452         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
24453         PTRACE_SEIZE_DEVEL): Remove.
24454         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
24455         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24456         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24457         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24458         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24459
24460 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
24461
24462         * posix/bits/types.h (__qaddr_t): Remove.
24463
24464         [BZ #21457]
24465         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
24466         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
24467         __glibc_reserved1.
24468         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
24469         (ucontext_t): Use __ctx with uc_flags.
24470         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
24471         (__ctxt): Likewise.
24472         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
24473         __glibc_reserved1.
24474         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
24475         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
24476         __glibc_reserved1.
24477         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
24478         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
24479         __glibc_reserved1.
24480         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
24481         macro.
24482         (ucontext_t): Use __ctx with uc_flags.
24483         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
24484         (ucontext_t): Use __ctx with uc_flags.
24485         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
24486         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
24487         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
24488         (ucontext_t): Use __ctx with uc_flags.
24489         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
24490         undefine further down.
24491         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
24492         __glibc_reserved1.
24493         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
24494         undefine further down.
24495         (ucontext_t): Use __ctx with uc_flags.
24496         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
24497         undefine further down.
24498         (ucontext_t): Use __ctx with uc_flags.
24499         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
24500         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
24501         Rename uc_pad to __glibc_reserved1.
24502         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
24503         undefine further down.
24504         (ucontext_t): Use __ctx with uc_flags.
24505         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
24506         further down.
24507         (ucontext_t): Use __ctx with uc_flags.
24508         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
24509         __ctx with uc_flags.
24510         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
24511         (ucontext_t): Use __ctx with uc_flags.
24512         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
24513         __ctx with uc_flags.
24514
24515 2017-08-09  Florian Weimer  <fweimer@redhat.com>
24516
24517         [BZ #21932]
24518         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
24519         before early return.
24520
24521 2017-08-09  Andreas Schwab  <schwab@suse.de>
24522
24523         [BZ #21041]
24524         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
24525         renamed alias.
24526
24527         [BZ #21041]
24528         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
24529         tst-compat-forwarder.
24530         (modules-names): Add tst-compat-forwarder-mod.
24531         ($(objpfx)tst-compat-forwarder): Depend on
24532         $(objpfx)tst-compat-forwarder-mod.so.
24533         * nptl/tst-compat-forwarder.c: New file.
24534         * nptl/tst-compat-forwarder-mod.c: New file.
24535
24536 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24537
24538         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
24539         comments.
24540
24541         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
24542         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24543         memcpy_falkor.
24544         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
24545         Bump.
24546         (__libc_ifunc_impl_list): Add __memcpy_falkor.
24547         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
24548         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
24549         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
24550         Add falkor.
24551         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
24552         New macro.
24553
24554 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24555
24556         [BZ #759]
24557         * manual/setjmp.texi (getcontex): Document uc_stack value
24558         compatibility differences.
24559
24560 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
24561
24562         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
24563         (old_malloc_hook): Likewise.
24564         (old_memalign_hook): Likewise.
24565         (old_realloc_hook): Likewise.
24566         (struct hdr): Likewise.
24567         (flood): Likewise.
24568         (freehook): Likewise.
24569         (mallochook): Likewise.
24570         (memalignhook): Likewise.
24571         (reallochook): Likewise.
24572         (mprobe): Likewise.
24573         * malloc/mtrace.c (mallwatch): Likewise.
24574         (tr_old_free_hook): Likewise.
24575         (tr_old_malloc_hook): Likewise.
24576         (tr_old_realloc_hook): Likewise.
24577         (tr_old_memalign_hook): Likewise.
24578         (tr_where): Likewise.
24579         (lock_and_info): Likewise.
24580         (tr_freehook): Likewise.
24581         (tr_mallochook): Likewise.
24582         (tr_reallochook): Likewise.
24583         (tr_memalignhook): Likewise.
24584         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
24585         * misc/mmap.c (__mmap): Likewise.
24586         * misc/mmap64.c (__mmap64): Likewise.
24587         * misc/mprotect.c (__mprotect): Likewise.
24588         * misc/msync.c (msync): Likewise.
24589         * misc/munmap.c (__munmap): Likewise.
24590         * posix/posix_madvise.c (posix_madvise): Likewise.
24591         * socket/send.c (__send): Likewise.
24592         * socket/sendto.c (__sendto): Likewise.
24593         * socket/setsockopt.c (__setsockopt): Likewise.
24594         * string/memcmp.c (__ptr_t): Remove macro.
24595         (MEMCMP): Use void * instead of ptr_t.
24596         * string/memrchr.c (__ptr_t): Remove macro.
24597         (__memrchr): Use void * instead of ptr_t.
24598         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
24599         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
24600         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
24601         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
24602         * sysdeps/mach/msync.c (msync): Likewise.
24603         * sysdeps/mach/munmap.c (__munmap): Likewise.
24604         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
24605         Likewise.
24606         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
24607         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
24608         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
24609         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
24610         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
24611         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
24612         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
24613         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
24614         Likewise.
24615         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
24616         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
24617         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
24618         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
24619         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
24620         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
24621         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
24622         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
24623         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
24624         Likewise.
24625         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
24626         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
24627         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
24628         (MEMCMP): Use void * instead of ptr_t.
24629         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
24630         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
24631
24632 2017-08-08  Florian Weimer  <fweimer@redhat.com>
24633
24634         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
24635         return statement.
24636
24637 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
24638
24639         [BZ #21913]
24640         * csu/libc-tls.c: Include <startup.h> first.
24641         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
24642         * elf/dl-tunables.c: Include <startup.h> first.
24643         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
24644         * sysdeps/generic/startup.h: New file.
24645         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
24646         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
24647         (I386_USE_SYSENTER): New.  Defined to 0.
24648
24649 2017-08-08  Andreas Schwab  <schwab@suse.de>
24650
24651         [BZ #21041]
24652         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
24653         * nptl/pt-system.c (system): Likewise.
24654
24655 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24656
24657         [BZ #21780]
24658         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
24659         EOPNOTSUPP.
24660         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
24661         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
24662         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
24663         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
24664         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
24665         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
24666         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
24667
24668 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
24669
24670         [BZ #21899]
24671         * bits/sigaction.h (struct sigaction): Define sa_handler and
24672         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
24673         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24674         [__USE_XOPEN_EXTENDED].
24675         (SA_RESTART): Likewise.
24676         (SA_NODEFER): Likewise.
24677         (SA_RESETHAND): Likewise.
24678         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
24679         (struct sigaction): Define sa_handler and sa_sigaction using union
24680         also for [__USE_XOPEN_EXTENDED].
24681         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24682         [__USE_XOPEN_EXTENDED].
24683         (SA_RESTART): Likewise.
24684         (SA_NODEFER): Likewise.
24685         (SA_RESETHAND): Likewise.
24686         * sysdeps/unix/sysv/linux/bits/sigaction.h
24687         (struct sigaction): Define sa_handler and sa_sigaction using union
24688         also for [__USE_XOPEN_EXTENDED].
24689         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24690         [__USE_XOPEN_EXTENDED].
24691         (SA_RESTART): Likewise.
24692         (SA_NODEFER): Likewise.
24693         (SA_RESETHAND): Likewise.
24694         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
24695         (struct sigaction): Define sa_handler and sa_sigaction using union
24696         also for [__USE_XOPEN_EXTENDED].
24697         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24698         [__USE_XOPEN_EXTENDED].
24699         (SA_RESTART): Likewise.
24700         (SA_NODEFER): Likewise.
24701         (SA_RESETHAND): Likewise.
24702         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
24703         (struct sigaction): Define sa_handler and sa_sigaction using union
24704         also for [__USE_XOPEN_EXTENDED].
24705         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24706         [__USE_XOPEN_EXTENDED].
24707         (SA_RESTART): Likewise.
24708         (SA_NODEFER): Likewise.
24709         (SA_RESETHAND): Likewise.
24710         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
24711         (struct sigaction): Define sa_handler and sa_sigaction using union
24712         also for [__USE_XOPEN_EXTENDED].
24713         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24714         [__USE_XOPEN_EXTENDED].
24715         (SA_RESTART): Likewise.
24716         (SA_NODEFER): Likewise.
24717         (SA_RESETHAND): Likewise.
24718         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
24719         (struct sigaction): Define sa_handler and sa_sigaction using union
24720         also for [__USE_XOPEN_EXTENDED].
24721         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24722         [__USE_XOPEN_EXTENDED].
24723         (SA_RESTART): Likewise.
24724         (SA_NODEFER): Likewise.
24725         (SA_RESETHAND): Likewise.
24726         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
24727         (struct sigaction): Define sa_handler and sa_sigaction using union
24728         also for [__USE_XOPEN_EXTENDED].
24729         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24730         [__USE_XOPEN_EXTENDED].
24731         (SA_RESTART): Likewise.
24732         (SA_NODEFER): Likewise.  Define directly rather than as alias.
24733         (SA_RESETHAND): Likewise.
24734         (SA_INTERRUPT): Define only for [__USE_MISC].
24735         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
24736         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
24737         [__USE_MISC].
24738         (SA_STACK): Define only for [__USE_MISC].
24739         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
24740         (struct sigaction): Define sa_handler and sa_sigaction using union
24741         also for [__USE_XOPEN_EXTENDED].
24742         (SA_ONSTACK): Change [__USE_UNIX98] condition to
24743         [__USE_XOPEN_EXTENDED].
24744         (SA_RESTART): Likewise.
24745         (SA_NODEFER): Likewise.
24746         (SA_RESETHAND): Likewise.
24747         (SA_NOPTRACE): Define only for [__USE_MISC].
24748
24749         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
24750         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
24751         (struct catalog_info): Likewise.
24752         * inet/htontest.c (lo): Likewise.
24753         (foo): Likewise.
24754         * inet/inet_lnaof.c (inet_lnaof): Likewise.
24755         * inet/inet_net.c (inet_network): Likewise.
24756         * inet/inet_netof.c (inet_netof): Likewise.
24757         * inet/rcmd.c (__ivaliduser): Likewise.
24758         (iruserok): Likewise.
24759         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
24760         * locale/programs/locale-spec.c (locale_special): Likewise.
24761         * nis/nis_findserv.c (struct findserv_req): Likewise.
24762         (__nis_findfastest_with_timeout): Likewise.
24763         * nss/test-netdb.c (test_network): Likewise.
24764         * resolv/inet_neta.c (inet_neta): Likewise.
24765         * resolv/ns_date.c (ns_datetosecs): Likewise.
24766         (SECS_PER_DAY): Likewise.
24767         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
24768         Likewise.
24769         * resolv/res_comp.c (__putlong): Likewise.
24770         (__putshort): Likewise.
24771         (_getlong): Likewise.
24772         (_getshort): Likewise.
24773         * resolv/res_debug.c (p_time): Likewise.
24774         (precsize_ntoa): Likewise.
24775         (precsize_aton): Likewise.
24776         (latlon2ul): Likewise.
24777         (loc_aton): Likewise.
24778         (loc_ntoa): Likewise.
24779         * resolv/res_hconf.c (struct netaddr): Likewise.
24780         (_res_hconf_reorder_addrs): Likewise.
24781         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
24782         (clnttcp_control): Likewise.
24783         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
24784         (clntudp_control): Likewise.
24785         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
24786         (clntunix_control): Likewise.
24787         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
24788         * sunrpc/rpc/auth.h (union des_block): Likewise.
24789         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
24790         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
24791         (xdrrec_create): Likewise.
24792         (xdrrec_endofrecord): Likewise.
24793         (flush_out): Likewise.
24794         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
24795         (xdrstdio_putlong): Likewise.
24796         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
24797         Likewise.
24798
24799         * misc/sys/cdefs.h (__long_double_t): Remove.
24800         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
24801         instead of __long_double_t,
24802         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
24803
24804 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24805
24806         * benchtests/scripts/compare_strings.py: Avoid display error when
24807         running on a text terminal.
24808
24809         * benchtests/scripts/compare_strings.py (main): Add an
24810         optional -base option.
24811         (process_results): New argument base_func.
24812
24813         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
24814         hardcoding memcpy.
24815         * benchtests/bench-memcpy-large.c (test_name): Likewise.
24816         * benchtests/bench-memcpy-random.c (test_name): Likewise.
24817
24818 2017-08-07  Andreas Schwab  <schwab@suse.de>
24819
24820         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
24821         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
24822         * intl/Makefile ($(objpfx)tst-gettext.out)
24823         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
24824         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
24825         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
24826         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
24827         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
24828         * posix/Makefile ($(objpfx)globtest.out)
24829         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
24830         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
24831         ($(objpfx)tst-printf.out): Likewise.
24832         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
24833         ($(objpfx)tst-setcontext3.out): Likewise.
24834
24835 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
24836
24837         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24838         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
24839         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
24840         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
24841         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
24842         and mptan-fma.
24843         (CFLAGS-doasin-fma.c): New.
24844         (CFLAGS-dosincos-fma.c): Likewise.
24845         (CFLAGS-e_asin-fma.c): Likewise.
24846         (CFLAGS-e_atan2-fma.c): Likewise.
24847         (CFLAGS-e_exp-fma.c): Likewise.
24848         (CFLAGS-e_log-fma.c): Likewise.
24849         (CFLAGS-e_pow-fma.c): Likewise.
24850         (CFLAGS-halfulp-fma.c): Likewise.
24851         (CFLAGS-mpa-fma.c): Likewise.
24852         (CFLAGS-mpatan-fma.c): Likewise.
24853         (CFLAGS-mpatan2-fma.c): Likewise.
24854         (CFLAGS-mpexp-fma.c): Likewise.
24855         (CFLAGS-mplog-fma.c): Likewise.
24856         (CFLAGS-mpsqrt-fma.c): Likewise.
24857         (CFLAGS-mptan-fma.c): Likewise.
24858         (CFLAGS-s_atan-fma.c): Likewise.
24859         (CFLAGS-sincos32-fma.c): Likewise.
24860         (CFLAGS-slowexp-fma.c): Likewise.
24861         (CFLAGS-slowpow-fma.c): Likewise.
24862         (CFLAGS-s_sin-fma.c): Likewise.
24863         (CFLAGS-s_tan-fma.c): Likewise.
24864         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
24865         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
24866         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
24867         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
24868         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
24869         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
24870         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
24871         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
24872         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
24873         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
24874         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
24875         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
24876         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
24877         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
24878         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
24879         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
24880         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
24881         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
24882         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
24883         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
24884         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
24885         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24886         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
24887         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
24888         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
24889         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
24890         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
24891         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
24892         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
24893         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
24894         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
24895
24896 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
24897
24898         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
24899         (min_of_type_f): New macro.
24900         (min_of_type_): Likewise.
24901         (min_of_type_l): Likewise.
24902         (min_of_type_f128): Likewise.
24903         (min_of_type): Define using __MATH_TG and taking an expression
24904         argument.
24905         (math_check_force_underflow): Pass expression instead of type to
24906         min_of_type.
24907         (math_check_force_underflow_nonneg): Likewise.
24908
24909 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
24910
24911         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
24912         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
24913         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
24914
24915 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
24916
24917         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24918         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
24919         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
24920         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
24921         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
24922         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
24923         memcpy_chk-nonshared, mempcpy_chk-nonshared,
24924         memmove_chk-nonshared and memset_chk-nonshared
24925         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
24926         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
24927         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
24928         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
24929         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
24930         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
24931         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
24932         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
24933         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
24934         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
24935         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
24936         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
24937         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
24938         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
24939         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
24940         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
24941         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
24942         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
24943         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
24944         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
24945         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
24946         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
24947         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
24948         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
24949         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
24950         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
24951         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
24952         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
24953         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
24954         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
24955         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
24956         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
24957         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
24958         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
24959         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
24960         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
24961         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
24962         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
24963         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
24964         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
24965         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
24966         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
24967         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
24968         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
24969         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
24970         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
24971         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
24972         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
24973         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
24974         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
24975         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
24976         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
24977         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
24978         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
24979         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
24980         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
24981         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
24982         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
24983         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
24984         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
24985         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
24986         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
24987         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
24988         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
24989         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
24990         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
24991         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
24992         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
24993         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
24994         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
24995         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
24996         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24997         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24998         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24999         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
25000         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
25001         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
25002         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
25003         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
25004         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
25005         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
25006         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
25007         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
25008         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
25009         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
25010         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
25011         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
25012         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
25013         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
25014         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
25015         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
25016         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
25017         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
25018         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
25019         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
25020         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
25021         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
25022         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
25023         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
25024         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
25025         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
25026         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
25027         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
25028         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
25029         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
25030         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
25031         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
25032         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
25033
25034 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25035
25036         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
25037         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
25038         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
25039         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
25040         svml_d_log2_core-sse2, svml_d_log4_core-sse,
25041         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
25042         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
25043         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
25044         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
25045         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
25046         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
25047         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
25048         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
25049         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
25050         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
25051         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
25052         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
25053         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
25054         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
25055         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
25056         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
25057         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
25058         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
25059         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
25060         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
25061         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
25062         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
25063         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
25064         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
25065         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
25066         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
25067         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
25068         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
25069         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
25070         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
25071         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
25072         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
25073         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
25074         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
25075         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
25076         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
25077         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
25078         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
25079         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
25080         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
25081         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
25082         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
25083         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
25084         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
25085         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
25086         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
25087         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
25088         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
25089         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
25090         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
25091         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
25092         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
25093         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
25094         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
25095         ...
25096         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
25097         Don't include <sysdep.h> nor <init-arch.h>.
25098         (_ZGVbN2v_cos): Removed.
25099         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
25100         ...
25101         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
25102         Don't include <sysdep.h> nor <init-arch.h>.
25103         (_ZGVdN4v_cos): Removed.
25104         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
25105         ...
25106         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
25107         Don't include <sysdep.h> nor <init-arch.h>.
25108         (_ZGVeN8v_cos): Removed.
25109         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
25110         ...
25111         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
25112         Don't include <sysdep.h> nor <init-arch.h>.
25113         (_ZGVbN2v_exp): Removed.
25114         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
25115         ...
25116         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
25117         Don't include <sysdep.h> nor <init-arch.h>.
25118         (_ZGVdN4v_exp): Removed.
25119         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
25120         ...
25121         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
25122         Don't include <sysdep.h> nor <init-arch.h>.
25123         (_ZGVeN8v_exp): Removed.
25124         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
25125         ...
25126         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
25127         Don't include <sysdep.h> nor <init-arch.h>.
25128         (_ZGVbN2v_log): Removed.
25129         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
25130         ...
25131         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
25132         Don't include <sysdep.h> nor <init-arch.h>.
25133         (_ZGVdN4v_log): Removed.
25134         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
25135         ...
25136         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
25137         Don't include <sysdep.h> nor <init-arch.h>.
25138         (_ZGVeN8v_log): Removed.
25139         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
25140         ...
25141         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
25142         Don't include <sysdep.h> nor <init-arch.h>.
25143         (_ZGVbN2vv_pow): Removed.
25144         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
25145         ...
25146         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
25147         Don't include <sysdep.h> nor <init-arch.h>.
25148         (_ZGVdN4vv_pow): Removed.
25149         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
25150         ...
25151         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
25152         Don't include <sysdep.h> nor <init-arch.h>.
25153         (_ZGVeN8vv_pow): Removed.
25154         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
25155         ...
25156         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
25157         Don't include <sysdep.h> nor <init-arch.h>.
25158         (_ZGVbN2v_sin): Removed.
25159         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
25160         ...
25161         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
25162         Don't include <sysdep.h> nor <init-arch.h>.
25163         (_ZGVbN4v_sin): Removed.
25164         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
25165         ...
25166         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
25167         Don't include <sysdep.h> nor <init-arch.h>.
25168         (_ZGVbN8v_sin): Removed.
25169         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
25170         ...
25171         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
25172         Don't include <sysdep.h> nor <init-arch.h>.
25173         (_ZGVbN2vvv_sincos): Removed.
25174         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
25175         ...
25176         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
25177         Don't include <sysdep.h> nor <init-arch.h>.
25178         (_ZGVdN4vvv_sincos): Removed.
25179         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
25180         ...
25181         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
25182         Don't include <sysdep.h> nor <init-arch.h>.
25183         (_ZGVeN8vvv_sincos): Removed.
25184         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
25185         ...
25186         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
25187         Don't include <sysdep.h> nor <init-arch.h>.
25188         (_ZGVeN16v_cosf): Removed.
25189         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
25190         ...
25191         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
25192         Don't include <sysdep.h> nor <init-arch.h>.
25193         (_ZGVbN4v_cosf): Removed.
25194         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
25195         ...
25196         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
25197         Don't include <sysdep.h> nor <init-arch.h>.
25198         (_ZGVdN8v_cosf): Removed.
25199         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
25200         ...
25201         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
25202         Don't include <sysdep.h> nor <init-arch.h>.
25203         (_ZGVeN16v_expf): Removed.
25204         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
25205         ...
25206         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
25207         Don't include <sysdep.h> nor <init-arch.h>.
25208         (_ZGVbN4v_expf): Removed.
25209         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
25210         ...
25211         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
25212         Don't include <sysdep.h> nor <init-arch.h>.
25213         (_ZGVdN8v_expf): Removed.
25214         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
25215         ...
25216         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
25217         Don't include <sysdep.h> nor <init-arch.h>.
25218         (_ZGVeN16v_logf): Removed.
25219         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
25220         ...
25221         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
25222         Don't include <sysdep.h> nor <init-arch.h>.
25223         (_ZGVbN4v_logf): Removed.
25224         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
25225         ...
25226         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
25227         Don't include <sysdep.h> nor <init-arch.h>.
25228         (_ZGVdN8v_logf): Removed.
25229         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
25230         ...
25231         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
25232         Don't include <sysdep.h> nor <init-arch.h>.
25233         (_ZGVeN16vv_powf): Removed.
25234         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
25235         ...
25236         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
25237         Don't include <sysdep.h> nor <init-arch.h>.
25238         (_ZGVbN4vv_powf): Removed.
25239         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
25240         ...
25241         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
25242         Don't include <sysdep.h> nor <init-arch.h>.
25243         (_ZGVdN8vv_powf): Removed.
25244         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
25245         ...
25246         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
25247         Don't include <sysdep.h> nor <init-arch.h>.
25248         (_ZGVeN16vvv_sincosf): Removed.
25249         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
25250         ...
25251         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
25252         Don't include <sysdep.h> nor <init-arch.h>.
25253         (_ZGVbN4vvv_sincosf): Removed.
25254         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
25255         ...
25256         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
25257         Don't include <sysdep.h> nor <init-arch.h>.
25258         (_ZGVdN8vvv_sincosf): Removed.
25259         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
25260         ...
25261         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
25262         Don't include <sysdep.h> nor <init-arch.h>.
25263         (_ZGVeN16v_sinf): Removed.
25264         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
25265         ...
25266         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
25267         Don't include <sysdep.h> nor <init-arch.h>.
25268         (_ZGVbN4v_sinf): Removed.
25269         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
25270         ...
25271         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
25272         Don't include <sysdep.h> nor <init-arch.h>.
25273         (_ZGVdN8v_sinf): Removed.
25274
25275 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25276
25277         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25278         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
25279         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
25280         s_rint-sse4_1 and s_rintf-sse4_1.
25281         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
25282         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
25283         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
25284         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
25285         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
25286         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
25287         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
25288         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
25289         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
25290         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
25291         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
25292         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25293         (__ceil): Removed.
25294         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
25295         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
25296         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25297         (__ceilf): Removed.
25298         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
25299         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
25300         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25301         (__floor): Removed.
25302         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
25303         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
25304         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25305         (__floorf): Removed.
25306         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
25307         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
25308         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25309         (__nearbyint): Removed.
25310         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
25311         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
25312         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25313         (__nearbyintf): Removed.
25314         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
25315         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
25316         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25317         (__rint): Removed.
25318         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
25319         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
25320         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
25321         (__rintf): Removed.
25322
25323 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25324
25325         * sysdeps/i386/start.S (_start): Check Check PIC instead of
25326         SHARED.  Avoid dynamic relocation against main in static PIE.
25327
25328 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25329
25330         [BZ #21815]
25331         * elf/Makefile (CFLAGS-tst-prelink.c): New.
25332         (LDFLAGS-tst-prelink): Likewise.
25333
25334 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25335
25336         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
25337         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
25338         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
25339         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
25340         (INTERNAL_SYSCALL_NCS): Likewise.
25341         (LOADARGS_1): Likewise.
25342         (LOADARGS_5): Likewise.
25343         (RESTOREARGS_1): Likewise.
25344         (RESTOREARGS_5): Likewise.
25345
25346 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25347
25348         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
25349         (MEMPCPY_SYMBOL): Likewise.
25350         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
25351         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
25352         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
25353         in libc.a.
25354         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
25355         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
25356         Likewise.
25357         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
25358         (__hidden_ver1): Don't use in libc.a.
25359         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
25360         (__mempcpy): Don't create a weak alias in libc.a.
25361         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
25362         libc.a.
25363         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
25364         (__hidden_ver1): Don't use in libc.a.
25365
25366 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25367
25368         * config.make.in (have-insert): New.
25369         * configure.ac (libc_cv_insert): New.  Set to yes if linker
25370         supports INSERT in linker script.
25371         (AC_SUBST(libc_cv_insert): New.
25372         * configure: Regenerated.
25373         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
25374         if $(have-insert) == yes.
25375
25376 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25377
25378         * elf/Makefile (tests): Add vismain only if
25379         $(have-protected-data) == yes.
25380         (tests-pie): Likewise.
25381
25382 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25383
25384         [BZ #21871]
25385         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
25386         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
25387
25388 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
25389
25390         [BZ #21790]
25391         * sysdeps/i386/i586/memset.S
25392         (__memset_zero_constant_len_parameter): Removed.
25393         * sysdeps/i386/i686/memset.S
25394         (__memset_zero_constant_len_parameter): Likewise.
25395         * sysdeps/i386/i686/multiarch/memset_chk.S
25396         (__memset_zero_constant_len_parameter): Likewise.
25397         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
25398         Likewise.
25399
25400 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
25401
25402         * stdlib/getentropy.c (getentropy): Change return type to int.
25403
25404 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
25405
25406         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
25407
25408 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
25409
25410         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
25411         u_intN_t.
25412         * math/s_nexttowardf.c (__nexttowardf): Likewise.
25413         * sysdeps/generic/math_private.h (ieee_double_shape_type):
25414         Likewise.
25415         (ieee_float_shape_type): Likewise.
25416         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
25417         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
25418         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
25419         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25420         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25421         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
25422         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
25423         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
25424         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
25425         Likewise.
25426         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
25427         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25428         (__ieee754_yn): Likewise.
25429         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
25430         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
25431         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
25432         Likewise.
25433         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25434         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
25435         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
25436         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
25437         (__erfc): Likewise.
25438         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
25439         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
25440         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
25441         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
25442         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
25443         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
25444         Likewise.
25445         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25446         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
25447         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25448         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
25449         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
25450         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
25451         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
25452         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
25453         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
25454         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
25455         (__issignaling): Likewise.
25456         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
25457         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
25458         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25459         Likewise.
25460         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25461         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
25462         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
25463         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
25464         Likewise.
25465         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
25466         Likewise.
25467         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
25468         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
25469         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
25470         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
25471         (__erfcf): Likewise.
25472         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
25473         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25474         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
25475         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
25476         Likewise.
25477         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
25478         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
25479         Likewise.
25480         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25481         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
25482         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25483         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
25484         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
25485         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
25486         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
25487         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
25488         Likewise.
25489         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
25490         Likewise.
25491         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
25492         Likewise.
25493         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
25494         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25495         Likewise.
25496         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
25497         Likewise.
25498         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25499         (__ieee754_ynl): Likewise.
25500         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
25501         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
25502         Likewise.
25503         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
25504         Likewise.
25505         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
25506         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
25507         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
25508         Likewise.
25509         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
25510         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
25511         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
25512         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
25513         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
25514         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25515         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
25516         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
25517         Likewise.
25518         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
25519         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
25520         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
25521         Likewise.
25522         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
25523         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
25524         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25525         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
25526         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
25527         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
25528         Likewise.
25529         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
25530         Likewise.
25531         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
25532         Likewise.
25533         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
25534         Likewise.
25535         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
25536         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
25537         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25538         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
25539         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
25540         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
25541         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
25542         Likewise.
25543         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25544         Likewise.
25545         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
25546         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
25547         Likewise.
25548         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
25549         (__ieee754_remainderl): Likewise.
25550         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
25551         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25552         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
25553         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
25554         Likewise.
25555         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
25556         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25557         Likewise.
25558         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
25559         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
25560         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25561         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25562         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
25563         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25564         Likewise.
25565         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
25566         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
25567         (__ieee754_y0l): Likewise.
25568         (pzero): Likewise.
25569         (qzero): Likewise.
25570         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
25571         (__ieee754_y1l): Likewise.
25572         (pone): Likewise.
25573         (qone): Likewise.
25574         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25575         (__ieee754_ynl): Likewise.
25576         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
25577         (__ieee754_lgammal_r): Likewise.
25578         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
25579         Likewise.
25580         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25581         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
25582         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25583         (__erfcl): Likewise.
25584         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
25585         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
25586         Likewise.
25587         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
25588         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
25589         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25590         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
25591         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
25592         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
25593         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25594         Likewise.
25595         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
25596         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
25597         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
25598         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
25599         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25600         Likewise.
25601         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
25602         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
25603         Likewise.
25604         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
25605         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
25606         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
25607         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
25608         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
25609
25610 2017-08-03  Florian Weimer  <fweimer@redhat.com>
25611
25612         [BZ #21885]
25613         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
25614         on memory allocation failure.
25615
25616 2017-08-03  Alan Modra  <amodra@gmail.com>
25617
25618         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
25619         tst-tlsopt-powerpc.c with function name change and no test harness.
25620         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
25621         Call tls_get_addr_opt_test.
25622         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
25623         (modules-names): Add mod-tlsopt-powerpc.
25624         (mod-tlsopt-powerpc.so-no-z-defs): Define.
25625         (tst-tlsopt-powerpc): Depend on .so.
25626         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
25627         define.  Expand use in TLS_GD and TLS_LD.
25628
25629 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25630
25631         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
25632         function.
25633         * sysdeps/posix/shm_open.c: Include <pthread.h>.
25634
25635 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
25636
25637         [BZ #21686]
25638         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
25639         comparing size with that of double.
25640         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25641         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25642         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
25643         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25644         (__TGMATH_BINARY_REAL_IMAG): Likewise.
25645         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
25646         unsigned __int128 types.
25647
25648 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
25649
25650         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
25651         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
25652         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
25653         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
25654         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
25655
25656 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
25657
25658         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
25659
25660 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
25661
25662         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
25663         of SHARED.
25664         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
25665         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
25666         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
25667         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
25668         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
25669         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
25670         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
25671
25672 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
25673
25674         [BZ #21685]
25675         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
25676         bit-field expressions passed to sizeof or typeof.
25677         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25678         (__TGMATH_F128): Likewise.
25679         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25680         (__TGMATH_CF128): Likewise.
25681         (__TGMATH_UNARY_REAL_ONLY): Likewise.
25682         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25683         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
25684         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
25685         (__TGMATH_BINARY_REAL_ONLY): Likewise.
25686         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25687         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25688         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
25689         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25690         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
25691         (__TGMATH_UNARY_REAL_IMAG): Likewise.
25692         (__TGMATH_UNARY_IMAG): Likewise.
25693         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
25694         (__TGMATH_BINARY_REAL_IMAG): Likewise.
25695         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
25696         type.
25697         (define_vars_for_type): Handle bit_field type specially.
25698         (Tests.__init__): Declare structure with bit-field element.
25699
25700 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
25701
25702         [BZ #21791]
25703         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
25704         (MEMCPY_CHK): Define only if SHARED is defined.
25705         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
25706         Likewise.
25707         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
25708         Likewise.
25709
25710 See ChangeLog.18 for earlier changes.