]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add build-many-glibcs.py --enable-obsolete-* configs.
[thirdparty/glibc.git] / ChangeLog
1 2018-09-10 Joseph Myers <joseph@codesourcery.com>
2
3 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4 x86_64 and i686 configs using --enable-obsolete-rpc
5 --enable-obsolete-nsl.
6
7 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
8
9 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10
11 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12
13 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
14 Increment size of new_argv by one.
15
16 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
17
18 [BZ #17426]
19 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
20 * localedata/locales/ar_IN (d_fmt): Likewise.
21 * localedata/locales/bhb_IN (d_fmt): Likewise.
22 * localedata/locales/bho_IN (d_fmt): Likewise.
23 * localedata/locales/bn_BD (d_fmt): Likewise.
24 * localedata/locales/bn_IN (d_fmt): Likewise.
25 * localedata/locales/doi_IN (d_fmt): Likewise.
26 * localedata/locales/gu_IN (d_fmt): Likewise.
27 * localedata/locales/hi_IN (d_fmt): Likewise.
28 * localedata/locales/hne_IN (d_fmt): Likewise.
29 * localedata/locales/kn_IN (d_fmt): Likewise.
30 * localedata/locales/mag_IN (d_fmt): Likewise.
31 * localedata/locales/mai_IN (d_fmt): Likewise.
32 * localedata/locales/mjw_IN (d_fmt): Likewise.
33 * localedata/locales/ml_IN (d_fmt): Likewise.
34 * localedata/locales/mni_IN (d_fmt): Likewise.
35 * localedata/locales/mr_IN (d_fmt): Likewise.
36 * localedata/locales/pa_IN (d_fmt): Likewise.
37 * localedata/locales/raj_IN (d_fmt): Likewise.
38 * localedata/locales/sat_IN (d_fmt): Likewise.
39 * localedata/locales/sd_IN (d_fmt): Likewise.
40 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
41 * localedata/locales/ta_IN (d_fmt): Likewise.
42 * localedata/locales/ta_LK (d_fmt): Likewise.
43 * localedata/locales/tcy_IN (d_fmt): Likewise.
44 * localedata/locales/ur_IN (d_fmt): Likewise.
45
46 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
47 * localedata/locales/ks_IN (d_fmt): Likewise.
48 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
49
50 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
51 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
52 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
53 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
54
55 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
56
57 * NEWS: Mention exp and exp2 improvements.
58 * math/Makefile (libm-support): Remove t_exp.
59 (type-double-routines): Add math_err and e_exp_data.
60 * sysdeps/aarch64/libm-test-ulps: Update.
61 * sysdeps/arm/libm-test-ulps: Update.
62 * sysdeps/i386/fpu/e_exp_data.c: New file.
63 * sysdeps/i386/fpu/math_err.c: New file.
64 * sysdeps/i386/fpu/t_exp.c: Remove.
65 * sysdeps/ia64/fpu/e_exp_data.c: New file.
66 * sysdeps/ia64/fpu/math_err.c: New file.
67 * sysdeps/ia64/fpu/t_exp.c: Remove.
68 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
69 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
70 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
71 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
72 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
73 * sysdeps/ieee754/dbl-64/math_config.h: New file.
74 * sysdeps/ieee754/dbl-64/math_err.c: New file.
75 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
76 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
77 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
78 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
79 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
80 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
81 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
82 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
83 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
84
85 2018-09-05 Joseph Myers <joseph@codesourcery.com>
86
87 * sysdeps/alpha/fpu/math_private.h: Remove.
88
89 * sysdeps/generic/math_private.h
90 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
91 Move this inline function ....
92 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
93 * include/math.h [!_ISOMAC]: To here....
94
95 2018-09-04 Joseph Myers <joseph@codesourcery.com>
96
97 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
98 code ....
99 [!FE_HAVE_ROUNDING_MODES]: And this code ....
100 * include/fenv.h [!_ISOMAC]: ... to here.
101 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
102 (feraiseexcept): Likewise.
103 * math/fromfp.h: Do not include <fenv_private.h>.
104 * math/s_cexp_template.c: Likewise.
105 * math/s_csin_template.c: Likewise.
106 * math/s_csinh_template.c: Likewise.
107 * math/s_ctan_template.c: Likewise.
108 * math/s_ctanh_template.c: Likewise.
109 * math/s_iseqsig_template.c: Likewise.
110 * math/w_acos_compat.c: Likewise.
111 * math/w_acosf_compat.c: Likewise.
112 * math/w_acosl_compat.c: Likewise.
113 * math/w_asin_compat.c: Likewise.
114 * math/w_asinf_compat.c: Likewise.
115 * math/w_asinl_compat.c: Likewise.
116 * math/w_j0_compat.c: Likewise.
117 * math/w_j0f_compat.c: Likewise.
118 * math/w_j0l_compat.c: Likewise.
119 * math/w_j1_compat.c: Likewise.
120 * math/w_j1f_compat.c: Likewise.
121 * math/w_j1l_compat.c: Likewise.
122 * math/w_jn_compat.c: Likewise.
123 * math/w_jnf_compat.c: Likewise.
124 * math/w_log10_compat.c: Likewise.
125 * math/w_log10f_compat.c: Likewise.
126 * math/w_log10l_compat.c: Likewise.
127 * math/w_log2_compat.c: Likewise.
128 * math/w_log2f_compat.c: Likewise.
129 * math/w_log2l_compat.c: Likewise.
130 * math/w_log_compat.c: Likewise.
131 * math/w_logf_compat.c: Likewise.
132 * math/w_logl_compat.c: Likewise.
133 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
134 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
135 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
136 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
137 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
138 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
139 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
140 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
141 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
142 * sysdeps/ieee754/k_standardl.c: Likewise.
143 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
144 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
145 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
146 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
147 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
148 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
149 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
150 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
151 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
152 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
153 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
154 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
155 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
156 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
157 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
158 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
159 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
160 * math/w_ilogb_template.c: Include <fenv.h> instead of
161 <fenv_private.h>.
162 * math/w_llogb_template.c: Likewise.
163 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
164 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
165
166 2018-09-03 Joseph Myers <joseph@codesourcery.com>
167
168 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
169 * math/fromfp.h: Include <fenv_private.h>.
170 * math/math-narrow.h: Likewise.
171 * math/s_cexp_template.c: Likewise.
172 * math/s_csin_template.c: Likewise.
173 * math/s_csinh_template.c: Likewise.
174 * math/s_ctan_template.c: Likewise.
175 * math/s_ctanh_template.c: Likewise.
176 * math/s_iseqsig_template.c: Likewise.
177 * math/w_acos_compat.c: Likewise.
178 * math/w_acosf_compat.c: Likewise.
179 * math/w_acosl_compat.c: Likewise.
180 * math/w_asin_compat.c: Likewise.
181 * math/w_asinf_compat.c: Likewise.
182 * math/w_asinl_compat.c: Likewise.
183 * math/w_ilogb_template.c: Likewise.
184 * math/w_j0_compat.c: Likewise.
185 * math/w_j0f_compat.c: Likewise.
186 * math/w_j0l_compat.c: Likewise.
187 * math/w_j1_compat.c: Likewise.
188 * math/w_j1f_compat.c: Likewise.
189 * math/w_j1l_compat.c: Likewise.
190 * math/w_jn_compat.c: Likewise.
191 * math/w_jnf_compat.c: Likewise.
192 * math/w_llogb_template.c: Likewise.
193 * math/w_log10_compat.c: Likewise.
194 * math/w_log10f_compat.c: Likewise.
195 * math/w_log10l_compat.c: Likewise.
196 * math/w_log2_compat.c: Likewise.
197 * math/w_log2f_compat.c: Likewise.
198 * math/w_log2l_compat.c: Likewise.
199 * math/w_log_compat.c: Likewise.
200 * math/w_logf_compat.c: Likewise.
201 * math/w_logl_compat.c: Likewise.
202 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
203 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
204 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
205 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
206 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
207 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
208 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
209 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
210 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
211 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
212 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
213 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
214 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
215 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
216 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
217 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
218 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
219 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
220 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
221 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
222 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
223 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
224 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
225 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
226 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
227 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
228 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
229 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
230 * sysdeps/ieee754/float128/float128_private.h: Likewise.
231 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
232 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
233 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
234 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
235 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
236 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
237 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
238 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
239 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
240 * sysdeps/ieee754/k_standardl.c: Likewise.
241 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
242 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
243 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
244 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
245 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
246 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
247 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
248 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
249 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
250 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
251 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
252 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
253 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
254 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
255 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
256 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
257 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
258 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
259 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
260 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
261 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
262 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
263 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
264 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
265 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
266 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
267 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
268 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
269 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
270 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
271 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
272 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
273 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
274 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
275 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
276 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
277 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
278 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
279 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
280 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
281 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
282 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
283 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
284 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
285 * sysdeps/riscv/rvd/s_finite.c: Likewise.
286 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
287 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
288 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
289 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
290 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
291 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
292 * sysdeps/riscv/rvf/fegetround.c: Likewise.
293 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
294 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
295 * sysdeps/riscv/rvf/fesetround.c: Likewise.
296 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
297 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
298 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
299 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
300 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
301 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
302 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
303 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
304 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
305 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
306 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
307 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
308 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
309 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
310 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
311 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
312
313 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
314
315 [BZ #20271]
316 * include/stdio.h (__libc_fatal): Mention newline in comment.
317 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
318 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
319 * nscd/initgrcache.c (addinitgroupsX): Likewise.
320 * nss/nsswitch.c (__nss_next2): Likewise.
321 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
322 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
323 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
324 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
325 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
326 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
327 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
328 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
329 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
330 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
331 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
332 * sysdeps/unix/sysv/linux/netlink_assert_response.c
333 (__netlink_assert_response): Likewise.
334
335 2018-08-31 Joseph Myers <joseph@codesourcery.com>
336
337 * conform/glibcconform.py: New file.
338 * conform/list-header-symbols.py: Likewise.
339 * conform/list-header-symbols.pl: Remove.
340 * conform/Makefile (tests-special): Only add linknamespace tests
341 if [PYTHON].
342 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
343
344 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
345
346 [BZ #23597]
347 * support/Makefile (libsupport-routines): Add
348 support_copy_file_range and xcopy_file_range.
349 * support/support.h: Include <sys/types.h>.
350 (support_copy_file_range): New prototype.
351 * support/support_copy_file_range.c: New file. Copied and
352 modified from io/copy_file_range-compat.c.
353 * support/test-container.c (copy_one_file): Call xcopy_file_rang
354 instead of copy_file_range.
355 * support/xcopy_file_range.c: New file.
356 * support/xunistd.h (xcopy_file_range): New prototype.
357
358 2018-08-30 Carlos O'Donell <carlos@redhat.com>
359
360 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
361 xpthread_create and xpthread_join.
362
363 2018-08-30 Florian Weimer <fweimer@redhat.com>
364
365 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
366
367 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
368
369 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
370 if malloc fails.
371
372 2018-08-29 Joseph Myers <joseph@codesourcery.com>
373
374 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
375 and minus_oflow as non-finite.
376
377 2018-08-28 Joseph Myers <joseph@codesourcery.com>
378
379 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
380 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
381 moved to fenv_private.h except for ...
382 (TOINT_INTRINSICS): Kept in math_private.h.
383 (roundtoint): Likewise.
384 (converttoint): Likewise.
385 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
386 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
387 * sysdeps/arm/math_private.h: Remove.
388 * sysdeps/generic/fenv_private.h: New file. Contents moved from
389 ....
390 * sysdeps/generic/math_private.h: ... this file. Include
391 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
392 Include <fenv_private.h>. Remove functions and macros moved to
393 fenv_private.h.
394 * sysdeps/i386/fpu/math_private.h: Remove.
395 * sysdeps/mips/math_private.h: Move to ....
396 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
397 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
398 [__mips_hard_float] conditional. Include next <fenv_private.h>.
399 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
400 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
401 * sysdeps/powerpc/fpu/math_private.h: Do not include
402 <fenv_private.h>.
403 * sysdeps/riscv/rvf/math_private.h: Move to ....
404 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
405 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
406 <fenv_private.h>.
407 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
408 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
409 * sysdeps/sparc/fpu/math_private.h: Remove.
410 * sysdeps/i386/fpu/fenv_private.h: Move to ....
411 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
412 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
413 <fenv_private.h>.
414 * sysdeps/x86_64/fpu/math_private.h: Do not include
415 <sysdeps/i386/fpu/fenv_private.h>.
416
417 2018-08-28 Florian Weimer <fweimer@redhat.com>
418
419 [BZ #23578]
420 * posix/tst-regcomp-truncated.c: New file.
421 * posix/Makefile (tests): Add it.
422 (tst-regcomp-truncated.out): Depend on generated locales.
423
424 2018-08-28 Florian Weimer <fweimer@redhat.com>
425
426 * support/test-container.c (main): Treat unshare failure with
427 EPERM as an unsupported test.
428
429 2018-08-28 Florian Weimer <fweimer@redhat.com>
430
431 [BZ #23520]
432 nscd: Fix use-after-free in addgetnetgrentX and its callers.
433 * nscd/netgroupcache.c
434 (addgetnetgrentX): Add tofreep parameter. Do not free
435 heap-allocated buffer.
436 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
437 (addgetnetgrentX_ignore): New function.
438 (addgetnetgrent): Call it.
439 (readdgetnetgrent): Likewise.
440
441 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
442
443 * string/memmem.c: Use memcmp for first match.
444
445 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
446
447 [BZ #17426]
448 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
449
450 2018-08-27 DJ Delorie <dj@redhat.com>
451
452 * support/Makefile (others): Don't list programs explicitly as a
453 dependency of "others".
454
455 2018-08-27 Joseph Myers <joseph@codesourcery.com>
456
457 * sysdeps/generic/math-tests-trap-force.h: New file.
458 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
459 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
460 * sysdeps/powerpc/math-tests.h: Remove file.
461 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
462
463 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
464 Torvald Riegel <triegel@redhat.com>
465
466 [BZ #23538]
467 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
468 Update r to include the set wake-request flag if waiters are
469 remaining after spinning.
470
471 2018-08-27 Joseph Myers <joseph@codesourcery.com>
472
473 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
474
475 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
476
477 [BZ #23578]
478 regex: fix uninitialized memory access
479 I introduced this bug into gnulib in commit
480 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
481 eventually it was merged into glibc. The bug was found by
482 project-repo <bugs@feusi.co> and reported here:
483 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
484 Diagnosis and draft fix reported by Assaf Gordon here:
485 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
486 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
487 * posix/regex_internal.c (build_wcs_upper_buffer):
488 Fix bug when mbrtowc returns 0.
489
490 2018-08-24 Carlos O'Donell <carlos@redhat.com>
491
492 * po/be.po: Update translation.
493
494 2018-08-24 DJ Delorie <dj@delorie.com>
495
496 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
497 $(libunwind).
498
499 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
500
501 [BZ #23400]
502 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
503 create temporary files in source tree.
504
505 2018-08-24 Joseph Myers <joseph@codesourcery.com>
506
507 * sysdeps/generic/math-tests-trap.h: New file.
508 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
509 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
510 * sysdeps/aarch64/math-tests.h: Remove file.
511 * sysdeps/arm/math-tests.h: Likewise.
512 * sysdeps/riscv/math-tests.h: Likewise.
513 * sysdeps/aarch64/math-tests-trap.h: New file.
514 * sysdeps/arm/math-tests-trap.h: Likewise.
515 * sysdeps/riscv/math-tests-trap.h: Likewise.
516
517 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
518
519 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
520 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
521 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
522 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
523 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
524 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
525 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
526 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
527 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
528 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
529 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
530 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
531 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
532 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
533 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
534 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
535 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
536 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
537
538 2018-08-23 Joseph Myers <joseph@codesourcery.com>
539
540 * sysdeps/generic/math-tests-exceptions.h: New file.
541 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
542 (EXCEPTION_TESTS_float): Do not define here.
543 (EXCEPTION_TESTS_double): Likewise.
544 (EXCEPTION_TESTS_long_double): Likewise.
545 (EXCEPTION_TESTS_float128): Likewise.
546 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
547 Likewise.
548 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
549 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
550 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
551 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
552 * sysdeps/mips/math-tests.h: Likewise.
553 * sysdeps/nios2/math-tests.h: Likewise.
554 * sysdeps/riscv/math-tests.h [!__riscv_flen]
555 (EXCEPTION_TESTS_float): Do not define here.
556 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
557 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
558 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
559
560 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
561
562 * NEWS: Move optimized sinf entry to 2.29.
563
564 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
565
566 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
567
568 2018-08-22 DJ Delorie <dj@redhat.com>
569
570 * Makefile (testroot.pristine): New rules to initialize the
571 test-in-container "testroot".
572 * Makerules (all-testsuite): Add tests-container.
573 * Rules (tests-expected): Add tests-container.
574 (binaries-all-tests): Likewise.
575 (tests-container): New, run these tests in the testroot container.
576 * support/Makefile (others): Add *-container, support_paths.c,
577 xmkdirp, and links-dso-program.
578 * support/links-dso-program-c.c: New.
579 * support/links-dso-program.cc: New.
580 * support/test-container.c: New.
581 * support/shell-container.c: New.
582 * support/echo-container.c: New.
583 * support/true-container.c: New.
584 * support/xmkdirp.c: New.
585 * support/xsymlink.c: New.
586 * support/support_paths.c: New.
587 * support/support.h: Add support paths prototypes.
588 * support/xunistd.h: Add xmkdirp () and xsymlink ().
589
590 * nss/tst-nss-test3.c: Convert to test-in-container.
591 * nss/tst-nss-test3.root/: New.
592
593 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
594
595 regex: port Gnulib code to z/OS POSIX environment
596 Problem reported by Arnold Robbins in:
597 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
598 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
599 Undef.
600
601 2018-08-22 Joseph Myers <joseph@codesourcery.com>
602
603 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
604 (ROUNDING_TESTS_double): Remove.
605 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
606 (ROUNDING_TESTS_double): Remove.
607 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
608 (ROUNDING_TESTS_double): Remove.
609 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
610 (ROUNDING_TESTS_float): Remove.
611 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
612 (ROUNDING_TESTS_float): Remove.
613 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
614 (ROUNDING_TESTS_float): Remove.
615 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
616 !TEST_MATHVEC here.
617 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
618 (IF_ROUND_INIT_FE_UPWARD): Likewise.
619
620 * sysdeps/generic/math-tests-rounding.h: New file.
621 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
622 (ROUNDING_TESTS_float): Do not define here.
623 (ROUNDING_TESTS_double): Likewise.
624 (ROUNDING_TESTS_long_double): Likewise.
625 (ROUNDING_TESTS_float128): Likewise.
626 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
627 (ROUNDING_TESTS_double): Undefine before defining.
628 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
629 (ROUNDING_TESTS_double): Undefine before defining.
630 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
631 (ROUNDING_TESTS_double): Undefine before defining.
632 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
633 (ROUNDING_TESTS_float): Undefine before defining.
634 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
635 (ROUNDING_TESTS_float): Undefine before defining.
636 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
637 (ROUNDING_TESTS_float): Undefine before defining.
638 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
639 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
640 not define here.
641 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
642 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
643 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
644 * sysdeps/riscv/math-tests.h [!__riscv_flen]
645 (ROUNDING_TESTS_float): Do not define here.
646 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
647 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
648 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
649 (ROUNDING_TESTS_float): Likewise.
650 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
651 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
652 * sysdeps/mips/math-tests.h [__mips_soft_float]
653 (ROUNDING_TESTS_float): Likewise.
654 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
655 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
656 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
657 (ROUNDING_TESTS_double): Likewise.
658 (ROUNDING_TESTS_long_double): Likewise.
659
660 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
661
662 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
663 (PF_XDP): New macro.
664 (AF_XDP): New macro.
665 (SOL_XDP): New macro.
666
667 2018-08-21 Joseph Myers <joseph@codesourcery.com>
668
669 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
670 (TCP_INQ): Likewise.
671 (TCP_CM_INQ): Likewise.
672 (TCP_REPAIR_ON): Likewise.
673 (TCP_REPAIR_OFF): Likewise.
674 (TCP_REPAIR_OFF_NO_WP): Likewise.
675 (struct tcp_zerocopy_receive): New type.
676
677 2018-08-21 Florian Weimer <fweimer@redhat.com>
678
679 * support/support.h (support_descriptor_supports_holes): Declare.
680 * support/Makefile (libsupport-routines): Add
681 support_descriptor_supports_holes.
682 * support/support_descriptor_supports_holes.c: New file.
683 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
684 and stop testing if holes are not supported.
685 * io/test-lfs.c (do_prepare): Likewise.
686 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
687 Likewise.
688 * timezone/tst-tzset.c (create_tz_file): Likewise.
689 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
690 variable.
691 (do_prepare): Set it.
692 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
693
694 2018-08-21 Florian Weimer <fweimer@redhat.com>
695
696 [BZ #17248]
697 * Makeconfig (+cflags): Do not sort (and deduplicate).
698
699 2018-08-21 Florian Weimer <fweimer@redhat.com>
700
701 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
702 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
703
704 2018-08-20 Florian Weimer <fweimer@redhat.com>
705
706 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
707 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
708
709 2018-08-20 Joseph Myers <joseph@codesourcery.com>
710
711 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
712 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
713 and ssi_arch members.
714
715 * elf/elf.c (NT_VMCOREDD): New macro.
716 (AT_MINSIGSTKSZ): Likewise.
717
718 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
719
720 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
721 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
722 s_cosf-ppc64 and s_cosf-power8.
723 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
724 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
725 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
726 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
728 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
729 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
730 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
732 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
733 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
734 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
735
736 2018-08-17 Florian Weimer <fweimer@redhat.com>
737
738 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
739
740 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
741
742 * malloc/malloc.c (_int_malloc): Additional binning code checks.
743
744 2018-08-16 Florian Weimer <fweimer@redhat.com>
745
746 * configure.ac: Add --with-nonshared-cflags option.
747 * config.make.in (extra-nonshared-cflags): Set variable.
748 * Makeconfig (CFLAGS-.oS): Use it.
749 * manual/install.texi (Configuring and compiling): Document
750 --with-nonshared-cflags.
751 * configure: Regenerate.
752 * INSTALL: Likewise.
753
754 2018-08-16 Florian Weimer <fweimer@redhat.com>
755
756 * Makeconfig (ASFLAGS): Always append required assembler flags.
757
758 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
759
760 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
761 (malloc_consolidate): Likewise.
762
763 2018-08-16 Pochang Chen <johnchen902@gmail.com>
764
765 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
766
767 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
768
769 * benchtests/bench-strlen.c (do_test): Allocate buffers before
770 every strlen call.
771
772 * benchtests/bench-strlen.c: Print performance numbers in json.
773
774 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
775
776 * sysdeps/powerpc/powerpc64/multiarch/Makefile
777 (sysdep_routines): Build strcmp-power9 and strncmp-power9
778 only for little endian.
779 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
780 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
781 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
782 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
783 Add check for little endian.
784 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
785 (__strcmp_power9): Add check for little endian.
786 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
787 Add check for little endian.
788 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
789 (__strncmp_power9): Add check for little endian.
790 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
791 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
792 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
793 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
794 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
795
796 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
797
798 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
799 [!STRLEN](STRLEN): Set to __strlen.
800 * sysdeps/aarch64/multiarch/strlen.c: New file.
801 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
802 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
803 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
804 (__libc_ifunc_impl_list): Add strlen.
805 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
806 strlen_generic and strlen_asimd.
807
808 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
809
810 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
811 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
812 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
813
814 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
815
816 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
817
818 2018-08-14 Florian Weimer <fweimer@redhat.com>
819
820 [BZ #23519]
821 * include/stdio.h (__vfxprintf): Declare.
822 * stdio-common/fxprintf.c (__vfxprintf): New function.
823 (__fxprintf): Call it.
824 * misc/err.c (convert_and_print): Remove function.
825 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
826 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
827 * misc/Makefile (tests): Add tst-warn-wide.
828 * misc/tst-warn-wide.c: New file.
829
830 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
831 Szabolcs Nagy <szabolcs.nagy@arm.com>
832
833 * NEWS: Mention sinf, cosf, sincosf.
834 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
835 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
836 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
837 constants rather than including generic sincosf.h.
838 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
839 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
840 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
841 (reduced_cos): Remove.
842 (sinf_poly): New function.
843 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
844
845 2018-08-14 Florian Weimer <fweimer@redhat.com>
846
847 [BZ #23521]
848 [BZ #23522]
849 * nss/nss_files/files-alias.c (get_next_alias): During :include:
850 processing, bail out if no room, and close the stream before
851 returning ERANGE.
852 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
853 (tst-nss-files-alias-leak): Link with libdl.
854 (tst-nss-files-alias-leak.out): Depend on nss_files.
855
856 * nss/tst-nss-files-alias-leak.c: New file.
857
858 2018-08-14 Florian Weimer <fweimer@redhat.com>
859
860 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
861 server_user, stat_user.
862
863 2018-08-13 Joseph Myers <joseph@codesourcery.com>
864
865 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
866 version to 4.18.
867 (io_pgetevents): New syscall.
868 (rseq): Likewise.
869
870 * manual/install.texi (Configuring and compiling): Do not list
871 tools used for testing pretty printers here.
872 (Tools for Compilation): List Python, PExpect and GDB here.
873 Update descriptions of uses of Perl and Python.
874 * INSTALL: Regenerate.
875
876 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
877 version to 4.18.
878
879 2018-08-13 Florian Weimer <fweimer@redhat.com>
880
881 * misc/error.c (error): Add missing va_end call.
882 (error_at_line): Likewise.
883
884 2018-08-13 Florian Weimer <fweimer@redhat.com>
885
886 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
887
888 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
889
890 * benchtests/scripts/benchout.schema.json (properties): Add
891 new properties.
892
893 * benchtests/bench-skeleton.c (main): Add duration and
894 iterations attributes.
895
896 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
897
898 regex: Gnulib unibyte RRI uses bytes not chars
899 Adjust the non-glibc code to agree with what Gawk needs for
900 rational range interpretation (RRI) for regular expression ranges.
901 In unibyte locales, Gawk wants ranges to use the underlying byte
902 rather than the character code point. This change does not affect
903 glibc proper.
904 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
905 In unibyte locales, use the byte value rather than
906 running it through btowc.
907
908 2018-08-10 Joseph Myers <joseph@codesourcery.com>
909
910 * sysdeps/generic/math-tests-snan.h: New file.
911 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
912 (SNAN_TESTS_float): Do not define here.
913 (SNAN_TESTS_double): Likewise.
914 (SNAN_TESTS_long_double): Likewise.
915 (SNAN_TESTS_float128): Likewise.
916 * sysdeps/i386/fpu/math-tests-snan.h: New file.
917 * sysdeps/i386/fpu/math-tests.h: Remove file.
918 * sysdeps/ia64/math-tests-snan.h: New file.
919 * sysdeps/ia64/math-tests.h: Remove file.
920 * sysdeps/x86/math-tests.h: Likewise.
921 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
922
923 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
924 Szabolcs Nagy <szabolcs.nagy@arm.com>
925
926 * math/Makefile: Add s_sincosf_data.c.
927 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
928 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
929 (sincosf_poly): Likewise.
930 (reduce_small): Likewise.
931 (reduce_large): Likewise.
932 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
933 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
934 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
935 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
936
937 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
938 Szabolcs Nagy <szabolcs.nagy@arm.com>
939
940 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
941 (converttoint): Use lround.
942 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
943 document the semantics when TOINT_INTRINSICS is set.
944 (converttoint): Likewise.
945 (TOINT_RINT): Remove.
946 (TOINT_SHIFT): Remove.
947 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
948 path.
949
950 2018-08-10 Florian Weimer <fweimer@redhat.com>
951
952 [BZ #23497]
953 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
954 function.
955 (__old_getdents64): Use getdents64. Convert entries without
956 moving them.
957 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
958 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
959 tst-readdir64-compat.
960
961 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
962
963 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
964 Fix unwind.
965
966 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
967
968 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
969 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
970 code to s390x-mcount.h and #include it.
971 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
972 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
973 (__fentry__): Add.
974
975 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
976
977 * stdlib/Versions: Remove __fentry__.
978 * sysdeps/i386/Versions: Add __fentry__.
979 * sysdeps/x86_64/Versions: Add __fentry__.
980
981 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
982
983 * sysdeps/s390/Makefile: Register the new tests.
984 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
985 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
986 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
987 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
988 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
989 * sysdeps/s390/tst-dl-runtime.c: New file.
990
991 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
992
993 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
994 Do not clobber R0.
995
996 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
997
998 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
999 Do not clobber R0.
1000
1001 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1002
1003 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
1004 Do not clobber R0.
1005
1006 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1007
1008 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1009 Do not clobber R0.
1010
1011 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1012
1013 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
1014 Use symbolic offsets for stack variables.
1015
1016 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1017
1018 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
1019 Use symbolic offsets for stack variables.
1020
1021 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1022
1023 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
1024 Use symbolic offsets for stack variables.
1025
1026 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1027
1028 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1029 Use symbolic offsets for stack variables.
1030
1031 2018-08-09 Joseph Myers <joseph@codesourcery.com>
1032
1033 * math/gen-libm-test.py: New file.
1034 * math/gen-libm-test.pl: Remove.
1035 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
1036 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
1037 gen-libm-test.pl.
1038 ($(libm-test-c-noauto-obj)): Likewise.
1039 ($(libm-test-c-auto-obj)): Likewise.
1040 ($(libm-test-c-narrow-obj)): Likewise.
1041 (regen-ulps): Likewise.
1042 * math/README.libm-test: Update references to gen-libm-test.pl.
1043 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
1044 referencing gen-libm-test.pl.
1045 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
1046 * math/libm-test-support.c: Likewise.
1047 * math/libm-test-support.h: Likewise.
1048 * sysdeps/generic/libm-test-ulps: Likewise.
1049
1050 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
1051
1052 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
1053 Fix value.
1054
1055 2018-08-08 Joseph Myers <joseph@codesourcery.com>
1056
1057 * math/libm-test-nextdown.inc (do_test): Move comment to ....
1058 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
1059
1060 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1061
1062 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
1063 symbols.
1064 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
1065 __pthread_setspecific): Add hidden proto.
1066 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
1067 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
1068
1069 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
1070
1071 * benchtests/bench-string.h (buf1_size, buf2_size): New
1072 variables.
1073 (init_sizes): New function.
1074 (test_init): Use it.
1075 (alloc_buf, exit_error): New functions.
1076 (alloc_bufs): Use ALLOC_BUF.
1077 (realloc_bufs): Remove.
1078 * benchtests/bench-memcmp.c (do_test): Adjust.
1079 * benchtests/bench-memset-large.c (do_test): Likewise.
1080 * benchtests/bench-memset-walk.c (do_test): Likewise.
1081 * benchtests/bench-memset.c (do_test): Likewise.
1082 * benchtests/bench-strncmp.c (do_test): Likewise.
1083
1084 2018-08-06 Andreas Schwab <schwab@suse.de>
1085
1086 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
1087 of CONST_THREAD_AREA.
1088
1089 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
1090
1091 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
1092 (STATE_SAVE_MASK): Likewise.
1093 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
1094 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
1095 (STATE_SAVE_MASK): Likewise.
1096 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
1097 instead of <cpu-features.h>.
1098
1099 2018-08-03 DJ Delorie <dj@redhat.com>
1100
1101 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
1102 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
1103
1104 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1105
1106 2018-08-03 Joseph Myers <joseph@codesourcery.com>
1107
1108 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
1109 after TEST_* calls.
1110 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
1111 * math/libm-test-logb.inc (logb_test_data): Likewise.
1112
1113 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
1114
1115 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
1116 * string/strstr.c (AVAILABLE): Likewise.
1117
1118 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
1119
1120 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
1121 <init-arch.h>.
1122 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
1123 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
1124 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
1125
1126 2018-08-03 Carlos O'Donell <carlos@redhat.com>
1127
1128 * po/be.po: Update translation.
1129
1130 * po/be.po: Update translation.
1131
1132 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
1133
1134 * sysdeps/x86/cpu-features-offsets.sym
1135 (rtld_global_ro_offsetof): Removed.
1136 (CPU_FEATURES_SIZE): Likewise.
1137 (CPUID_OFFSET): Likewise.
1138 (CPUID_SIZE): Likewise.
1139 (CPUID_EAX_OFFSET): Likewise.
1140 (CPUID_EBX_OFFSET): Likewise.
1141 (CPUID_ECX_OFFSET): Likewise.
1142 (CPUID_EDX_OFFSET): Likewise.
1143 (FAMILY_OFFSET): Likewise.
1144 (MODEL_OFFSET): Likewise.
1145 (FEATURE_OFFSET): Likewise.
1146 (FEATURE_SIZ): Likewise.
1147 (COMMON_CPUID_INDEX_1): Likewise.
1148 (COMMON_CPUID_INDEX_7): Likewise.
1149 (FEATURE_INDEX_1): Likewise.
1150 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
1151
1152 2018-08-02 Carlos O'Donell <carlos@redhat.com>
1153
1154 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
1155 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
1156 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
1157 (install-locales): Depend on install-locale-archive.
1158 (install-locale-archive): Define.
1159 (install-locale-files): Define.
1160 (build-one-locale): Define macro.
1161 * manual/install.texi (Running make install): Document.
1162 * manual/INSTALL: Regenerate.
1163
1164 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
1165
1166 * benchtests/scripts/compare_strings.py: Import traceback.
1167 (parse_file): Pretty-print error.
1168
1169 * NEWS: Mention the change.
1170 * elf/dl-tunables.list: Rename tune namespace to cpu.
1171 * sysdeps/powerpc/dl-tunables.list: Likewise.
1172 * sysdeps/x86/dl-tunables.list: Likewise.
1173 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
1174 cpu.name.
1175 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
1176 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
1177 * manual/README.tunables: Likewise.
1178 * manual/tunables.texi: Likewise.
1179 * sysdeps/powerpc/cpu-features.c: Likewise.
1180 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
1181 (init_cpu_features): Likewise.
1182 * sysdeps/x86/cpu-features.c: Likewise.
1183 * sysdeps/x86/cpu-features.h: Likewise.
1184 * sysdeps/x86/cpu-tunables.c: Likewise.
1185 * sysdeps/x86_64/Makefile: Likewise.
1186 * sysdeps/x86/dl-cet.c: Likewise.
1187
1188 2018-08-02 Joseph Myers <joseph@codesourcery.com>
1189
1190 [BZ #23479]
1191 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
1192 [__mips_hard_float].
1193 (FE_UNDERFLOW): Likewise.
1194 (FE_OVERFLOW): Likewise.
1195 (FE_DIVBYZERO): Likewise.
1196 (FE_INVALID): Likewise.
1197 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
1198 (FE_TOWARDZERO): Define only if [__mips_hard_float].
1199 (FE_UPWARD): Likewise.
1200 (FE_DOWNWARD): Likewise.
1201 (__FE_UNDEFINED): Define if [!__mips_hard_float]
1202 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
1203 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
1204 [__mips_hard_float].
1205 (FP_ROUNDMODE): Likewise.
1206 (FP_RND_NEAREST): Likewise.
1207 (FP_RND_ZERO): Likewise.
1208 (FP_RND_PINF): Likewise.
1209 (FP_RND_MINF): Likewise.
1210 (FP_EX_INVALID): Likewise.
1211 (FP_EX_OVERFLOW): Likewise.
1212 (FP_EX_UNDERFLOW): Likewise.
1213 (FP_EX_DIVZERO): Likewise.
1214 (FP_EX_INEXACT): Likewise.
1215 (FP_INIT_ROUNDMODE): Likewise.
1216 * sysdeps/mips/nofpu/fesetenv.c: New file.
1217 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
1218
1219 2018-08-01 Joseph Myers <joseph@codesourcery.com>
1220
1221 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
1222 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
1223 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
1224 conditional on [FE_UPWARD].
1225
1226 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
1227
1228 regex: fix memory leak in Gnulib
1229 Problem and fix reported by Assaf Gordon in:
1230 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
1231 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
1232 range_ends members too, as they are defined in 'struct
1233 re_charset_t' even if not _LIBC. This affects only Gnulib.
1234
1235 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
1236
1237 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
1238 ...
1239 (get_common_indices): This.
1240 (init_cpu_features): Updated.
1241
1242 2018-08-01 Joseph Myers <joseph@codesourcery.com>
1243
1244 * sysdeps/generic/math-tests-snan-payload.h: New file.
1245 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
1246 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
1247 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
1248 * sysdeps/generic/math-tests.h: Include
1249 <math-tests-snan-payload.h>.
1250 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
1251 * sysdeps/hppa/math-tests.h: Remove file.
1252 * sysdeps/mips/math-tests.h [!__mips_nan2008]
1253 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
1254 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
1255 Likewise.
1256
1257 * sysdeps/generic/math-tests-snan-cast.h: New file.
1258 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
1259 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
1260 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
1261 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
1262
1263 2018-08-01 Carlos O'Donel <carlos@redhat.com>
1264
1265 * version.h (RELEASE): Set to "development".
1266 (VERSION): Set to "2.28.9000".
1267 * NEWS (2.29): New section.
1268
1269 * version.h (RELEASE): Set to "stable".
1270 (VERSION): Set to "2.28".
1271 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
1272 * NEWS: Add the list of bugs fixed in 2.28.
1273
1274 * po/ca.po: Update to latest version.
1275 * po/cs.po: Likewise
1276 * po/da.po: Likewise
1277 * po/el.po: Likewise
1278 * po/eo.po: Likewise
1279 * po/es.po: Likewise
1280 * po/fi.po: Likewise
1281 * po/fr.po: Likewise
1282 * po/gl.po: Likewise
1283 * po/hu.po: Likewise
1284 * po/ia.po: Likewise
1285 * po/id.po: Likewise
1286 * po/it.po: Likewise
1287 * po/ja.po: Likewise
1288 * po/ko.po: Likewise
1289 * po/lt.po: Likewise
1290 * po/nb.po: Likewise
1291 * po/nl.po: Likewise
1292 * po/pt_BR.po: Likewise
1293 * po/ru.po: Likewise
1294 * po/rw.po: Likewise
1295 * po/sk.po: Likewise
1296 * po/sl.po: Likewise
1297 * po/tr.po: Likewise
1298 * po/zh_CN.po: Likewise
1299 * po/zh_TW.po: Likewise
1300
1301 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
1302
1303 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
1304 initialization...
1305 (init): ... before initializing libpthread.
1306
1307 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
1308 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
1309 (__mach_setup_tls): ... new function.
1310 (mach_setup_tls): New alias.
1311 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
1312 __mach_setup_thread.
1313 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
1314 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
1315 * mach/Versions [libc] (mach_setup_tls): Add symbol.
1316 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
1317
1318 2018-07-31 Carlos O'Donell <carlos@redhat.com>
1319
1320 * manual/install.texi: Update versions.
1321 * INSTALL: Regenerate.
1322
1323 * manual/contrib.texi (Contributors): Update contributions.
1324
1325 2018-07-31 Carlos O'Donell <carlos@redhat.com>
1326
1327 * po/be.po: Update translations.
1328
1329 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1330
1331 * sysdeps/sh/libm-test-ulps: Update.
1332
1333 2018-07-30 Carlos O'Donell <carlos@redhat.com>
1334
1335 * po/bg.po: Update translations.
1336 * po/de.po: Likewise.
1337 * po/hr.po: Likewise.
1338 * po/pt_BR.po: Likewise.
1339 * po/sv.po: Likewise.
1340 * po/vi.po: Likewise.
1341
1342 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
1343
1344 [BZ #23467]
1345 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
1346 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
1347 (CFLAGS-tst-cet-property-1.o): New.
1348 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
1349 ($(objpfx)tst-cet-property-2): Likewise.
1350 ($(objpfx)tst-cet-property-2.out): Likewise.
1351 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
1352 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
1353 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
1354 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
1355 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
1356
1357 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
1358
1359 [BZ #23458]
1360 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
1361
1362 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1363
1364 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
1365 __sbrk): Do not set attribute_hidden.
1366 * sysdeps/mach/hurd/not-errno.h: New file.
1367 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
1368 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
1369
1370 2018-07-27 Carlos O'Donell <carlos@redhat.com>
1371
1372 * po/uk.po: Update translations.
1373 * po/cs.po: Likewise.
1374 * po/pl.po: Likewise.
1375
1376 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
1377
1378 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
1379 parse beyond the note end.
1380
1381 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1382
1383 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
1384 kernel does not support OFD locks.
1385 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
1386
1387 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1388
1389 * sysdeps/mach/hurd/Versions (libc): Make __access and
1390 __access_noerrno external so they can override the ld symbols.
1391 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
1392 __writev, __open64, __access_noerrno extern so they can be overrided.
1393 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
1394 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
1395
1396 2018-07-26 Carlos O'Donell <carlos@redhat.com>
1397
1398 * po/libc.pot: Regenerate.
1399
1400 2018-07-26 Joseph Myers <joseph@codesourcery.com>
1401
1402 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1403
1404 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
1405
1406 [BZ #23459]
1407 * sysdeps/x86/cpu-features.c (get_extended_indices): New
1408 function.
1409 (init_cpu_features): Call get_extended_indices for both Intel
1410 and AMD CPUs.
1411 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
1412 Remove "for AMD" comment.
1413
1414 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
1415
1416 [BZ # 23456]
1417 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
1418 COMMON_CPUID_INDEX_80000001.
1419
1420 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
1421
1422 * string/tst-xbzero-opt.c (use_test_buffer): New function.
1423 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
1424
1425 2018-07-26 Florian Weimer <fweimer@redhat.com>
1426
1427 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
1428 aliases for symbols not in the implementation namespace.
1429
1430 2018-07-25 Carlos O'Donell <carlos@redhat.com>
1431
1432 [BZ #23393]
1433 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
1434 lowercase in LATIN script.
1435 * localedata/Makefile (test-input): Add en_US.UTF-8.
1436 * localedata/en_US.UTF-8.in: New file.
1437 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
1438 and restore old tests.
1439 * posix/tst-regexloc.c (do_test): Add back range expression test.
1440
1441 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1442
1443 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
1444
1445 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1446
1447 * nptl/threads.h: Move to ...
1448 * sysdeps/nptl/threads.h: ... here.
1449 * sysdeps/hurd/stdc-predef.h: New file.
1450
1451 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1452
1453 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
1454 tst-cet-setcontext-1 if CET is enabled.
1455 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
1456 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
1457
1458 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1459
1460 * include/threads.h: Move to ...
1461 * sysdeps/nptl/threads.h: ... here.
1462 * sysdeps/htl/threads.h: New file.
1463 * conform/Makefile (linknamespace-libs-ISO11): Use
1464 static-thread-library instead of linking libpthread.
1465 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
1466
1467 2018-07-25 Florian Weimer <fweimer@redhat.com>
1468
1469 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
1470 nanoseconds into seconds.
1471 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
1472 (do_test): Likewise.
1473 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
1474 (do_test): Likewise. Avoid nanosecond overflow and spurious
1475 timeouts due to system load.
1476 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
1477 (child_wait): Increment it.
1478 (do_test): Wait as long as necessary until all expected threads
1479 have arrived.
1480
1481 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
1482 H.J. Lu <hongjiu.lu@intel.com>
1483
1484 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
1485 __ssp.
1486 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
1487 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
1488 (__push___start_context): New.
1489 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
1490 <asm/prctl.h>.
1491 (__getcontext): Record the current shadow stack base. Save the
1492 caller's shadow stack pointer and base.
1493 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
1494 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
1495 (__push___start_context): New prototype.
1496 (__makecontext): Call __push___start_context to allocate a new
1497 shadow stack, push __start_context onto the new stack as well
1498 as the new shadow stack.
1499 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
1500 <asm/prctl.h>.
1501 (__setcontext): Restore the target shadow stack.
1502 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
1503 <asm/prctl.h>.
1504 (__swapcontext): Record the current shadow stack base. Save
1505 the caller's shadow stack pointer and base. Restore the target
1506 shadow stack.
1507 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1508 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
1509 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
1510
1511 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1512
1513 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
1514 tst-setcontext8 and tst-setcontext9.
1515 * stdlib/tst-setcontext6.c: New file.
1516 * stdlib/tst-setcontext7.c: Likewise.
1517 * stdlib/tst-setcontext8.c: Likewise.
1518 * stdlib/tst-setcontext9.c: Likewise.
1519
1520 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1521
1522 * stdlib/Makefile ((tests): Add tst-setcontext5.
1523 * stdlib/tst-setcontext5.c: New file.
1524
1525 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1526
1527 * stdlib/Makefile (tests): Add tst-setcontext4.
1528 * stdlib/tst-setcontext4.c: New file.
1529
1530 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1531
1532 * stdlib/Makefile (tests): Add tst-swapcontext1.
1533 * stdlib/tst-swapcontext1.c: New test.
1534
1535 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1536
1537 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
1538 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
1539 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
1540 and tst-cet-legacy-4c.
1541 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
1542 and tst-cet-legacy-mod-4.
1543 (CFLAGS-tst-cet-legacy-2.c): New.
1544 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
1545 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
1546 (CFLAGS-tst-cet-legacy-3.c): Likewise.
1547 (CFLAGS-tst-cet-legacy-4.c): Likewise.
1548 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
1549 ($(objpfx)tst-cet-legacy-1): Likewise.
1550 ($(objpfx)tst-cet-legacy-2): Likewise.
1551 ($(objpfx)tst-cet-legacy-2.out): Likewise.
1552 ($(objpfx)tst-cet-legacy-2a): Likewise.
1553 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
1554 ($(objpfx)tst-cet-legacy-4): Likewise.
1555 ($(objpfx)tst-cet-legacy-4.out): Likewise.
1556 ($(objpfx)tst-cet-legacy-4a): Likewise.
1557 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
1558 (tst-cet-legacy-4a-ENV): Likewise.
1559 ($(objpfx)tst-cet-legacy-4b): Likewise.
1560 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
1561 (tst-cet-legacy-4b-ENV): Likewise.
1562 ($(objpfx)tst-cet-legacy-4c): Likewise.
1563 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
1564 (tst-cet-legacy-4c-ENV): Likewise.
1565 * sysdeps/x86/tst-cet-legacy-1.c: New file.
1566 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
1567 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
1568 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
1569 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
1570 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
1571 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
1572 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
1573 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
1574 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
1575 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
1576
1577 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1578
1579 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
1580 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
1581 with ssp_base.
1582 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
1583 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
1584 with ssp_base.
1585
1586 2018-07-25 Andreas Schwab <schwab@suse.de>
1587
1588 [BZ #23442]
1589 * locale/weightwc.h (findidx): Handle the case where usrc is a
1590 prefix of cp but one character too short.
1591
1592 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1593
1594 * NEWS: Add ISO C threads addition.
1595
1596 2018-07-24 Florian Weimer <fweimer@redhat.com>
1597
1598 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1599 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
1600 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
1601 4.13.
1602
1603 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1604
1605 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
1606 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
1607 <sys/prctl.h> and <asm/prctl.h>.
1608 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
1609 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
1610 and <asm/prctl.h>.
1611 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
1612 ARCH_CET_LEGACY_BITMAP.
1613 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
1614 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
1615 * sysdeps/x86/libc-start.c: Include <startup.h>.
1616
1617 2018-07-24 Florian Weimer <fweimer@redhat.com>
1618
1619 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
1620 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
1621
1622 2018-07-24 Rical Jasan <rj@2c3t.io>
1623 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1624 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
1625
1626 [BZ #14092]
1627 * manual/debug.texi: Update adjacent chapter name.
1628 * manual/probes.texi: Likewise.
1629 * manual/threads.texi (ISO C Threads): New section.
1630 (POSIX Threads): Convert to a section.
1631
1632 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1633 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
1634
1635 [BZ# 14092]
1636 * nptl/Makefile (tests): Add new test files.
1637 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
1638 * nptl/tst-cnd-basic.c: Likewise.
1639 * nptl/tst-cnd-broadcast.c: Likewise.
1640 * nptl/tst-cnd-timedwait.c: Likewise.
1641 * nptl/tst-mtx-basic.c: Likewise.
1642 * nptl/tst-mtx-recursive.c: Likewise.
1643 * nptl/tst-mtx-timedlock.c: Likewise.
1644 * nptl/tst-mtx-trylock.c: Likewise.
1645 * nptl/tst-thrd-basic.c: Likewise.
1646 * nptl/tst-thrd-detach.c: Likewise.
1647 * nptl/tst-thrd-sleep.c: Likewise.
1648 * nptl/tst-tss-basic.c: Likewise.
1649
1650 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1651
1652 [BZ #14092]
1653 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
1654 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
1655 symbols.
1656 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1657 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1658 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1659 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1660 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1661 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1662 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1663 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1664 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1665 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1666 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1667 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1668 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1669 Likewise.
1670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1671 Likewise.
1672 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1673 Likewise.
1674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1675 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1676 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1677 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1678 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1679 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1680 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1681 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1682 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1683 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
1684 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
1685 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
1686 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
1687 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
1688 Likewise.
1689 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
1690 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
1691 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
1692 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
1693 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
1694 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
1695 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
1696 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
1697 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
1698 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
1699 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
1700 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
1701 ikewise.
1702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
1703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
1704 Likewise.
1705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
1706 Likewise.
1707 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
1708 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
1709 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
1710 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
1711 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
1712 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
1713 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
1714 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
1715
1716 [BZ #14092]
1717 * conform/data/threads.h-data (thread_local): New macro.
1718 (TSS_DTOR_ITERATIONS): Likewise.
1719 (tss_t): New type.
1720 (tss_dtor_t): Likewise.
1721 (tss_create): New function.
1722 (tss_get): Likewise.
1723 (tss_set): Likewise.
1724 (tss_delete): Likewise.
1725 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
1726 tss_get, and tss_set objects.
1727 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
1728 * nptl/tss_create.c: New file.
1729 * nptl/tss_delete.c: Likewise.
1730 * nptl/tss_get.c: Likewise.
1731 * nptl/tss_set.c: Likewise.
1732 * sysdeps/nptl/threads.h (thread_local): New define.
1733 (TSS_DTOR_ITERATIONS): Likewise.
1734 (tss_t): New typedef.
1735 (tss_dtor_t): Likewise.
1736 (tss_create): New prototype.
1737 (tss_get): Likewise.
1738 (tss_set): Likewise.
1739 (tss_delete): Likewise.
1740
1741 [BZ #14092]
1742 * conform/data/threads.h-data (cnd_t): New type.
1743 (cnd_init): New function.
1744 (cnd_signal): Likewise.
1745 (cnd_broadcast): Likewise.
1746 (cnd_wait): Likewise.
1747 (cnd_timedwait): Likewise.
1748 (cnd_destroy): Likewise.
1749 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
1750 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
1751 object.
1752 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
1753 * nptl/cnd_broadcast.c: New file.
1754 * nptl/cnd_destroy.c: Likewise.
1755 * nptl/cnd_init.c: Likewise.
1756 * nptl/cnd_signal.c: Likewise.
1757 * nptl/cnd_timedwait.c: Likewise.
1758 * nptl/cnd_wait.c: Likewise.
1759 * sysdeps/nptl/threads.h (cnd_t): New type.
1760 (cnd_init): New prototype.
1761 (cnd_signa): Likewise.
1762 (cnd_broadcast): Likewise.
1763 (cnd_wait): Likewise.
1764 (cnd_timedwait): Likewise.
1765 (cnd_destroy): Likewise.
1766
1767 [BZ #14092]
1768 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
1769 (once_flag): New type.
1770 (call_once): New function.
1771 * nptl/Makefile (libpthread-routines): Add call_once object.
1772 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
1773 * nptl/call_once.c: New file.
1774 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
1775 (once_flag): New type.
1776 (call_once): New prototype.
1777
1778 [BZ #14092]
1779 * conform/data/threads.h-data (mtx_plain): New constant.
1780 (mtx_recursive): Likewise.
1781 (mtx_timed): Likewise.
1782 (mtx_t): New type.
1783 (mtx_init): New function.
1784 (mtx_lock): Likewise.
1785 (mtx_timedlock): Likewise.
1786 (mtx_trylock): Likewise.
1787 (mtx_unlock): Likewise.
1788 (mtx_destroy): Likewise.
1789 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
1790 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
1791 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
1792 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
1793 * nptl/mtx_destroy.c: New file.
1794 * nptl/mtx_init.c: Likewise.
1795 * nptl/mtx_lock.c: Likewise.
1796 * nptl/mtx_timedlock.c: Likewise.
1797 * nptl/mtx_trylock.c: Likewise.
1798 * nptl/mtx_unlock.c: Likewise.
1799 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
1800 (mtx_recursive): Likewise.
1801 (mtx_timed): Likewise.
1802 (mtx_t): New type.
1803 (mtx_init): New prototype.
1804 (mtx_lock): Likewise.
1805 (mtx_timedlock): Likewise.
1806 (mtx_trylock): Likewise.
1807 (mtx_unlock): Likewise.
1808 (mtx_destroy): Likewise.
1809
1810 [BZ #14092]
1811 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
1812 (linknamespace-libs-ISO11): Add libpthread.a.
1813 * conform/data/threads.h-data: New file: add C11 thrd_* types and
1814 functions.
1815 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
1816 * nptl/Makefile (headers): Add threads.h.
1817 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
1818 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
1819 thrd_yield.
1820 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
1821 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
1822 thrd_join, thrd_sleep, and thrd_yield symbols.
1823 * nptl/descr.h (struct pthread): Add c11 field.
1824 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
1825 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
1826 routine with expected function prototype.
1827 (__pthread_create_2_1): Add C11 threads check based on attribute
1828 value.
1829 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
1830 * nptl/thrd_create.c: New file.
1831 * nptl/thrd_current.c: Likewise.
1832 * nptl/thrd_detach.c: Likewise.
1833 * nptl/thrd_equal.c: Likewise.
1834 * nptl/thrd_exit.c: Likewise.
1835 * nptl/thrd_join.c: Likewise.
1836 * nptl/thrd_priv.h: Likewise.
1837 * nptl/thrd_sleep.c: Likewise.
1838 * nptl/thrd_yield.c: Likewise.
1839 * include/threads.h: Likewise.
1840
1841 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1842
1843 * bits/indirect-return.h: New file.
1844 * misc/sys/cdefs.h (__glibc_has_attribute): New.
1845 * sysdeps/x86/bits/indirect-return.h: Likewise.
1846 * stdlib/Makefile (headers): Add bits/indirect-return.h.
1847 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
1848 (swapcontext): Add __INDIRECT_RETURN.
1849 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
1850 (prepare_test_buffer): Use it.
1851
1852 2018-07-24 Andreas Schwab <schwab@suse.de>
1853
1854 [BZ #23448]
1855 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
1856 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
1857
1858 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1859
1860 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
1861 Redefine if shadow stack is enabled.
1862 (SYSCALL_ERROR_LABEL): Likewise.
1863 (__vfork): Pop shadow stack and jump back to to caller directly
1864 when shadow stack is in use.
1865 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
1866 Redefine if shadow stack is enabled.
1867 (SYSCALL_ERROR_LABEL): Likewise.
1868 (__vfork): Pop shadow stack and jump back to to caller directly
1869 when shadow stack is in use.
1870
1871 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1872
1873 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
1874 enabled.
1875 (foo): Likewise.
1876 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
1877 (foo): Likewise.
1878
1879 2018-07-20 Joseph Myers <joseph@codesourcery.com>
1880
1881 * scripts/build-many-glibcs.py (Context.checkout): Default
1882 binutils version to 2.31 branch.
1883
1884 2018-07-20 Zong Li <zong@andestech.com>
1885
1886 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
1887 URL of gcc's tarball.
1888
1889 2018-07-20 Florian Weimer <fweimer@redhat.com>
1890
1891 [BZ #23396]
1892 * posix/regcomp.c (build_equiv_class): When comparing weights, do
1893 not compare an extra byte after the end of the weights.
1894
1895 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
1896
1897 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
1898 to 1.
1899 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
1900 hidden prototypes.
1901 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
1902 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
1903 * scripts/check-execstack.awk: Consider `xfail' variable containing a
1904 list of libraries whose stack executability is expected.
1905 * elf/Makefile ($(objpfx)check-execstack.out): Pass
1906 $(check-execstack-xfail) to check-execstack.awk through `xfail'
1907 variable.
1908 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
1909 libc.so libpthread.so.
1910
1911 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
1912
1913 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
1914 SOCK_NONBLOCK.
1915 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
1916 and SOCK_NONBLOCK.
1917 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
1918 implement __pipe2.
1919 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
1920
1921 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1922
1923 * benchtests/scripts/compare_bench.py (__main__): use the argparse
1924 library to improve command line parsing.
1925 (__main__): make schema file as optional parameter (--schema),
1926 defaulting to benchtests/scripts/benchout.schema.json.
1927 (main): move out of the parsing stuff to __main_  and leave it
1928 only as caller of main comparison functions.
1929
1930 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
1931
1932 * NEWS: Add a note for Intel CET status.
1933 * manual/install.texi: Likewise.
1934 * INSTALL: Regenerated.
1935
1936 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
1937
1938 [BZ #23140]
1939 * localedata/locales/oc_FR (mon): Rename to...
1940 (alt_mon): This, then update October (typo fix).
1941 (mon): New content (genitive case, month names preceded by
1942 "de" or "d’").
1943
1944 [BZ #23422]
1945 * localedata/locales/oc_FR (abday): Update all items.
1946 (day): Update Wednesday and Saturday (typo fixes).
1947 (abmon): Update all items, except May.
1948 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
1949 (LC_IDENTIFICATION): Bump the revision number and date.
1950 Keep the "category" entries in alphabetic order.
1951 (LC_ADDRESS): Remove no longer needed comment.
1952 (LC_COLLATE): Use “copy "ca_ES"”.
1953 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
1954 "name_mrs".
1955
1956 2018-07-18 Joseph Myers <joseph@codesourcery.com>
1957
1958 * grp/tst_fgetgrent.c: Include <unistd.h>.
1959 (main): Use mkstemp instead of tmpnam.
1960 * io/test-utime.c (main): Likewise.
1961 * posix/annexc.c (macrofile): Change to modifiable array.
1962 (main): Remove macrofile here.
1963 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
1964 macrofile here.
1965 (check_header): Do not remove macrofile here.
1966 * posix/bug-getopt1.c: Include <stdlib.h>.
1967 (do_test): Use mkstemp instead of tmpnam.
1968 * posix/bug-getopt2.c: Include <stdlib.h>.
1969 (do_test): Use mkstemp instead of tmpnam.
1970 * posix/bug-getopt3.c: Include <stdlib.h>.
1971 (do_test): Use mkstemp instead of tmpnam.
1972 * posix/bug-getopt4.c: Include <stdlib.h>.
1973 (do_test): Use mkstemp instead of tmpnam.
1974 * posix/bug-getopt5.c: Include <stdlib.h>.
1975 (do_test): Use mkstemp instead of tmpnam.
1976 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
1977 (main): Use mkstemp instead of tmpnam.
1978 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
1979 (main): Use mkstemp instead of tmpnam.
1980 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
1981 (main): use mkstemp instead of tmpnam.
1982 * stdlib/isomac.c (macrofile): Change to modifiable array.
1983 (main): Remove macrofile here.
1984 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
1985 macrofile here.
1986 (check_header): Do not remove macrofile here.
1987
1988 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 * manual/tunables.texi: Document glibc.tune.x86_ibt and
1991 glibc.tune.x86_shstk.
1992
1993 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 * NEWS: Mention --enable-cet.
1996 * manual/install.texi: Document --enable-cet.
1997 * INSTALL: Regenerated.
1998
1999 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2000
2001 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
2002 Add _CET_NOTRACK before indirect jump to jump table.
2003
2004 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2005
2006 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
2007 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2008 to jump table.
2009
2010 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2011
2012 * sysdeps/i386/i686/multiarch/strcat-sse2.S
2013 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2014 to jump table.
2015
2016 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2017
2018 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
2019 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2020 to jump table.
2021
2022 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2023
2024 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
2025 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2026 to jump table.
2027
2028 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2029
2030 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
2031 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2032 to jump table.
2033 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
2034
2035 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2036
2037 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
2038 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2039 to jump table.
2040
2041 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2042
2043 * sysdeps/i386/i686/multiarch/memset-sse2.S
2044 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2045 to jump table.
2046
2047 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2048
2049 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
2050 indirect jump to jump table.
2051
2052 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2053
2054 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
2055 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2056 to jump table.
2057 (MEMCPY): Likewise.
2058
2059 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2060
2061 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
2062 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2063 to jump table.
2064 (MEMCPY): Likewise.
2065
2066 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2067
2068 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
2069 _CET_NOTRACK before indirect jump to jump table.
2070
2071 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2072
2073 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
2074 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2075 to jump table.
2076
2077 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2078
2079 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
2080 indirect jump to jump table.
2081
2082 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
2083
2084 [BZ #22241]
2085 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
2086 (LOCALES): Likewise.
2087 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
2088 * localedata/locales/sah_RU: New file.
2089 * localedata/sah_RU.UTF-8.in: New file.
2090
2091 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2092
2093 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
2094 "sysdep.h".
2095 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
2096 _CET_ENDBR to indirect jump targets and adjust jump destination
2097 for _CET_ENDBR.
2098 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
2099 "sysdep.h".
2100 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
2101 _CET_ENDBR to indirect jump targets and adjust jump destination
2102 for _CET_ENDBR.
2103 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
2104 "sysdep.h".
2105 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
2106 _CET_ENDBR to indirect jump targets and adjust jump destination
2107 for _CET_ENDBR.
2108
2109 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2110
2111 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
2112 _CET_ENDBR.
2113
2114 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2115
2116 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
2117 _CET_ENDBR.
2118 (_dl_tlsdesc_undefweak): Likewise.
2119 (_dl_tlsdesc_dynamic): Likewise.
2120 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
2121 (_dl_tlsdesc_resolve_rel): Likewise.
2122 (_dl_tlsdesc_resolve_rela): Likewise.
2123 (_dl_tlsdesc_resolve_hold): Likewise.
2124 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
2125 (_dl_tlsdesc_undefweak): Likewise.
2126 (_dl_tlsdesc_dynamic): Likewise.
2127 (_dl_tlsdesc_resolve_rela): Likewise.
2128 (_dl_tlsdesc_resolve_hold): Likewise.
2129
2130 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2131
2132 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
2133 (_fini): Likewise.
2134 * sysdeps/x86_64/crti.S (_init): Likewise.
2135 (_fini): Likewise.
2136
2137 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
2138
2139 [BZ #23140]
2140 * localedata/locales/os_RU (mon): Rename to...
2141 (alt_mon): This.
2142 (mon): Import from CLDR (genitive case).
2143
2144 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2145
2146 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
2147 cet-tunables.h> when CET is enabled.
2148
2149 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
2150
2151 [BZ #21598]
2152 * configure.ac: Add --enable-cet.
2153 * configure: Regenerated.
2154 * elf/Makefille (all-built-dso): Add a comment.
2155 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
2156 Include <dl-prop.h>.
2157 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
2158 segment.
2159 * elf/dl-open.c: Include <dl-prop.h>.
2160 (dl_open_worker): Call _dl_open_check.
2161 * elf/rtld.c: Include <dl-prop.h>.
2162 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
2163 _rtld_main_check.
2164 * sysdeps/generic/dl-prop.h: New file.
2165 * sysdeps/i386/dl-cet.c: Likewise.
2166 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
2167 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
2168 * sysdeps/x86/cet-tunables.h: Likewise.
2169 * sysdeps/x86/check-cet.awk: Likewise.
2170 * sysdeps/x86/configure: Likewise.
2171 * sysdeps/x86/configure.ac: Likewise.
2172 * sysdeps/x86/dl-cet.c: Likewise.
2173 * sysdeps/x86/dl-procruntime.c: Likewise.
2174 * sysdeps/x86/dl-prop.h: Likewise.
2175 * sysdeps/x86/libc-start.h: Likewise.
2176 * sysdeps/x86/link_map.h: Likewise.
2177 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
2178 _CET_ENDBR.
2179 (_dl_runtime_profile): Likewise.
2180 (_dl_runtime_resolve_shstk): New.
2181 (_dl_runtime_profile_shstk): Likewise.
2182 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
2183 if CET is enabled.
2184 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
2185 (CFLAGS-.os): Likewise.
2186 (CFLAGS-.op): Likewise.
2187 (CFLAGS-.oS): Likewise.
2188 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
2189 is enabled.
2190 (tests-special): Add $(objpfx)check-cet.out.
2191 (cet-built-dso): New.
2192 (+$(cet-built-dso:=.note)): Likewise.
2193 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
2194 ($(objpfx)check-cet.out): New.
2195 (generated): Add check-cet.out.
2196 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
2197 <cet-tunables.h>.
2198 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
2199 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
2200 (init_cpu_features): Call get_cet_status to check CET status
2201 and update dl_x86_feature_1 with CET status. Call
2202 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
2203 (set_x86_shstk). Disable and lock CET in libc.a.
2204 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
2205 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
2206 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
2207 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
2208 (_CET_ENDBR): Define if not defined.
2209 (ENTRY): Add _CET_ENDBR.
2210 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
2211 x86_shstk.
2212 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
2213 _CET_ENDBR.
2214 (_dl_runtime_profile): Likewise.
2215
2216 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
2217
2218 [BZ #21895]
2219 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
2220 restore r2 on longjmp.
2221 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
2222 test list.
2223 Added rules to build test tst-setjmp-bug21895-static.
2224 Added module setjmp-bug21895 and rules to build a shared object from it.
2225 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
2226 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
2227
2228 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
2229
2230 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
2231 * benchtests/bench-strstr.c: Likewise.
2232 * string/memmem.c (FASTSEARCH): Define.
2233 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
2234 Add support for FASTSEARCH.
2235 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
2236 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
2237 (FASTSEARCH): Define.
2238 * string/test-strcasestr.c: Rename __strnlen to strnlen.
2239 * string/test-strstr.c: Likewise.
2240
2241 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
2242
2243 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
2244 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
2245
2246 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2247 H.J. Lu <hongjiu.lu@intel.com>
2248
2249 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
2250 (__longjmp): Restore shadow stack pointer if shadow stack is
2251 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
2252 isn't defined for __longjmp_cancel.
2253 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
2254 (_setjmp): Save shadow stack pointer if shadow stack is enabled
2255 and SHADOW_STACK_POINTER_OFFSET is defined.
2256 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
2257 (setjmp): Save shadow stack pointer if shadow stack is enabled
2258 and SHADOW_STACK_POINTER_OFFSET is defined.
2259 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
2260 (__sigsetjmp): Save shadow stack pointer if shadow stack is
2261 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2262 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
2263 <jmp_buf-ssp.h>.
2264 (____longjmp_chk): Restore shadow stack pointer if shadow stack
2265 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2266 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
2267 Remove jmp_buf-ssp.sym.
2268 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2269 <jmp_buf-ssp.h>.
2270 (____longjmp_chk): Restore shadow stack pointer if shadow stack
2271 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2272 * sysdeps/x86/Makefile (gen-as-const-headers): Add
2273 jmp_buf-ssp.sym.
2274 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
2275 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
2276 (__longjmp): Restore shadow stack pointer if shadow stack is
2277 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
2278 isn't defined for __longjmp_cancel.
2279 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
2280 (__sigsetjmp): Save shadow stack pointer if shadow stack is
2281 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2282
2283 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
2284
2285 [BZ #22563]
2286 * nptl/pthread_create.c: Include <tls-setup.h>.
2287 (__pthread_create_2_1): Call tls_setup_tcbhead.
2288 * sysdeps/generic/tls-setup.h: New file.
2289 * sysdeps/x86/nptl/tls-setup.h: Likewise.
2290 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
2291 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
2292 Likewise.
2293 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
2294 to feature_1.
2295 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
2296 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
2297 (X86_FEATURE_1_SHSTK): Likewise.
2298 (CET_ENABLED): Likewise.
2299 (IBT_ENABLED): Likewise.
2300 (SHSTK_ENABLED): Likewise.
2301
2302 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
2303
2304 [BZ #23208]
2305 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
2306 (LOCALES): Likewise.
2307 * localedata/dsb_DE.UTF-8.in: New file.
2308 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
2309
2310 2018-07-12 Florian Weimer <fweimer@redhat.com>
2311
2312 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
2313 __mprotect, not mprotect.
2314
2315 2018-07-11 Florian Weimer <fweimer@redhat.com>
2316
2317 * io/Makefile (headers): Add bits/statx.h.
2318
2319 2018-07-10 Mike FABIAN <mfabian@redhat.com>
2320
2321 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
2322 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
2323 and headers.
2324 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
2325 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
2326 for utf8_gen.py
2327
2328 2018-07-10 Florian Weimer <fweimer@redhat.com>
2329
2330 * io/Makefile (routines): Add statx.
2331 (tests-internal): Add tst-statx.
2332 * io/Versions (GLIBC_2.28): Export statx.
2333 * io/bits/statx.h: New file.
2334 * io/sys/stat.h [__USE_GNU]: Include it.
2335 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
2336 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
2337 Define.
2338 * io/statx.c: New file.
2339 * io/statx_generic.: Likewise.
2340 * io/tst-statx.: Likewise.
2341 * include/bits/statx.h: Likewise.
2342 * sysdeps/unix/sysv/linux/kernel-features.h
2343 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
2344 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2345 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
2346 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
2347 Undefine.
2348 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2349 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
2350 * sysdeps/unix/sysv/linux/statx.c: New file.
2351 * manual/filesys.texi: Note that statx is undocumented.
2352 * sysdeps/**/libc*.abilist: Update.
2353
2354 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2355
2356 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
2357 a kernel issue which lead to test failure in some cases.
2358
2359 2018-07-10 Florian Weimer <fweimer@redhat.com>
2360
2361 [BZ #23036]
2362 * posix/regexec.c (check_node_accept_bytes): When comparing
2363 weights, do not compare an extra byte after the end of the
2364 weights.
2365
2366 2018-07-10 Florian Weimer <fweimer@redhat.com>
2367
2368 * libio/readline.c: Fix copyright year.
2369 * libio/tst-readline.c Likewise.
2370 * nss/tst-nss-files-hosts-getent.c: Likewise.
2371
2372 2018-07-06 Florian Weimer <fweimer@redhat.com>
2373
2374 [BZ #18991]
2375 * nss/nss_files/files-XXX.c (internal_getent): Use
2376 __libc_readline_unlocked. Seek back to the start of the line if
2377 parsing failes with ERANGE.
2378 (get_contents_ret, get_contents): Remove.
2379 * nss/tst-nss-files-hosts-getent.c: New file.
2380 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
2381 (tst-nss-files-hosts-getent): Link with -ldl.
2382
2383 2018-07-06 Florian Weimer <fweimer@redhat.com>
2384
2385 * include/stdio.h (__libc_readline_unlocked): Declare.
2386 (__ftello64, __fseeko64): Declare aliases.
2387 * libio/readline.c: New file.
2388 * libio/tst-readline.c: Likewise.
2389 (routines): Add readline.
2390 (tests-internal): Add tst-readlime.
2391 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
2392 __libc_readline_unlocked.
2393 * libio/fseeko.c (__fseeko): Rename from fseeko.
2394 (fseeko): Add alias.
2395 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
2396 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
2397 (fseeko64): Add alias.
2398 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
2399 * libio/ftello64.c (__ftello64): Rename from ftello64.
2400 (ftello64): Add alias.
2401
2402 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
2403
2404 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
2405 HWCAP_ATOMICS.
2406
2407 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
2408
2409 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
2410 Use dl_hwcap without masking.
2411 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
2412 Remove HWCAP_CPUID.
2413
2414 2018-07-06 Florian Weimer <fweimer@redhat.com>
2415
2416 * conform/conformtest.pl (checknamespace): Escape literal braces
2417 in regular expressions.
2418
2419 2018-07-06 Amit Pawar <amit.pawar@amd.com>
2420
2421 * sysdeps/x86/cpu-features.c (get_common_indeces):
2422 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
2423 * sysdeps/x86/cpu-features.c (init_cpu_features):
2424 AVX_Fast_Unaligned_Load is disabled for Excavator core.
2425
2426 2018-07-05 Florian Weimer <fweimer@redhat.com>
2427
2428 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
2429 protector.
2430 (CFLAGS-elf-init.oS): Likewise.
2431
2432 2018-07-05 Florian Weimer <fweimer@redhat.com>
2433 Carlos O'Donell <carlos@redhat.com>
2434
2435 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
2436 $(no-stack-protector). stack_chk_fail_local.c can be compiled
2437 with stack protector enabled because there is no risk of infinite
2438 recursion.
2439
2440 2018-07-05 Maciej W. Rozycki <macro@mips.com>
2441
2442 [BZ #19818]
2443 [BZ #23307]
2444 * libc-abis (ABSOLUTE): New ABI.
2445 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
2446 * NEWS: Mention the new ABI.
2447
2448 2018-07-05 Florian Weimer <fweimer@redhat.com>
2449
2450 [BZ # 17662]
2451 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
2452 (RENAME_WHITEOUT): Define.
2453 [__USE_GNU] (renameat2): Declare.
2454 * stdio-common/Makefile (routines): Add renameat2.
2455 (tests): Add tst-renameat2.
2456 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
2457 * stdio-common/renameat2.c: New file.
2458 * stdio-common/tst-renameat2.c: Likewise.
2459 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
2460 * manual/filesys.texi (Temporary Files): Note that renameat2 is
2461 undocumented.
2462 * sysdeps/unix/sysv/linux/kernel-features.h
2463 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
2464 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2465 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
2466 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2467 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
2468 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2469 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
2470 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2471 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
2472 * include/stdio.h (__renameat): Add alias for renameat.
2473 * stdio-common/renameat.c (__renameat): Rename from renameat.
2474 Add hidden definition and alias.
2475 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
2476 * sysdeps/mach/hurd/renameat.c: Likewise.
2477 * sysdeps/**/libc*.abilist: Add renameat2.
2478
2479 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2480
2481 * posix/bug-regex33.c: Fix build after regex sync.
2482
2483 2018-07-04 Carlos O'Donell <carlos@redhat.com>
2484
2485 [BZ #23164]
2486 * localedata/tst-langinfo-setlocale.c: New file.
2487 * localedata/tst-langinfo-setlocale-static.c: New file.
2488 * localedata/tst-langinfo-newlocale.c: New file.
2489 * localedata/tst-langinfo-newlocale-static.c: New file.
2490 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
2491 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
2492 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
2493 (tests-static): Remove tst-langinfo-static. Add
2494 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
2495 (tests-special): Remove $(objpfx)tst-langinfo.out,
2496 $(objpfx)tst-langinfo-static.out. Add
2497 $(objpfx)tst-langinfo-setlocale.out,
2498 $(objpfx)tst-langinfo-newlocale.out,
2499 $(objpfx)tst-langinfo-setlocale-static.out,
2500 $(objpfx)tst-langinfo-newlocale-static.out.
2501 ($(objpfx)tst-langinfo.out): Remove.
2502 ($(objpfx)tst-langinfo-static.out): Remove.
2503 ($(objpfx)tst-langinfo-newlocale.out): New target.
2504 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
2505 (test-xfail-tst-langinfo-newlocale-static): Add.
2506 ($(objpfx)tst-langinfo-setlocale.out): New target.
2507 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
2508 * localedata/tst-langinfo.c: Call test_locale.
2509 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
2510 data.
2511
2512 2018-07-04 Florian Weimer <fweimer@redhat.com>
2513
2514 testrun.sh: Implement --tool=strace, --tool=valgrind
2515 * Makefile (testrun-script): Define variable.
2516 (testrun.sh): Use variable.
2517 * manual/install.texi (Tools for Compilation): make 4.0 or later
2518 is required.
2519 * configure.ac: Check for make 4.0 or later.
2520 * INSTALL: Regenerate.
2521 * configure: Likewise.
2522
2523 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2524
2525 [BZ #23233]
2526 [BZ #21163]
2527 [BZ #18986]
2528 [BZ #13762]
2529 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
2530 * posix/PCRE.tests: Remove invalid test.
2531 * posix/bug-regex28.c: Fix expected values for used syntax.
2532 * posix/bug-regex37.c: New file.
2533 * posix/bug-regex38.c: Likewise.
2534 * posix/regcomp.c: Sync with gnulib.
2535 * posix/regex.c: Likewise.
2536 * posix/regex.h: Likewise.
2537 * posix/regex_internal.c: Likewise.
2538 * posix/regex_internal.h: Likewise.
2539 * posix/regexec.c: Likewise.
2540
2541 2018-06-26 Mike FABIAN <mfabian@redhat.com>
2542
2543 [BZ #23308]
2544 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
2545 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
2546 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
2547 * localedata/unicode-gen/PropList.txt: likewise.
2548 * localedata/unicode-gen/UnicodeData.txt: likewise.
2549 * localedata/charmaps/UTF-8: Regenerate.
2550 * localedata/locales/i18n_ctype: likewise.
2551 * localedata/locales/tr_TR: likewise.
2552 * localedata/locales/translit_circle: likewise.
2553 * localedata/locales/translit_cjk_compat: likewise.
2554 * localedata/locales/translit_combining: likewise.
2555 * localedata/locales/translit_compat: likewise.
2556 * localedata/locales/translit_font: likewise.
2557 * localedata/locales/translit_fraction: likewise.
2558
2559 2018-07-03 Florian Weimer <fweimer@redhat.com>
2560
2561 [BZ #23363]
2562 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
2563 * stdio-common/tst-printf.sh: Adjust expected output.
2564 * LICENSES: Update.
2565
2566 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2567
2568 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
2569 symbol.
2570
2571 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2572
2573 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
2574 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
2575 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
2576 * stdio-common/tst-printfsz-islongdouble.c: New file.
2577 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
2578 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
2579 [subdir == stdio-common] (routines): Add ieee128-printf_size.
2580 [subdir == stdio-common] (tests-internal): Add
2581 test-printf-size-ieee128, and test-printf-size-ibm128.
2582 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
2583 (CFLAGS-test-printf-size-ibm128.c): New variables.
2584 [subdir == stdio-common] (tests-special): Add
2585 $(objpfx)test-printf-size-ieee128.out and
2586 $(objpfx)test-printf-size-ibm128.out.
2587 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
2588 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
2589 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
2590 __printf_sizeieee128.
2591 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
2592 New file.
2593 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
2594 Likewise.
2595 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
2596 Likewise.
2597
2598 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2599
2600 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
2601 (exp2f_inline): Likewise.
2602 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
2603 (__math_uflowf): Likewise.
2604 (__math_may_uflowf): Likewise.
2605 (__math_divzerof): Likewise.
2606 (__math_invalidf): Likewise.
2607 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
2608 (__math_oflowf): Likewise.
2609 (__math_uflowf): Likewise.
2610 (__math_may_uflowf): Likewise.
2611 (__math_divzerof): Likewise.
2612 (__math_invalidf): Likewise.
2613
2614 2018-06-29 DJ Delorie <dj@redhat.com>
2615 Carlos O'Donell <carlos@redhat.com>
2616
2617 [BZ #23329]
2618 * include/libc-symbols.h: Comment the freeres framework.
2619 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
2620 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
2621 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
2622 * dlfcn/dlerror.c: Include libc-symbols.h
2623 (__dlerror_main_freeres): New function.
2624 * dlfcn/dlfreeres.c: New file.
2625 * dlfcn/sdlfreeres.c: New file.
2626 * include/dlfcn.h: Declare __dlerror_main_freeres.
2627 * malloc/set-freeres.c: Declare __libdl_freeres, and
2628 __libpthread_freeres.
2629 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
2630 the releavant libraries are loaded.
2631 * malloc/thread-freeres.c: Add comments.
2632 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
2633 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
2634 * nptl/allocatestack.c (__nptl_free_stacks): New function.
2635 (__free_stacks): Rename to...
2636 (free_stacks): ...this. Mark static.
2637 (queue_stack): Call free_stacks.
2638 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
2639 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
2640 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2641 ptr_freeres element from struct.
2642 (pthread_functions): Remove .ptr_freeres from struct initializer.
2643 [SHARED] (nptl_freeres): Remove.
2644 * nptl/nptlfreeres.c: New file.
2645 * nptl/pthreadP.h
2646 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
2647 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
2648 attribute_hidden.
2649 (__free_stacks): Rename to...
2650 (__nptl_stacks_freeres): ...this.
2651 (__shm_directory_freeres): Declare.
2652 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
2653 (__nptl_unwind_freeres): ...this.
2654 * resolv/res-close.c: Add comment.
2655 * resolv/resolv_conf.c: Include libc-symbols.h.
2656 * string/strerror_l.c: Include libc-symbols.h.
2657 * sunrpc/rpc_thread.c: Include libc-symbols.h.
2658 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
2659 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
2660 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
2661
2662 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2663
2664 * stdlib/tst-strfmon_l.c: Add tests for long double.
2665
2666 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
2667
2668 [BZ #23208]
2669 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
2670 * localedata/locales/dsb_DE: New file.
2671
2672 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
2673
2674 [BZ #23140]
2675 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
2676 genitive case).
2677 (alt_mon): New entry, import from CLDR (nominative case).
2678
2679 2018-06-29 Sylvain Lesage <severo@rednegra.net>
2680
2681 [BZ #22996]
2682 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
2683
2684 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
2685
2686 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
2687 Use vector registers.
2688
2689 * sysdeps/aarch64/multiarch/memmove_falkor.S
2690 (__memcpy_falkor): Use vector registers.
2691
2692 2018-06-29 Martin Sebor <msebor@redhat.com>
2693
2694 * manual/stdio.texi (Customizing Printf): Mention interaction
2695 with GCC built-ins.
2696
2697 2018-06-29 Maciej W. Rozycki <macro@mips.com>
2698
2699 [BZ #23307]
2700 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
2701 `st_value' is 0 if `st_shndx' is SHN_ABS.
2702 * elf/tst-absolute-zero.c: New file.
2703 * elf/tst-absolute-zero-lib.c: New file.
2704 * elf/tst-absolute-zero-lib.lds: New file.
2705 * elf/Makefile (tests): Add `tst-absolute-zero'.
2706 (modules-names): Add `tst-absolute-zero-lib'.
2707 (LDLIBS-tst-absolute-zero-lib.so): New variable.
2708 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
2709 ($(objpfx)tst-absolute-zero: New dependency.
2710
2711 2018-06-29 Zack Weinberg <zackw@panix.com>
2712
2713 * configure.ac: New command-line option --disable-crypt.
2714 Force --disable-nss-crypt when --disable-crypt is given, with a
2715 warning if it was explicitly enabled.
2716 * configure: Regenerate.
2717 * config.make.in: New boolean substitution variable $(build-crypt).
2718 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
2719 when $(build-crypt).
2720 * manual/install.texi: Document --disable-crypt.
2721 * INSTALL: Regenerate.
2722
2723 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
2724 which is never set.
2725 * conform/Makefile: Only include libcrypt.a in
2726 linknamespace-libs-xsi and linknamespace-libs-XPG4
2727 when $(build-crypt).
2728 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
2729 USE_CRYPT to 1 when $(build-crypt).
2730 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
2731 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
2732 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
2733
2734 2018-06-29 Zack Weinberg <zackw@panix.com>
2735
2736 * crypt/crypt.h, posix/unistd.h: Update comments and
2737 prototypes for crypt and crypt_r.
2738
2739 * manual/crypt.texi (Cryptographic Functions): New initial
2740 exposition.
2741 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
2742 (Unpredictable Bytes): Improve initial exposition. Clarify error
2743 behavior of getentropy and getrandom.
2744 * manual/examples/genpass.c: Generate a salt using getentropy
2745 instead of the current time. Use hash $5$ (SHA-2-256).
2746 * manual/examples/testpass.c: Demonstrate validation against
2747 hashes generated with three different one-way functions.
2748
2749 * manual/intro.texi: crypt.texi does not need an overview
2750 anymore.
2751
2752 * manual/nss.texi, manual/memory.texi, manual/socket.texi
2753 * manual/terminal.texi: Consistently refer to "passphrases"
2754 * instead of "passwords", and to the "user database" instead
2755 * of the "password database".
2756 * manual/users.texi: Similarly. Add notes about how actual
2757 passphrase hashes are now stored in the shadow database.
2758 Remove 20-year-old junk todo note.
2759
2760 2018-06-29 Zack Weinberg <zackw@panix.com>
2761
2762 * manual/crypt.texi: Use a normal top-level @node declaration.
2763 Move most of the introductory text to the 'crypt' section.
2764 Move the example programs below the @deftypefun for 'crypt_r'.
2765 Move the 'getpass' section...
2766 * manual/terminal.texi: ...here.
2767
2768 2018-06-29 Zack Weinberg <zackw@panix.com>
2769 Florian Weimer <fweimer@redhat.com>
2770
2771 * posix/unistd.h: Do not declare encrypt.
2772 (_XOPEN_CRYPT): Remove macro definition.
2773 (crypt): Declare only for _USE_MISC.
2774 * stdlib/stdlib.h: Do not declare setkey.
2775 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
2776 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
2777
2778 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
2779 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
2780 into compat symbols. Don't define initial_perm if it's not
2781 going to be used.
2782 * crypt/cert.c: Link explicitly with the expected versions for
2783 setkey and encrypt. If they are not available at all, mark
2784 the test as unsupported.
2785
2786 * sunrpc/des_crypt.c: Unconditionally block linkage with
2787 cbc_crypt and ecb_crypt for new binaries.
2788 * sunrpc/des_soft.c: Unconditionally block linkage with
2789 des_setparity for new binaries.
2790
2791 * manual/crypt.texi: Remove the entire "DES Encryption"
2792 section. Also remove the paragraph talking about FIPS 140-2
2793 from the introduction.
2794 * manual/string.texi (strfry, memfrob): Revise. Recommend use
2795 of libgcrypt for "real" encryption, not DES.
2796 * manual/conf.texi (Constants for Sysconf): Mention that
2797 _XOPEN_CRYPT is no longer impelemented.
2798
2799 * conform/data/unistd.h-data: Remove crypt function declaration.
2800
2801 2018-06-29 Florian Weimer <fweimer@redhat.com>
2802
2803 [BZ #23351]
2804 * malloc/hooks.c: Update comments on restoring of dumped heaps.
2805 (disallow_malloc_check): Remove variable.
2806 (__malloc_check_init): Adjust.
2807 (malloc_set_state): Update comment.
2808 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
2809 declarations.
2810
2811 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
2812
2813 [BZ #23140]
2814 * localedata/locales/ast_ES (mon): Rename to...
2815 (alt_mon): This.
2816 (mon): Import from CLDR (genitive case).
2817
2818 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
2819 Jakub Sitnicki <jkbs@redhat.com>
2820
2821 [BZ #21812]
2822 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
2823 on NLM_F_DUMP_INTR.
2824
2825 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
2826
2827 * manual/llio.texi: Remove spurious space.
2828
2829 2018-06-28 Florian Weimer <fweimer@redhat.com>
2830
2831 [BZ #23349]
2832 * time/bits/types/struct_timespec.h: Change header inclusion guard to
2833 _STRUCT_TIMESPEC.
2834
2835 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2836
2837 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
2838 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
2839 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
2840 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
2841 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
2842 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
2843 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
2844
2845 2018-06-27 Maciej W. Rozycki <macro@mips.com>
2846
2847 [BZ #23266]
2848 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
2849 Copy and null-terminate entries that are not terminated, in
2850 addition to empty ones.
2851
2852 2018-06-27 Florian Weimer <fweimer@redhat.com>
2853
2854 [BZ #18023]
2855 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
2856 (extend_alloca_account): Remove.
2857 * manual/stdio.texi (Variable Arguments Output): Update comment.
2858
2859 2018-06-27 Joseph Myers <joseph@codesourcery.com>
2860
2861 * nptl/sockperf.c: Remove file.
2862
2863 2018-06-27 Florian Weimer <fweimer@redhat.com>
2864
2865 [BZ #18023]
2866 * elf/dl-deps.c (_dl_map_object_deps): Use struct
2867 scratch_buffer instead of extend_alloca.
2868
2869 2018-06-27 Florian Weimer <fweimer@redhat.com>
2870
2871 [BZ #18023]
2872 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
2873 scratch_buffer instead of extend_alloca. Update comments.
2874
2875 2018-06-27 Florian Weimer <fweimer@redhat.com>
2876
2877 [BZ #18023]
2878 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
2879 instead of extend_alloca.
2880
2881 2018-06-26 Joseph Myers <joseph@codesourcery.com>
2882
2883 [BZ #13888]
2884 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
2885 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
2886 /tmp.
2887 * scripts/test-installation.pl: Put temporary files in build
2888 directory, not /tmp.
2889 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
2890 (CFLAGS-bug4.c): Likewise.
2891 (CFLAGS-bug5.c): Likewise.
2892 (CFLAGS-test-fseek.c): Likewise.
2893 (CFLAGS-test-popen.c): Likewise.
2894 (CFLAGS-test_rdwr.c): Likewise.
2895 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
2896 /tmp.
2897 * stdio-common/bug4.c (main): Likewise.
2898 * stdio-common/bug5.c (main): Likewise.
2899 * stdio-common/test-fseek.c (TESTFILE): Likewise.
2900 * stdio-common/test-popen.c (do_test): Likewise.
2901 * stdio-common/test_rdwr.c (main): Likewise.
2902
2903 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
2904
2905 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
2906 (sem_open): Set sem.newsem.pad to zero for valgrind.
2907
2908 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2909
2910 [BZ #20251]
2911 * NEWS: Mention fcntl64 addition.
2912 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
2913 * login/utmp_file.c: Likewise.
2914 * sysdeps/posix/fdopendir.c: Likewise.
2915 * sysdeps/posix/opendir.c: Likewise.
2916 * sysdeps/unix/pt-fcntl.c: Likewise.
2917 * include/fcntl.h (__libc_fcntl64, __fcntl64,
2918 __fcntl64_nocancel_adjusted): New prototype.
2919 (__fcntl_nocancel_adjusted): Remove prototype.
2920 * io/Makefile (routines): Add fcntl64.
2921 (CFLAGS-fcntl64.c): New rule.
2922 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
2923 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
2924 * io/fcntl.h (fcntl64): Add prototype and redirect if
2925 __USE_FILE_OFFSET64 is defined.
2926 * io/fcntl64.c: New file.
2927 * manual/llio.text: Add a note for which commands fcntl acts a
2928 cancellation point.
2929 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
2930 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
2931 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
2932 New symbols.
2933 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
2934 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
2935 non-LFS case.
2936 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
2937 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
2938 to __fcntl64_nocancel.
2939 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
2940 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
2941 to __fcntl64_nocancel.
2942 * sysdeps/generic/not-cancel.h: Likewise.
2943 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
2944 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
2945 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
2946 (fcntl64): New symbol.
2947 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2948 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2949 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2950 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2952 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
2953 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2954 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2955 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2956 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2957 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
2958 fcntl64): Likewise.
2959 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2960 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
2961 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2962 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2963 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2964 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2965 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2966 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2967 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2969 Likewise.
2970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2971 Likewise.
2972 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2973 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2974 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2975
2976 2018-06-26 Florian Weimer <fweimer@redhat.com>
2977
2978 Run thread shutdown functions in an explicit order.
2979 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
2980 definition.
2981 (__libc_thread_freeres): Call thread shutdown functions
2982 explicitly.
2983 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
2984 * include/string.h (__strerror_thread_freeres): Declare.
2985 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
2986 arena_thread_freeres. No longer static. Remove thread shutdown
2987 hook registration.
2988 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
2989 Declare.
2990 * resolv/res-close.c (__res_thread_freeres): Renamed from
2991 res_thread_freeres. No longer static. Remove thread shutdown
2992 hook registration.
2993 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
2994 * resolv/resolv_conf.c (freeres): Remove incorrect section
2995 attribute and use libc_freeres_fn.
2996 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
2997 strerror_thread_freeres. No longer static. Remove thread
2998 shutdown hook registration.
2999 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
3000 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
3001 shutdown hook registration.
3002 * Makerules (shlib.lds): Do not provide section boundary symbols
3003 for __libc_thread_subfreeres.
3004 * manual/memory.texi (Basic Allocation): Update comment.
3005
3006 2018-06-26 Florian Weimer <fweimer@redhat.com>
3007
3008 Remove always-defined _RPC_THREAD_SAFE_ macro.
3009 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
3010 Do not define _RPC_THREAD_SAFE_.
3011 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
3012 conditional.
3013 * sunrpc/clnt_perr.c: Likewise.
3014 * sunrpc/clnt_raw.c: Likewise.
3015 * sunrpc/clnt_simp.c: Likewise.
3016 * sunrpc/key_call.c: Likewise.
3017 * sunrpc/rpc_common.c: Likewise.
3018 * sunrpc/rpc_main.c: Likewise.
3019 * sunrpc/rpc_thread.c: Likewise.
3020 * sunrpc/svc.c: Likewise.
3021 * sunrpc/svc_raw.c: Likewise.
3022 * sunrpc/svc_simple.c: Likewise.
3023 * sumrpc/svcauth_des.c: Likewise.
3024
3025 2018-06-26 Florian Weimer <fweimer@redhat.com>
3026
3027 * libio/Makefile (tests-internal): Add tst-vtables,
3028 tst-vtables-interposed.
3029 * libio/tst-vtables.c: New file.
3030 * libio/tst-vtables-common.c: Likewise.
3031 * libio/tst-vtables-interposed.c: Likewise.
3032
3033 2018-06-26 Florian Weimer <fweimer@redhat.com>
3034
3035 * support/support_test_main.c (support_test_main): Only call
3036 setvbuf if not disables.
3037 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
3038 * support/test-driver.h (struct test_config): Add no_setvbuf member.
3039
3040 2018-06-26 Florian Weimer <fweimer@redhat.com>
3041
3042 [BZ #23313]
3043 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
3044
3045 2018-06-25 Florian Weimer <fweimer@redhat.com>
3046
3047 [BZ #18023]
3048 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
3049 Use struct scratch_buffer instead of extend_alloca.
3050
3051 2018-06-25 Florian Weimer <fweimer@redhat.com>
3052
3053 [BZ #18023]
3054 * nss/getent.c (initgroups_keys): Use dynarray instead of
3055 extend_alloca.
3056
3057 2018-06-25 Florian Weimer <fweimer@redhat.com>
3058
3059 [BZ #18023]
3060 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
3061 Use struct scratch_buffer instead of extend_alloca.
3062
3063 2018-06-25 Florian Weimer <fweimer@redhat.com>
3064
3065 [BZ #18023]
3066 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
3067 back to malloc directly, without stack allocations.
3068
3069 2018-06-25 Florian Weimer <fweimer@redhat.com>
3070
3071 [BZ #18023]
3072 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
3073 of extend_alloca.
3074
3075 2018-06-25 Florian Weimer <fweimer@redhat.com>
3076
3077 [BZ #18023]
3078 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
3079 of extend_alloca.
3080 * nscd/hstcache.c (addhstbyX): Likewise.
3081 * nscd/pwdcache.c (addpwbyX): Likewise.
3082 * nscd/servicescache.c (addservbyX): Likewise.
3083
3084 2018-06-25 Florian Weimer <fweimer@redhat.com>
3085
3086 [BZ #18023]
3087 * nscd/connections.c (read_cmdline): New function.
3088 (restart): Use it. Update comment.
3089
3090 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
3091
3092 [BZ #23140]
3093 * localedata/locales/csb_PL (mon): Rename to...
3094 (alt_mon): This.
3095 (abmon): Rename to...
3096 (ab_alt_mon): This.
3097 (mon): Add with proper genitive forms, copy from Wikipedia.
3098 (abmon): Likewise.
3099
3100 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
3101
3102 [BZ #19485]
3103 * localedata/locales/csb_PL (mon): Fix typos:
3104 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
3105 (yesstr): Add, value is "jo".
3106 (nostr): Add, value is "nié".
3107
3108 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3109
3110 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
3111 all log1p and significand functions on m680x0.
3112 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
3113 of s_significand.c..
3114 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
3115 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
3116 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
3117 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
3118 s_log1p.c and include it..
3119
3120 2018-06-21 Vincent Chen <vincentc@andestech.com>
3121
3122 * elf/elf.h (R_NDS32_NONE): New define.
3123 (R_NDS32_32_RELA): Likewise.
3124 (R_NDS32_COPY): Likewise.
3125 (R_NDS32_GLOB_DAT): Likewise.
3126 (R_NDS32_JUMP_SLOT): Likewise.
3127 (R_NDS32_RELATIVE): Likewise.
3128 (R_NDS32_TLS_TPOFF): Likewise.
3129 (R_NDS32_TLS_DESC): Likewise.
3130
3131 2018-06-21 Mark Wielaard <mark@klomp.org>
3132
3133 * elf/elf.h (R_BPF_MAP_FD): Removed.
3134 (R_BPF_64_64, R_BPF_64_32): New.
3135
3136 2018-06-21 Florian Weimer <fweimer@redhat.com>
3137
3138 [BZ #23253]
3139 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
3140 Renamed from libc_feholdsetround_ctx.
3141 (default_libc_feresetround_ctx): Renamed from
3142 libc_feresetround_ctx.
3143 (default_libc_feholdsetround_noex_ctx): Renamed from
3144 libc_feholdsetround_noex_ctx.
3145 (default_libc_feresetround_noex_ctx): Renamed from
3146 libc_feresetround_noex_ctx.
3147 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
3148 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
3149 forwardning to the old implementations under the new names.
3150 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
3151 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
3152 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
3153 (libc_feresetround_ctx): Forward to default implements for i386
3154 and MATH_SET_BOTH_ROUNDING_MODES.
3155 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
3156 Add -DMATH_SET_BOTH_ROUNDING_MODES.
3157
3158 2018-06-20 Joseph Myers <joseph@codesourcery.com>
3159
3160 * string/tst-cmp.c: Include <libc-diag.h>.
3161 (strncmp_max): Disable -Wstringop-overflow= around call to
3162 strncmp.
3163 (strncasecmp_max): Disable -Wstringop-overflow= around call to
3164 strncasecmp.
3165
3166 * string/bug-strpbrk1.c: Include <libc-diag.h>.
3167 (main): Disable -Wunused-value around call to strpbrk.
3168 * string/bug-strspn1.c: Include <libc-diag.h>.
3169 (main): Disable -Wunused-value around call to strspn.
3170
3171 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3172 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3173
3174 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
3175 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
3176
3177 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3178
3179 * math/Makefile (libm-calls): Move s_significandF to...
3180 (gen-libm-calls): ... here.
3181 * math/s_significand_template.c: New file.
3182 * math/s_significand.c: Removed.
3183 * math/s_significandf.c: Removed.
3184 * math/s_significandl.c: Removed.
3185 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
3186 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
3187
3188 * math/e_exp2_template.c (declare_mgen_finite_alias,
3189 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
3190 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
3191 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
3192
3193 2018-06-20 Florian Weimer <fweimer@redhat.com>
3194
3195 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
3196
3197 2018-06-19 Joseph Myers <joseph@codesourcery.com>
3198
3199 [BZ #23280]
3200 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
3201 floating-point number to strtod functions rather than possibly
3202 negating result of those functions.
3203 * stdio-common/tst-scanf-round.c: New file.
3204 * stdio-common/Makefile (tests): Add tst-scanf-round.
3205 ($(objpfx)tst-scanf-round): Depend on $(libm).
3206
3207 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3208
3209 * sysdeps/mach/hurd/localplt.data: Move to...
3210 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
3211 R_386_GLOB_DAT like on Linux i386.
3212
3213 2018-06-18 Joseph Myers <joseph@codesourcery.com>
3214
3215 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
3216 (SHM_STAT_ANY): New macro.
3217 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
3218 (SHM_STAT_ANY): Likewise.
3219 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
3220 (SHM_STAT_ANY): Likewise.
3221 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
3222 (SHM_STAT_ANY): Likewise.
3223 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
3224 (SHM_STAT_ANY): Likewise.
3225 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
3226 (SHM_STAT_ANY): Likewise.
3227 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
3228 (SHM_STAT_ANY): Likewise.
3229 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
3230 (SHM_STAT_ANY): Likewise.
3231 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
3232 (SHM_STAT_ANY): Likewise.
3233 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
3234 (SHM_STAT_ANY): Likewise.
3235 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
3236 (SHM_STAT_ANY): Likewise.
3237 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
3238 (SHM_STAT_ANY): Likewise.
3239
3240 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
3241 (SEM_STAT_ANY): New macro.
3242 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
3243 (SEM_STAT_ANY): Likewise.
3244 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
3245 (SEM_STAT_ANY): Likewise.
3246 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
3247 (SEM_STAT_ANY): Likewise.
3248 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
3249 (SEM_STAT_ANY): Likewise.
3250 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
3251 (SEM_STAT_ANY): Likewise.
3252 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
3253 (SEM_STAT_ANY): Likewise.
3254 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
3255 (SEM_STAT_ANY): Likewise.
3256 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
3257 (SEM_STAT_ANY): Likewise.
3258 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
3259 (SEM_STAT_ANY): Likewise.
3260
3261 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
3262 (MSG_STAT_ANY): New macro.
3263 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
3264 (MSG_STAT_ANY): Likewise.
3265 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
3266 (MSG_STAT_ANY): Likewise.
3267 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
3268 (MSG_STAT_ANY): Likewise.
3269 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
3270 (MSG_STAT_ANY): Likewise.
3271 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
3272 (MSG_STAT_ANY): Likewise.
3273 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
3274 (MSG_STAT_ANY): Likewise.
3275 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
3276 (MSG_STAT_ANY): Likewise.
3277 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
3278 (MSG_STAT_ANY): Likewise.
3279 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
3280 (MSG_STAT_ANY): Likewise.
3281
3282 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3283 (MAP_TYPE): Change value to 0x2b.
3284
3285 2018-06-18 Florian Weimer <fweimer@redhat.com>
3286
3287 [BZ #15722]
3288 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
3289 socket with SOCK_CLOEXEC.
3290
3291 2018-06-18 Joseph Myers <joseph@codesourcery.com>
3292
3293 [BZ #23303]
3294 * sysdeps/powerpc/powerpc64/le/Makefile
3295 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
3296 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
3297 (gnulib-tests): Also add $(f128-loader-link) for
3298 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
3299
3300 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
3301
3302 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
3303 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
3304 of sendfile.
3305 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
3306 (sendfile64): New strong alias.
3307 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
3308 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
3309 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
3310 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
3311 attribute.
3312 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
3313 ___pthread_get_cleanup_stack.
3314 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
3315 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
3316 * mach/shortcut.awk: Make syscall stubs include
3317 <mach-shortcuts-hidden.h> and add hidden definition.
3318 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
3319 (__mach_msg): Add hidden prototype.
3320 * mach/msg.c: Include <mach.h>.
3321 (__mach_msg): Add hidden definition.
3322 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
3323 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
3324 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
3325 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
3326 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
3327 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
3328 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
3329 prototype and definition.
3330 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
3331 hidden target for _hurd_self_sigstate.
3332
3333 2018-06-15 Joseph Myers <joseph@codesourcery.com>
3334
3335 [BZ #23007]
3336 * stdlib/tst-strtod-nan-sign-main.c: New file.
3337 * stdlib/tst-strtod-nan-sign.c: Likewise.
3338 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
3339 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
3340 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
3341 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
3342 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
3343
3344 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
3345
3346 [BZ #23007]
3347 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
3348 appropriate sign.
3349
3350 2018-06-14 Florian Weimer <fweimer@redhat.com>
3351
3352 [BZ #23290]
3353 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
3354 that the result stays within the ISO-8859-1 range.
3355 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
3356 characters are defined in IBM273.
3357
3358 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3359
3360 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
3361 __mach_task_self): Remove attribute_hidden.
3362
3363 2018-06-14 Joseph Myers <joseph@codesourcery.com>
3364
3365 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
3366 ignore -Wrestrict for one test.
3367
3368 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
3369 Szabolcs Nagy <szabolcs.nagy@arm.com>
3370
3371 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
3372
3373 2018-06-14 Florian Weimer <fweimer@redhat.com>
3374
3375 * scripts/update-abilist.sh: Accept empty list of files to patch.
3376
3377 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
3378
3379 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
3380 test-xfail-check-abi-libmachuser): Add.
3381 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
3382 __libc_read and __libc_write to __read and __write.
3383 * sysdeps/hurd/include/hurd/port.h: New file.
3384 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
3385 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
3386 __thread_switch, __evc_wait): Move declarations to...
3387 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
3388 attribute_hidden.
3389 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
3390 use PLT to call _hurd_self_sigstate.
3391
3392 2018-06-13 Joseph Myers <joseph@codesourcery.com>
3393
3394 [BZ #23279]
3395 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
3396 MAX_EXP as overflowing.
3397 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
3398 overflow flag.
3399 (round_str): Output also whether result overflows in each rounding
3400 mode.
3401 * stdlib/tst-strtod-round-data: Add more tests.
3402 * stdlib/tst-strtod-round-data.h: Regenerated.
3403 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
3404 (TEST): Handle extra arguments for overflow flags.
3405 (struct test_overflow): New type.
3406 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
3407 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
3408 (test_in_one_mode): Take argument with overflow information.
3409 (do_test): Update calls to test_in_one_mode.
3410
3411 2018-06-12 Carlos O'Donell <carlos@redhat.com>
3412
3413 * elf/dl-load (_dl_dst_substitute): Correct comment.
3414 (_dl_dst_count): Likewise.
3415
3416 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
3417 lll_futex_timed_wait.
3418
3419 2018-06-12 Joseph Myers <joseph@codesourcery.com>
3420
3421 [BZ #23277]
3422 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
3423 attribute.
3424 * math/test-nan-const.c: New file.
3425 * math/Makefile (tests): Add test-nan-const.
3426 (CFLAGS-test-nan-const.c): New variable.
3427
3428 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
3429
3430 * benchtests/scripts/compare_strings.py (process_results): Add
3431 funcs argument. Compare only functions which are selected.
3432 (main): Check if base function is among selected functions.
3433 Pass selected functions to process_results.
3434 (__main__): Add -f/--functions argument.
3435
3436 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
3437 Hongbo Zhang <hongbo.zhang@linaro.org>
3438
3439 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
3440 __memcpy_falkor for phecda core.
3441 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
3442 __memmove_falkor for phecda core.
3443 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
3444 __memset_falkor for phecda core.
3445 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
3446 for phecda core.
3447 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
3448 macro to identify phecda core.
3449
3450 2018-06-12 Carlos O'Donell <carlos@redhat.com>
3451 Andreas Schwab <schwab@suse.de>
3452 Dmitry V. Levin <ldv@altlinux.org>
3453 Florian Weimer <fweimer@redhat.com>
3454
3455 [BZ #23102]
3456 [BZ #21942]
3457 [BZ #18018]
3458 [BZ #23259]
3459 CVE-2011-0536
3460 * elf/dl-dst.h: Remove DL_DST_COUNT.
3461 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
3462 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
3463 (is_dst): Comment. Support ELF gABI.
3464 (_dl_dst_count): Comment. Simplify and count DSTs.
3465 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
3466 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
3467 locals.
3468
3469 2018-06-12 Zack Weinberg <zackw@panix.com>
3470
3471 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
3472 * sysdeps/unix/sysv/linux/dl-sysdep.c
3473 Include not-cancel.h. Use __close_nocancel instead of __close,
3474 __open64_nocancel instead of __open, __read_nocancel instead of
3475 __libc_read, and __write_nocancel instead of __libc_write.
3476
3477 * csu/check_fds.c (check_one_fd)
3478 * sysdeps/posix/fdopendir.c (__fdopendir)
3479 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
3480 instead of __fcntl and/or __libc_fcntl.
3481
3482 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
3483 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
3484 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
3485 Use __open64_nocancel instead of __open_nocancel.
3486
3487 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
3488 hidden_proto declarations to the end and issue them if either
3489 IS_IN(libc) or IS_IN(rtld).
3490 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3491 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
3492 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
3493 read_nocancel, waitpid_nocancel, write_nocancel.
3494
3495 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
3496 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
3497 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
3498
3499 * nptl/pt-fcntl.c: New file.
3500 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
3501 (libpthread-routines): Add pt-fcntl.
3502 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
3503 (__libc_fcntl): Remove attribute_hidden.
3504 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
3505 __fcntl_nocancel_adjusted, not fcntl_common.
3506 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
3507 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
3508 to fcntl_nocancel.c.
3509 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
3510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
3511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3512 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
3513
3514 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
3515 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
3516 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
3517 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
3518 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
3519 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
3520 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
3521 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
3522 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
3523 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
3524 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
3525 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
3526 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
3527 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
3528 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
3529 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
3530 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
3531 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
3532 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
3533 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
3534
3535 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
3536 libpthread-routines.
3537 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
3538 defines nothing.
3539
3540 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
3541 __libc_read, and __write instead of __libc_write. Define
3542 __open64 in addition to __open.
3543
3544 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
3545
3546 [BZ #23250]
3547 [BZ #10686]
3548 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
3549 to _private_tm[3] and add __glibc_reserved2.
3550 Add _Static_assert of offset of __private_ss == 0x30.
3551 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
3552 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
3553
3554 2018-06-12 Florian Weimer <fweimer@redhat.com>
3555
3556 x86: Make strncmp usable from rtld.
3557 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
3558 __strncmp_ia32 if in libc (and not in rtld).
3559 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
3560 strncmp if not in libc (and not to __strncmp_sse2).
3561
3562 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
3563
3564 [BZ #23140]
3565 * localedata/locales/gd_GB (mon): Rename to...
3566 (alt_mon): This.
3567 (mon): Import from CLDR (genitive case).
3568 * localedata/locales/hsb_DE (mon): Rename to...
3569 (alt_mon): This.
3570 (mon): Import from CLDR (genitive case).
3571 * localedata/locales/wa_BE (mon): Rename to...
3572 (alt_mon): This.
3573 (mon): Add, fill with the proper genitive forms, but CLDR data
3574 is incomplete; completed according to the comments in this file.
3575 (d_t_fmt): Do not use "di" before the month name, no longer needed.
3576
3577 * localedata/locales/wa_BE (country_name): Reword
3578 "Beljike" -> "Beldjike".
3579
3580 2018-06-11 Joseph Myers <joseph@codesourcery.com>
3581
3582 [BZ #23272]
3583 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
3584 cases of non-finite arguments.
3585 * math/libm-test-fma.inc (fma_test_data): Add more tests.
3586
3587 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
3588
3589 [BZ #23174]
3590 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
3591
3592 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3593
3594 [BZ #23264]
3595 * include/unistd.h (__execvpex): New prototype.
3596 * posix/Makefile (tests): Add tst-spawn4.
3597 (tests-internal): Add tst-spawn4-compat.
3598 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
3599 * posix/tst-spawn4-compat.c: New file.
3600 * posix/tst-spawn4.c: Likewise.
3601 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
3602 binaries as shell scripts.
3603 * sysdeps/posix/spawni.c (__spawni): Likewise.
3604
3605 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
3606
3607 [BZ #23145]
3608 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
3609 ($(all-built-dso:=.dynsym): New target.
3610 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
3611 ($(objpfx)check-initfini.out): New target.
3612 (generated): Add check-initfini.out.
3613 * scripts/check-initfini.awk: New file.
3614 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
3615 (_fini): Likewise.
3616 * sysdeps/alpha/crti.S (_init): Mark as hidden.
3617 (_fini): Likewise.
3618 * sysdeps/arm/crti.S (_init): Mark as hidden.
3619 (_fini): Likewise.
3620 * sysdeps/hppa/crti.S (_init): Mark as hidden.
3621 (_fini): Likewise.
3622 * sysdeps/i386/crti.S (_init): Mark as hidden.
3623 (_fini): Likewise.
3624 * sysdeps/ia64/crti.S (_init): Mark as hidden.
3625 (_fini): Likewise.
3626 * sysdeps/m68k/crti.S (_init): Mark as hidden.
3627 (_fini): Likewise.
3628 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
3629 (_fini): Likewise.
3630 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
3631 (_fini): Likewise.
3632 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
3633 (_fini): Likewise.
3634 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
3635 (_fini): Likewise.
3636 * sysdeps/nios2/crti.S (_init): Mark as hidden.
3637 (_fini): Likewise.
3638 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
3639 (_fini): Likewise.
3640 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
3641 (_fini): Likewise.
3642 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
3643 (_fini): Likewise.
3644 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
3645 (_fini): Likewise.
3646 * sysdeps/sh/crti.S (_init): Mark as hidden.
3647 (_fini): Likewise.
3648 * sysdeps/sparc/crti.S (_init): Mark as hidden.
3649 (_fini): Likewise.
3650 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
3651 (_fini): Likewise.
3652
3653 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3654
3655 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
3656 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
3657 and TF redirection to KFtype and KF only when the default
3658 long double type is not the IEEE 128-bit floating point type.
3659
3660 2018-06-05 Joseph Myers <joseph@codesourcery.com>
3661
3662 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
3663 macro.
3664 (HWCAP_USCAT): Likewise.
3665 (HWCAP_ILRCPC): Likewise.
3666 (HWCAP_FLAGM): Likewise.
3667 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3668 Increase to 28.
3669 (_dl_aarch64_cap_flags): Add new flag names.
3670
3671 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
3672 (MAP_FIXED_NOREPLACE): New macro.
3673 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
3674 (MAP_FIXED_NOREPLACE): Likewise.
3675 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
3676 (MAP_FIXED_NOREPLACE): Likewise.
3677 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3678 (MAP_FIXED_NOREPLACE): Likewise.
3679 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
3680 (MAP_FIXED_NOREPLACE): Likewise.
3681 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
3682 (MAP_FIXED_NOREPLACE): Likewise.
3683 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
3684 (MAP_FIXED_NOREPLACE): Likewise.
3685 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
3686 (MAP_FIXED_NOREPLACE): Likewise.
3687 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
3688 (MAP_FIXED_NOREPLACE): Likewise.
3689 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
3690 (MAP_FIXED_NOREPLACE): Likewise.
3691 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
3692 (MAP_FIXED_NOREPLACE): Likewise.
3693 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
3694 (MAP_FIXED_NOREPLACE): Likewise.
3695 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
3696 (MAP_FIXED_NOREPLACE): Likewise.
3697 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
3698 (MAP_FIXED_NOREPLACE): Likewise.
3699 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
3700 (MAP_FIXED_NOREPLACE): Likewise.
3701
3702 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3703 version to 4.17.
3704
3705 2018-06-04 Joseph Myers <joseph@codesourcery.com>
3706
3707 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3708 version to 4.17
3709
3710 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3711
3712 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
3713 int.
3714 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
3715
3716 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3717
3718 * benchtests/scripts/compare_string.py: (process_results) Catch
3719 exception in non-existent base_func and catch exception in
3720 non-existent attribute.
3721 (parse_file) Catch exception if input file does not exist.
3722
3723 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3724
3725 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
3726 options to avoid diff calculation and omit header, respectively.
3727 (main): process --no-diff and --no-header
3728
3729 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3730 H.J. Lu <hongjiu.lu@intel.com>
3731
3732 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3733 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
3734 wcsncmp-sse2.
3735 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3736 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
3737 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
3738 and __wcsncmp_sse2.
3739 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
3740 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3741 AVX unaligned load is fast and vzeroupper is preferred.
3742 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
3743 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
3744 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
3745 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
3746 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
3747 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
3748 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
3749 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
3750 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
3751 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
3752 is undefined.
3753
3754 2018-06-01 Florian Weimer <fweimer@redhat.com>
3755
3756 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
3757 configuring with --disable-multi-arch, building with
3758 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
3759 Haswell-era CPU.
3760
3761 2018-06-01 Florian Weimer <fweimer@redhat.com>
3762
3763 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
3764 results from building with “-march=x86-64 -mtune=generic
3765 -mfpmath=sse” and running on a Haswell-era CPU.
3766
3767 2018-06-01 Joseph Myers <joseph@codesourcery.com>
3768
3769 [BZ #18473]
3770 * soft-fp/sqrttf2.c: Remove file.
3771 * soft-fp/sqrtdf2.c: Move to ....
3772 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
3773 <shlib-compat.h>.
3774 (__sqrtdf2): Make conditional on
3775 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
3776 symbol.
3777 * soft-fp/sqrtsf2.c: Move to ....
3778 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
3779 <shlib-compat.h>.
3780 (__sqrtsf2): Make conditional on
3781 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
3782 symbol.
3783 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
3784 (gcc-double-routines): Remove sqrtdf2.
3785 (gcc-quad-routines): Remove sqrttf2.
3786 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
3787 Do not filter out sqrtsf2 and sqrtdf2.
3788 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3789 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
3790
3791 2018-06-01 Florian Weimer <fweimer@redhat.com>
3792
3793 * sysdeps/generic/libcidn.abilist: Remove file.
3794
3795 2018-06-01 Florian Weimer <fweimer@redhat.com>
3796
3797 [BZ #23236]
3798 * libio/strfile.h (struct _IO_str_fields): Rename members to
3799 discourage their use and add comment.
3800 (_IO_STR_DYNAMIC): Remove unused macro.
3801 * libio/strops.c (_IO_str_init_static_internal): Do not use
3802 callback pointers. Call malloc and free.
3803 (_IO_str_overflow): Do not use callback pointers. Call malloc
3804 and free.
3805 (enlarge_userbuf): Likewise.
3806 (_IO_str_finish): Call free.
3807 * libio/wstrops.c (_IO_wstr_init_static): Initialize
3808 _allocate_buffer_unused.
3809 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
3810 and free.
3811 (enlarge_userbuf): Likewise.
3812 (_IO_wstr_finish): Call free.
3813 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
3814 _allocate_buffer_unused, _free_buffer_unused.
3815 * libio/memstream.c (__open_memstream): Likewise.
3816 * libio/vasprintf.c (_IO_vasprintf): Likewise.
3817 * libio/wmemstream.c (open_wmemstream): Likewise.
3818
3819 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
3820
3821 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
3822 AMD Ryzen 7 1800X.
3823
3824 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
3825
3826 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
3827 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
3828 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
3829 New file.
3830 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
3831 Likewise.
3832 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
3833
3834 2018-05-29 Florian Weimer <fweimer@redhat.com>
3835
3836 * support/Makefile (libsupport-routines): Add
3837 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
3838 xpthread_barrierattr_setpshared.
3839 * support/xpthread_barrierattr_destroy.c: New file.
3840 * support/xpthread_barrierattr_init.c: Likewise.
3841 * support/xpthread_barrierattr_setpshared.c: Likewise.
3842
3843 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
3844
3845 [BZ #23206]
3846 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
3847 _r_debug and update DT_DEBUG for debugger.
3848
3849 2018-05-29 Florian Weimer <fweimer@redhat.com>
3850
3851 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
3852 (tst-strtod5i.out): Likewise.
3853
3854 2018-05-25 Joseph Myers <joseph@codesourcery.com>
3855
3856 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
3857 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
3858 (sparc64-quad-routines): New variable. Moved from ....
3859 [$(subdir) = soft-fp] (sysdep_routines): Add
3860 $(sparc64-quad-routines). Moved from ....
3861 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
3862 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
3863 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
3864 moved from ....
3865 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
3866 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
3867 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
3868 * sysdeps/sparc/sparc64/qp_add.c: ... here.
3869 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
3870 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
3871 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
3872 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
3873 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
3874 * sysdeps/sparc/sparc64/qp_div.c: ... here.
3875 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
3876 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
3877 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
3878 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
3879 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
3880 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
3881 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
3882 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
3883 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
3884 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
3885 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
3886 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
3887 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
3888 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
3889 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
3890 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
3891 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
3892 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
3893 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
3894 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
3895 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
3896 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
3897 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
3898 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
3899 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
3900 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
3901 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
3902 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
3903 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
3904 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
3905 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
3906 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
3907 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
3908 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
3909 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
3910 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
3911 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
3912 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
3913 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
3914 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
3915 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
3916 * sysdeps/sparc/sparc64/qp_util.c: ... here.
3917 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
3918 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
3919 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
3920 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
3921 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
3922 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
3923
3924 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
3925 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
3926 (sparc32-quad-routines): New variable. Moved from ....
3927 [$(subdir) = soft-fp] (sysdep_routines): Add
3928 $(sparc32-quad-routines). Moved from ....
3929 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
3930 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
3931 moved from ....
3932 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
3933 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
3934 * sysdeps/sparc/sparc32/q_add.c: ... here.
3935 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
3936 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
3937 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
3938 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
3939 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
3940 * sysdeps/sparc/sparc32/q_div.c: ... here.
3941 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
3942 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
3943 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
3944 * sysdeps/sparc/sparc32/q_feq.c: ... here.
3945 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
3946 * sysdeps/sparc/sparc32/q_fge.c: ... here.
3947 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
3948 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
3949 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
3950 * sysdeps/sparc/sparc32/q_fle.c: ... here.
3951 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
3952 * sysdeps/sparc/sparc32/q_flt.c: ... here.
3953 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
3954 * sysdeps/sparc/sparc32/q_fne.c: ... here.
3955 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
3956 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
3957 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
3958 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
3959 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
3960 * sysdeps/sparc/sparc32/q_mul.c: ... here.
3961 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
3962 * sysdeps/sparc/sparc32/q_neg.c: ... here.
3963 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
3964 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
3965 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
3966 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
3967 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
3968 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
3969 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
3970 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
3971 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
3972 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
3973 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
3974 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
3975 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
3976 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
3977 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
3978 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
3979 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
3980 * sysdeps/sparc/sparc32/q_sub.c: ... here.
3981 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
3982 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
3983 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
3984 * sysdeps/sparc/sparc32/q_util.c: ... here.
3985 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
3986 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
3987 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
3988 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
3989
3990 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3991 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3992
3993 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
3994 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
3995 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
3996 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
3997
3998 2018-05-24 Joseph Myers <joseph@codesourcery.com>
3999
4000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
4001 powerpc/soft-fp.
4002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4003 Likewise.
4004 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
4005 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
4006
4007 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4008
4009 [BZ #23171]
4010 * math/math.h [C++] (iseqsig): Fix parameter type for the long
4011 double version.
4012
4013 2018-05-23 Joseph Myers <joseph@codesourcery.com>
4014
4015 * sysdeps/sh/Implies: Remove sh/soft-fp.
4016 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
4017 * sysdeps/sh/sfp-machine.h: ... here.
4018
4019 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
4020
4021 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4022 (__mempcpy_erms): Skip zero length.
4023 (__memmove_erms): Likewise.
4024 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4025 (__memset_erms): Likewise.
4026
4027 2018-05-23 Joseph Myers <joseph@codesourcery.com>
4028
4029 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
4030 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
4031 Add functions moved from ....
4032 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
4033 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
4034 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
4035 from ....
4036 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
4037 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
4038 * sysdeps/alpha/e_sqrtl.c: ... here.
4039 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
4040 * sysdeps/alpha/local-soft-fp.h: ... here.
4041 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
4042 * sysdeps/alpha/ots_add.c: ... here.
4043 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
4044 * sysdeps/alpha/ots_cmp.c: ... here.
4045 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
4046 * sysdeps/alpha/ots_cmpe.c: ... here.
4047 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
4048 * sysdeps/alpha/ots_cvtqux.c: ... here.
4049 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
4050 * sysdeps/alpha/ots_cvtqx.c: ... here.
4051 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
4052 * sysdeps/alpha/ots_cvttx.c: ... here.
4053 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
4054 * sysdeps/alpha/ots_cvtxq.c: ... here.
4055 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
4056 * sysdeps/alpha/ots_cvtxt.c: ... here.
4057 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
4058 * sysdeps/alpha/ots_div.c: ... here.
4059 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
4060 * sysdeps/alpha/ots_mul.c: ... here.
4061 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
4062 * sysdeps/alpha/ots_nintxq.c: ... here.
4063 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
4064 * sysdeps/alpha/ots_sub.c: ... here.
4065 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
4066 * sysdeps/alpha/sfp-machine.h: ... here.
4067
4068 2018-05-23 Florian Weimer <fweimer@redhat.com>
4069
4070 [BZ #19728]
4071 [BZ #19729]
4072 [BZ #22247]
4073 CVE-2016-6261
4074 CVE-2016-6263
4075 CVE-2017-14062
4076 Switch to extern IDNA implementation (libidn2).
4077 * libidn: Remove subdirectory.
4078 * LICENSES: Do not mention licensing conditions for the removed
4079 libidn code.
4080 * config.h.in (HAVE_LIBIDN): Remove.
4081 * include/dlfcn.h (__libc_dlopen): Update comment.
4082 * include/idna.h: Remove file.
4083 * inet/Makefile (routines): Add idna.
4084 (tests-static, tests-internal): Add tst-idna_name_classify.
4085 (LOCALES): Generate locales for tests.
4086 (tst-idna_name_classify.out): Depend on generated locales.
4087 * inet/idna_name_classify.c: New file.
4088 * inet/tst-idna_name_classify.c: Likewise.
4089 * inet/net-internal.h (__idna_to_dns_encoding)
4090 (__idna_from_dns_encoding): Declare.
4091 * inet/net-internal.h (enum idna_name_classification): Define.
4092 (__idna_name_classify): Declare.
4093 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
4094 __idna_from_dns_encoding.
4095 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
4096 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
4097 name as a fallback in case of encoding errors.
4098 (getnameinfo): Use DEPRECATED_NI_IDN.
4099 * inet/idna.c: New file.
4100 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
4101 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
4102 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
4103 (modules-names): Add tst-no-libidn2.
4104 (extra-test-objs): Add tst-no-libidn2.os.
4105 (LDFLAGS-tst-no-libidn2.so): Set soname.
4106 (LOCALES): Set, and generate locales.
4107 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
4108 (tst-resolv-ai_idn-latin1): Likewise.
4109 (tst-resolv-ai_idn-nolibidn2): Likewise.
4110 (tst-resolv-ai_idn.out): Depend on locales.
4111 (tst-resolv-ai_idn-latin1.out): Depend on locales.
4112 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
4113 tst-no-libidn2.so.
4114 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
4115 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
4116 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
4117 * resolv/tst-resolv-ai_idn.c: New file.
4118 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
4119 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
4120 * resolv/tst-no-libidn2.c: Likewise.
4121 * support/support_format_addrinfo.c (format_ai_flags): Do not
4122 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
4123 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
4124 (gaih_inet): Call __idna_to_dns_encoding and
4125 __idna_from_dns_encoding, and use the original (punycode) name if
4126 __idna_from_dns_encoding fails due to an encoding error.
4127 (getaddrinfo): Use DEPRECATED_AI_IDN.
4128 * sysdeps/unix/inet/Subdirs (libidn): Remove.
4129 * sysdeps/unix/inet/configure: Remove file.
4130 * sysdeps/unix/inet/configure.ac: Likewise.
4131
4132 2018-05-23 Florian Weimer <fweimer@redhat.com>
4133
4134 Implement allocate_once.
4135 * include/allocate_once.h: New file.
4136 * misc/allocate_once.c: Likewise.
4137 * misc/tst-allocate_once.c: Likewise.
4138 * misc/Makefile (routines): Add allocate_once.
4139 (tests-internal): Add tst-allocate_once.
4140 (generated): Add tst-allocate_once.mtrace,
4141 tst-allocate_once-mem.out.
4142 (tests-special): Add tst-allocate_once-mem.out.
4143 (tst-allocate_once-ENV): Set MALLOC_TRACE.
4144 (tst-allocate_once-mem.out): Call mtrace.
4145 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
4146
4147 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
4148
4149 [BZ #23196]
4150 * string/test-memcpy.c (do_test1): New function.
4151 (test_main): Call it.
4152
4153 2018-05-23 Andreas Schwab <schwab@suse.de>
4154
4155 [BZ #23196]
4156 CVE-2018-11237
4157 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
4158 (L(preloop_large)): Save initial destination pointer in %r11 and
4159 use it instead of %rax after the loop.
4160 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
4161
4162 2018-05-22 Joseph Myers <joseph@codesourcery.com>
4163
4164 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
4165 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
4166 -I../soft-fp. Moved from ....
4167 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
4168 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
4169 * sysdeps/aarch64/e_sqrtl.c: ... here.
4170 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
4171 * sysdeps/aarch64/sfp-machine.h: ... here.
4172
4173 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
4174 -Wmaybe-uninitialized around access to fq[0].
4175 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
4176 Likewise.
4177
4178 [BZ #18471]
4179 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
4180 aliases for non-libc case of versioned symbols.
4181 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
4182 (llseek): Define as compat symbol if
4183 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
4184 with link warning.
4185 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
4186 Make into a compat symbol, disabled for minimum symbol version
4187 GLIBC_2.28 and later.
4188 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
4189
4190 2018-05-22 Florian Weimer <fweimer@redhat.com>
4191
4192 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
4193 not add -mpreferred-stack-boundary=4.
4194 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
4195 (stack-align-test-flags): Likewise.
4196 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
4197 Likewise.
4198 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
4199 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
4200 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
4201 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
4202 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
4203 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
4204 (CFLAGS-tst-align2.c): Likewise.
4205
4206 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
4207
4208 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
4209 (index_arch_Prefer_FSRM): Likewise.
4210 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4211 Also check Prefer_FSRM.
4212 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
4213 Also return OPTIMIZE (erms) for Prefer_FSRM.
4214
4215 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
4216
4217 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
4218 (index_cpu_FSRM): Likewise.
4219 (reg_FSRM): Likewise.
4220
4221 2018-05-18 Joseph Myers <joseph@codesourcery.com>
4222
4223 * math/gen-tgmath-tests.py: Import sys.
4224 (Tests.__init__): Initialize macros_seen.
4225 (Tests.add_tests): Add macro to macros_seen. Only generate tests
4226 if requested to do so for this macro.
4227 (Tests.add_all_tests): Take argument for macro for which to
4228 generate tests.
4229 (Tests.check_macro_list): New function.
4230 (main): Handle check-list argument and argument specifying macro
4231 for which to generate tests.
4232 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
4233 [PYTHON] (tgmath3-macro-tests): Likewise.
4234 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
4235 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
4236 not test-tgmath3.c.
4237 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
4238 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
4239 to CFLAGS.
4240 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
4241 [PYTHON] ($(foreach
4242 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
4243 rule.
4244 [PYTHON] (tests-special): Add
4245 $(objpfx)test-tgmath3-macro-list.out.
4246 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
4247
4248 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
4249 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
4250 later.
4251
4252 [BZ #22639]
4253 * time/tzset.c (SECSPERDAY): Cast to time_t.
4254 * time/tst-y2039.c: New file.
4255 * time/Makefile (tests): Add tst-y2039.
4256
4257 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4258
4259 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4260 (PREFETCH_ONE_SET): Remove duplicate line.
4261
4262 2018-05-17 Florian Weimer <fweimer@redhat.com>
4263
4264 * sysdeps/generic/math-type-macros-double.h: Include
4265 <math-nan-payload-double.h> after <libm-alias-double.h>.
4266 * sysdeps/generic/math-type-macros-float.h: Include
4267 <math-nan-payload-float.h> after <libm-alias-float.h>.
4268 * sysdeps/generic/math-type-macros-float128.h: Include
4269 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
4270 * sysdeps/generic/math-type-macros-ldouble.h: Include
4271 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
4272
4273 2018-05-17 Andreas Schwab <schwab@suse.de>
4274
4275 * resolv/res_send.c (__res_context_send): Don't set errno when
4276 returing error after malloc failure.
4277
4278 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
4279
4280 * nptl/allocatestack.c (allocate_stack): Remove the
4281 !__ASSUME_PRIVATE_FUTEX paths.
4282 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
4283 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
4284 Likewise.
4285 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
4286 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4287 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4288 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4289 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
4290 !__ASSUME_PRIVATE_FUTEX path.
4291 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
4292 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
4293 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
4294 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
4295 !__ASSUME_PRIVATE_FUTEX macros.
4296 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4297 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
4298 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4299 * sysdeps/unix/sysv/linux/kernel-features.h
4300 (__ASSUME_PRIVATE_FUTEX): Removed.
4301
4302 2018-05-17 Joseph Myers <joseph@codesourcery.com>
4303
4304 * math/Makefile (libm-narrow-fns): Add div.
4305 (libm-test-funcs-narrow): Likewise.
4306 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
4307 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
4308 * math/gen-auto-libm-tests.c (test_functions): Add div.
4309 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
4310 (NARROW_DIV_ROUND_TO_ODD): Likewise.
4311 (NARROW_DIV_TRIVIAL): Likewise.
4312 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
4313 macro.
4314 (__ddivl): Likewise.
4315 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
4316 ddiv.
4317 (CFLAGS-nldbl-ddiv.c): New variable.
4318 (CFLAGS-nldbl-fdiv.c): Likewise.
4319 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
4320 __nldbl_ddivl.
4321 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
4322 prototype.
4323 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
4324 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
4325 * math/auto-libm-test-in: Add tests of div.
4326 * math/auto-libm-test-out-narrow-div: New generated file.
4327 * math/libm-test-narrow-div.inc: New file.
4328 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
4329 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
4330 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
4331 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
4332 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
4333 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
4334 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
4335 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
4336 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
4337 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
4338 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
4339 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
4340 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
4341 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
4342 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
4343 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4344 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
4345 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4346 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4347 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4348 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4349 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4350 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4351 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4352 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4353 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4354 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4355 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4356 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4357 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4358 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4359 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
4361 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
4362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
4363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
4364 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
4365 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4366 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4367 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4368 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4369 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4370 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4371 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4372
4373 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4374
4375 [BZ #23178]
4376 * nscd/nscd-client.h (sendfileall): Remove prototype.
4377 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
4378 (handle_request): Use writeall instead of sendfileall.
4379 * nscd/aicache.c (addhstaiX): Likewise.
4380 * nscd/grpcache.c (cache_addgr): Likewise.
4381 * nscd/hstcache.c (cache_addhst): Likewise.
4382 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4383 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
4384 * nscd/pwdcache.c (cache_addpw): Likewise.
4385 * nscd/servicescache.c (cache_addserv): Likewise.
4386 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
4387 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
4388 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
4389 Remove define.
4390
4391 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
4392
4393 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
4394 Include <string/strncat.c>.
4395 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
4396 alias.
4397 (__GI___strncat): New hidden alias.
4398
4399 2018-05-16 Joseph Myers <joseph@codesourcery.com>
4400
4401 * sysdeps/mips/mips32/libm-test-ulps: Update.
4402 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4403
4404 2018-05-16 Florian Weimer <fweimer@redhat.com>
4405
4406 * support/Makefile (libsupport-routines): Add support_quote_blob,
4407 support_test_compare_blob.
4408 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
4409 * support/check.h (TEST_COMPARE_BLOB): Define.
4410 (support_test_compare_blob): Declare.
4411 * support/support.h (support_quote_blob): Declare.
4412 * support/support_quote_blob.c: New file.
4413 * support/support_test_compare_blob.c: Likewise.
4414 * support/tst-support_quote_blob.c: Likewise.
4415 * support/tst-test_compare_blob.c: Likewise.
4416
4417 2018-05-16 Florian Weimer <fweimer@redhat.com>
4418
4419 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
4420 of <strtod_nan_double.h>.
4421 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
4422 instead of SET_MANTISSA.
4423 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
4424 of include <strtod_nan_float.h>.
4425 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
4426 instead of <strtod_nan_ldouble.h>.
4427 * stdlib/strtod_nan_double.h: Move to ...
4428 * sysdeps/generic/math-nan-payload-double.h: ... here.
4429 (FLOAT): Remove definition.
4430 (SET_MANTISSA): Rename to ...
4431 (SET_NAN_PAYLOAD): ... this.
4432 * stdlib/strtod_nan_float.h: Move to ...
4433 * sysdeps/generic/math-nan-payload-float.h: ... here.
4434 (FLOAT): Remove definition.
4435 (SET_MANTISSA): Rename to ...
4436 (SET_NAN_PAYLOAD): ... this.
4437 * sysdeps/generic/math-type-macros-double.h: Include
4438 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
4439 instead of <math-svid-compat.h>.
4440 * sysdeps/generic/math-type-macros-float.h: Include
4441 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
4442 instead of <math-svid-compat.h>.
4443 * sysdeps/generic/math-type-macros-float128.h: Include
4444 <math-nan-payload-float128.h>.
4445 * sysdeps/generic/math-type-macros-ldouble.h: Include
4446 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
4447 instead of <math-svid-compat.h>.
4448 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
4449 check for definition.
4450 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
4451 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
4452 Include <ieee754_float128.h>.
4453 (FLOAT): Remove definition.
4454 (SET_MANTISSA): Rename to ...
4455 (SET_NAN_PAYLOAD): ... this.
4456 * sysdeps/ieee754/float128/strtof128_nan.c: Include
4457 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
4458 Do not include <float128_private.h>.
4459 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
4460 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
4461 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
4462 (FLOAT): Remove definition.
4463 (SET_MANTISSA): Rename to ...
4464 (SET_NAN_PAYLOAD): ... this.
4465 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
4466 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
4467 (FLOAT): Remove definition.
4468 (SET_MANTISSA): Rename to ...
4469 (SET_NAN_PAYLOAD): ... this.
4470 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
4471 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
4472 (FLOAT): Remove definition.
4473 (SET_MANTISSA): Rename to ...
4474 (SET_NAN_PAYLOAD): ... this.
4475 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
4476 of "../stdlib/strtod_nan_double.h".
4477 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
4478 of "../stdlib/strtod_nan_float.h".
4479 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
4480 instead of "../stdlib/strtod_nan_ldouble.h".
4481 * manual/arith.texi (Parsing of Floats): Adjust comment.
4482
4483 2018-05-16 Joseph Myers <joseph@codesourcery.com>
4484
4485 * math/Makefile (libm-narrow-fns): Add mul.
4486 (libm-test-funcs-narrow): Likewise.
4487 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
4488 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
4489 * math/gen-auto-libm-tests.c (test_functions): Add mul.
4490 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
4491 (NARROW_MUL_ROUND_TO_ODD): Likewise.
4492 (NARROW_MUL_TRIVIAL): Likewise.
4493 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
4494 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
4495 macro.
4496 (__dmull): Likewise.
4497 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
4498 dmul.
4499 (CFLAGS-nldbl-dmul.c): New variable.
4500 (CFLAGS-nldbl-fmul.c): Likewise.
4501 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
4502 __nldbl_dmull.
4503 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
4504 prototype.
4505 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
4506 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
4507 * math/auto-libm-test-in: Add tests of mul.
4508 * math/auto-libm-test-out-narrow-mul: New generated file.
4509 * math/libm-test-narrow-mul.inc: New file.
4510 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
4511 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
4512 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
4513 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
4514 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
4515 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
4516 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
4517 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
4518 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
4519 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
4520 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
4521 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
4522 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
4523 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
4524 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
4525 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4526 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
4527 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4528 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4529 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4530 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4531 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4532 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4533 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4534 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4535 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4536 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4537 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4538 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4539 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4540 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4541 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
4543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
4544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
4545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
4546 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
4547 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4548 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4549 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4550 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4551 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4552 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4553 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4554
4555 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
4556
4557 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4558 with *%eax in call.
4559
4560 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
4561
4562 * sysdeps/i386/ldsodefs.h: Removed.
4563 * sysdeps/x86_64/ldsodefs.h: Moved to ...
4564 * sysdeps/x86/ldsodefs.h: This.
4565 (La_i86_regs): New.
4566 (La_i86_retval): Likewise.
4567 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
4568 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
4569
4570 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
4571
4572 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
4573 unnecessary testl.
4574
4575 2018-05-13 Alan Modra <amodra@gmail.com>
4576
4577 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
4578 R_PARISC_TLS_DTPOFF32 reloc addend.
4579
4580 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4581
4582 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
4583 * math/math.h: Restrict the prototype definition for the functions
4584 issignaling(_Float128) and iszero(_Float128); and template
4585 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
4586 __HAVE_FLOAT128_UNLIKE_LDBL.
4587 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
4588 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
4589 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
4590 __f128() constants; define the type _Float128 as long double;
4591 and reuse long double in __CFLOAT128.
4592
4593 2018-05-11 Joseph Myers <joseph@codesourcery.com>
4594
4595 * sysdeps/generic/math_private.h: Do not include
4596 <math-barriers.h>.
4597 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
4598 <math_private.h>.
4599 * math/fromfp.h: Include <math-barriers.h>.
4600 * math/math-narrow.h: Likewise.
4601 * math/s_nextafter.c: Likewise.
4602 * math/s_nexttowardf.c: Likewise.
4603 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
4604 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
4605 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
4606 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
4607 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4608 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4609 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4610 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4611 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4612 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4613 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4614 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4615 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4616 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4617 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
4618 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
4619 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4620 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4621 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4622 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4623 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
4624 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4625 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4626 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4627 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4628 * sysdeps/ieee754/k_standardl.c: Likewise.
4629 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4630 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4631 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4632 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4633 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4634 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4635 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4636 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4637 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4638 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4639 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4640 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4641 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4642 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4643 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4644 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
4645 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
4646 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
4647 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4648 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4649 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
4650 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
4651
4652 2018-05-11 Florian Weimer <fweimer@redhat.com>
4653
4654 Use 64-bit epoch values in the time zone file parser.
4655 * include/time.h (internal_time_t): Define.
4656 (__tzfile_compute): Use it.
4657 * time/tzfile.c (struct leap): Use internal_time_t for epoch
4658 member.
4659 (transitions): Switch to internal_time_t.
4660 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
4661 types.
4662 (__tzfile_compute): Use internal_time_t for timer argument. Check
4663 for truncation before calling __offtime.
4664
4665 2018-05-11 Florian Weimer <fweimer@redhat.com>
4666
4667 [BZ #23166]
4668 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
4669 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
4670 Likewise.
4671 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
4672 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
4673 export without --enable-obsolete-rpc.
4674 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
4675 symbol. This should not have been exported, ever.
4676
4677 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
4678
4679 [BZ #23152]
4680 * localedata/locales/gd_GB (abmon): Fix typo in May:
4681 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
4682
4683 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
4684
4685 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
4686 Use multiple registers to copy data in loop tail.
4687
4688 * sysdeps/aarch64/multiarch/memmove_falkor.S
4689 (__memmove_falkor): Use multiple registers to move data in
4690 loop tail.
4691
4692 2018-05-10 Joseph Myers <joseph@codesourcery.com>
4693
4694 * math/math-underflow.h: New file.
4695 * sysdeps/generic/math_private.h: Do not include <float.h>.
4696 (fabs_tg): Remove macro. Moved to math-underflow.h.
4697 (min_of_type_f): Likewise.
4698 (min_of_type_): Likewise.
4699 (min_of_type_l): Likewise.
4700 (min_of_type_f128): Likewise.
4701 (min_of_type): Likewise.
4702 (math_check_force_underflow): Likewise.
4703 (math_check_force_underflow_nonneg): Likewise.
4704 (math_check_force_underflow_complex): Likewise.
4705 * math/e_exp2_template.c: Include <math-underflow.h>.
4706 * math/k_casinh_template.c: Likewise.
4707 * math/s_catan_template.c: Likewise.
4708 * math/s_catanh_template.c: Likewise.
4709 * math/s_ccosh_template.c: Likewise.
4710 * math/s_cexp_template.c: Likewise.
4711 * math/s_clog10_template.c: Likewise.
4712 * math/s_clog_template.c: Likewise.
4713 * math/s_csin_template.c: Likewise.
4714 * math/s_csinh_template.c: Likewise.
4715 * math/s_csqrt_template.c: Likewise.
4716 * math/s_ctan_template.c: Likewise.
4717 * math/s_ctanh_template.c: Likewise.
4718 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4719 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4720 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4721 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4722 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4723 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4724 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4725 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4726 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4727 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4728 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4729 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4730 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4731 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4732 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4733 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4734 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4735 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4736 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4737 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4738 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4739 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4740 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4741 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4742 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4743 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4744 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
4745 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4746 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4747 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4748 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4749 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4750 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4751 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4752 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4753 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4754 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4755 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4756 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4757 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4758 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4759 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4760 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4761 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4762 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4763 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4764 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4765 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4766 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4767 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4768 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
4769 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
4770 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
4771 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4772 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4773 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
4774 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4775 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
4776 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4777 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4778 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4779 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
4780 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4781 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4782 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4783 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4784 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4785 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
4786 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4787 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
4788 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4789 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
4790 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4791 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
4792 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4793 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4794 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4795 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4796 * sysdeps/x86/fpu/powl_helper.c: Likewise.
4797 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
4798 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
4799 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4800 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
4801 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
4802
4803 2018-05-09 Joseph Myers <joseph@codesourcery.com>
4804
4805 * sysdeps/generic/math-barriers.h: New file.
4806 * sysdeps/generic/math_private.h [!math_opt_barrier]
4807 (math_opt_barrier): Move to math-barriers.h.
4808 [!math_opt_barrier] (math_force_eval): Likewise.
4809 * sysdeps/aarch64/fpu/math-barriers.h: New file.
4810 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
4811 math-barriers.h.
4812 (math_force_eval): Likewise.
4813 * sysdeps/alpha/fpu/math-barriers.h: New file.
4814 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
4815 math-barriers.h.
4816 (math_force_eval): Likewise.
4817 * sysdeps/x86/fpu/math-barriers.h: New file.
4818 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
4819 math-barriers.h.
4820 (math_force_eval): Likewise.
4821 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
4822 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
4823 multiple-include guard for rename.
4824 * sysdeps/powerpc/fpu/math-barriers.h: New file.
4825 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
4826 math-barriers.h.
4827 (math_force_eval): Likewise.
4828
4829 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
4830
4831 [BZ #22786]
4832 CVE-2018-11236
4833 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
4834 computation.
4835 * stdlib/Makefile (test-bz22786): New test.
4836 * stdlib/test-bz22786.c: New test.
4837
4838 2018-05-09 Joseph Myers <joseph@codesourcery.com>
4839
4840 * include/math-narrow-eval.h: New file. Contents moved from ....
4841 * sysdeps/generic/math_private.h: ... here.
4842 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
4843 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
4844 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
4845 * stdlib/strtod_l.c: Likewise.
4846 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
4847 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
4848 * sysdeps/i386/fpu/s_fdim.c: Likewise.
4849 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4850 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4851 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4852 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4853 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
4854 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4855 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
4856 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4857 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
4858 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4859 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4860 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4861 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
4862 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
4863 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
4864 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4865 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4866 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4867 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4868 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4869 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4870 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
4871 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4872 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4873 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4874 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4875
4876 2018-05-08 Andreas Schwab <schwab@suse.de>
4877
4878 * sysdeps/nptl/internaltypes.h: Fix comment.
4879
4880 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
4881
4882 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4883 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
4884 hidden.
4885
4886 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
4887
4888 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
4889 of I into loop header.
4890 * benchtests/bench-memmove-walk.c
4891 (test_main): Likewise.
4892
4893 2018-05-07 Alexandre Oliva <oliva@gnu.org>
4894
4895 Revert:
4896 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
4897 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
4898
4899 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4900
4901 [BZ #20419]
4902 * elf/dl-load.c (open_verify): Fix stack overflow.
4903 * elf/Makefile (tst-big-note): New test.
4904 * elf/tst-big-note-lib.S: New.
4905 * elf/tst-big-note.c: New.
4906
4907 2018-05-04 Joseph Myers <joseph@codesourcery.com>
4908
4909 * scripts/abilist.awk: Ignore absolute symbols.
4910 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
4911 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
4912 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
4913 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
4914 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
4915 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
4916 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4917 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
4918 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
4919 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
4920 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
4921 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
4922 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
4923 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
4924 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
4925 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
4926 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
4927 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
4928 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4929 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
4930 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
4931 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
4932 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
4933 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
4934 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
4935 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
4936 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
4937 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
4938 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4939 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
4940 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
4941 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4942 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
4943 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
4944 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
4945 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
4946 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
4947 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
4948 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
4949 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
4950 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
4951 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4952 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
4953 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
4954 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4955 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
4956 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
4957 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
4958 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
4959 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
4960 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
4961 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
4962 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
4963 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
4964 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4965 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
4966 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
4967 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4968 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
4969 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
4970 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
4971 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
4972 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
4973 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
4974 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
4975 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
4976 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
4977 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4978 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
4979 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
4980 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4981 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
4982 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
4983 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
4984 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
4985 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
4986 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
4987 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
4988 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
4989 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
4990 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4991 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
4992 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
4993 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4994 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
4995 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
4996 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
4997 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
4998 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
4999 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
5000 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
5001 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
5002 Likewise.
5003 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
5004 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5005 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
5006 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
5007 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5008 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
5009 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
5010 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
5011 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
5012 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
5013 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
5014 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
5015 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
5016 Likewise.
5017 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
5018 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5019 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
5020 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
5021 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5022 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
5023 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
5024 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
5025 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
5026 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
5027 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
5028 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
5029 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
5030 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
5031 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5032 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
5033 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
5034 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5035 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
5036 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
5037 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
5038 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
5039 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
5040 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
5041 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5042 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
5043 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
5044 Likewise.
5045 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
5046 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
5047 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
5048 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
5049 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5050 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
5051 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
5052 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
5053 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
5054 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
5055 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
5056 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
5057 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
5058 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
5059 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
5060 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
5061 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
5062 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
5063 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5064 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
5065 Likewise.
5066 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
5067 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
5068 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
5069 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5070 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
5071 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
5072 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
5073 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
5074 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
5075 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
5076 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5077 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
5078 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
5079 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5080 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
5081 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
5082 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
5083 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
5084 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5085 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
5086 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
5087 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5088 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
5089 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
5090 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
5091 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
5092 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
5093 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
5094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
5095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
5096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
5097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
5098 Likewise.
5099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
5100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
5101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
5102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
5103 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
5104 Likewise.
5105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
5106 Likewise.
5107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
5108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
5109 Likewise.
5110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
5111 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5112 Likewise.
5113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5114 Likewise.
5115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
5116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
5117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
5118 Likewise.
5119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
5120 Likewise.
5121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
5122 Likewise.
5123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
5124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
5125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
5127 Likewise.
5128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
5129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
5130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
5131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
5132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
5133 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
5134 Likewise.
5135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
5136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
5137 Likewise.
5138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
5139 Likewise.
5140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
5141 Likewise.
5142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
5143 Likewise.
5144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
5145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
5146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
5147 Likewise.
5148 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
5149 Likewise.
5150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
5151 Likewise.
5152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
5153 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
5154 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
5155 Likewise.
5156 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
5157 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5158 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
5159 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
5160 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
5161 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
5162 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
5163 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
5164 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
5165 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
5166 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
5167 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
5168 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
5169 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
5170 Likewise.
5171 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5172 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
5173 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
5174 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5175 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
5176 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
5177 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
5178 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
5179 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
5180 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
5181 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
5182 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
5183 Likewise.
5184 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5185 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
5186 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
5187 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5188 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
5189 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
5190 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
5191 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
5192 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
5193 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
5194 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
5195 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
5196 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
5197 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5198 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
5199 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
5200 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5201 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
5202 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
5203 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
5204 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
5205 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
5206 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
5207 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
5208 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
5209 Likewise.
5210 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
5211 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5212 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
5213 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
5214 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5215 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
5216 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
5217 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
5218 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
5219 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
5220 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
5221 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
5222 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
5223 Likewise.
5224 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
5225 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5226 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
5227 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
5228 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5229 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
5230 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
5231 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
5232 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
5233 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
5234 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
5235 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
5236 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
5237 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
5238 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5239 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
5240 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
5241 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5242 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
5243 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
5244 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
5245 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
5246 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
5247 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
5248 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
5249 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
5250 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
5251 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
5252 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5253 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
5254 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
5255 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5256 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
5257 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
5258 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
5259 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
5260 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
5261 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
5262
5263 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
5264
5265 [BZ #23137]
5266 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
5267 Use atomic_load_acquire to load __tid.
5268
5269 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
5270
5271 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
5272 Restore the pointer into %rdx, after syscall and use %rdx,
5273 instead of %rsi, to restore context.
5274
5275 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
5276
5277 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
5278 Pop the pointer into %rdx after syscall and use %rdx, instead
5279 of %rsi, to restore context.
5280
5281 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
5282
5283 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
5284 handlers after setjmp.
5285 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
5286 defined.
5287 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
5288 <libc-pointer-arith.h>.
5289 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
5290 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
5291 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
5292 _JUMP_BUF_SIGSET_BITS_PER_WORD.
5293 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
5294 * sysdeps/x86/__longjmp_cancel.S: New file.
5295 * sysdeps/x86/longjmp.c: Likewise.
5296 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
5297
5298 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5299
5300 * NEWS: Add ustat.h deprecation entry.
5301 * bits/ustat.h: Remove file.
5302 * misc/sys/ustat.h: Likewise.
5303 * misc/ustat.h: Likewise.
5304 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
5305 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
5306 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
5307 compatibility mode.
5308 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
5309 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
5310 generic Linux implementation.
5311
5312 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5313
5314 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
5315 * math/w_expl_compat.c: Likewise.
5316 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
5317
5318 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
5319
5320 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
5321
5322 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5323
5324 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
5325 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
5326 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
5327 Remove.
5328 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
5329 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
5330 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
5331 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
5332 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
5333 and SYSCALL_LL64.
5334
5335 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5336
5337 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
5338
5339 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
5340 * math/w_asin_template.c: Likewise.
5341 * math/w_atanh_template.c: Likewise.
5342
5343 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5344
5345 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
5346 to powerpc/powerpc64/be for big-endian.
5347 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
5348 little-endian.
5349
5350 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
5351 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
5352 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
5353 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
5354 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
5355 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
5356 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
5357 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
5358 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
5359 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
5360 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
5361 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
5362 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
5363 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
5364 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
5365 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
5366 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
5367 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
5368 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
5369 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
5370 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
5371 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
5372 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
5373 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
5374 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
5375 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
5376 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
5377 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
5378 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
5379 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5380 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5381 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5382
5383 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
5384 adjusted to imply powerpc64 and older processors on powerpc64/be.
5385 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
5386 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
5387 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
5388 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
5389 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
5390 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
5391 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
5392 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
5393 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
5394 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
5395 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
5396 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
5397 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
5398 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
5399 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
5400 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
5401 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
5402 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
5403 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
5404 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
5405 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
5406 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
5407 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
5408 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
5409 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
5410 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
5411 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
5412 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
5413 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
5414 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
5415 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
5416
5417 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
5418 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
5419 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
5420 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
5421
5422 * sysdeps/powerpc/powerpc64/be/Implies: New file.
5423 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
5424 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
5425 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
5426
5427 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
5428 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
5429 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
5430 * sysdeps/powerpc/powerpc64le/configure: Likewise.
5431 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
5432 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
5433 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
5434 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
5435 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
5436 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
5437 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
5438
5439 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
5440 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
5441 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
5442 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
5443 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
5444 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
5445 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
5446 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
5447 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
5448 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
5449 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
5450
5451 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
5452 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
5453 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
5454 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
5455 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
5456 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
5457 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
5458 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
5459 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
5460 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
5461 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
5462 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
5463
5464 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
5465 and adjusted to imply olders processors.
5466 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
5467 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
5468 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
5469 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
5470 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
5471 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
5472 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
5473 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
5474 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
5475 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
5476 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
5477
5478 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
5479 powerpc64/le.
5480 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
5481 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
5482
5483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
5484 powerpc64le.
5485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
5486 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
5487
5488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
5489 powerpc64/be.
5490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
5491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
5492 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
5493
5494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
5495 powerpc64 and adjusted.
5496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
5497 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
5498 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
5499 Likewise.
5500
5501 2018-04-27 Joseph Myers <joseph@codesourcery.com>
5502
5503 * sysdeps/tile: Remove.
5504 * sysdeps/unix/sysv/linux/tile: Likewise.
5505 * README (tilegx-*-linux-gnu): Remove from list of supported
5506 configurations.
5507 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
5508 contribution of support for generic Linux kernel syscall
5509 interface.
5510 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
5511 tilegx configurations.
5512 (Config.install_linux_headers): Do not handle tile.
5513 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
5514 in comment.
5515 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
5516 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
5517 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
5518 conditional undefine and redefine.
5519 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
5520 in comment.
5521 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
5522 conditional undefine and redefine.
5523
5524 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
5525
5526 * signal/tst-sigaction.c: New file to test BZ #23069.
5527 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
5528
5529 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5530
5531 [BZ #22766]
5532 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
5533 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
5534 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
5535 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
5536
5537 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5538
5539 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
5540 _DIRENT_MATCHES_DIRENT64 is not defined.
5541 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
5542 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
5543 is defined.
5544 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
5545 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
5546
5547 2018-04-25 Joseph Myers <joseph@codesourcery.com>
5548
5549 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
5550 version to GCC 8 branch.
5551
5552 2018-04-24 Joseph Myers <joseph@codesourcery.com>
5553
5554 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
5555 (check_no_hidden): Use type of original function when declaring
5556 alias.
5557
5558 * sysdeps/unix/sysv/linux/sys/ptrace.h
5559 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
5560 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
5561 (struct __ptrace_seccomp_metadata): New type.
5562 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5563 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5564 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
5565 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5566 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
5567 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5568 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5569 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5570 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
5571 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5572 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
5573 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5574 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
5575 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5576 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
5577 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5578
5579 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5580
5581 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
5582 defined.
5583 * dirent/versionsort.c (versionsort): Likewise.
5584 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
5585 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
5586 * dirent/versionsort64.c (versionsort64): Likewise.
5587 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
5588 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
5589 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
5590 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
5591 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
5592 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
5593 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
5594 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5595 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
5596 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
5597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
5598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
5599 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
5600 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
5601
5602 2018-04-23 Joseph Myers <joseph@codesourcery.com>
5603
5604 * elf/elf.h (NT_PPC_PKEY): New macro.
5605
5606 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
5607
5608 [BZ #23094]
5609 * localedata/locales/hr_HR: fix thousands_sep and
5610 mon_thousands_sep
5611
5612 2018-04-20 Joseph Myers <joseph@codesourcery.com>
5613
5614 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
5615 (XTABS): Define to TAB3.
5616
5617 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5618
5619 * sysdeps/hppa/fpu/libm-test-ulps: Update.
5620
5621 * dirent/scandir-tail-common.c: New file.
5622 * dirent/scandir-tail.c: Use scandir-tail-common.c.
5623 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
5624 * dirent/scandir.c: Use scandir-tail-common.c.
5625 * dirent/scandirat.c: Likewise.
5626 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
5627 * dirent/scandir64.c (scandir64): Always build and alias to scandir
5628 if _DIRENT_MATCHES_DIRENT64 is defined.
5629 * dirent/scandirat64.c (scandirat64): Likewise.
5630 * include/dirent.h (__scandir_tail): Only define iff
5631 _DIRENT_MATCHES_DIRENT64 is not defined.
5632 (__scandir64_tail): Define regardless.
5633 (__scandirat, scandirat64): Remove libc_hidden_proto.
5634 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
5635 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
5636 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
5637 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
5638 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
5639 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
5640 * sysdeps/unix/sysv/linux/scandir64.c: New file.
5641
5642 2018-04-20 Joseph Myers <joseph@codesourcery.com>
5643
5644 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
5645 New macro.
5646 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5647 Increase to 24.
5648 (_dl_aarch64_cap_flags): Add asimdfhm.
5649
5650 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
5651
5652 * sysdeps/nios2/libm-test-ulps: Update.
5653
5654 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5655
5656 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
5657 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
5658
5659 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
5660 requirements.
5661 (_DIRENT_MATCHES_DIRENT64): Undef
5662 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
5663 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
5664 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
5665 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
5666 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
5667 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
5668 use getdents64 syscalls as base.
5669 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
5670 symbol if required.
5671 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
5672 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5673 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
5674 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
5675 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
5676 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
5677 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
5678 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
5679 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5680 (__get_clockfreq_via_proc_openprom): Use __getdents64.
5681 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
5682
5683 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
5684
5685 * scripts/test_printers_common.py (init_test): Disable lock elision.
5686
5687 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
5688
5689 * math/test-tgmath.c (count_double, count_float,
5690 count_ldouble, count_cdouble, count_cfloat,
5691 count_cldouble): Use volatile int.
5692
5693 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5694
5695 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5696 (conformtest-xfail-conds): Add i386-gnu.
5697 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
5698 i386-gnu.
5699 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
5700 ipc_perm.cuid, ipc_perm.cgid): Likewise.
5701 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
5702 msqid_ds.msg_lrpid): Likewise.
5703 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
5704 Likewise.
5705 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
5706 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
5707 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
5708 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
5709 unsigned int.
5710 (struct statvfs64): Likewise.
5711 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
5712 Likewise.
5713 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
5714 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
5715 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
5716 instead of wait_queue.
5717 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
5718 instead of vm_area_struct.
5719 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
5720 struct sched_param definition to it.
5721 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5722 * bits/types/struct_sched_param.h: New file.
5723 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
5724 <bits/types/struct_sched_param.h> instead of <sched.h>.
5725 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
5726 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
5727 generic version but include <bits/pthreadtypes.h> to make struct
5728 sigevent's sigev_notify_attributes field a pthread_attr_t*.
5729 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
5730 non-compliant.
5731 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
5732 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
5733 [__USE_XOPEN] (OFDEL): New macro.
5734 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
5735 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
5736 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
5737 prototypes.
5738 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
5739 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
5740 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
5741 non-compliant.
5742 * sysdeps/i386/sys/ucontext.h: Likewise.
5743 * sysdeps/m68k/sys/ucontext.h: Likewise.
5744 * sysdeps/mips/sys/ucontext.h: Likewise.
5745 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
5746 * sysdeps/mach/hurd/i386/Makefile
5747 (test-xfail-POSIX/fcntl.h/conform): Add.
5748 (test-xfail-POSIX/signal.h/conform): Add.
5749 (test-xfail-POSIX/semaphore.h/conform): Add.
5750 (test-xfail-POSIX/regex.h/conform): Add.
5751 (test-xfail-POSIX/aio.h/conform): Add.
5752 (test-xfail-POSIX/mqueue.h/conform): Add.
5753 (test-xfail-POSIX/sys/types.h/conform): Add.
5754 (test-xfail-UNIX98/fcntl.h/conform): Add.
5755 (test-xfail-UNIX98/netdb.h/conform): Add.
5756 (test-xfail-UNIX98/signal.h/conform): Add.
5757 (test-xfail-UNIX98/semaphore.h/conform): Add.
5758 (test-xfail-UNIX98/regex.h/conform): Add.
5759 (test-xfail-UNIX98/aio.h/conform): Add.
5760 (test-xfail-UNIX98/ftw.h/conform): Add.
5761 (test-xfail-UNIX98/mqueue.h/conform): Add.
5762 (test-xfail-UNIX98/netinet/in.h/conform): Add.
5763 (test-xfail-UNIX98/sys/wait.h/conform): Add.
5764 (test-xfail-UNIX98/sys/sem.h/conform): Add.
5765 (test-xfail-UNIX98/sys/uio.h/conform): Add.
5766 (test-xfail-UNIX98/sys/socket.h/conform): Add.
5767 (test-xfail-UNIX98/sys/types.h/conform): Add.
5768 (test-xfail-UNIX98/stdlib.h/conform): Add.
5769 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
5770 (test-xfail-POSIX2008/fcntl.h/conform): Add.
5771 (test-xfail-POSIX2008/netdb.h/conform): Add.
5772 (test-xfail-POSIX2008/signal.h/conform): Add.
5773 (test-xfail-POSIX2008/semaphore.h/conform): Add.
5774 (test-xfail-POSIX2008/regex.h/conform): Add.
5775 (test-xfail-POSIX2008/aio.h/conform): Add.
5776 (test-xfail-POSIX2008/mqueue.h/conform): Add.
5777 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
5778 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
5779 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
5780 (test-xfail-POSIX2008/sys/types.h/conform): Add.
5781 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
5782 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
5783 (test-xfail-XOPEN2K/netdb.h/conform): Add.
5784 (test-xfail-XOPEN2K/signal.h/conform): Add.
5785 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
5786 (test-xfail-XOPEN2K/regex.h/conform): Add.
5787 (test-xfail-XOPEN2K/aio.h/conform): Add.
5788 (test-xfail-XOPEN2K/ftw.h/conform): Add.
5789 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
5790 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
5791 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
5792 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
5793 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
5794 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
5795 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
5796 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
5797 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
5798 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
5799 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
5800 (test-xfail-XOPEN2K8/signal.h/conform): Add.
5801 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
5802 (test-xfail-XOPEN2K8/regex.h/conform): Add.
5803 (test-xfail-XOPEN2K8/aio.h/conform): Add.
5804 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
5805 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
5806 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
5807 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
5808 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
5809 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
5810 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
5811 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
5812 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
5813 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
5814 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
5815 i386-gnu.
5816 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
5817 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
5818
5819 2018-04-18 Joseph Myers <joseph@codesourcery.com>
5820
5821 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
5822 --enable-obsolete for powerpc-linux-gnuspe.
5823
5824 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5825
5826 * conform/data/sys/un.h-data: Allow sun_ prefix.
5827 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
5828 prototypes.
5829 * sysdeps/mach/include/mach.h: Likewise.
5830 * sysdeps/mach/include/mach/mig_support.h: Likewise.
5831 * sysdeps/mach/include/mach_error.h: Likewise.
5832
5833 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5834
5835 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
5836 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
5837 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
5838 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
5839
5840 2018-04-16 Andreas Schwab <schwab@suse.de>
5841
5842 [BZ #19527]
5843 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
5844
5845 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
5846
5847 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
5848 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
5849
5850 2018-04-12 DJ Delorie <dj@redhat.com>
5851
5852 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5853 version to 4.16.
5854
5855 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
5856
5857 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
5858 (struct kernel_sigaction): Use the same definition on 31bit as is used
5859 on 64bit.
5860
5861 2018-04-09 Florian Weimer <fweimer@redhat.com>
5862
5863 [BZ #23037]
5864 * resolv/res_send.c (send_dg): Use designated initializers instead
5865 of assignment to zero-initialize other fields of struct mmsghdr.
5866
5867 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5868
5869 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
5870 __READDIR_ALIAS): Undefine after usage.
5871 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
5872 __READDIR_R_ALIAS): Likewise.
5873 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
5874 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
5875 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
5876 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
5877 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
5878 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
5879 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5880 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5881 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
5882 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
5883 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
5884 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
5885 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
5886 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
5887 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
5888 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
5889 * sysdeps/unix/sysv/linux/readdir.c: New file.
5890 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
5891 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
5892 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
5893
5894 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
5895
5896 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
5897
5898 * manual/charset.texi (Converting a Character): Fix typo.
5899
5900 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5901
5902 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5903
5904 * sysdeps/arm/libm-test-ulps: Update.
5905
5906 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
5907 as base implementation.
5908 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5909 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5910 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5911 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5912 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5913 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
5914 remove unrequired definitions and update comments.
5915 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
5916 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
5917 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
5918 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
5919 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
5920 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
5921 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5922 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
5923 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
5924 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
5925 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
5926 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
5927 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
5928 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
5929 and RESET_SA_RESTORER hooks.
5930
5931 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
5932
5933 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5934
5935 2018-04-05 Florian Weimer <fweimer@redhat.com>
5936
5937 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
5938 integer overflow, memory leak on error, and indeterminate errno
5939 value. Add a null wide character to terminate the result string.
5940 * manual/charset.texi (Converting a Character): Mention embedded
5941 null bytes in the mbrtowc input string. Explain what happens in
5942 the -2 result case. Do not claim that mbrtowc is simple or
5943 obvious to use. Adjust the description of the code example. Use
5944 @code, not @var, for concrete variables.
5945
5946 2018-04-05 Florian Weimer <fweimer@redhat.com>
5947
5948 * manual/examples/mbstouwcs.c: New file.
5949 * manual/charset.texi (Converting a Character): Include it.
5950
5951 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5952
5953 * include/dirent.h (dirfd): Add hidden proto.
5954 * dirent/dirfd.c (dirfd): Add hidden def.
5955 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
5956 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
5957
5958 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5959
5960 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
5961 sin, cos and sincos to 1 ULP.
5962
5963 2018-04-04 Maciej W. Rozycki <macro@mips.com>
5964
5965 [BZ #19818]
5966 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
5967 symbols.
5968 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
5969 * elf/tst-absolute-sym.c: New file.
5970 * elf/tst-absolute-sym-lib.c: New file.
5971 * elf/tst-absolute-sym-lib.lds: New file.
5972 * elf/Makefile (tests): Add `tst-absolute-sym'.
5973 (modules-names): Add `tst-absolute-sym-lib'.
5974 (LDLIBS-tst-absolute-sym-lib.so): New variable.
5975 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
5976 ($(objpfx)tst-absolute-sym): New dependency.
5977
5978 [BZ #19818]
5979 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
5980 parameter.
5981 (SYMBOL_ADDRESS): New macro.
5982 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
5983 SYMBOL_ADDRESS for symbol address calculation.
5984 * elf/dl-runtime.c (_dl_fixup): Likewise.
5985 (_dl_profile_fixup): Likewise.
5986 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
5987 * elf/rtld.c (dl_main): Likewise.
5988 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
5989 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
5990 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
5991 (elf_machine_rela): Likewise.
5992 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
5993 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
5994 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
5995 (elf_machine_rela): Likewise.
5996 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
5997 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
5998 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
5999 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6000 Likewise.
6001 (elf_machine_reloc): Likewise.
6002 (elf_machine_got_rel): Likewise.
6003 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6004 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
6005 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
6006 Likewise.
6007 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6008 Likewise.
6009 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
6010 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
6011 Likewise.
6012 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
6013 Likewise.
6014 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6015 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
6016 Likewise.
6017 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6018 Likewise.
6019 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
6020 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6021
6022 2018-04-04 Zack Weinberg <zackw@panix.com>
6023
6024 * sysdeps/generic/internal-signals.h: Include signal.h,
6025 sigsetops.h, and stdbool.h.
6026 (__libc_signal_block_all): Actually block all signals.
6027 (__libc_signal_block_app): Likewise.
6028 (__libc_signal_restore_set): Actually restore the signal mask.
6029
6030 2018-04-04 Florian Weimer <fweimer@redhat.com>
6031
6032 inet: Actually build and run tst-deadline.
6033 * inet/Makefile (tests-internal): Add tst-deadline and do not
6034 overwrite the variable.
6035 (tests-static-internal): Remove variable.
6036
6037 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
6038
6039 [BZ #22947]
6040 * bits/uio-ext.h (RWF_APPEND): New.
6041 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
6042 * manual/llio.texi: Document RWF_APPEND.
6043 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
6044 (RWF_SUPPORTED): Add RWF_APPEND.
6045
6046 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6047
6048 [BZ #22391]
6049 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
6050 check for internal nptl signals.
6051 * nptl/sigaction.c (__sigaction): Likewise.
6052 * signal/sigaddset.c (sigaddset): Likewise.
6053 * signal/sigdelset.c (sigdelset): Likewise.
6054 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
6055 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
6056 value.
6057 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
6058 to filter out internal nptl signals.
6059 * signal/tst-sigset.c (do_test): Check ech signal indidually and
6060 also check realtime signals using standard macros.
6061 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
6062 __is_internal_signal, __libc_signal_block_all,
6063 __libc_signal_block_app, __libc_signal_restore_set): New functions.
6064 * sysdeps/nptl/sigfillset.c: Remove file.
6065 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
6066 Change return to bool.
6067 (__clear_internal_signals): Remove SIGTIMER clean since it is
6068 equal to SIGCANEL on Linux.
6069 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
6070 signal set was constructed using standard functions.
6071
6072 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6073
6074 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
6075 ifname is too long.
6076 * hurd/hurdsig.c (interrupted_reply_port_location): Use
6077 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
6078 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
6079 hidden def.
6080 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
6081 * signal/sigaddset.c: Include <sigsetopts.h>.
6082 * signal/sigdelset.c: Likewise.
6083
6084 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6085
6086 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
6087 (__cos): Likewise.
6088 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
6089 logic as sin and cos.
6090
6091 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6092
6093 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
6094 inputs. Return correct sign.
6095 (do_sincos): Remove small input check before do_sin, let do_sin set
6096 the sign.
6097 (__sin): Likewise.
6098 (__cos): Likewise.
6099
6100 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6101
6102 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
6103 (do_cos_slow): Likewise.
6104 (do_sin_slow): Likewise.
6105 (reduce_and_compute): Likewise.
6106 (slow): Likewise.
6107 (slow1): Likewise.
6108 (slow2): Likewise.
6109 (sloww): Likewise.
6110 (sloww1): Likewise.
6111 (sloww2): Likewise.
6112 (bslow): Likewise.
6113 (bslow1): Likewise.
6114 (bslow2): Likewise.
6115 (cslow2): Likewise.
6116
6117 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6118
6119 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
6120 (do_cos): Remove corp parameter and calculations.
6121 (do_sin): Likewise.
6122 (do_sincos): Remove cor variable.
6123 (__sin): Use do_sincos for huge inputs.
6124 (__cos): Likewise.
6125 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6126 (reduce_and_compute_sincos): Remove unused function.
6127
6128 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6129
6130 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
6131 reduce_sincos, improve accuracy to 136 bits.
6132 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
6133 (__sin): Use improved reduction and simplified do_sincos calculation.
6134 (__cos): Likewise.
6135 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6136
6137 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6138
6139 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
6140 (do_sincos_2): Likewise.
6141 (__sin): Remove middle range reduction case.
6142 (__cos): Likewise.
6143 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
6144 reduction case.
6145
6146 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6147
6148 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
6149 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
6150 inputs.
6151 (__cos): Likewise.
6152 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
6153
6154 2018-04-03 Joseph Myers <joseph@codesourcery.com>
6155
6156 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6157 version to 4.16
6158
6159 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6160
6161 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
6162 Remove definitions.
6163 (opendir_oflags): Use O_DIRECTORY regardless.
6164 (__opendir, __opendirat): Remove need_isdir_precheck usage.
6165 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
6166
6167 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6168
6169 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
6170 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
6171 macros.
6172 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
6173 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
6174 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
6175 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
6176 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
6177 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
6178
6179 * htl/Makefile: Bump licence to LGPL 2.1+.
6180 * htl/alloca_cutoff.c: Likewise.
6181 * htl/cthreads-compat.c: Likewise.
6182 * htl/lockfile.c: Likewise.
6183 * htl/pt-alloc.c: Likewise.
6184 * htl/pt-cancel.c: Likewise.
6185 * htl/pt-cleanup.c: Likewise.
6186 * htl/pt-create.c: Likewise.
6187 * htl/pt-dealloc.c: Likewise.
6188 * htl/pt-detach.c: Likewise.
6189 * htl/pt-exit.c: Likewise.
6190 * htl/pt-getattr.c: Likewise.
6191 * htl/pt-initialize.c: Likewise.
6192 * htl/pt-internal.h: Likewise.
6193 * htl/pt-join.c: Likewise.
6194 * htl/pt-self.c: Likewise.
6195 * htl/pt-setcancelstate.c: Likewise.
6196 * htl/pt-setcanceltype.c: Likewise.
6197 * htl/pt-sigmask.c: Likewise.
6198 * htl/pt-spin-inlines.c: Likewise.
6199 * htl/pt-testcancel.c: Likewise.
6200 * htl/pt-yield.c: Likewise.
6201 * htl/tests/test-1.c: Likewise.
6202 * htl/tests/test-10.c: Likewise.
6203 * htl/tests/test-11.c: Likewise.
6204 * htl/tests/test-12.c: Likewise.
6205 * htl/tests/test-13.c: Likewise.
6206 * htl/tests/test-14.c: Likewise.
6207 * htl/tests/test-15.c: Likewise.
6208 * htl/tests/test-16.c: Likewise.
6209 * htl/tests/test-17.c: Likewise.
6210 * htl/tests/test-2.c: Likewise.
6211 * htl/tests/test-3.c: Likewise.
6212 * htl/tests/test-4.c: Likewise.
6213 * htl/tests/test-5.c: Likewise.
6214 * htl/tests/test-6.c: Likewise.
6215 * htl/tests/test-7.c: Likewise.
6216 * htl/tests/test-8.c: Likewise.
6217 * htl/tests/test-9.c: Likewise.
6218 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
6219 * sysdeps/htl/bits/cancelation.h: Likewise.
6220 * sysdeps/htl/bits/pthread-np.h: Likewise.
6221 * sysdeps/htl/bits/pthread.h: Likewise.
6222 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
6223 * sysdeps/htl/bits/semaphore.h: Likewise.
6224 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
6225 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
6226 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
6227 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
6228 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
6229 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
6230 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
6231 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
6232 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
6233 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
6234 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
6235 * sysdeps/htl/old_pt-atfork.c: Likewise.
6236 * sysdeps/htl/pt-atfork.c: Likewise.
6237 * sysdeps/htl/pt-attr-destroy.c: Likewise.
6238 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
6239 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
6240 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
6241 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
6242 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
6243 * sysdeps/htl/pt-attr-getscope.c: Likewise.
6244 * sysdeps/htl/pt-attr-getstack.c: Likewise.
6245 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
6246 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
6247 * sysdeps/htl/pt-attr-init.c: Likewise.
6248 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
6249 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
6250 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
6251 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
6252 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
6253 * sysdeps/htl/pt-attr-setscope.c: Likewise.
6254 * sysdeps/htl/pt-attr-setstack.c: Likewise.
6255 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
6256 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
6257 * sysdeps/htl/pt-attr.c: Likewise.
6258 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
6259 * sysdeps/htl/pt-barrier-init.c: Likewise.
6260 * sysdeps/htl/pt-barrier-wait.c: Likewise.
6261 * sysdeps/htl/pt-barrier.c: Likewise.
6262 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
6263 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
6264 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
6265 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
6266 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
6267 * sysdeps/htl/pt-cond-destroy.c: Likewise.
6268 * sysdeps/htl/pt-cond-init.c: Likewise.
6269 * sysdeps/htl/pt-cond-signal.c: Likewise.
6270 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
6271 * sysdeps/htl/pt-cond-wait.c: Likewise.
6272 * sysdeps/htl/pt-cond.c: Likewise.
6273 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
6274 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
6275 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
6276 * sysdeps/htl/pt-condattr-init.c: Likewise.
6277 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
6278 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
6279 * sysdeps/htl/pt-destroy-specific.c: Likewise.
6280 * sysdeps/htl/pt-equal.c: Likewise.
6281 * sysdeps/htl/pt-getconcurrency.c: Likewise.
6282 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
6283 * sysdeps/htl/pt-getschedparam.c: Likewise.
6284 * sysdeps/htl/pt-getspecific.c: Likewise.
6285 * sysdeps/htl/pt-init-specific.c: Likewise.
6286 * sysdeps/htl/pt-key-create.c: Likewise.
6287 * sysdeps/htl/pt-key-delete.c: Likewise.
6288 * sysdeps/htl/pt-key.h: Likewise.
6289 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
6290 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
6291 * sysdeps/htl/pt-mutex-init.c: Likewise.
6292 * sysdeps/htl/pt-mutex-lock.c: Likewise.
6293 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
6294 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
6295 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
6296 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
6297 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
6298 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
6299 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
6300 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
6301 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
6302 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
6303 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
6304 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
6305 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
6306 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
6307 * sysdeps/htl/pt-mutexattr.c: Likewise.
6308 * sysdeps/htl/pt-once.c: Likewise.
6309 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
6310 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
6311 * sysdeps/htl/pt-rwlock-init.c: Likewise.
6312 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
6313 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
6314 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
6315 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
6316 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
6317 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
6318 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
6319 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
6320 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
6321 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
6322 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
6323 * sysdeps/htl/pt-setconcurrency.c: Likewise.
6324 * sysdeps/htl/pt-setschedparam.c: Likewise.
6325 * sysdeps/htl/pt-setschedprio.c: Likewise.
6326 * sysdeps/htl/pt-setspecific.c: Likewise.
6327 * sysdeps/htl/pt-spin.c: Likewise.
6328 * sysdeps/htl/pt-startup.c: Likewise.
6329 * sysdeps/htl/pthread.h: Likewise.
6330 * sysdeps/htl/sem-close.c: Likewise.
6331 * sysdeps/htl/sem-destroy.c: Likewise.
6332 * sysdeps/htl/sem-getvalue.c: Likewise.
6333 * sysdeps/htl/sem-init.c: Likewise.
6334 * sysdeps/htl/sem-open.c: Likewise.
6335 * sysdeps/htl/sem-post.c: Likewise.
6336 * sysdeps/htl/sem-timedwait.c: Likewise.
6337 * sysdeps/htl/sem-trywait.c: Likewise.
6338 * sysdeps/htl/sem-unlink.c: Likewise.
6339 * sysdeps/htl/sem-wait.c: Likewise.
6340 * sysdeps/hurd/htl/pt-kill.c: Likewise.
6341 * sysdeps/i386/htl/pt-machdep.h: Likewise.
6342 * sysdeps/mach/htl/pt-block.c: Likewise.
6343 * sysdeps/mach/htl/pt-spin.c: Likewise.
6344 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
6345 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
6346 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
6347 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
6348 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
6349 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
6350 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
6351 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
6352 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
6353 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
6354 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
6355 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
6356 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
6357 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
6358 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
6359 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
6360 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
6361 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
6362 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
6363 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
6364 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
6365 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
6366 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
6367 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
6368 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
6369 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
6370 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
6371 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
6372 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
6373 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
6374 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
6375 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
6376 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
6377 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
6378 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
6379 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
6380 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
6381 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
6382 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
6383 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
6384 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
6385 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
6386 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
6387
6388 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
6389 * README: Remove the mention of out-of-tree patches needed for
6390 GNU/Hurd.
6391
6392 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
6393 (UTIME_NOW, UTIME_OMIT): Define macros.
6394
6395 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
6396 instead of pthread_detach.
6397 (__cthread_fork): Call __pthread_create instead of pthread_create.
6398 (__cthread_keycreate): Call __pthread_key_create instead of
6399 pthread_key_create.
6400 (__cthread_getspecific): Call __pthread_getspecific instead of
6401 pthread_getspecific.
6402 (__cthread_setspecific): Call __pthread_setspecific instead of
6403 pthread_setspecific.
6404 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
6405 __pthread_mutex_unlock instead of pthread_mutex_lock and
6406 pthread_mutex_unlock.
6407 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
6408 ___pthread_get_cleanup_stack.
6409 (__pthread_get_cleanup_stack): New strong alias.
6410 * htl/pt-create.c: Include <pthreadP.h>.
6411 (entry_point): Call __pthread_exit instead of pthread_exit.
6412 (pthread_create): Rename to __pthread_create.
6413 (pthread_create): New strong alias.
6414 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
6415 (pthread_detach): New strong alias.
6416 (__pthread_detach): Call __pthread_cond_broadcast instead of
6417 pthread_cond_broadcast.
6418 * htl/pt-exit.c: Include <pthreadP.h>.
6419 (__pthread_exit): Call __pthread_setcancelstate and
6420 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
6421 __pthread_get_cleanup_stack.
6422 * htl/pt-testcancel.c: Include <pthreadP.h>.
6423 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
6424 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
6425 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
6426 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
6427 pthread_attr_getstacksize.
6428 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
6429 Rename to __pthread_attr_getstackaddr.
6430 (pthread_attr_getstackaddr): New strong alias.
6431 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
6432 Rename to __pthread_attr_getstacksize.
6433 (pthread_attr_getstacksize): New strong alias.
6434 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
6435 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
6436 (pthread_attr_setstack): New strong alias.
6437 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
6438 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
6439 pthread_attr_getstacksize, pthread_attr_setstacksize and
6440 pthread_attr_setstackaddr.
6441 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
6442 Rename to __pthread_attr_setstackaddr.
6443 (pthread_attr_setstackaddr): New strong alias.
6444 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
6445 Rename to __pthread_attr_setstacksize.
6446 (pthread_attr_setstacksize): New strong alias.
6447 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
6448 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
6449 pthread_exit.
6450 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
6451 (__pthread_key_create): New hidden def.
6452 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
6453 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
6454 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
6455 __pthread_exit, __pthread_key_create, __pthread_getspecific,
6456 __pthread_setspecific, __pthread_setcancelstate,
6457 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
6458 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
6459 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
6460 declarations.
6461 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
6462 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
6463 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
6464 (pthread_attr_setstackaddr): New strong alias.
6465 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
6466 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
6467 (pthread_attr_setstacksize): New strong alias.
6468 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
6469 (call_exit): Call __pthread_exit instead of pthread_exit.
6470 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
6471 (_pthread_mutex_init): New hidden definition.
6472 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
6473 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
6474 instead of pthread_attr_init and pthread_attr_setstack.
6475
6476 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
6477 __vm_deallocate instead of vm_allocate and vm_deallocate.
6478 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
6479 setenv.
6480 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
6481 of geteuid.
6482 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
6483 strdup.
6484 * hurd/siginfo.c: Include <libioP.h>.
6485 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
6486 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
6487 munmap.
6488 * mach/devstream.c: Include <libioP.h>.
6489 (dealloc_ref): Call __mach_port_deallocate instead of
6490 mach_port_deallocate.
6491 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
6492 Call __mach_port_deallocate instead of mach_port_deallocate.
6493 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
6494 pathconf.
6495 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
6496 munmap.
6497 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
6498 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
6499 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
6500 of munmap.
6501 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
6502 of close.
6503 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
6504 instead of sysconf.
6505 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
6506 __clock_gettime instead of clock_gettime.
6507 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
6508 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
6509 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
6510 * sysdeps/unix/bsd/stty.c (stty): Likewise.
6511 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
6512 tcgetattr.
6513 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
6514 __clock_gettime and __nanosleep instead of clock_gettime and
6515 nanosleep.
6516 * hurd/catch-signal.c (hurd_catch_signal): Rename to
6517 __hurd_catch_signal.
6518 (hurd_catch_signal): New strong alias.
6519 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
6520 __hurd_catch_signal instead of hurd_catch_signal.
6521 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
6522 * hurd/hurdexec.c (_hurd_init): Add hidden def.
6523 * hurd/hurdinit.c (_hurd_init): Add hidden def.
6524 * hurd/hurdsig.c: Include <mach/mig_support.h>.
6525 (_hurd_thread_sigstate): Add hidden def.
6526 (_hurd_internal_post_signal): Use __mutex_unlock instead of
6527 mutex_unlock.
6528 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
6529 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
6530 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
6531 __hurd_file_name_path_lookup.
6532 (hurd_file_name_path_lookup): New strong alias.
6533 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
6534 hurd_file_name_path_lookup.
6535 * mach/errstring.c (mach_error_type): Add hidden def.
6536 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
6537 * mach/mutex-init.c (__mutex_init): Add hidden def.
6538 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
6539 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
6540 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
6541 * sysdeps/mach/hurd/getcwd.c
6542 (_hurd_canonicalize_directory_name_internal): Rename to
6543 __hurd_canonicalize_directory_name_internal.
6544 (_hurd_canonicalize_directory_name_internal): New strong alias.
6545 (__canonicalize_directory_name_internal, __getcwd): Call
6546 __hurd_canonicalize_directory_name_internal instead of
6547 _hurd_canonicalize_directory_name_internal.
6548 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
6549 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
6550 hidden defs.
6551 * sysdeps/hurd/include/hurd.h: New file.
6552 * sysdeps/hurd/include/hurd/fd.h: New file.
6553 * sysdeps/hurd/include/hurd/signal.h: New file.
6554 * sysdeps/mach/include/lock-intern.h: New file.
6555 * sysdeps/mach/include/mach.h: New file.
6556 * sysdeps/mach/include/mach/mig_support.h: New file.
6557 * sysdeps/mach/include/mach_error.h: New file.
6558 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
6559 prototype.
6560 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
6561 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
6562 _HEADER_H_HIDDEN_DEF macro.
6563 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
6564 _hurd_fd_error_signal): Add hidden prototype.
6565 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
6566 hidden def.
6567 * libio/iolibio.h (_IO_puts): New hidden prototype.
6568 * libio/ioputs.c (_IO_puts): New hidden def.
6569 * sysdeps/mach/hurd/localplt.data: New file.
6570
6571 2018-04-02 Agustina Arzille <avarzille@riseup.net>
6572 Amos Jeffries <squid3@treenet.co.nz>
6573 David Michael <fedora.dm0@gmail.com>
6574 Marco Gerards <marco@gnu.org>
6575 Marcus Brinkmann <marcus@gnu.org>
6576 Neal H. Walfield <neal@gnu.org>
6577 Pino Toscano <toscano.pino@tiscali.it>
6578 Richard Braun <rbraun@sceen.net>
6579 Roland McGrath <roland@gnu.org>
6580 Samuel Thibault <samuel.thibault@ens-lyon.org>
6581 Thomas DiModica <ricinwich@yahoo.com>
6582 Thomas Schwinge <tschwinge@gnu.org>
6583
6584 * htl: New directory.
6585 * sysdeps/htl: New directory.
6586 * sysdeps/hurd/htl: New directory.
6587 * sysdeps/i386/htl: New directory.
6588 * sysdeps/mach/htl: New directory.
6589 * sysdeps/mach/hurd/htl: New directory.
6590 * sysdeps/mach/hurd/i386/htl: New directory.
6591 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
6592 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
6593 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
6594
6595 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6596
6597 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
6598 signals in thread created for runing timers.
6599
6600 2018-04-01 Florian Weimer <fweimer@redhat.com>
6601
6602 * support/support_format_addrinfo.c (support_format_addrinfo):
6603 Include unknown error number in formatted result.
6604
6605 2018-03-29 Florian Weimer <fweimer@redhat.com>
6606
6607 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
6608 capture SIGBUS.
6609
6610 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6611
6612 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
6613 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
6614 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6615 (__ASSUME_CLONE_BACKWARDS): Define.
6616
6617 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
6618
6619 [BZ #23024]
6620 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
6621 early when linux sentinel value is set.
6622
6623 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
6624
6625 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
6626
6627 2018-03-27 Andreas Schwab <schwab@suse.de>
6628
6629 [BZ #23005]
6630 * resolv/res_send.c (__res_context_send): Return ENOMEM if
6631 allocation of private copy of nsaddr_list fails.
6632
6633 2018-03-26 Joseph Myers <joseph@codesourcery.com>
6634
6635 [BZ #16552]
6636 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
6637 * sysdeps/unix/sysv/linux/umount.c: ... here.
6638 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
6639 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
6640 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
6641 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
6642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
6643 * sysdeps/unix/sysv/linux/umount.S: Likewise.
6644 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
6645
6646 2018-03-26 Andreas Schwab <schwab@suse.de>
6647
6648 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
6649 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
6650 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
6651 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
6652 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
6653 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
6654 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
6655 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
6656 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
6657 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
6658 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
6659 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
6660 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
6661 (R_RISCV_NUM): Define.
6662
6663 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6664
6665 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
6666 TLS declaration of errno.
6667 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
6668 __libc_setup_tls.
6669 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
6670 (ARCH_SETUP_TLS): Likewise.
6671 * sysdeps/mach/hurd/libc-start.h: New file copied from
6672 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
6673 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
6674 instead of __libc_setup_tls.
6675 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
6676 __libc_setup_tls before initializing libpthread and running _hurd_init
6677 which starts the signal thread.
6678 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
6679 Declare function.
6680 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6681
6682 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
6683
6684 [BZ #22998]
6685 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
6686 after it is defined.
6687
6688 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
6689 Max Horn <max@quendi.de>
6690
6691 [BZ #22644]
6692 CVE-2017-18269
6693 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
6694 branch conditions.
6695 * string/test-memmove.c (do_test2): New testcase.
6696
6697 2018-03-22 Joseph Myers <joseph@codesourcery.com>
6698
6699 * sysdeps/generic/frame.h: Remove file.
6700 * sysdeps/arm/frame.h: Likewise.
6701 * sysdeps/hppa/frame.h: Likewise.
6702 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
6703 macro.
6704 (GET_FRAME): Likewise.
6705 (GET_STACK): Likewise.
6706 (CALL_SIGHANDLER): Likewise.
6707 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
6708 Likewise.
6709 (GET_FRAME): Likewise.
6710 (GET_STACK): Likewise.
6711 (CALL_SIGHANDLER): Likewise.
6712 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
6713 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6714 (GET_FRAME): Likewise.
6715 (GET_STACK): Likewise.
6716 (CALL_SIGHANDLER): Likewise.
6717 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
6718 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6719 (GET_FRAME): Likewise.
6720 (GET_STACK): Likewise.
6721 (ADVANCE_STACK_FRAME): Likewise.
6722 (CALL_SIGHANDLER): Likewise.
6723 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
6724 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6725 (GET_FRAME): Likewise.
6726 (GET_STACK): Likewise.
6727 (CALL_SIGHANDLER): Likewise.
6728 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
6729 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6730 (GET_FRAME): Likewise.
6731 (GET_STACK): Likewise.
6732 (CALL_SIGHANDLER): Likewise.
6733 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
6734 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6735 (GET_FRAME): Likewise.
6736 (GET_STACK): Likewise.
6737 (CALL_SIGHANDLER): Likewise.
6738 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
6739 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6740 (GET_FRAME): Likewise.
6741 (GET_STACK): Likewise.
6742 (CALL_SIGHANDLER): Likewise.
6743 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
6744 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6745 (GET_FRAME): Likewise.
6746 (GET_STACK): Likewise.
6747 (CALL_SIGHANDLER): Likewise.
6748 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
6749 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6750 (GET_FRAME): Likewise.
6751 (GET_STACK): Likewise.
6752 (CALL_SIGHANDLER): Likewise.
6753 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
6754 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6755 (GET_FRAME): Likewise.
6756 (GET_STACK): Likewise.
6757 (CALL_SIGHANDLER): Likewise.
6758 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
6759 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6760 (GET_FRAME): Likewise.
6761 (GET_STACK): Likewise.
6762 (CALL_SIGHANDLER): Likewise.
6763 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
6764 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6765 (GET_FRAME): Likewise.
6766 (GET_STACK): Likewise.
6767 (CALL_SIGHANDLER): Likewise.
6768 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6769 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6770 (FIRST_FRAME_POINTER): Likewise.
6771 (ADVANCE_STACK_FRAME): Likewise.
6772 (GET_STACK): Likewise.
6773 (GET_FRAME): Likewise.
6774 (CALL_SIGHANDLER): Likewise.
6775 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
6776 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6777 (ADVANCE_STACK_FRAME): Likewise.
6778 (GET_STACK): Likewise.
6779 (GET_FRAME): Likewise.
6780 (CALL_SIGHANDLER): Likewise.
6781 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
6782 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6783 (GET_FRAME): Likewise.
6784 (GET_STACK): Likewise.
6785 (CALL_SIGHANDLER): Likewise.
6786 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
6787 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6788 (GET_FRAME): Likewise.
6789 (GET_STACK): Likewise.
6790 (CALL_SIGHANDLER): Likewise.
6791
6792 2018-03-21 Joseph Myers <joseph@codesourcery.com>
6793
6794 * sysdeps/x86_64/backtrace.c: Move to ....
6795 * debug/backtrace.c: ... here.
6796 * sysdeps/aarch64/backtrace.c: Remove file.
6797 * sysdeps/alpha/backtrace.c: Likewise.
6798 * sysdeps/hppa/backtrace.c: Likewise.
6799 * sysdeps/ia64/backtrace.c: Likewise.
6800 * sysdeps/mips/backtrace.c: Likewise.
6801 * sysdeps/nios2/backtrace.c: Likewise.
6802 * sysdeps/riscv/backtrace.c: Likewise.
6803 * sysdeps/sh/backtrace.c: Likewise.
6804 * sysdeps/tile/backtrace.c: Likewise.
6805
6806 2018-03-20 Joseph Myers <joseph@codesourcery.com>
6807
6808 [BZ #22987]
6809 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
6810 function.
6811 (fdimf): Likewise.
6812 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
6813
6814 [BZ #17343]
6815 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
6816 possibly overflowing computations.
6817
6818 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6819
6820 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
6821 values from Linux-specific section now that it is in the GNU section.
6822 * sysdeps/gnu/errlist.c: Regenerate.
6823
6824 2018-03-20 Joseph Myers <joseph@codesourcery.com>
6825
6826 * math/Makefile (libm-narrow-fns): Add sub.
6827 (libm-test-funcs-narrow): Likewise.
6828 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
6829 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
6830 * math/gen-auto-libm-tests.c (test_functions): Add sub.
6831 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
6832 (NARROW_SUB_ROUND_TO_ODD): Likewise.
6833 (NARROW_SUB_TRIVIAL): Likewise.
6834 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
6835 macro.
6836 (__dsubl): Likewise.
6837 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
6838 dsub.
6839 (CFLAGS-nldbl-dsub.c): New variable.
6840 (CFLAGS-nldbl-fsub.c): Likewise.
6841 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
6842 __nldbl_dsubl.
6843 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
6844 prototype.
6845 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
6846 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
6847 * math/auto-libm-test-in: Add tests of sub.
6848 * math/auto-libm-test-out-narrow-sub: New generated file.
6849 * math/libm-test-narrow-sub.inc: New file.
6850 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6851 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
6852 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
6853 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
6854 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
6855 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
6856 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
6857 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
6858 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
6859 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
6860 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
6861 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
6862 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
6863 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
6864 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
6865 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
6866 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
6867 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
6868 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6869 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
6870 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6871 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6872 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6873 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6874 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6875 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6876 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6877 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6878 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6879 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6880 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6881 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
6884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6886 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
6887 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6888 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6889 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6890 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6891 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6892 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
6893 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
6894 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6895 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6896
6897 2018-03-19 Joseph Myers <joseph@codesourcery.com>
6898
6899 [BZ #20079]
6900 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
6901
6902 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
6903
6904 * benchtests/bench-timing.h (attribute_hidden): Undefine.
6905
6906 2018-03-18 Richard Braun <rbraun@sceen.net>
6907
6908 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
6909 thread reference.
6910
6911 2018-03-18 Agustina Arzille <avarzille@riseup.net>
6912
6913 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
6914 (__libc_cleanup_fct): Define function.
6915 (__libc_cleanup_region_start, __libc_cleanup_region_end,
6916 __libc_cleanup_end): Rewrite implementation using
6917 __attribute__ ((__cleanup__)).
6918 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
6919 * hurd/Makefile (routines): Add hurdlock.
6920 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
6921 interface.
6922 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
6923 * hurd/hurdpid.c: Include <lowlevellock.h>
6924 (_S_msg_proc_newids): Use lll_wait to synchronize.
6925 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
6926 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
6927 * mach/Makefile (lock-headers): Remove machine-lock.h.
6928 * mach/lock-intern.h: Include <lowlevellock.h> instead of
6929 <machine-lock.h>.
6930 (__spin_lock_t): New type.
6931 (__SPIN_LOCK_INITIALIZER): New macro.
6932 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
6933 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
6934 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
6935 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
6936 (__mutex_init): Initialize with lll.
6937 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
6938 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
6939 needing lll.
6940 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6941 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
6942 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
6943 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
6944 (__setpgid): Use lll for synchronization.
6945 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
6946 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
6947 instead of <cthreads.h>.
6948 (_IO_lock_inexpensive): New macro
6949 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
6950 (__libc_lock_self0): New declaration.
6951 (__libc_lock_owner_self): New macro.
6952 (__libc_key_t): Remove type.
6953 (_LIBC_LOCK_INITIALIZER): New macro.
6954 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
6955 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
6956 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
6957 __libc_lock_define_initialized_recursive,
6958 __rtld_lock_define_initialized_recursive,
6959 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
6960 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
6961 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
6962 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
6963 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
6964 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
6965 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
6966 New macros.
6967 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
6968 * hurd/hurdlock.c: New file.
6969 * hurd/hurdlock.h: New file.
6970 * mach/lowlevellock.h: New file
6971
6972 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
6973
6974 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
6975 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
6976 when opening a symlink with O_NOFOLLOW.
6977 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
6978 path when flags contains O_NOFOLLOW.
6979 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
6980 if flags contains O_DIRECTORY and the result is a directory.
6981 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
6982 oneself when the pointer given in D is nul (as set by ext2fs).
6983 * sysdeps/mach/hurd/mlockall.c: New file.
6984 * sysdeps/mach/hurd/munlockall.c: New file.
6985
6986 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
6987
6988 * hurd/hurdsig.c: Include <pthread.h>.
6989 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
6990 get the signal thread stack layout.
6991 * hurd/Makefile (headers): Remove threadvar.h.
6992 (inline-headers): Remove threadvar.h.
6993 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
6994 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
6995 __hurd_threadvar_max, __hurd_errno_location.
6996 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
6997 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
6998 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
6999 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
7000 unless TLS is not initialized yet, in which case we do not need a
7001 critical section yet anyway.
7002 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
7003 <machine-sp.h>.
7004 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
7005 declarations.
7006 (__hurd_threadvar_index): Remove enum.
7007 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
7008 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
7009 inlines.
7010 (__hurd_reply_port0): New variable declaration.
7011 (__hurd_local_reply_port): New macro.
7012 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
7013 (interrupted_reply_port_location): Add thread_t parameter. Use it
7014 with THREAD_TCB to access thread-local variables.
7015 (_hurdsig_abort_rpcs): Pass ss->thread to
7016 interrupted_reply_port_location.
7017 (_hurd_internal_post_signal): Likewise.
7018 (_hurdsig_init): Use presence of cthread_fork instead of
7019 __hurd_threadvar_stack_mask to start signal thread by hand.
7020 Remove signal thread threadvar initialization.
7021 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
7022 * hurd/sigunwind.c: Include <hurd/threadvar.h>
7023 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
7024 of threadvar.
7025 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
7026 __libc_lock_self0.
7027 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
7028 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
7029 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
7030 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
7031 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
7032 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
7033 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
7034 define variables.
7035 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
7036 <hurd/threadvar.h>.
7037 [IS_IN(rtld)] (rtld_errno): New variable.
7038 [IS_IN(rtld)] (__errno_location): New weak function.
7039 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
7040 * sysdeps/mach/hurd/errno.c: Remove file.
7041 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
7042 (__fork): Remove THREADVAR_SPACE macro and its use.
7043 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
7044 variable.
7045 (init): Do not initialize threadvar.
7046 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
7047 symbol.
7048 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
7049 __hurd_local_reply_port instead of threadvar.
7050 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
7051 _hurd_sigstate fields.
7052 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
7053 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
7054 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
7055 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
7056 instead of threadvar.
7057 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
7058 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
7059 (use_threadvar, global_reply_port): Remove variables.
7060 (__hurd_reply_port0): New variable.
7061 (__mig_get_reply_port): Use __hurd_local_reply_port and
7062 __hurd_reply_port0 instead of threadvar.
7063 (__mig_dealloc_reply_port): Likewise.
7064 (__mig_init): Do not initialize threadvar.
7065 * sysdeps/mach/hurd/profil.c: Fix comment.
7066 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
7067 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
7068 cthread_keycreate, cthread_getspecific, cthread_setspecific to
7069 __cthread_fork, __cthread_detach, __pthread_getattr_np,
7070 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
7071 __cthread_setspecific.
7072 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
7073 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
7074 __cthread_t instead of cthread_fork, cthread_detach,
7075 pthread_getattr_np, pthread_attr_getstack.
7076 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
7077 __cthread_keycreate.
7078 (cthread_getspecific): Rename to __cthread_getspecific.
7079 (cthread_setspecific): Rename to __cthread_setspecific.
7080 (__libc_getspecific): Use __cthread_getspecific instead of
7081 cthread_getspecific.
7082 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
7083 __cthread_keycreate instead of cthread_keycreate.
7084 (__libc_setspecific): Use __cthread_setspecific instead of
7085 cthread_setspecific.
7086 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
7087 Likewise.
7088 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
7089 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
7090 testing whether it is defined.
7091
7092 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
7093
7094 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
7095 Define macro.
7096 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
7097 * sysdeps/mach/i386/thread_state.h
7098 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
7099 i386_THREAD_STATE.
7100 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
7101 i386_THREAD_STATE.
7102 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
7103
7104 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
7105 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
7106
7107 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
7108 macros.
7109 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
7110 descriptor instead of creating a new one.
7111 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
7112
7113 * mach/setup-thread.c: Include <ldsodefs.h>.
7114 (__mach_setup_thread): Call _dl_allocate_tls, pass
7115 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
7116 MACHINE_THREAD_STATE_FLAVOR, before getting
7117 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
7118 MACHINE_THREAD_STATE_FLAVOR with the result.
7119 * hurd/hurdfault.c (_hurdsig_fault_init): Call
7120 MACHINE_THREAD_STATE_FIX_NEW.
7121 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
7122 too. Add original thread parameter.
7123
7124 2018-03-16 Joseph Myers <joseph@codesourcery.com>
7125
7126 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
7127 Remove inline function.
7128
7129 * sysdeps/i386/fpu/libm-test-ulps: Update.
7130 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7131
7132 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
7133
7134 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
7135 commit.
7136
7137 2018-03-15 Joseph Myers <joseph@codesourcery.com>
7138
7139 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
7140 (__sincos_code): Remove define and undefine.
7141 [__FAST_MATH__] (__sincos): Remove inline function.
7142 [__FAST_MATH__] (__sincosf): Remove inline function.
7143 [__FAST_MATH__] (__sincosl): Remove inline function.
7144 (__atan2l): Remove inline functions.
7145 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
7146 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
7147 function.
7148 (floor): Remove inline function.
7149 (ceil): Likewise.
7150 [__FAST_MATH__] (__ldexp_code): Remove macro.
7151 [__FAST_MATH__] (ldexp): Remove inline function.
7152 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
7153 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
7154 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
7155 [__USE_ISOC99] (__lrint_code): Remove macro.
7156 [__USE_ISOC99] (__llrint_code): Likewise.
7157 [__USE_ISOC99] (lrintf): Remove inline function.
7158 [__USE_ISOC99] (lrint): Likewise.
7159 [__USE_ISOC99] (lrintl): Likewise.
7160 [__USE_ISOC99] (llrint): Likewise.
7161 [__USE_ISOC99] (llrintf): Likewise.
7162 [__USE_ISOC99] (llrintl): Likewise.
7163
7164 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7165
7166 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
7167 (__ieee754_sqrtf): Remove.
7168 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
7169 (__ieee754_sqrtf): Remove.
7170 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
7171 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
7172 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
7173 (__ieee754_sqrtf): Remove.
7174 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
7175 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
7176 (sqrtf): Remove.
7177 (sqrtl): Remove.
7178 (__ieee754_sqrt): Remove.
7179 (__ieee754_sqrtf): Remove.
7180 (__ieee754_sqrtl): Remove.
7181 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
7182 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
7183 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
7184 (__ieee754_sqrtf): Remove.
7185 (__ieee754_sqrtl): Remove.
7186
7187 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7188
7189 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
7190 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
7191 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7192 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
7193 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
7194 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7195 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7196 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
7197 Likewise.
7198 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
7199 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
7200 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
7201 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7202 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7203 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
7204 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7205 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
7206 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7207 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
7208 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
7209 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
7210 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
7211 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
7212 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
7213 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7214 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7215 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7216 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
7217 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
7218 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
7219 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7220 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
7221 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
7222 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
7223 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
7224 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7225 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7226 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
7227 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
7228 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
7229 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
7230 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7231 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
7232 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7233 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7234 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
7235 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
7236 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
7237 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
7238
7239 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7240
7241 * include/math.h (sqrt): Declare with asm redirect.
7242 (sqrtf): Likewise.
7243 (sqrtl): Likewise.
7244 (sqrtf128): Likewise.
7245 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
7246 nonlib and libnldbl with -fmath-errno.
7247 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
7248 * math/w_sqrt_template.c: Likewise.
7249 * math/w_sqrtf_compat.c: Likewise.
7250 * math/w_sqrtl_compat.c: Likewise.
7251 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
7252 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
7253 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
7254 complex.h.
7255
7256 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7257
7258 * benchtests/Makefile: Define _ISOMAC.
7259 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
7260 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
7261 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
7262 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
7263 * benchtests/bench-timing.h: Define attribute_hidden.
7264
7265 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7266
7267 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
7268 mov + lsr.
7269
7270 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
7271
7272 [BZ #22963]
7273 * localedata/locales/cs_CZ (mon): Rename to...
7274 (alt_mon): This.
7275 (mon): Import from CLDR (genitive case).
7276
7277 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
7278
7279 [BZ #22937]
7280 * localedata/locales/el_CY (abmon): Rename to...
7281 (ab_alt_mon): This.
7282 (abmon): Import from CLDR (abbreviated genitive case).
7283 * localedata/locales/el_GR (abmon): Rename to...
7284 (ab_alt_mon): This.
7285 (abmon): Import from CLDR (abbreviated genitive case).
7286
7287 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
7288
7289 [BZ #22932]
7290 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
7291
7292 2018-03-15 Robert Buj <robert.buj@gmail.com>
7293
7294 [BZ #22848]
7295 * localedata/locales/ca_ES (abmon): Rename to...
7296 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
7297 (mon): Rename to...
7298 (alt_mon): This.
7299 (abmon): Import from CLDR (genitive case, month names preceded by
7300 "de" or "d’").
7301 (mon): Likewise.
7302 (abday): Synchronize with CLDR.
7303 (d_t_fmt): Likewise.
7304 (d_fmt): Likewise.
7305 (am_pm): Likewise.
7306
7307 (LC_TIME): Improve indentation.
7308 (LC_TELEPHONE): Likewise.
7309 (LC_NAME): Likewise.
7310 (LC_ADDRESS): Likewise.
7311
7312 2018-03-14 Joseph Myers <joseph@codesourcery.com>
7313
7314 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
7315 (lrintf): Remove definitions used only with old GCC.
7316 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
7317 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
7318 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
7319 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
7320 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
7321 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
7322 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
7323 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
7324 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
7325 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
7326 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
7327 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
7328 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
7329 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
7330 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
7331 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
7332 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
7333 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
7334 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
7335 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
7336 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
7337 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
7338 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
7339 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
7340 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
7341 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
7342 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
7343 [__FAST_MATH__] (__M_SQRT2): Remove macro.
7344
7345 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
7346
7347 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
7348 instruction to unbreak builds with binutils 2.26 and older.
7349
7350 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
7351
7352 * sysdeps/aarch64/strncmp.S (count): New macro.
7353 (strncmp): Store misaligned length in SRC1 in COUNT.
7354 (mutual_align): Adjust.
7355 (misaligned8): Load dword at a time when it is safe.
7356
7357 2018-03-12 Zack Weinberg <zackw@panix.com>
7358
7359 [BZ #1190]
7360 [BZ #19476]
7361 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
7362 if the _IO_EOF_SEEN bit is already set; update commentary.
7363 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
7364 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
7365
7366 * support/support_openpty.c, support/tty.h: New files.
7367 * support/Makefile (libsupport-routines): Add support_openpty.
7368
7369 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
7370 New test cases.
7371 * libio/Makefile (tests): Add tst-fgetc-after-eof.
7372 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
7373
7374 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
7375
7376 * po/pt_BR.po: Update translations.
7377
7378 2018-03-12 David Michael <fedora.dm0@gmail.com>
7379
7380 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
7381 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
7382 get a port to the startup server.
7383
7384 2018-03-11 Zack Weinberg <zackw@panix.com>
7385
7386 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
7387 before nldbl-compat.h.
7388
7389 2018-03-10 Zack Weinberg <zackw@panix.com>
7390
7391 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
7392 math.h or math_private.h.
7393
7394 * sysdeps/alpha/fpu/s_isnan.c
7395 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
7396 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
7397 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
7398 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
7399 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
7400 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
7401 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
7402 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
7403 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
7404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
7405 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
7406 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
7407 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
7408 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
7409 Include math_private.h.
7410
7411 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
7412 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
7413 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
7414 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
7415 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
7416 * sysdeps/powerpc/power7/fpu/s_logb.c:
7417 Include math.h and math_private.h.
7418
7419 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
7420 uses of $at in .set noat / .set at.
7421
7422 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
7423
7424 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
7425 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
7426 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
7427 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
7428 Likewise.
7429
7430 2018-03-09 Florian Weimer <fweimer@redhat.com>
7431
7432 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
7433 in comment.
7434
7435 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
7436
7437 [BZ #22919]
7438 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
7439 Add nop before __startcontext, add explaining comments.
7440
7441 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7442
7443 [BZ #22926]
7444 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
7445 empty for __SPE__.
7446 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7447 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
7448 Do not build hardware transactional code for __SPE__.
7449 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7450 (__lll_trylock_elision): Likewise.
7451 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
7452 (__lll_unlock_elision): Likewise.
7453
7454 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
7455 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
7456 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
7457 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
7458 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
7459 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
7460 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
7461 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
7462 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
7463 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
7464 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
7465 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
7466 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
7467 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
7468 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
7469 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
7470 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
7471 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
7472 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
7473 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
7474 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
7475 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7476 (__ASSUME_CLONE_BACKWARDS): Define.
7477 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
7478 __clone2 if __NR_clone2 is defined.
7479 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
7480 (__ASSUME_CLONE_BACKWARDS): Likewise.
7481 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7482 (__ASSUME_CLONE_BACKWARDS): Likewise.
7483 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7484 (__ASSUME_CLONE2): Likewise.
7485 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7486 (__ASSUME_CLONE_BACKWARDS3): Likewise.
7487 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
7488 variants and the define architecture can use.
7489 (__ASSUME_CLONE_DEFAULT): Define as default.
7490 * sysdeps/unix/sysv/linux/mips/kernel-features.h
7491 (__ASSUME_CLONE_BACKWARDS): Likewise.
7492 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7493 (__ASSUME_CLONE_BACKWARDS): Likewise.
7494 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7495 (__ASSUME_CLONE_BACKWARDS2): Likewise.
7496
7497 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
7498
7499 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
7500
7501 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
7502 time.
7503
7504 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
7505 (do_test_limit): Likewise.
7506
7507 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
7508 for every implementation.
7509 (do_test): Likewise.
7510
7511 * benchtests/bench-strncmp.c: Convert output to json.
7512
7513 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
7514
7515 * io/futimens.c: Add missing start-of-file descriptive comment.
7516 * io/utime.c: Likewise.
7517 * misc/futimesat.c: Likewise.
7518 * misc/utimes.c: Likewise.
7519 * sysdeps/mach/hurd/futimesat.c: Likewise.
7520 * sysdeps/mach/hurd/utimes.c: Likewise.
7521 * sysdeps/posix/utime.c: Likewise.
7522 * sysdeps/posix/utimes.c: Likewise.
7523 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
7524 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
7525 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
7526 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
7527
7528 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
7529
7530 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
7531 hurd_futimes.
7532 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
7533 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
7534 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
7535 (__futimens): Move implementation to...
7536 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
7537 utime_tvalue_from_tspec): ... new helper functions.
7538 (hurd_futimens): New function.
7539 * sysdeps/mach/hurd/futimesat.c: New file.
7540 * sysdeps/mach/hurd/utimensat.c: New file.
7541
7542 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
7543
7544 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
7545 UTIME_OMIT): New macros.
7546 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
7547 before reverting to converting time spec to time value and calling
7548 __file_utimes.
7549 * sysdeps/mach/hurd/utime-helper.c: New file.
7550 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
7551 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
7552 reverting to utime_tvalue_from_tval and __file_utimes.
7553 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
7554 (__lutimes): Just call hurd_futimens after lookup.
7555 * sysdeps/mach/hurd/utimes.c: Likewise.
7556
7557 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
7558
7559 * bits/sigaction.h: Add include guard.
7560 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
7561 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
7562 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
7563 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
7564 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
7565 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
7566 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7567 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
7568 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
7569
7570 2018-03-05 Joseph Myers <joseph@codesourcery.com>
7571
7572 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
7573 -Wmaybe-uninitialized for -Os.
7574 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
7575 this disabling.
7576
7577 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7578
7579 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
7580 __INO_T_MATCHES_INO64_T is defined.
7581 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
7582 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
7583 of definition.
7584 * dirent/alphasort64.c: Likewise.
7585 * dirent/scandir.c: Likewise.
7586 * dirent/scandir64-tail.c: Likewise.
7587 * dirent/scandir64.c: Likewise.
7588 * dirent/scandirat.c: Likewise.
7589 * dirent/scandirat64.c: Likewise.
7590 * dirent/versionsort.c: Likewise.
7591 * dirent/versionsort64.c: Likewise.
7592 * include/dirent.h: Likewise.
7593
7594 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
7595 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
7596 for socketpair endpoint.
7597 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
7598 WRITE_BUFFER_SIZE as buffer size for sending socket.
7599 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
7600 issue on system where send is implemented with sendto syscall.
7601 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
7602 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
7603 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
7604 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
7605
7606 [BZ #21269]
7607 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
7608 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
7609 sa_restorer for vDSO case.
7610 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
7611
7612 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7613
7614 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
7615 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
7616 * hurd/hurd/ioctl.h: Include <mach/port.h>
7617 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
7618 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
7619 <mach/mach_types.h> and <mach/message.h>.
7620 (headers): Move mach/param.h to bits/mach/param.h.
7621 * sysdeps/mach/i386/mach/param.h: Move file to ...
7622 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
7623 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
7624 of <mach/param.h>.
7625 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
7626 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
7627 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
7628 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
7629 trivial, for C++ conformity.
7630 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
7631 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
7632 Process mig output through $(migheadersed).
7633 * hurd/Makefile (migheadersed): Define variable.
7634 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
7635 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
7636 headers.
7637 * hurd/hurd.h: Include <bits/types/sigset_t.h>
7638 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
7639 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
7640 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
7641 <bits/types/sigset_t.h>.
7642 [!defined __USE_GNU]: Do not #error out.
7643 (struct hurd_sigstate): Use _NSIG instead of NSIG.
7644 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
7645 Include <stddef.h> and <bits/types/sigset_t.h>
7646 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
7647 instead of sighandler_t.
7648 * stdlib/errno.h (error_t): Move definition to...
7649 * bits/types/error_t.h: ... new header.
7650 * stdlib/Makefile (headers): Add bits/types/error_t.h.
7651 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
7652 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
7653 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
7654 * hurd/hurd.h: Include <bits/types/error_t.h>
7655 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
7656 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
7657 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
7658 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
7659 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
7660 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
7661 * sysdeps/mach/hurd/futimens.c: New file.
7662
7663 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
7664
7665 [BZ #22918]
7666 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
7667 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
7668 * nscd/gai.c (__nss_hosts_database): Readd definition.
7669 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7670 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7671 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7672
7673 2018-03-02 Joseph Myers <joseph@codesourcery.com>
7674
7675 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
7676 (ifunc_one): Likewise.
7677
7678 2018-03-01 DJ Delorie <dj@delorie.com>
7679
7680 [BZ #22342]
7681 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
7682 key value.
7683
7684 2018-03-01 Maciej W. Rozycki <macro@mips.com>
7685
7686 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
7687 `match_pid' parameter.
7688 (td_ta_thr_iter): Update accordingly.
7689
7690 2018-03-01 Florian Weimer <fweimer@redhat.com>
7691
7692 * nptl/Makefile (install-lib-ldscripts): Remove.
7693 (install): Remove rule.
7694 ($(inst_libdir)/libpthread.so): Likewise.
7695
7696 2018-03-01 Mike FABIAN <mfabian@redhat.com>
7697
7698 [BZ #22896]
7699 * localedata/locales/an_ES: update month and day names,
7700 improve d_fmt, improve postal_fmt, add country_post,
7701 add country_isbn
7702
7703 2018-03-01 Mike FABIAN <mfabian@redhat.com>
7704
7705 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
7706 Ukrainian instead of Bulgarian.
7707
7708 2018-03-01 Florian Weimer <fweimer@redhat.com>
7709
7710 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
7711 reference.
7712
7713 2018-03-01 Florian Weimer <fweimer@redhat.com>
7714
7715 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
7716 * nptl/Makefile (routines): Add pthread_atfork.
7717 (static-only-routines): Set to pthread_atfork.
7718 (libpthread-routines): Remove pthread_atfork.
7719 (libpthread-static-only-routines): Remove.
7720 (install): Update comment.
7721 (libpthread.so): Do not install libpthread_nonshared.a.
7722 (tests): Do not link with libpthread_nonshared.a.
7723 (generated): Remove libpthread_nonshared.a.
7724 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
7725 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
7726 with libpthread_nonshared.a.
7727
7728 2018-02-28 Joseph Myers <joseph@codesourcery.com>
7729
7730 [BZ #22902]
7731 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
7732 (libc_feholdexcept_setroundf128): New macro.
7733 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
7734
7735 [BZ #15105]
7736 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
7737 libc_hidden_def.
7738 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
7739 * include/inttypes.h: New file.
7740
7741 2018-02-27 Joseph Myers <joseph@codesourcery.com>
7742
7743 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
7744 -Os in two more places.
7745
7746 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7747
7748 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
7749 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
7750 be sorted correctly at the moment because of a bug.
7751
7752 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7753
7754 [BZ #22550] - es_ES locale (and other es_* locales): collation should
7755 treat ñ as a primary different character, sync the collation
7756 for Spanish with CLDR.
7757 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
7758 * localedata/Makefile: Add new test files.
7759 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
7760 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
7761 collation order.
7762 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
7763 * localedata/am_ET.UTF-8.in: New test file.
7764 * localedata/az_AZ.UTF-8.in: Likewise.
7765 * localedata/be_BY.UTF-8.in: Likewise.
7766 * localedata/ber_DZ.UTF-8.in: Likewise.
7767 * localedata/ber_MA.UTF-8.in: Likewise.
7768 * localedata/bg_BG.UTF-8.in: Likewise.
7769 * localedata/br_FR.UTF-8.in: Likewise.
7770 * localedata/cmn_TW.UTF-8.in: Likewise.
7771 * localedata/crh_UA.UTF-8.in: Likewise.
7772 * localedata/csb_PL.UTF-8.in: Likewise.
7773 * localedata/cv_RU.UTF-8.in: Likewise.
7774 * localedata/cy_GB.UTF-8.in: Likewise.
7775 * localedata/dz_BT.UTF-8.in: Likewise.
7776 * localedata/eo.UTF-8.in: Likewise.
7777 * localedata/es_ES.UTF-8.in: Likewise.
7778 * localedata/fa_IR.UTF-8.in: Likewise.
7779 * localedata/fi_FI.UTF-8.in: Likewise.
7780 * localedata/fil_PH.UTF-8.in: Likewise.
7781 * localedata/fur_IT.UTF-8.in: Likewise.
7782 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
7783 * localedata/ha_NG.UTF-8.in: Likewise.
7784 * localedata/ig_NG.UTF-8.in: Likewise.
7785 * localedata/ik_CA.UTF-8.in: Likewise.
7786 * localedata/kk_KZ.UTF-8.in: Likewise.
7787 * localedata/ku_TR.UTF-8.in: Likewise.
7788 * localedata/ky_KG.UTF-8.in: Likewise.
7789 * localedata/ln_CD.UTF-8.in: Likewise.
7790 * localedata/mi_NZ.UTF-8.in: Likewise.
7791 * localedata/ml_IN.UTF-8.in: Likewise.
7792 * localedata/mn_MN.UTF-8.in: Likewise.
7793 * localedata/mr_IN.UTF-8.in: Likewise.
7794 * localedata/mt_MT.UTF-8.in: Likewise.
7795 * localedata/nb_NO.UTF-8.in: Likewise.
7796 * localedata/om_KE.UTF-8.in: Likewise.
7797 * localedata/os_RU.UTF-8.in: Likewise.
7798 * localedata/ps_AF.UTF-8.in: Likewise.
7799 * localedata/ro_RO.UTF-8.in: Likewise.
7800 * localedata/ru_RU.UTF-8.in: Likewise.
7801 * localedata/sc_IT.UTF-8.in: Likewise.
7802 * localedata/se_NO.UTF-8.in: Likewise.
7803 * localedata/sq_AL.UTF-8.in: Likewise.
7804 * localedata/sv_SE.UTF-8.in: Likewise.
7805 * localedata/szl_PL.UTF-8.in: Likewise.
7806 * localedata/tg_TJ.UTF-8.in: Likewise.
7807 * localedata/tk_TM.UTF-8.in: Likewise.
7808 * localedata/tt_RU.UTF-8.in: Likewise.
7809 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
7810 * localedata/ug_CN.UTF-8.in: Likewise.
7811 * localedata/uz_UZ.UTF-8.in: Likewise.
7812 * localedata/vi_VN.UTF-8.in: Likewise.
7813 * localedata/yi_US.UTF-8.in: Likewise.
7814 * localedata/yo_NG.UTF-8.in: Likewise.
7815 * localedata/zh_CN.UTF-8.in: Likewise.
7816 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
7817 file and fix bugs in the collation.
7818 * localedata/locales/az_AZ: Likewise.
7819 * localedata/locales/be_BY: Likewise.
7820 * localedata/locales/ber_DZ: Likewise.
7821 * localedata/locales/ber_MA: Likewise.
7822 * localedata/locales/bg_BG: Likewise.
7823 * localedata/locales/br_FR: Likewise.
7824 * localedata/locales/br_FR@euro: Likewise.
7825 * localedata/locales/ca_ES: Likewise.
7826 * localedata/locales/cns11643_stroke: Likewise.
7827 * localedata/locales/crh_UA: Likewise.
7828 * localedata/locales/cs_CZ: Likewise.
7829 * localedata/locales/csb_PL: Likewise.
7830 * localedata/locales/cv_RU: Likewise.
7831 * localedata/locales/cy_GB: Likewise.
7832 * localedata/locales/da_DK: Likewise.
7833 * localedata/locales/dz_BT: Likewise.
7834 * localedata/locales/en_CA: Likewise.
7835 * localedata/locales/eo: Likewise.
7836 * localedata/locales/es_CU: Likewise.
7837 * localedata/locales/es_EC: Likewise.
7838 * localedata/locales/es_ES: Likewise.
7839 * localedata/locales/es_US: Likewise.
7840 * localedata/locales/et_EE: Likewise.
7841 * localedata/locales/fa_IR: Likewise.
7842 * localedata/locales/fi_FI: Likewise.
7843 * localedata/locales/fil_PH: Likewise.
7844 * localedata/locales/fur_IT: Likewise.
7845 * localedata/locales/gez_ER@abegede: Likewise.
7846 * localedata/locales/ha_NG: Likewise.
7847 * localedata/locales/hr_HR: Likewise.
7848 * localedata/locales/hsb_DE: Likewise.
7849 * localedata/locales/hu_HU: Likewise.
7850 * localedata/locales/ig_NG: Likewise.
7851 * localedata/locales/ik_CA: Likewise.
7852 * localedata/locales/is_IS: Likewise.
7853 * localedata/locales/iso14651_t1_pinyin: Likewise.
7854 * localedata/locales/kk_KZ: Likewise.
7855 * localedata/locales/ku_TR: Likewise.
7856 * localedata/locales/ky_KG: Likewise.
7857 * localedata/locales/ln_CD: Likewise.
7858 * localedata/locales/lt_LT: Likewise.
7859 * localedata/locales/lv_LV: Likewise.
7860 * localedata/locales/mi_NZ: Likewise.
7861 * localedata/locales/ml_IN: Likewise.
7862 * localedata/locales/mn_MN: Likewise.
7863 * localedata/locales/mr_IN: Likewise.
7864 * localedata/locales/mt_MT: Likewise.
7865 * localedata/locales/nb_NO: Likewise.
7866 * localedata/locales/om_KE: Likewise.
7867 * localedata/locales/os_RU: Likewise.
7868 * localedata/locales/pl_PL: Likewise.
7869 * localedata/locales/ps_AF: Likewise.
7870 * localedata/locales/ro_RO: Likewise.
7871 * localedata/locales/ru_RU: Likewise.
7872 * localedata/locales/ru_UA: Likewise.
7873 * localedata/locales/sc_IT: Likewise.
7874 * localedata/locales/se_NO: Likewise.
7875 * localedata/locales/si_LK: Likewise.
7876 * localedata/locales/sq_AL: Likewise.
7877 * localedata/locales/sv_FI: Likewise.
7878 * localedata/locales/sv_FI@euro: Likewise.
7879 * localedata/locales/sv_SE: Likewise.
7880 * localedata/locales/szl_PL: Likewise.
7881 * localedata/locales/tg_TJ: Likewise.
7882 * localedata/locales/ti_ER: Likewise.
7883 * localedata/locales/tk_TM: Likewise.
7884 * localedata/locales/tl_PH: Likewise.
7885 * localedata/locales/tr_TR: Likewise.
7886 * localedata/locales/tt_RU: Likewise.
7887 * localedata/locales/tt_RU@iqtelif: Likewise.
7888 * localedata/locales/ug_CN: Likewise.
7889 * localedata/locales/uk_UA: Likewise.
7890 * localedata/locales/uz_UZ: Likewise.
7891 * localedata/locales/uz_UZ@cyrillic: Likewise.
7892 * localedata/locales/vi_VN: Likewise.
7893 * localedata/locales/yi_US: Likewise.
7894 * localedata/locales/yo_NG: Likewise.
7895
7896 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7897
7898 * gen-locales.mk: Make test files which contain @ modifiers in their
7899 name work.
7900 * localedata/gen-locale.sh: Likewise.
7901
7902 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7903
7904 * posix/tst-fnmatch.input: Fix results for range expressions
7905 for non C locales.
7906 * posix/tst-regexloc.c: Do not use a range expression for
7907 de_DE.ISO-8859-1 locale.
7908
7909 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7910
7911 * posix/bug-regex5.c: Fix test case because with the new
7912 iso14651_t1_common file, the da_DK locale now has 6 collating elements
7913 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
7914 file.
7915
7916 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7917
7918 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
7919 downloaded from ISO, the collation order of @-. and space has changed.
7920 Therefore, this test file needed to be adapted.
7921 * localedata/fr_CA.UTF-8.in: Likewise.
7922 * localedata/fr_FR.UTF-8.in: Likewise.
7923 * localedata/uk_UA.UTF-8.in: Likewise.
7924
7925 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7926
7927 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
7928 order of ȥ in the new iso14651_t1_common file.
7929 * localedata/pl_PL.UTF-8.in: Likewise.
7930
7931 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7932
7933 * localedata/locales/iso14651_t1_common: Add sections for various
7934 scripts to the iso14651_t1_common file.
7935
7936 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7937
7938 * localedata/locales/iso14651_t1_common: Use the code point of a
7939 character in the fourth collation level instead of IGNORE for all
7940 entries which have IGNORE on all 4 levels.
7941
7942 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7943
7944 * localedata/locales/iso14651_t1_common: Add some convenient collation
7945 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
7946 rules similar to those in CLDR.
7947
7948 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7949
7950 * localedata/locales/iso14651_t1_common: The new version of this
7951 file downloaded from ISO contained several syntax errors which
7952 are fixed by this patch.
7953
7954 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7955
7956 * localedata/locales/iso14651_t1_common: replace all <U.....>
7957 with <U000.....> because glibc understands only 4 digit or 8 digit
7958
7959 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7960
7961 * localedata/locales/iso14651_t1_common: Necessary changes
7962 to make the file downloaded from ISO usable by glibc.
7963
7964 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7965
7966 [BZ #14095]
7967 * localedata/locales/iso14651_t1_common: Update file to
7968 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
7969
7970 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7971
7972 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
7973 of <nptl/pthreadP.h>
7974 (thread_attr_compare): Move function to...
7975 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
7976 * sysdeps/nptl/timer_routines.h: ... new header.
7977 * sysdeps/mach/hurd/gai_misc.h: New file.
7978
7979 2018-02-26 Joseph Myers <joseph@codesourcery.com>
7980
7981 * string/strcoll_l.c: Include <libc-diag.h>.
7982 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
7983 declarations of seq1 and seq2.
7984
7985 [BZ #15105]
7986 * stdlib/atoi.c (atoi): Use libc_hidden_def.
7987 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
7988
7989 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7990
7991 [BZ #22433]
7992 [BZ #22807]
7993 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
7994 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
7995 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
7996 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
7997 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
7998 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
7999
8000 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8001
8002 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
8003 macros used in __ptrace_request.
8004
8005 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
8006
8007 [BZ #22792]
8008 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
8009 to $(CC).
8010 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
8011 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
8012 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
8013 <tcb-offsets.h>.
8014
8015 2018-02-23 Joseph Myers <joseph@codesourcery.com>
8016
8017 [BZ #15105]
8018 * ctype/ctype.c (tolower): Use libc_hidden_def.
8019 (toupper): Likewise.
8020 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
8021 [!_ISOMAC] (toupper): Likewise.
8022
8023 2018-02-23 Mike FABIAN <mfabian@redhat.com>
8024
8025 * localedata/Makefile: Remove --quiet argument when
8026 installing locales
8027
8028 2018-02-23 Mike FABIAN <mfabian@redhat.com>
8029
8030 [BZ #17438]
8031 * localedata/locales/pt_BR (LC_TIME): use / instead of -
8032 in d_fmt.
8033 * localedata/locales/pt_PT (LC_TIME): likewise
8034
8035 2018-02-23 Mike FABIAN <mfabian@redhat.com>
8036
8037 [BZ #22646]
8038 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
8039 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
8040 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
8041
8042 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8043
8044 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8045
8046 * nptl/Makefile (routines): Remove unregister-atfork.
8047 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
8048 (fork_handler_alloc): Remove function.
8049 (fork_handlers, fork_handler_init): New variables.
8050 (__fork_lock): Rename to atfork_lock.
8051 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
8052 to use a dynamic array to add/remove atfork handlers.
8053 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
8054 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
8055 Remove declaration.
8056 (fork_handler): Remove next, refcntr, and need_signal member.
8057 (__run_fork_handler_type): New enum.
8058 (__run_fork_handlers): New prototype.
8059 * nptl/register-atfork.c: Remove file.
8060 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
8061
8062 * sysdeps/nptl/nptl-signals.h: Move to ...
8063 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
8064 comments.
8065 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
8066 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
8067 unnecessary check for SIGTIMER.
8068 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
8069 remove unnecessary removal of SIGTIMER.
8070 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
8071 include-signals.h rename.
8072 * nptl/pthreadP.h: Likewise.
8073 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
8074 __is_internal_signal instead of __nptl_is_internal_signal.
8075
8076 2018-02-22 Andrew Waterman <andrew@sifive.com>
8077
8078 [BZ # 22884]
8079 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
8080 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
8081 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
8082 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
8083
8084 2018-02-22 DJ Delorie <dj@delorie.com>
8085
8086 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
8087
8088 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
8089
8090 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
8091 do_misaligned, not misaligned8.
8092
8093 2018-02-22 Steve Ellcey <sellcey@cavium.com>
8094
8095 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
8096 Add memcpy_thunderx2.
8097 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8098 Increment to 4.
8099 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
8100 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
8101 and IS_THUNDERX2PA checks.
8102 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
8103 Use macro to set name appropriately.
8104 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
8105 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
8106 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
8107 New macro.
8108 (IS_THUNDERX2): New macro.
8109
8110 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
8111
8112 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8113
8114 2018-02-21 Zack Weinberg <zackw@panix.com>
8115
8116 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
8117 Define here, unconditionally.
8118 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
8119 * libio/libioP.h: Remove #if 0 blocks.
8120 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
8121 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
8122 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
8123
8124 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
8125 Assume weak_alias is always defined.
8126
8127 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
8128 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
8129 Remove #if 0 and #ifdef TODO blocks.
8130 Assume text_set_element is always defined.
8131
8132 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
8133 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
8134 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
8135
8136 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
8137 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
8138 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
8139 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
8140 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
8141 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
8142 Reformat bit flags for _flags field to make occupancy clearer.
8143 Update commentary.
8144 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
8145 Keep definitions consistent with those in libio/libio.h.
8146
8147 * libio/libio.h (_IO_file_flags): Remove macro.
8148 All uses changed to _flags.
8149
8150 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
8151 (__HAVE_COLUMN, _IO_BE): Don't define.
8152 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
8153 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
8154 * libio/libioP.h (EOF): Don't define.
8155 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
8156 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
8157 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
8158 testing _IO_UNIFIED_JUMPTABLES.
8159
8160 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
8161 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
8162 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
8163 (_IO_size_t): Delete; all uses changed to size_t.
8164 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
8165 (_IO_off_t): Delete; all uses changed to off_t.
8166 (_IO_off64_t): Delete; all uses changed to off64_t.
8167 (_IO_pid_t): Delete; all uses changed to pid_t.
8168 (_IO_uid_t): Delete; all uses changed to uid_t.
8169 (_IO_wint_t): Delete; all uses changed to wint_t.
8170 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
8171 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
8172 (_IO_cookie_io_functions_t): Delete; all uses changed to
8173 cookie_io_functions_t.
8174 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
8175 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
8176 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
8177 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
8178
8179 * libio/iofopncook.c: Remove unnecessary forward declarations.
8180 * libio/iolibio.h: Correct outdated commentary.
8181 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
8182 * stdio-common/fxprintf.c (__fxprintf_nocancel):
8183 Remove unnecessary casts.
8184 * stdio-common/getline.c: Use _IO_getdelim directly.
8185 Don't redefine ssize_t.
8186 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
8187 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
8188 Remove outdated comments.
8189 * stdio-common/vfscanf.c: Don't redefine va_list.
8190
8191 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
8192 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
8193 Remove preprocessor conditionals on _LIBC and __USE_GNU,
8194 which are always true, and __cplusplus, which is always false.
8195
8196 2018-02-21 Joseph Myers <joseph@codesourcery.com>
8197
8198 [BZ #15105]
8199 [BZ #19463]
8200 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
8201 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
8202 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
8203 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
8204 libc_hidden_proto.
8205 [!_ISOMAC] (putc_unlocked): Likewise.
8206 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
8207 define inline if [__USE_EXTERN_INLINES].
8208 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
8209 putc_unlocked.
8210
8211 [BZ #15105]
8212 [BZ #19463]
8213 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
8214 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
8215 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
8216 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
8217 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
8218 getc_unlocked.
8219 * time/tzfile.c (__tzfile_read): Likewise.
8220
8221 2018-02-21 Mike FABIAN <mfabian@redhat.com>
8222
8223 [BZ #22517]
8224 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
8225
8226 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
8227
8228 * io/fcntl.h: Fix a typo in a comment.
8229
8230 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
8231
8232 [BZ #22862]
8233 * include/features.h: Add _ISOC11_SOURCE to test for whether to
8234 define _DEFAULT_SOURCE.
8235 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
8236
8237 2018-02-21 Florian Weimer <fweimer@redhat.com>
8238
8239 [BZ #20890]
8240 * elf/cache.c (save_cache): Call fsync on temporary file before
8241 renaming it.
8242 (save_aux_cache): Call fdatasync on temporary file before renaming
8243 it.
8244
8245 2018-02-21 Florian Weimer <fweimer@redhat.com>
8246
8247 [BZ #22787]
8248 * include/caller.h: Remove file.
8249 * elf/dl-caller.c: Likewise.
8250 * elf/Makefile (dl-routines): Remove dl-caller.
8251 (shared-only-routines): Do not add dl-caller.
8252 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
8253 __check_caller.
8254 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
8255 member.
8256 (dl_open_worker): Do not call __check_caller.
8257 (_dl_open): Do not set caller_dl_open member.
8258 * elf/rtld.c (_rtld_global_ro): Do not initialize
8259 _dl_check_caller member.
8260 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
8261 _dl_check_caller member.
8262 (_dl_check_caller): Remove declaration.
8263 * sysdeps/unix/sysv/linux/dl-execstack.c
8264 (_dl_make_stack_executable): Do not call __check_caller.
8265
8266 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8267
8268 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
8269 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
8270
8271 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
8272
8273 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
8274 description.
8275
8276 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
8277
8278 [BZ #16335]
8279 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
8280 of 199606L, 200112L, and 200809L.
8281 (_XOPEN_SOURCE): Document special values of 600 and 700.
8282 (_ISOC11_SOURCE): Document macro.
8283 (_ATFILE_SOURCE): Likewise.
8284 (_FORTIFY_SOURCE): Likewise.
8285
8286 2018-02-19 Joseph Myers <joseph@codesourcery.com>
8287
8288 [BZ #15105]
8289 [BZ #19463]
8290 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
8291 and define as weak alias of __ferror_unlocked. Use
8292 libc_hidden_weak.
8293 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
8294 libc_hidden_proto.
8295 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
8296 function if [__USE_EXTERN_INLINES].
8297 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
8298 ferror_unlocked.
8299
8300 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
8301
8302 [BZ #6889]
8303 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
8304
8305 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
8306
8307 [BZ #22818]
8308 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
8309 the GLIBC_2.1 version.
8310
8311 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
8312
8313 [BZ #21508]
8314 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
8315 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
8316 intl/tst-gettext-de.po from po/de.po by removing the
8317 POT-Creation-Date line.
8318 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
8319 ../po/de.po.
8320 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
8321 ../po/de.po.
8322
8323 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
8324
8325 * mach/Makefile (headers): Add mach/param.h.
8326 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
8327 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
8328 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
8329 (__ptsname_r): Move implementation to...
8330 (__ptsname_internal): ... new function. Add filling the STP
8331 structure.
8332
8333 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
8334
8335 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
8336 idouble to 1 ULP.
8337
8338 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
8339
8340 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
8341 syntax.
8342
8343 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
8344
8345 * nptl/Makefile (tst-mutex8-ENV): Delete.
8346 * nptl/tst-mutex8.c (check_type):
8347 Add runtime check if mutex will be elided.
8348
8349 2018-02-15 Joseph Myers <joseph@codesourcery.com>
8350
8351 [BZ #20980]
8352 [BZ #21234]
8353 * manual/install.texi (Configuring and compiling): Describe
8354 passing CC and CFLAGS on configure command line, not as
8355 environment variables. Use @code markup on those variables.
8356 Specify what options go in CC and what go in CFLAGS. Note the
8357 requirement to compile with optimization.
8358 * INSTALL: Regenerated.
8359
8360 [BZ #18124]
8361 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
8362 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
8363 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
8364 __sigprocmask instead of sigprocmask.
8365 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
8366 Likewise.
8367 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
8368 __sigsetjmp and sigprocmask.
8369
8370 [BZ #15105]
8371 * include/argz.h (argz_next): Use libc_hidden_proto.
8372 (__argz_next): Likewise.
8373 * string-argz-next.c (__argz_next): Use libc_hidden_def.
8374 (argz_next): Use libc_hidden_weak.
8375
8376 [BZ #15105]
8377 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
8378 libc_hidden_proto.
8379 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
8380 libc_hidden_def.
8381
8382 [BZ #15105]
8383 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
8384 libc_hidden_proto.
8385 * libio/iofputs.c (fputs): Use libc_hidden_weak.
8386
8387 [BZ #15105]
8388 [BZ #19463]
8389 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
8390 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
8391 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
8392 (__feof_unlocked): New declaration, and inline function if
8393 [__USE_EXTERN_INLINES].
8394 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
8395 instead of feof_unlocked.
8396 * intl/localealias.c [_LIBC] (FEOF): Likewise.
8397 * nss/nsswitch.c (nss_parse_file): Likewise.
8398 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
8399 Likewise.
8400 * time/getdate.c (__getdate_r): Likewise.
8401 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
8402 Define as macro to call __feof_unlocked.
8403
8404 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
8405
8406 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
8407
8408 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
8409
8410 * math/Makefile: Remove mpexp.c and mplog.c
8411 * sysdeps/i386/fpu/mpexp.c: Delete file.
8412 * sysdeps/i386/fpu/mplog.c: Likewise.
8413 * sysdeps/ia64/fpu/mpexp.c: Likewise.
8414 * sysdeps/ia64/fpu/mplog.c: Likewise.
8415 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
8416 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
8417 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
8418 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
8419 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
8420 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
8421 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
8422 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
8423 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8424 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
8425 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
8426 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8427 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
8428 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
8429 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8430 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
8431
8432 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
8433
8434 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8435
8436 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8437
8438 * sysdeps/sh/libm-test-ulps: Update.
8439
8440 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8441
8442 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
8443 idouble to 1 ULP.
8444
8445 2018-02-12 Zack Weinberg <zackw@panix.com>
8446
8447 [BZ #19239]
8448 * posix/sys/types.h: Don't include sys/sysmacros.h.
8449 * misc/sys/sysmacros.h: Remove the conditional deprecation
8450 warnings for the macros defined by this header.
8451
8452 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8453
8454 * manual/probes.texi: Remove slowexp probes.
8455 * math/Makefile: Remove slowexp.
8456 * sysdeps/generic/math_private.h (__slowexp): Remove.
8457 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
8458 document error bounds.
8459 * sysdeps/i386/fpu/slowexp.c: Remove.
8460 * sysdeps/ia64/fpu/slowexp.c: Remove.
8461 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
8462 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
8463 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
8464 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
8465 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
8466 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
8467 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
8468 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
8469 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
8470 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
8471 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
8472
8473 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
8474
8475 [BZ #13932]
8476 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
8477 * benchtests/pow-inputs: Update comment for slow path cases.
8478 * manual/probes.texi (slowpow_p10): Delete removed probe.
8479 (slowpow_p10): Likewise.
8480 * math/Makefile: Remove halfulp.c and slowpow.c.
8481 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
8482 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
8483 (__halfulp): Remove.
8484 (__slowpow): Remove.
8485 * sysdeps/i386/fpu/halfulp.c: Delete file.
8486 * sysdeps/i386/fpu/slowpow.c: Likewise.
8487 * sysdeps/ia64/fpu/halfulp.c: Likewise.
8488 * sysdeps/ia64/fpu/slowpow.c: Likewise.
8489 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
8490 improve comments and add error analysis.
8491 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
8492 (power1): Remove function:
8493 (log1): Remove error argument, add error analysis.
8494 (my_log2): Remove function.
8495 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
8496 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8497 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
8498 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
8499 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
8500 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
8501 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
8502 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
8503 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
8504 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
8505 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
8506 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
8507 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8508 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
8509
8510 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
8511
8512 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
8513 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
8514
8515 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
8516
8517 [BZ #22433]
8518 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
8519 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
8520 and PTRACE_SETHBPREGS.
8521
8522 2018-02-10 Zack Weinberg <zackw@panix.com>
8523
8524 [BZ #22830]
8525 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
8526 correctly.
8527 * malloc/tst-malloc-stats-cancellation.c: New test case.
8528 * malloc/Makefile: Add new test case.
8529
8530 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
8531
8532 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
8533
8534 2018-02-10 Joseph Myers <joseph@codesourcery.com>
8535
8536 * math/Makefile (libm-narrow-fns): Add add.
8537 (libm-test-funcs-narrow): Likewise.
8538 * math/Versions (GLIBC_2.28): Add narrowing add functions.
8539 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
8540 * math/gen-auto-libm-tests.c (test_functions): Add add.
8541 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
8542 (NARROW_ADD_ROUND_TO_ODD): Likewise.
8543 (NARROW_ADD_TRIVIAL): Likewise.
8544 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
8545 macro.
8546 (__daddl): Likewise.
8547 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
8548 dadd.
8549 (CFLAGS-nldbl-dadd.c): New variable.
8550 (CFLAGS-nldbl-fadd.c): Likewise.
8551 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8552 __nldbl_daddl.
8553 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
8554 prototype.
8555 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
8556 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
8557 * math/auto-libm-test-in: Add tests of add.
8558 * math/auto-libm-test-out-narrow-add: New generated file.
8559 * math/libm-test-narrow-add.inc: New file.
8560 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8561 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
8562 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
8563 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
8564 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
8565 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
8566 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
8567 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
8568 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
8569 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
8570 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
8571 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
8572 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
8573 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
8574 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
8575 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
8576 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
8577 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
8578 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8579 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8580 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8581 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8582 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8583 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8584 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8585 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8586 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8587 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8588 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8589 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8590 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8591 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8593 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8596 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8597 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8598 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8599 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8600 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8601 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8602 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
8603 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
8604 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8605 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8606
8607 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
8608 (f128-pairs): New variable.
8609 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
8610 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
8611 to CFLAGS.
8612 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
8613 Also make tests add $(f128-loader-link) to gnulib-tests.
8614
8615 2018-02-09 DJ Delorie <dj@redhat.com>
8616
8617 [BZ #22827]
8618 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
8619 64-bit ELF type for 64-bit ELF objects.
8620
8621 2018-02-09 Joseph Myers <joseph@codesourcery.com>
8622
8623 * math/libm-test-driver.c (snan_tests_arg): New variable.
8624 * math/libm-test-support.h (snan_tests_arg): New declaration.
8625 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
8626
8627 * math/Makefile (test-type-pairs): New variable.
8628 (test-type-pairs-f64xf128-yes): Likewise.
8629 (tests): Add test-narrow-macros.
8630 (libm-test-funcs-narrow): New variable.
8631 (libm-test-c-narrow): Likewise.
8632 (generated): Add $(libm-test-c-narrow).
8633 (libm-tests-base-narrow): New variable.
8634 (libm-tests-narrow): Likewise.
8635 (libm-tests): Add $(libm-tests-narrow).
8636 (libm-tests-for-type): Handle $(libm-tests-narrow).
8637 (libm-test-c-narrow-obj): New variable.
8638 ($(libm-test-c-narrow-obj)): New rule.
8639 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
8640 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
8641 $(o-iterator) to set dependencies and CFLAGS.
8642 * math/gen-auto-libm-tests.c: Document use for narrowing
8643 functions.
8644 (output_for_one_input_case): Take argument NARROW.
8645 (generate_output): Likewise. Update call to
8646 output_for_one_input_case.
8647 (main): Take --narrow option. Update call to generate_output.
8648 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
8649 (apply_lit): Update call to _apply_lit.
8650 (apply_arglit): New function.
8651 (parse_args): Handle "a" arguments.
8652 (parse_auto_input): Handle format names using ":".
8653 * math/README.libm-test: Document "a" parameter type.
8654 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
8655 (ARG_TYPE_TRUE_MIN): Likewise.
8656 (ARG_TYPE_MAX): Likwise.
8657 (ARG_MIN_EXP): Likewise.
8658 (ARG_MAX_EXP): Likewise.
8659 (ARG_MANT_DIG): Likewise.
8660 (TEST_COND_arg_ibm128): Likewise.
8661 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
8662 (TEST_COND_arg_fmt): New macro.
8663 (init_max_error): Update prototype.
8664 * math/libm-test-support.c (test_ibm128): New variable.
8665 (init_max_error): Take argument testing_ibm128 and set test_ibm128
8666 instead of using [TEST_COND_ibm128] conditional.
8667 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
8668 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
8669 [TEST_NARROW] (TEST_MSG): New definition.
8670 (arg_plus_zero): New macro.
8671 (arg_minus_zero): Likewise.
8672 (arg_plus_infty): Likewise.
8673 (arg_minus_infty): Likewise.
8674 (arg_qnan_value_pl): Likewise.
8675 (arg_qnan_value): Likewise.
8676 (arg_snan_value_pl): Likewise.
8677 (arg_snan_value): Likewise.
8678 (arg_max_value): Likewise.
8679 (arg_min_value): Likewise.
8680 (arg_min_subnorm_value): Likewise.
8681 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
8682 (RUN_TEST_LOOP_aa_f): New macro.
8683 (TEST_SUFF): New macro.
8684 (TEST_SUFF_STR): Likewise.
8685 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
8686 (TEST_COND_any_ibm128): New macro.
8687 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
8688 this_func. Update call to init_max_error.
8689 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
8690 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
8691 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
8692 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
8693 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
8694 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
8695 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
8696 * math/test-math-scalar.h (TEST_NARROW): Likewise.
8697 * math/test-math-vector.h (TEST_NARROW): Likewise.
8698 * math/test-arg-double.h: New file.
8699 * math/test-arg-float128.h: Likewise.
8700 * math/test-arg-float32x.h: Likewise.
8701 * math/test-arg-float64.h: Likewise.
8702 * math/test-arg-float64x.h: Likewise.
8703 * math/test-arg-ldouble.h: Likewise.
8704 * math/test-math-narrow.h: Likewise.
8705 * math/test-narrow-macros.c: Likewise.
8706 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
8707 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
8708 test-narrow-macros-ldbl-64.
8709 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
8710
8711 * math/bits/mathcalls-narrow.h: New file.
8712 * include/bits/mathcalls-narrow.h: Likewise.
8713 * math/math-narrow.h: Likewise.
8714 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
8715 (__MATHCALL_NARROW_ARGS_2): Likewise.
8716 (__MATHCALL_NARROW_ARGS_3): Likewise.
8717 (__MATHCALL_NARROW_NORMAL): Likewise.
8718 (__MATHCALL_NARROW_REDIR): Likewise.
8719 (__MATHCALL_NARROW): Likewise.
8720 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
8721 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
8722 defined.
8723 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
8724 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
8725 (libm-narrow-fns): New variable.
8726 (libm-narrow-types-basic): Likewise.
8727 (libm-narrow-types-ldouble-yes): Likewise.
8728 (libm-narrow-types-float128-yes): Likewise.
8729 (libm-narrow-types-float128-alias-yes): Likewise.
8730 (libm-narrow-types): Likewise.
8731 (libm-routines): Add narrowing functions.
8732 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
8733 (libc_feholdexcept_setroundf128): New macro.
8734 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
8735 * sysdeps/ieee754/float128/float128_private.h: Include
8736 <math/math-narrow.h>.
8737 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
8738 Undefine and redefine.
8739 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
8740 (libm_alias_float_ldouble): Undefine and redefine.
8741 (libm_alias_double_ldouble): Likewise.
8742
8743 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
8744
8745 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
8746
8747 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
8748 FPCR/FPSR.
8749
8750 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
8751
8752 * manual/creature.texi: Convert references to gcc.info to gcc.
8753 * manual/stdio.texi: Likewise.
8754 * manual/string.texi: Likewise.
8755
8756 2018-02-07 Joseph Myers <joseph@codesourcery.com>
8757
8758 [BZ #17979]
8759 * posix/bits/types.h (__int_least8_t): New typedef.
8760 (__uint_least8_t): Likewise.
8761 (__int_least16_t): Likewise.
8762 (__uint_least16_t): Likewise.
8763 (__int_least32_t): Likewise.
8764 (__uint_least32_t): Likewise.
8765 (__int_least64_t): Likewise.
8766 (__uint_least64_t): Likewise.
8767 * sysdeps/generic/stdint.h (int_least8_t): Define using
8768 __int_least8_t.
8769 (int_least16_t): Define using __int_least16_t.
8770 (int_least32_t): Define using __int_least32_t.
8771 (int_least64_t): Define using __int_least64_t.
8772 (uint_least8_t): Define using __uint_least8_t.
8773 (uint_least16_t): Define using __uint_least16_t.
8774 (uint_least32_t): Define using __uint_least32_t.
8775 (uint_least64_t): Define using __uint_least64_t.
8776 * wcsmbs/uchar.h: Include <bits/types.h>.
8777 (char16_t): Define using __uint_least16_t conditional only on
8778 [!__USE_ISOCXX11].
8779 (char32_t): Define using __uint_least32_t conditional only on
8780 [!__USE_ISOCXX11].
8781 * wcsmbs/test-char-types.c: New file.
8782 * wcsmbs/Makefile (tests): Add test-char-types.
8783
8784 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
8785 version to 4.0.1.
8786
8787 2018-02-07 Zack Weinberg <zackw@panix.com>
8788
8789 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
8790 Delete all contents except for definitions of _G_HAVE_MMAP and
8791 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
8792 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
8793 sysdeps/unix/sysv/linux/_G_config.h. Make same content
8794 change as above.
8795
8796 * libio/libio.h: Don't include bits/_G_config.h here.
8797 Include stddef.h with __need_wchar_t defined. Include
8798 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
8799 Define _IO_iconv_t here, directly.
8800 Don't define _IO_HAVE_ST_BLKSIZE.
8801 * libio/libioP.h: Include _G_config.h here. Move include of
8802 shlib-compat.h up with rest of includes. Simplify conditionals
8803 controlling definition of _IO_JUMPS_OFFSET.
8804
8805 * csu/init.c: Remove always-true #if around entire file.
8806 Don't include stdio.h. Set _IO_stdin_used to hardwired
8807 constant 0x20001, and update commentary.
8808 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
8809 Replace all uses of _G_va_list with __gnuc_va_list.
8810 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
8811 instead of #if _IO_HAVE_ST_BLKSIZE.
8812 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
8813 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
8814 not #ifdef.
8815
8816 * libio/bits/libio.h: Move back to libio/libio.h and adjust
8817 multiple-include guard to match.
8818 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
8819 into this file.
8820 Remove preprocessor conditionals that are always true and/or
8821 redundant to other preprocessor conditionals in the same nest.
8822 Include shlib-compat.h unconditionally.
8823 Error out if _LIBC is not defined, or if _ISOMAC is defined,
8824 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
8825 defined after including stdio.h.
8826 Use __BEGIN_DECLS/__END_DECLS.
8827
8828 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
8829 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
8830 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
8831
8832 2018-02-07 Zack Weinberg <zackw@panix.com>
8833
8834 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
8835 New single-type headers split from _G_config.h.
8836 * libio/bits/types/cookie_io_functions_t.h
8837 * libio/bits/types/struct_FILE.h
8838 New single-type headers split from libio.h.
8839
8840 * libio/Makefile: Install the above new headers. Don't install
8841 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
8842 bits/libio-ldbl.h.
8843 * libio/_G_config.h, libio/libio.h: Delete file.
8844
8845 * libio/bits/libio.h: Remove improper-inclusion guard.
8846 Include stdio.h and don't repeat anything that it does.
8847 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
8848 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
8849 __io_read_fn as cookie_read_function_t,
8850 __io_write_fn as cookie_write_function_t,
8851 __io_seek_fn as cookie_seek_function_t,
8852 __io_close_fn as cookie_close_function_t,
8853 and _IO_cookie_io_functions_t as cookie_io_functions_t.
8854 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
8855 here, in the "compatibility defines" section. Remove an #if 0
8856 block. Use the "body" macros from bits/types/struct_FILE.h to
8857 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
8858 and _IO_ferror_unlocked.
8859 Move prototypes of __uflow and __overflow...
8860
8861 * libio/stdio.h: ...here. Don't include bits/libio.h.
8862 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
8863 directly from stdarg.h. Include bits/types/__fpos_t.h,
8864 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
8865 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
8866 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
8867 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
8868 cookie_io_functions_t, not _IO_cookie_io_functions_t;
8869 __ssize_t, not _IO_ssize_t. Unconditionally define
8870 BUFSIZ as 8192 and EOF as (-1).
8871
8872 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
8873 macros from bits/types/struct_FILE.h instead of _IO_* macros
8874 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
8875 instead of _IO_ssize_t.
8876 * libio/bits/stdio2.h: Similarly.
8877
8878 * libio/iolibio.h: Add multiple-include guard.
8879 Include bits/libio.h after stdio.h.
8880 * libio/libioP.h: Add multiple-include guard.
8881 Include stdio.h and bits/libio.h before iolibio.h.
8882
8883 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
8884 * include/bits/types/cookie_io_functions_t.h
8885 * include/bits/types/struct_FILE.h: New wrappers.
8886
8887 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
8888 Get definitions of _G_fpos_t and _G_fpos64_t from
8889 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
8890 respectively. Remove improper-inclusion guards.
8891
8892 * conform/data/stdio.h-data: Update expectations of va_list.
8893 * scripts/check-installed-headers.sh: Remove special case for
8894 libio.h and _G_config.h.
8895
8896 2018-02-07 Joseph Myers <joseph@codesourcery.com>
8897
8898 [BZ #15105]
8899 [BZ #19463]
8900 * include/sys/sysmacros.h [!_ISOMAC]
8901 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
8902 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
8903 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
8904 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
8905 libc_hidden_proto.
8906 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
8907 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
8908 Likewise.
8909 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
8910 Undefine and redefine to add use __gnu_dev_ prefix.
8911 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
8912 Likewise.
8913 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
8914 and define as hidden inline function.
8915 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
8916 Likewise.
8917 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
8918 Likewise.
8919 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
8920 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
8921 (gnu_dev_minor): Likewise.
8922 (gnu_dev_makedev): Likewise.
8923 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
8924 makedev.
8925 * posix/wordexp.c (exec_comm_child): Likewise.
8926 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
8927 instead of minor and __gnu_dev_major instead of major.
8928 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
8929 __gnu_dev_major instead of major.
8930 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
8931 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
8932 instead of gnu_dev_minor.
8933 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
8934 (SLAVE_P): Likewise.
8935 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
8936 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
8937 instead of major.
8938
8939 [BZ #21313]
8940 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
8941 in another place.
8942 * locale/weightwc.h (findidx): Likewise.
8943
8944 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
8945
8946 * manual/probes.texi (slowlog): Delete documentation of removed probe.
8947 (slowlog_inexact): Likewise
8948 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
8949 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
8950
8951 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
8952
8953 [BZ #22797]
8954 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
8955 missing second underscore to parameter name.
8956
8957 2018-02-06 Joseph Myers <joseph@codesourcery.com>
8958
8959 [BZ #14508]
8960 [BZ #15512]
8961 [BZ #17082]
8962 [BZ #20530]
8963 * bits/byteswap.h: Update file comment. Do not include
8964 <bits/byteswap-16.h>.
8965 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
8966 constant.
8967 (__bswap_16): Define as inline function.
8968 (__bswap_constant_32): Reformat definition.
8969 (__bswap_32): Always define as inline function, not macro, using
8970 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
8971 otherwise __bswap_constant_32.
8972 (__bswap_constant_64): Reformat definition. Do not use
8973 __extension__ here.
8974 (__bswap_64): Always define as inline function, not macro. Use
8975 __extension__ on function definition. Use __builtin_bswap64 if
8976 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
8977 * string/test-endian-file-scope.c: New file.
8978 * string/test-endian-sign-conversion.c: Likewise.
8979 * string/Makefile (headers): Remove bits/byteswap-16.h.
8980 (tests): Add test-endian-file-scope and
8981 test-endian-sign-conversion.
8982 (CFLAGS-test-endian-sign-conversion.c): New variable.
8983 * bits/byteswap-16.h: Remove file.
8984 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
8985 * sysdeps/ia64/bits/byteswap.h: Likewise.
8986 * sysdeps/m68k/bits/byteswap.h: Likewise.
8987 * sysdeps/s390/bits/byteswap-16.h: Likewise.
8988 * sysdeps/s390/bits/byteswap.h: Likewise.
8989 * sysdeps/tile/bits/byteswap.h: Likewise.
8990 * sysdeps/x86/bits/byteswap-16.h: Likewise.
8991 * sysdeps/x86/bits/byteswap.h: Likewise.
8992
8993 [BZ #17721]
8994 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
8995 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
8996 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
8997 199901L] (__restrict): Define to restrict.
8998
8999 [BZ #19667]
9000 * string/testcopy.c: Include <support/support.h>. Do not include
9001 <malloc.h>. Use <support/test-driver.c>.
9002 (main): Rename to do_test. Make static. Use xmalloc instead of
9003 malloc.
9004
9005 [BZ #13575]
9006 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
9007 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
9008 (SSIZE_MAX): Define to INT_MAX.
9009 * posix/test-ssize-max.c: New file.
9010 * posix/Makefile (tests): Add test-ssize-max.
9011
9012 [BZ #19668]
9013 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
9014 <support/support.h>. Do not include <malloc.h>.
9015 (query_auxv): Use xmalloc instead of malloc.
9016
9017 [BZ #14553]
9018 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
9019 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
9020 instead of loff_t.
9021
9022 2018-02-06 Florian Weimer <fweimer@redhat.com>
9023
9024 [BZ #18023]
9025 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9026 Use scratch_buffer instead of extend_alloca.
9027
9028 2018-02-06 Zack Weinberg <zackw@panix.com>
9029
9030 * libio/stdio.h: Don't define getc or putc as macros.
9031 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
9032 not _IO_getc and _IO_putc.
9033
9034 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
9035 * stdio-common/tstgetln.c: Don't redefine ssize_t.
9036
9037 2018-02-06 Joseph Myers <joseph@codesourcery.com>
9038
9039 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
9040 (TCP_FASTOPEN_NO_COOKIE): Likewise.
9041
9042 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
9043
9044 [BZ #14890]
9045 * elf/elf.h (NT_PRFPREG): New macro.
9046 (NT_S390_VXRS_LOW): Likewise.
9047 (NT_S390_VXRS_HIGH): Likewise.
9048 (NT_S390_GS_CB): Likewise.
9049 (NT_S390_GS_BC): Likewise.
9050 (NT_S390_RI_CB): Likewise.
9051
9052 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
9053 (MAP_SYNC): New macro.
9054 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
9055 Likewise.
9056 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
9057 (MAP_SYNC): Likewise.
9058 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
9059 (MAP_SYNC): Likewise.
9060 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
9061 (MAP_SYNC): Likewise.
9062 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
9063 (MAP_SYNC): Likewise.
9064 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
9065 (MAP_SYNC): Likewise.
9066 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
9067 (MAP_SYNC): Likewise.
9068 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
9069 Likewise.
9070 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
9071 Likewise.
9072
9073 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
9074 (MAP_SHARED_VALIDATE): New macro.
9075 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9076 (MAP_SHARED_VALIDATE): Likewise.
9077
9078 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9079
9080 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
9081 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
9082 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
9083
9084 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9085
9086 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
9087 (DT_NUM): Updated to 35.
9088
9089 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9090
9091 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
9092 __builtin_expect with __glibc_likely and __glibc_unlikely.
9093 (elf_machine_rela): Likewise.
9094 (elf_machine_lazy_rel): Likewise.
9095
9096 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9097
9098 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
9099 __builtin_expect with __glibc_likely and __glibc_unlikely.
9100 (elf_machine_lazy_rel): Likewise.
9101
9102 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9103
9104 [BZ #22638]
9105 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
9106 SHARED.
9107 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
9108
9109 2018-02-05 Andreas Schwab <schwab@suse.de>
9110
9111 [BZ #22761]
9112 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
9113 string.
9114
9115 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9116
9117 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
9118 not check against PTHREAD_STACK_MIN.
9119
9120 2018-02-02 Sean McKean <smckean83@gmail.com>
9121
9122 [BZ #22735]
9123 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
9124
9125 2018-02-02 Florian Weimer <fweimer@redhat.com>
9126
9127 [BZ #22753]
9128 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
9129 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9130 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9131 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
9132 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9133 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9134 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9135 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
9136 * manual/llio.texi (Scatter-Gather): Mention offset -1.
9137 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
9138 * misc/tst-preadvwritev2.c (do_test): Call it.
9139 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
9140
9141 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
9142
9143 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
9144
9145 * benchtests/bench-memcmp.c: Print json instead of plain text.
9146
9147 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
9148 every test run.
9149
9150 2018-02-01 Joseph Myers <joseph@codesourcery.com>
9151
9152 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9153 version to 4.15.
9154 (s390_sthyi): New syscall.
9155
9156 * sysdeps/generic/ldbl-classify-compat.h: New file.
9157 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
9158 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
9159 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
9160 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
9161 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
9162 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
9163 * sysdeps/ieee754/dbl-64/s_finite.c: Include
9164 <ldbl-classify-compat.h>.
9165 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9166 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
9167 <ldbl-classify-compat.h>.
9168 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9169 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
9170 <ldbl-classify-compat.h>.
9171 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9172 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
9173 <ldbl-classify-compat.h>.
9174 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9175 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
9176 <ldbl-classify-compat.h>.
9177 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9178 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
9179 <ldbl-classify-compat.h>.
9180 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9181 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
9182 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
9183 * sysdeps/m68k/coldfire/math_private.h: Remove file.
9184 * sysdeps/microblaze/math_private.h: Likewise.
9185 * sysdeps/nios2/math_private.h: Likewise.
9186 * sysdeps/sh/math_private.h: Likewise.
9187
9188 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
9189 * sysdeps/m68k/coldfire/math_private.h: ... here.
9190 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
9191 * sysdeps/tile/math_private.h: Likewise.
9192 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
9193 Remove macro.
9194 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
9195 Likewise.
9196
9197 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
9198 Remove macro.
9199 (libc_fetestexcept): Likewise.
9200 (libc_feupdateenv_test): Likewise.
9201 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
9202 (libc_fetestexcept): Likewise.
9203 (libc_feupdateenv_test): Likewise.
9204 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
9205 (libc_fetestexcept): Likewise.
9206 (libc_feupdateenv_test): Likewise.
9207 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
9208 (libc_fetestexcept): Likewise.
9209 (libc_feupdateenv_test): Likewise.
9210
9211 * sysdeps/generic/math_private.h
9212 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
9213 New inline function.
9214 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
9215 Likewise.
9216
9217 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
9218 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
9219 * sysdeps/generic/math_private.h
9220 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
9221 inline function.
9222 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
9223 Likewise.
9224 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
9225 Likewise.
9226 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
9227 Likewise.
9228 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
9229 Likewise.
9230 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
9231 Likewise.
9232 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
9233 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
9234 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
9235 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
9236 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
9237 (__fegetenv): Likewise.
9238 (fesetenv): Likewise.
9239 (__fesetenv): Likewise.
9240 (feupdateenv): Likewise.
9241 (__feupdateenv): Likewise.
9242 (fegetround): Likewise.
9243 (__fegetround): Likewise.
9244 (fesetround): Likewise.
9245 (__fesetround): Likewise.
9246
9247 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
9248 (feraiseexcept): New macro.
9249 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
9250 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
9251 Remove macro.
9252 (__feraiseexcept): Likewise.
9253 (feclearexcept): Likewise.
9254 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
9255 (__feraiseexcept): Likewise.
9256 (feclearexcept): Likewise.
9257 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
9258 (__feraiseexcept): Likewise.
9259 (feclearexcept): Likewise.
9260 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
9261 (__feraiseexcept): Likewise.
9262 (feclearexcept): Likewise.
9263 (fetestexcept): Likewise.
9264
9265 * sysdeps/m68k/coldfire/math-tests.h: New file.
9266
9267 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
9268 * sysdeps/m68k/bits/fenv.h: ... here.
9269 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
9270 not define.
9271 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
9272 Likewise.
9273 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
9274 Likewise.
9275 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
9276 Likewise.
9277 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
9278 Likewise.
9279 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
9280 Define to 0.
9281 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
9282 (__FE_UNDEFINED): New enum constant.
9283 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
9284 Do not define.
9285 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
9286 Likewise.
9287 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
9288 Likewise.
9289 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
9290 to match generic bits/fenv.h.
9291 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
9292 Do not define.
9293
9294 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
9295 packed on bits.
9296 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
9297 * soft-fp/half.h (union _FP_UNION_H): Likewise.
9298 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
9299 * soft-fp/single.h (union _FP_UNION_S): Likewise.
9300
9301 2018-02-01 Carlos O'Donell <carlos@redhat.com>
9302 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
9303 Joseph Myers <joseph@codesourcery.com>
9304
9305 [BZ #21314]
9306 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
9307 (__log1p): Disable -Wmaybe-uninitialized for -Os around
9308 computation using c.
9309 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
9310 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
9311 computation using c.
9312
9313 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
9314
9315 * version.h (RELEASE): Set to "development".
9316 (VERSION): Set to "2.27.9000".
9317 * NEWS (2.28): New section.
9318
9319 * version.h (RELEASE): Set to "stable".
9320 (VERSION): Set to "2.27".
9321 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
9322
9323 * NEWS: Add the list of bugs fixed in 2.27.
9324
9325 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9326
9327 * stdlib/test-atexit-race-common.c (do_test): Check stack size
9328 against PTHREAD_STACK_MIN.
9329
9330 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
9331
9332 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
9333 New entries.
9334 (Rafal Luzynski, Andreas Schwab): Update.
9335
9336 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
9337
9338 [BZ #10871]
9339 * NEWS: List the languages which actually use the alternative
9340 months feature in this release. Also explain that "alt_mon" and
9341 "ab_alt_mon" are optional.
9342
9343 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
9344
9345 [BZ #22765]
9346 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
9347
9348 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
9349
9350 * manual/install.texi (Tools for Compilation): Update the newest
9351 versions of gcc, binutils, texinfo, gawk, bison, and sed.
9352 * INSTALL: Regenerated.
9353
9354 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9355
9356 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
9357 instead of __builtin_expect.
9358
9359 2018-01-30 Florian Weimer <fweimer@redhat.com>
9360
9361 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
9362 data.
9363 * nss/tst-nss-getpwent.c (do_test): Likewise.
9364
9365 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
9366
9367 [BZ #10871]
9368 * localedata/locales/hr_HR (mon): Rename to...
9369 (alt_mon): This.
9370 (mon): Import from CLDR (genitive case).
9371 (d_t_fmt): Update the comment.
9372
9373 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
9374
9375 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
9376 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
9377 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
9378
9379 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
9380
9381 * mach/Versions: Fix version when __mach_host_self_ was added.
9382 * hurd/Versions: Fix version when _hurd_exec_paths was added.
9383 * sysdeps/mach/hurd/i386/ld.abilist: New file.
9384 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
9385 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
9386 * sysdeps/mach/hurd/i386/libc.abilist: New file.
9387 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
9388 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
9389 * sysdeps/mach/hurd/i386/libm.abilist: New file.
9390 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
9391 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
9392 * sysdeps/mach/hurd/i386/librt.abilist: New file.
9393 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
9394 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
9395 || to respect codestyle.
9396 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
9397 (do_test_bz20181): Rename accordingly.
9398 * malloc/malloc.c: Include <assert.h>.
9399 (assert): Do not define.
9400 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
9401 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
9402 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9403 * sysdeps/mach/hurd/hp-timing.h: New file.
9404 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
9405
9406 2018-01-29 Darius Rad <darius@bluespec.com>
9407
9408 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
9409
9410 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
9411
9412 * sysdeps/init_array/crti.S (.section .init_array): Add
9413 PREINIT_FUNCTION when defined.
9414 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
9415 * config.h.in: Regenerate.
9416 * manual/platform.texi: Add RISC-V documenation for
9417 __riscv_flush_icache.
9418 * sysdeps/riscv/__longjmp.S: New file.
9419 * sysdeps/riscv/backtrace.c: Likewise.
9420 * sysdeps/riscv/bits/endian.h: Likewise.
9421 * sysdeps/riscv/bits/setjmp.h: Likewise.
9422 * sysdeps/riscv/bits/wordsize.h: Likewise.
9423 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
9424 * sysdeps/riscv/bsd-setjmp.c: Likewise.
9425 * sysdeps/riscv/dl-trampoline.S: Likewise.
9426 * sysdeps/riscv/gccframe.h: Likewise.
9427 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
9428 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
9429 * sysdeps/riscv/machine-gmon.h: Likewise.
9430 * sysdeps/riscv/memusage.h: Likewise.
9431 * sysdeps/riscv/setjmp.S: Likewise.
9432 * sysdeps/riscv/sys/asm.h: Likewise.
9433 * sysdeps/riscv/tls-macros.h: Likewise.
9434 * sysdeps/riscv/dl-tls.h: New file.
9435 * sysdeps/riscv/libc-tls.c: Likewise.
9436 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
9437 * sysdeps/riscv/nptl/tls.h: Likewise.
9438 * sysdeps/riscv/stackinfo.h: Likewise.
9439 * sysdeps/riscv/bits/fenv.h: New file.
9440 * sysdeps/riscv/e_sqrtl.c: Likewise.
9441 * sysdeps/riscv/fpu_control.h: Likewise.
9442 * sysdeps/riscv/math-tests.h: Likewise.
9443 * sysdeps/riscv/nofpu/Implies: Likewise.
9444 * sysdeps/riscv/sfp-machine.h: Likewise.
9445 * sysdeps/riscv/tininess.h: Likewise.
9446 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
9447 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9448 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
9449 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
9450 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
9451 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
9452 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9453 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9454 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9455 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9456 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9457 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
9458 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
9459 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
9460 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
9461 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
9462 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9463 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9464 * sysdeps/riscv/rvd/s_fma.c: Likewise.
9465 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9466 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9467 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9468 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9469 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9470 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9471 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
9472 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
9473 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
9474 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
9475 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9476 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9477 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9478 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
9479 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
9480 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9481 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9482 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9483 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
9484 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
9485 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9486 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
9487 * sysdeps/riscv/rvf/math_private.h: Likewise.
9488 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9489 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9490 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9491 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9492 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
9493 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9494 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9495 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9496 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9497 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9498 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9499 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9500 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9501 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9502 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9503 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9504 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
9505 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
9506 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
9507 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
9508 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
9509 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
9510 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
9511 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
9512 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
9513 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
9514 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
9515 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
9516 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
9517 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
9518 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
9519 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
9520 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9521 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
9522 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
9523 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
9524 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
9525 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
9526 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
9527 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
9528 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
9529 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
9530 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
9531 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
9532 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
9533 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
9534 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9535 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
9536 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
9537 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
9538 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
9539 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
9540 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
9541 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
9542 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
9543 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
9544 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
9545 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
9546 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
9547 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
9548 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
9549 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
9550 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9551 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
9552 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
9553 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
9554 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
9555 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
9556 * sysdeps/riscv/Implies: New file.
9557 * sysdeps/riscv/Makefile: Likewise.
9558 * sysdeps/riscv/configure: Likewise.
9559 * sysdeps/riscv/configure.ac: Likewise.
9560 * sysdeps/riscv/nptl/Makefile: Likewise.
9561 * sysdeps/riscv/preconfigure: Likewise.
9562 * sysdeps/riscv/rv64/Implies-after: Likewise.
9563 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
9564 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
9565 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
9566 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
9567 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
9568 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
9569 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
9570 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
9571 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
9572 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
9573 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
9574 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
9575 (Config): Likewise.
9576
9577 2018-01-29 Florian Weimer <fweimer@redhat.com>
9578
9579 [BZ #22701]
9580 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
9581 libnsl_hidden_proto.
9582 * include/rpcsvc/yp.h (yp_xdrall): Declare with
9583 libnsl_hidden_proto.
9584 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
9585 * nis/Makefile (libnsl-routines): Add nss-default only for
9586 build-obsolete-nsl.
9587 * nis/nis_defaults.c (__nis_default_ttl): Add
9588 libnsl_hidden_nolink_def.
9589 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
9590 declaration.
9591 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
9592 * nis/ypclnt.c (yp_maplist): Likewise.
9593
9594 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
9595
9596 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9597 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
9598
9599 2018-01-29 Joseph Myers <joseph@codesourcery.com>
9600
9601 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
9602 clean -dxfq for git updates when replacing sources.
9603
9604 * scripts/build-many-glibcs.py (Config.build_gcc): Use
9605 --disable-libcilkrts unconditionally, not just for the final GCC
9606 build for Hurd.
9607
9608 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9609 version to 4.15.
9610
9611 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9612
9613 [BZ #10871]
9614 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
9615 case).
9616
9617 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9618
9619 [BZ #10871]
9620 * localedata/locales/be_BY (mon): Rename to...
9621 (alt_mon): This, then synchronize with CLDR (nominative case).
9622 (abmon): Rename to...
9623 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
9624 (mon): Import from CLDR (genitive case).
9625 (abmon): Likewise.
9626 * localedata/locales/be_BY@latin (mon): Rename to...
9627 (alt_mon): This.
9628 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
9629
9630 * localedata/locales/be_BY@latin (lang_name): Reworded to
9631 "biełaruskaja mova".
9632
9633 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9634
9635 [BZ #10871]
9636 * localedata/locales/el_CY (mon): Renamed to...
9637 (alt_mon): This.
9638 (mon): Import from CLDR (genitive case).
9639 * localedata/locales/el_GR: Likewise.
9640
9641 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9642
9643 [BZ #10871]
9644 * localedata/locales/ru_RU (mon): Rename to...
9645 (alt_mon): This.
9646 (abmon): Rename to...
9647 (ab_alt_mon): This.
9648 (mon): Import from CLDR (genitive case).
9649 (abmon): Copy from the old content except the 5th month which is
9650 now in the genitive case, even when abbreviated.
9651 * localedata/locales/ru_UA: Likewise.
9652 * time/tst-strptime.c (day_tests): Add an actual example of
9653 a difference between %b and %Ob in Russian.
9654
9655 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9656
9657 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
9658 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
9659 a `c' variable.
9660 * resolv/res-close.c: Include <stdlib.h>.
9661 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
9662 <sys/wait.h>, <time.h>, <sys/uio.h>.
9663 (NOT_CANCEL_H): Add inclusion guard.
9664 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
9665 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
9666 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
9667 return 0.
9668 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
9669 vm_address_t * to ElfW(Addr) * for dl_main parameter.
9670 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
9671 instead of void *.
9672 * sysdeps/pthread/timer_create.c (timer_create): Do not use
9673 timer_ptr2id to cast struct timer_node * to void *.
9674 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
9675 --disable-libcilkrts to gcc configure.
9676 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
9677 and make them the default for now.
9678 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
9679 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
9680 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
9681 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
9682 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
9683 MACH_IPC_COMPAT.
9684 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
9685 __task_terminate would ever return successfully.
9686 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
9687 to global scope.
9688 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
9689 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
9690 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
9691 critical section to make code simpler and avoid warning.
9692 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
9693 critical section to make code simpler and avoid warning.
9694 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
9695 const char * instead of char *.
9696 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
9697 __hurd_file_name_split, hurd_file_name_split,
9698 __hurd_directory_name_split, hurd_directory_name_split,
9699 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
9700 hurd_file_name_path_lookup): Make lookup function parameter take a
9701 const char *name instead of char *name.
9702 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
9703 __hurd_directory_name_split): Likewise.
9704 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
9705 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
9706 * sysdeps/mach/hurd/check_native.c: New file.
9707 * sysdeps/mach/hurd/check_pf.c: New file.
9708 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
9709 (__freeifaddrs): Define macro to freeifaddrs.
9710 * sysdeps/mach/hurd/libhurduser.abilist: New file.
9711 * sysdeps/mach/libmachuser.abilist: New file.
9712 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
9713 (do_test_bz20181): Rename accordingly.
9714 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
9715 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
9716 <sys/mount.h>.
9717 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
9718 version only if __USE_EXTERN_INLINES is defined.
9719 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
9720 __hurd_sockfail): Likewise.
9721 (_hurd_fd_get): Always declare functions, and provide inline versions
9722 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
9723 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
9724 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
9725 _hurd_port_set): Always declare functions, and provide inline versions
9726 only if __USE_EXTERN_INLINES and _LIBC are defined and
9727 IS_IN(libc).
9728 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
9729 _hurd_critical_section_unlock): Likewise.
9730 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
9731 * __hurd_threadvar_location): Likewise.
9732 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
9733 _hurd_userlink_clear): Likewise.
9734 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
9735 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
9736 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
9737 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
9738 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
9739 __spin_lock_locked): Likewise.
9740 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
9741 __spin_lock_locked): Likewise.
9742 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
9743 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
9744 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
9745 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
9746 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
9747 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
9748 _POSIX_NO_TRUNC): Define to 0.
9749 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
9750 check size against PTHREAD_STACK_MIN.
9751 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
9752 IS_IN(libpthread)]: Include <sigsetops.h>.
9753 * mach/Makefile (user-interfaces): Add mach/gnumach.
9754 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
9755 * sysdeps/mach/configure (mach_interface_list): Regenerate.
9756 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
9757 instead of invalid -1.
9758 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
9759 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
9760 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
9761 <net/ppp_defs.h>.
9762
9763 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
9764
9765 * hurd/fcntl-internal.h: New file.
9766
9767 2018-01-27 James Clarke <jrtc27@jrtc27.com>
9768
9769 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9770
9771 * sysdeps/alpha/fpu/libm-test-ulps: Update.
9772
9773 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
9774
9775 [BZ #22701]
9776 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
9777 Build only shared objects.
9778
9779 2018-01-26 Carlos O'Donell <carlos@redhat.com>
9780
9781 * README: Update for hppa.
9782
9783 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
9784
9785 * sysdeps/sparc/fpu/libm-test-ulps: Update
9786 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
9787
9788 2018-01-26 Carlos O'Donell <carlos@redhat.com>
9789
9790 Revert:
9791
9792 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
9793
9794 [BZ #22563]
9795 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9796 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
9797 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9798 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
9799 to feature_1.
9800
9801 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
9802
9803 [BZ #22563]
9804 * bits/types/__cancel_jmp_buf_tag.h: New file.
9805 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
9806 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
9807 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
9808 * nptl/Makefile (headers): Add
9809 bits/types/__cancel_jmp_buf_tag.h.
9810 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
9811 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
9812 * sysdeps/nptl/pthread.h: Include
9813 <bits/types/__cancel_jmp_buf_tag.h>.
9814 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
9815 __cancel_jmp_buf.
9816 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
9817
9818 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9819
9820 [BZ #10871]
9821 * localedata/locales/uk_UA (mon): Renamed to...
9822 (alt_mon): This.
9823 (alt_digits): "0" removed and then renamed to...
9824 (mon): This.
9825 (date_fmt): Definition changed not to use the alternative
9826 digits hack.
9827
9828 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
9829
9830 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
9831 FLAG_RISCV_FLOAT_ABI_DOUBLE.
9832 * elf/elf.h (EF_RISCV_RVC): New define.
9833 (EF_RISCV_FLOAT_ABI): Likewise.
9834 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
9835 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
9836 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
9837 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
9838 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
9839 define.
9840 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
9841
9842 2018-01-25 Andreas Schwab <schwab@suse.de>
9843
9844 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
9845 single quotes.
9846 * sysdeps/gnu/configure: Regenerate.
9847 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
9848 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
9849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
9850 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
9851 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
9852 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
9853 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
9854 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
9855
9856 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
9857
9858 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
9859 URL, and run autoconf, make it the default for now.
9860
9861 2018-01-24 Joseph Myers <joseph@codesourcery.com>
9862
9863 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9864 soft-float ColdFire configuration.
9865
9866 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
9867 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
9868 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
9869
9870 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
9871 MicroBlaze file.
9872
9873 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
9874 ....
9875 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
9876 ... here.
9877 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
9878 New file.
9879
9880 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
9881 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
9882 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
9883 file.
9884
9885 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9886
9887 [BZ #22742]
9888 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
9889 Rename to __reserved and add comment.
9890 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
9891 Rename to __reserved.
9892
9893 2018-01-24 Joseph Myers <joseph@codesourcery.com>
9894
9895 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9896 i686-gnu configurations.
9897 (Context.run_builds): Include mig, gnumach and hurd in components
9898 considered.
9899 (Context.checkout): Add mig, gnumach and hurd to components.
9900 (Context.checkout_tar): Add URL mappings for mig, gnumach and
9901 hurd.
9902 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
9903 (Config.build): Install gnumach headers, build mig and install
9904 hurd headers for 'gnu' OS.
9905 (Config.install_gnumach_headers): New function.
9906 (Config.install_hurd_headers): Likewise.
9907 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
9908 when building for 'gnu' OS.
9909
9910 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
9911
9912 * manual/tunables.texi (Hardware Capability Tunables): Fix
9913 spelling.
9914
9915 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
9916
9917 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
9918 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
9919 (ALTMON_11, ALTMON_12): Improve documentation.
9920 * manual/time.texi (strftime): Likewise.
9921
9922 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9923
9924 [BZ #10871]
9925 * localedata/locales/pl_PL: Alternative month names added,
9926 primary month names are genitive now.
9927 * time/tst-strptime.c (day_tests): Actually use a genitive case
9928 of a month name in Polish language.
9929
9930 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9931
9932 [BZ #10871]
9933 * manual/locale.texi: Document ALTMON_1..12 constants for
9934 nl_langinfo. Specify when to use ALTMON instead of MON.
9935 * manual/time.texi (strftime, strptime): Document GNU extension
9936 permitting O modifier with %B and %b. Specify when to use
9937 %OB instead of %B.
9938
9939 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9940
9941 [BZ #10871]
9942 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
9943 names, define them as the same as abbreviated month names explicitly.
9944 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
9945 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
9946 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
9947 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
9948 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
9949 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
9950 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
9951 _NL_WABALTMON_12): New enum constants.
9952 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
9953 wab_alt_mon, and ab_alt_mon_defined members.
9954 (time_output): Output ab_alt_mon and wab_alt_mon members.
9955 (time_read): Read them, initialize them as copies of abmon and wabmon
9956 respectively if they are missing, initialize ab_alt_mon_defined.
9957 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
9958 * locale/programs/locfile-kw.h: Regenerate.
9959 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
9960 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
9961 and ru_RU.UTF-8.
9962 * time/strftime_l.c (a_altmonth, aam_len): New macros.
9963 [!COMPILE_WIDE] (ABALTMON_1): New macro.
9964 (__strftime_internal): Handle %Ob and %Oh formats.
9965 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
9966 (__strptime_internal): Handle %Ob and %Oh formats.
9967 * time/tst-strptime.c (day_tests): Add more tests to parse different
9968 forms of month names including the new %Ob format specifier.
9969
9970 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9971
9972 [BZ #10871]
9973 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
9974 define them as the same as primary full month names explicitly.
9975 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
9976 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
9977 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
9978 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
9979 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
9980 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
9981 _NL_WALTMON_12): New enum constants.
9982 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
9983 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
9984 macros.
9985 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
9986 walt_mon, and alt_mon_defined members.
9987 (time_output): Output alt_mon and walt_mon members.
9988 (time_read): Read them, initialize them as copies of mon and wmon
9989 respectively if they are missing, initialize alt_mon_defined.
9990 * locale/programs/locfile-kw.gperf (alt_mon): Define.
9991 * locale/programs/locfile-kw.h: Regenerate.
9992 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
9993 * localedata/tst-langinfo.c (map): Add tests for the new constants
9994 ALTMON_1 .. ALTMON_12.
9995 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
9996 and pl_PL.UTF-8.
9997 * time/strftime_l.c (f_altmonth): New macro.
9998 (__strftime_internal): Handle %OB format.
9999 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
10000 (__strptime_internal): Handle %OB format.
10001 * time/tst-strptime.c (day_tests): Add tests to parse different forms
10002 of month names including the new %OB format specifier.
10003
10004 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10005
10006 [BZ #22685]
10007 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
10008 from ABORT_TRANSACTION.
10009 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
10010 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
10011 ABORT_TRANSACTION_IMPL): Likewise.
10012 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
10013 Linux code, but remove the code that aborts transactions.
10014
10015 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10016
10017 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
10018
10019 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
10020
10021 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
10022 in date: "2004-14-09" should be "2004-09-14".
10023 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
10024 "2003-15-09" should be "2003-09-15".
10025
10026 2018-01-18 Arjun Shankar <arjun@redhat.com>
10027
10028 [BZ #22343]
10029 [BZ #22774]
10030 CVE-2018-6485
10031 CVE-2018-6551
10032 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
10033 after padding.
10034 (_int_memalign): check for integer overflow before calling
10035 _int_malloc.
10036 * malloc/tst-malloc-too-large.c: New test.
10037 * malloc/Makefile: Add tst-malloc-too-large.
10038
10039 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
10040
10041 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
10042 in date: "2017-24-07" should be "2017-07-24".
10043 * localedata/locales/mai_IN: Likewise.
10044 * localedata/locales/mai_NP: Likewise.
10045
10046 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
10047
10048 * po/ru.po: Update translations.
10049
10050 2018-01-17 Joseph Myers <joseph@codesourcery.com>
10051
10052 [BZ #22719]
10053 * sysdeps/hppa/backtrace.c: New file.
10054
10055 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
10056
10057 [BZ #22715]
10058 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
10059 align La_x86_64_retval to VEC_SIZE.
10060
10061 2018-01-16 Joseph Myers <joseph@codesourcery.com>
10062
10063 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
10064 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
10065
10066 2018-01-16 Florian Weimer <fweimer@redhat.com>
10067
10068 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
10069 Move tst-thread-exit-clobber ...
10070 [$(CXX)] (tests-unsupported): ... to here.
10071
10072 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
10073
10074 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
10075 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
10076 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
10077 (_dl_aarch64_cap_flags): Update.
10078 (_DL_HWCAP_COUNT): Update.
10079
10080 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
10081
10082 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
10083 (_DL_HWCAP_LAST): Remove.
10084 (_DL_HWCAP_COUNT): Move to ...
10085 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
10086 (_DL_HWCAP_COUNT): ... here.
10087
10088 2018-01-16 Florian Weimer <fweimer@redhat.com>
10089
10090 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
10091 mode with GNU extensions.
10092
10093 2018-01-15 Alan Hayward <alan.hayward@arm.com>
10094
10095 * elf/elf.h (NT_ARM_SVE): Define.
10096
10097 2018-01-15 Florian Weimer <fweimer@redhat.com>
10098
10099 [BZ #22636]
10100 * nptl/tst-minstack-throw.cc: New file.
10101 * nptl/Makefile (tests): Add tst-minstack-throw.
10102 (LDLIBS-tst-minstack-throw): Link with libstdc++.
10103 [!CXX] (tests-unsupported): Add tst-minstack-throw.
10104
10105 2018-01-15 Joseph Myers <joseph@codesourcery.com>
10106
10107 * scripts/build-many-glibcs.py (Context.checkout): Default
10108 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
10109 version to 1.1.0.
10110
10111 2018-01-13 Carlos O'Donell <carlos@redhat.com>
10112
10113 [BZ #22707]
10114 * elf/elf.h (DF_1_STUB): Define.
10115 (DF_1_PIE): Define.
10116
10117 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10118
10119 [BZ #22697]
10120 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
10121 Do not add 0.5 to integer or out-of-range arguments.
10122
10123 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
10124
10125 * po/bg.po: Update translations.
10126 * po/cs.po: Likewise.
10127 * po/de.po: Likewise.
10128 * po/ko.po: Likewise.
10129 * po/pl.po: Likewise.
10130 * po/sv.po: Likewise.
10131 * po/uk.po: Likewise.
10132 * po/vi.po: Likewise.
10133
10134 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
10135
10136 * aarch64/start.S (_start): Use __wrap_main.
10137 (__wrap_main): New local symbol.
10138
10139 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
10140
10141 [BZ #22679]
10142 CVE-2018-1000001
10143 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
10144 generic_getcwd if the path returned by getcwd syscall is not absolute.
10145 * io/tst-getcwd-abspath.c: New test.
10146 * io/Makefile (tests): Add tst-getcwd-abspath.
10147
10148 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
10149
10150 * malloc/malloc.c (malloc_consolidate): Add size check.
10151
10152 2018-01-12 Florian Weimer <fweimer@redhat.com>
10153
10154 * support/write_message.c (write_message): Preserve errno.
10155 * support/check.c (print_failure): Likewise.
10156 * support/support_test_verify_impl.c (support_test_verify_impl):
10157 Likewise.
10158 * support/support_test_compare_failure.c
10159 (support_test_compare_failure): Likewise.
10160
10161 2018-01-12 Florian Weimer <fweimer@redhat.com>
10162
10163 [BZ #22701]
10164 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
10165 Prevent installation of libnsl.so.
10166 (libnsl-inhibit-o): Do not build (or install) static libraries.
10167
10168 2018-01-12 Egmont Koblinger <egmont@gmail.com>
10169
10170 [BZ #22657]
10171 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
10172 before the day number which may produce a double space.
10173 (date_fmt): Likewise.
10174
10175 2018-01-12 Joseph Myers <joseph@codesourcery.com>
10176
10177 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
10178 instead of fegetenv.
10179
10180 2018-01-11 Joseph Myers <joseph@codesourcery.com>
10181
10182 [BZ #22702]
10183 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
10184 comment to say exceptions are discarded.
10185 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
10186 __fegetenv.
10187 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
10188 be enabled.
10189
10190 2018-01-11 Florian Weimer <fweimer@redhat.com>
10191
10192 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
10193 and error message.
10194
10195 2018-01-11 Florian Weimer <fweimer@redhat.com>
10196
10197 [BZ #22636]
10198 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
10199 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
10200
10201 2018-01-10 Joseph Myers <joseph@codesourcery.com>
10202
10203 [BZ #22693]
10204 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
10205 negative arguments in test for NaN or infinity argument.
10206
10207 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
10208
10209 * po/libc.pot: Regenerate.
10210
10211 2018-01-10 Florian Weimer <fweimer@redhat.com>
10212
10213 [BZ #22636]
10214 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
10215 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
10216
10217 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10218
10219 * hurd/hurd/fd.h: Include <fcntl.h>
10220 (__hurd_at_flags): New function.
10221 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
10222 with call to __hurd_at_flags.
10223 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
10224 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
10225 __faccessat
10226 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
10227 (__access_noerrno): Use __faccessat_common instead of access_common.
10228 (__access): Likewise.
10229 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
10230 with a call to __faccessat.
10231 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
10232 (__faccessat_common): ... this. Move implementation of __access into it when
10233 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
10234 reauthenticate_cwdir_at helper to implement AT mechanism.
10235 (__faccessat_noerrno): New function, just calls __faccessat_common.
10236 (__faccessat): New function, just calls __faccessat_common.
10237 (faccessat): Define weak alias.
10238
10239 2018-01-10 Joseph Myers <joseph@codesourcery.com>
10240
10241 [BZ #22691]
10242 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10243 (CFLAGS-s_fmaxmagl.c): New variable.
10244 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
10245
10246 [BZ #22690]
10247 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
10248 long int for arguments of possibly overflowing addition or
10249 subtraction.
10250 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
10251
10252 2018-01-09 Joseph Myers <joseph@codesourcery.com>
10253
10254 [BZ #22688]
10255 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10256 (CFLAGS-e_remainderl.c): New variable.
10257
10258 [BZ #22687]
10259 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
10260 variable.
10261 (CFLAGS-s_cacoshl.c): Likewise.
10262 (CFLAGS-s_casinhl.c): Likewise.
10263 (CFLAGS-s_catanl.c): Likewise.
10264 (CFLAGS-s_catanhl.c): Likewise.
10265 (CFLAGS-s_cexpl.c): Likewise.
10266 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
10267 (CFLAGS-s_csinhl.c): Likewise.
10268 (CFLAGS-s_clogl.c): Likewise.
10269 (CFLAGS-s_clog10l.c): Likewise.
10270 (CFLAGS-s_csinl.c): Likewise.
10271 (CFLAGS-s_csqrtl.c): Likewise.
10272
10273 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
10274 2017-01-09 Svante Signell <svante.signell@gmail.com>
10275
10276 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
10277 (_hurd_exec_paths): New function.
10278 * hurd/hurd.h (_hurd_exec): Deprecate function.
10279 (_hurd_exec_paths): Declare function.
10280 * hurd/Versions: Export _hurd_exec_paths.
10281 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
10282 (__execve): Use __getcwd to build absolute path, and use
10283 _hurd_exec_paths instead of _hurd_exec.
10284 * sysdeps/mach/hurd/spawni.c: Likewise.
10285 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
10286 _hurd_exec.
10287
10288 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
10289
10290 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
10291 test instead of failing in case of ENOENT returned by posix_openpt.
10292
10293 2018-01-08 Florian Weimer <fweimer@redhat.com>
10294
10295 resolv: Support binary labels in test framework.
10296 * support/resolv_test.c (struct to_be_freed): Remove.
10297 (struct compressed_name): New.
10298 (allocate_compressed_name, ascii_tolower)
10299 (compare_compressed_name): New functions.
10300 (struct resolv_response_builder): Update type of
10301 compression_offsets for use with tsearch. Rempve to_be_freed.
10302 (response_push_pointer_to_free): Remove function.
10303 (resolv_response_add_name): Rewrite using struct compressed_name
10304 and tsearch instead of hsearch_r.
10305 (response_builder_allocate): Remove initialization of
10306 compression_offsets.
10307 (response_builder_free): Update for removal of to_be_freed. Use
10308 tdestroy instead of hdestroy_r.
10309 * resolv/Makefile (tests): Add tst-resolv-binary.
10310 (tst-resolv-binary): Link with -lresolv -lpthread.
10311
10312 2018-01-08 Florian Weimer <fweimer@redhat.com>
10313
10314 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
10315 time. Pass positive flag instead of negative flag to
10316 support_test_compare_failure.
10317 (support_test_compare_failure): Change negative parameter to
10318 positive.
10319 * support/support_test_compare_failure.c (report)
10320 (support_test_compare_failure): Likewise.
10321 * support/tst-test_compare.c (return_ssize_t, return_int): New.
10322 (do_test): Check int/size_t, ssize_t/size_t comparisons.
10323
10324 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
10325
10326 [BZ #22637]
10327 * nptl/descr.h (stackblock, stackblock_size): Update comments.
10328 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
10329 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
10330 stacksize.
10331 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
10332
10333 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
10334
10335 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10336 Add s_sincosf-sse2 and s_sincosf-fma.
10337 (CFLAGS-s_sincosf-fma.c): New.
10338 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
10339 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
10340 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
10341 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
10342 __sincosf is defined.
10343
10344 2018-01-08 Florian Weimer <fweimer@redhat.com>
10345
10346 * nptl/tst-thread-exit-clobber.cc: New file.
10347 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
10348 C++11 mode.
10349 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
10350 (tests): Add tst-thread-exit-clobber.
10351 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
10352
10353 2018-01-08 Florian Weimer <fweimer@redhat.com>
10354
10355 * support/check.h (support_static_assert): Define.
10356 (TEST_COMPARE): Use it.
10357
10358 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
10359
10360 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
10361 [!__RLIM_T_MATCHES_RLIM64_T]
10362 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
10363 __getrlimit64. Add libc_hidden_weak.
10364
10365 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
10366
10367 * elf/elf.h (R_RISCV_NONE): New define.
10368 (R_RISCV_32): Likewise.
10369 (R_RISCV_64): Likewise.
10370 (R_RISCV_RELATIVE): Likewise.
10371 (R_RISCV_COPY): Likewise.
10372 (R_RISCV_JUMP_SLOT): Likewise.
10373 (R_RISCV_TLS_DTPMOD32): Likewise.
10374 (R_RISCV_TLS_DTPMOD64): Likewise.
10375 (R_RISCV_TLS_DTPREL32): Likewise.
10376 (R_RISCV_TLS_DTPREL64): Likewise.
10377 (R_RISCV_TLS_TPREL32): Likewise.
10378 (R_RISCV_TLS_TPREL64): Likewise.
10379 * Makerules (make-link-multidir): Make directories before linking into
10380 them.
10381 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
10382 define.
10383 (VDSO_HASH_LINUX_4_15): Likewise.
10384 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
10385 in subdirectories of lib.
10386 * nptl/Makefile (/librt.so): Always depend on
10387 "$(shared-thread-library)".
10388
10389 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
10390
10391 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
10392 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
10393 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
10394 (___tls_get_addr).
10395 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
10396 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
10397 "-O2 -march=i686".
10398 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
10399 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
10400 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
10401 * sysdeps/gnu/glob-lstat-compat.c: New file.
10402 * sysdeps/gnu/glob64-lstat-compat.c: New file.
10403 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
10404
10405 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10406
10407 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
10408 Reserve 16 chars to reloc_addr before calling _itoa_word.
10409
10410 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
10411
10412 [BZ #22678]
10413 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
10414 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
10415
10416 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
10417 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
10418
10419 * resource/tst-getrlimit.c: Add copyright header.
10420
10421 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
10422 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10423
10424 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
10425 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
10426 Define __GI_getrlimit64 as weak alias of __getrlimit64.
10427 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
10428 instead.
10429 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
10430 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
10431 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
10432 RLIM64_INFINITY): Fix values to match the kernel ones.
10433 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
10434 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
10435 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
10436 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
10437 getrlimit64@@GLIBC_2_27.
10438 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
10439 and setrlimit64.
10440 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
10441 getrlimit, setrlimit, getrlimit64 and setrlimit64.
10442 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
10443 setrlimit, getrlimit64 and setrlimit64.
10444
10445 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
10446
10447 [BZ #22648]
10448 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
10449 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
10450
10451 2018-01-04 Joseph Myers <joseph@codesourcery.com>
10452
10453 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
10454 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
10455 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
10456
10457 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10458
10459 [BZ #15479]
10460 [BZ #22666]
10461 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
10462 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
10463
10464 [BZ #15479]
10465 [BZ #22665]
10466 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
10467 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10468 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10469 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10470
10471 2018-01-04 Florian Weimer <fweimer@redhat.com>
10472
10473 [BZ #22667]
10474 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
10475 Align the stack before calling exit.
10476 * stdlib/tst-makecontext-align.c: New file.
10477 * stdlib/Makefile (tests): Add tst-makecontext-align.
10478
10479 2018-01-04 Florian Weimer <fweimer@redhat.com>
10480
10481 Add support for calling dlvsym from libc.so.
10482 * include/dlfcn.h (__libc_dlvsym): Declare.
10483 * elf/Makefile (tests-static-internal): Add
10484 tst-libc_dlvsym-static.
10485 (tests-internal): Add tst-libc_dlvsym.
10486 (modules-names): Add tst-libc_dlvsym-dso.
10487 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
10488 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
10489 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
10490 object tst-libc_dlvsym-dso.so needs to be built before running
10491 these tests.
10492 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
10493 * elf/Versions: Export __libc_dlvsym.
10494 * elf/dl-libc.c (struct do_dlvsym_args): New.
10495 (do_dlvsym, __libc_dlvsym): New functions.
10496 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
10497 (_dl_open_hook2): New variable.
10498 (__libc_register_dl_open_hook): Set it.
10499 * elf/tst-libc_dlvsym-dso.c: New file.
10500 * elf/tst-libc_dlvsym-static.c: Likewise.
10501 * elf/tst-libc_dlvsym.c: Likewise.
10502 * elf/tst-libc_dlvsym.h: Likewise.
10503
10504 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10505
10506 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
10507 include <sys/mount.h>.
10508
10509 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
10510
10511 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
10512 Add __NO_MATH_ERRNO__ check.
10513
10514 2018-01-02 Joseph Myers <joseph@codesourcery.com>
10515
10516 * sysdeps/mips/mips32/libm-test-ulps: Update.
10517 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10518
10519 2018-01-02 Florian Weimer <fweimer@redhat.com>
10520
10521 * misc/tst-pselect.c: Add copyright header.
10522
10523 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
10524
10525 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
10526 comment.
10527 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
10528 comment.
10529 (settrlimit): Rename into setrlimit.
10530 (__sttrlimit): Rename into __setrlimit.
10531
10532 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
10533 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
10534 never defined in that case.
10535
10536 2018-01-02 Joseph Myers <joseph@codesourcery.com>
10537
10538 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10539
10540 * sysdeps/arm/libm-test-ulps: Update.
10541
10542 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
10543 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
10544
10545 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10546
10547 * NEWS: Add cosf and sincosf to list of optimized functions.
10548
10549 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
10550
10551 [BZ #22660]
10552 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
10553 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
10554 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
10555 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
10556
10557 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
10558
10559 [BZ #22433]
10560 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
10561
10562 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
10563 making a copy of it.
10564
10565 2018-01-01 Joseph Myers <joseph@codesourcery.com>
10566
10567 * manual/texinfo.tex: Update to version 2017-12-26.21 with
10568 trailing whitespace removed.
10569 * scripts/config.guess: Update to version 2018-01-01.
10570 * scripts/config.sub: Update to version 2018-01-01.
10571 * scripts/move-if-change: Update from gnulib.
10572
10573 * NEWS: Update copyright dates.
10574 * catgets/gencat.c (print_version): Likewise.
10575 * csu/version.c (banner): Likewise.
10576 * debug/catchsegv.sh: Likewise.
10577 * debug/pcprofiledump.c (print_version): Likewise.
10578 * debug/xtrace.sh (do_version): Likewise.
10579 * elf/ldconfig.c (print_version): Likewise.
10580 * elf/ldd.bash.in: Likewise.
10581 * elf/pldd.c (print_version): Likewise.
10582 * elf/sotruss.sh: Likewise.
10583 * elf/sprof.c (print_version): Likewise.
10584 * iconv/iconv_prog.c (print_version): Likewise.
10585 * iconv/iconvconfig.c (print_version): Likewise.
10586 * locale/programs/locale.c (print_version): Likewise.
10587 * locale/programs/localedef.c (print_version): Likewise.
10588 * login/programs/pt_chown.c (print_version): Likewise.
10589 * malloc/memusage.sh (do_version): Likewise.
10590 * malloc/memusagestat.c (print_version): Likewise.
10591 * malloc/mtrace.pl: Likewise.
10592 * manual/libc.texinfo: Likewise.
10593 * nptl/version.c (banner): Likewise.
10594 * nscd/nscd.c (print_version): Likewise.
10595 * nss/getent.c (print_version): Likewise.
10596 * nss/makedb.c (print_version): Likewise.
10597 * posix/getconf.c (main): Likewise.
10598 * scripts/test-installation.pl: Likewise.
10599 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
10600
10601 * All files with FSF copyright notices: Update copyright dates
10602 using scripts/update-copyrights.
10603 * locale/programs/charmap-kw.h: Regenerated.
10604 * locale/programs/locfile-kw.h: Likewise.
10605
10606 2017-12-31 Zack Weinberg <zackw@panix.com>
10607
10608 * libio/bits/libio-ldbl.h: Correct check for improper
10609 inclusion. Add own multiple include guard.
10610
10611 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
10612 Dmitry V. Levin <ldv@altlinux.org>
10613
10614 [BZ #22625]
10615 CVE-2017-16997
10616 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
10617 string token expansion. Check for NULL pointer or empty string possibly
10618 returned by expand_dynamic_string_token.
10619 (decompose_rpath): Check for empty path after dynamic string
10620 token expansion.
10621
10622 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
10623
10624 [BZ #22433]
10625 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
10626
10627 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
10628 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
10629 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
10630 and PTRACE_SYSCALL.
10631 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
10632 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10633 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10634 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10635 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10636 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
10637
10638 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
10639 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
10640 __ptrace_peeksiginfo_flags, ptrace): Move to ...
10641 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
10642 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10643 bits/ptrace-shared.h.
10644 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
10645 <bits/ptrace-shared.h>.
10646 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
10647 __ptrace_peeksiginfo_flags, ptrace): Remove.
10648 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10649 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10650 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10651 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10652 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
10653
10654 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
10655
10656 [BZ #17804]
10657 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
10658 end of the loop. Improve comments.
10659
10660 2017-12-29 Zack Weinberg <zackw@panix.com>
10661
10662 [BZ #22615]
10663 * manual/errno.texi (Checking for Errors): Explicitly say that errno
10664 might be set on success.
10665
10666 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
10667
10668 [BZ #22611]
10669 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
10670 is unchanged on success.
10671
10672 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
10673
10674 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
10675 updated.
10676 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
10677 expand_dynamic_string_token): Likewise.
10678 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
10679 is_path argument.
10680
10681 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
10682 contains ':'.
10683
10684 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
10685 is set and name contains ':', and all code depending on these checks.
10686
10687 2017-12-24 Zack Weinberg <zackw@panix.com>
10688
10689 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
10690 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
10691 respectively.
10692 * libio/libio.h: Rename the original version of this file to
10693 libio/bits/libio.h. Error out if not included by stdio.h or the
10694 stub libio.h.
10695 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
10696 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
10697 if not included by bits/libio.h or the stub _G_config.h.
10698 * sysdeps/unix/sysv/linux/_G_config.h: Move to
10699 sysdeps/unix/sysv/linux/bits. Error out if not included by
10700 bits/libio.h or the stub _G_config.h.
10701 * libio/stdio.h: Include bits/libio.h, not libio.h.
10702 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
10703 well as libio.h and _G_config.h.
10704
10705 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
10706 * libio/strfile.h, stdio-common/vfscanf.c
10707 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
10708 Include stdio.h, not _G_config.h nor libio.h.
10709 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
10710 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
10711
10712 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
10713
10714 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10715
10716 [BZ #22347]
10717 * stdlib/getrandom.c (getrandom): Fix comment.
10718 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
10719
10720 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
10721
10722 [BZ #21161]
10723 * manual/arith.texi (strtoul): Fix a typo.
10724
10725 [BZ #22596]
10726 * manual/arith.texi (finite): Fix the description of the return
10727 value.
10728
10729 2017-12-22 Eric Blake <ebb9@byu.net>
10730
10731 Avoid gcc warnings on cygwin
10732 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
10733 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
10734 Avoid unused variable.
10735
10736 2017-12-22 Florian Weimer <fweimer@redhat.com>
10737
10738 * io/Makefile (routines): Add copy_file_range.
10739 (tests): Add tst-copy_file_range.
10740 (tests-static, tests-internal): Add tst-copy_file_range-compat.
10741 * io/Versions (GLIBC_2.27): Export copy_file_range.
10742 * io/copy_file_range-compat.c: New file.
10743 * io/copy_file_range.c: Likewise.
10744 * io/tst-copy_file_range-compat.c: Likewise.
10745 * io/tst-copy_file_range.c: Likewise.
10746 * manual/llio.texi (Copying File Data): New section.
10747 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
10748 * support/Makefile (libsupport-routines): Add support-xfstat,
10749 xftruncate, xlseek.
10750 * support/support-xfstat.c: New file.
10751 * support/xftruncate.c: Likewise.
10752 * support/xlseek.c: Likewise.
10753 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
10754 * sysdeps/unix/sysv/linux/**.abilist: Update.
10755 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
10756
10757 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10758
10759 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
10760 disable-multi-arch variant to aarch64-linux-gnu.
10761
10762 2017-12-20 Joseph Myers <joseph@codesourcery.com>
10763
10764 * manual/texinfo.tex: Update to version 2017-12-18.20 with
10765 trailing whitespace removed.
10766 * scripts/config.guess: Update to version 2017-12-17.
10767 * scripts/config.sub: Update to version 2017-11-23.
10768 * scripts/install-sh: Update to version 2017-09-23.17.
10769 * scripts/move-if-change: Update to version 2017-09-13 06:45.
10770
10771 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10772
10773 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
10774 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
10775 * sysdeps/tile/_mcount.S (__mcount): Likewise.
10776 * sysdeps/tile/crti.S (_init, _fini): Likewise.
10777 * sysdeps/tile/crtn.S: Likewise.
10778 * sysdeps/tile/dl-start.S (_start): Likewise.
10779 * sysdeps/tile/dl-trampoline.S: Likewise.
10780 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
10781 * sysdeps/tile/start.S (_start): Likewise.
10782 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
10783 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
10784 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
10785 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
10786 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
10787 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
10788 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
10789
10790 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
10791 comment.
10792 * sysdeps/tile/preconfigure: Remove tilegx folder.
10793 * sysdeps/tile/tilegx/Implies: Move definitions to ...
10794 * sysdeps/tile/Implies: ... here.
10795 * sysdeps/tile/tilegx/Makefile: Move rules to ...
10796 * sysdeps/tile/Makefile: ... here.
10797 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
10798 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
10799 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
10800 * sysdeps/tile/bits/wordsize.h: ... here.
10801 * sysdeps/tile/tilegx/*: Move to ...
10802 * sysdeps/tile/*: ... here.
10803 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
10804 * sysdeps/tile/tilegx32/Implies: ... here.
10805 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
10806 * sysdeps/tile/tilegx64/Implies: ... here.
10807 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
10808 to ...
10809 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
10810 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
10811 * sysdeps/unix/sysv/linux/tile/*: ... here.
10812 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
10813 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
10814 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
10815 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
10816
10817 * README: Remove tilepro-*-linux-gnu from supported architecture.
10818 * scripts/build-many-glibcs.py: Likewise.
10819 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
10820 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
10821 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
10822 elf_machine_matches_host, elf_machine_dynamic,
10823 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
10824 howto, elf_machine_rela): Likewise.
10825 * sysdeps/tile/dl-start.S (_start): Likewise.
10826 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
10827 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
10828 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
10829 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
10830 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
10831 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
10832 Likewise.
10833 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
10834 * sysdeps/tile/preconfigure: Likewise.
10835 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
10836 POINTER_CHK_GUARD): Likewise.
10837 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
10838 * sysdeps/tile/start.S (_start): Likewise.
10839 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
10840 Likewise.
10841 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
10842 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
10843 CMOVNEZ): Remove.
10844 * sysdeps/unix/sysv/linux/tile/bits/environments.h
10845 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
10846 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
10847 Likewise.
10848 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
10849 * sysdeps/tile/tilepro/Implies: Remove file.
10850 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
10851 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
10852 * sysdeps/tile/tilepro/memchr.c: Likewise.
10853 * sysdeps/tile/tilepro/memcpy.S: Likewise.
10854 * sysdeps/tile/tilepro/memset.c: Likewise.
10855 * sysdeps/tile/tilepro/memusage.h: Likewise.
10856 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
10857 * sysdeps/tile/tilepro/strchr.c: Likewise.
10858 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
10859 * sysdeps/tile/tilepro/strlen.c: Likewise.
10860 * sysdeps/tile/tilepro/strrchr.c: Likewise.
10861 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
10862 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
10863 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
10864 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
10865 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
10866 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
10867 Likewise.
10868 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
10869 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10870 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
10871 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
10872 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10873 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
10874 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
10875 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
10876 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
10877 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
10878 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
10879 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
10880 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
10881 tilepro mention in comment.
10882
10883 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
10884 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
10885 * nptl/pthread_join_common.c: New file: common function used on
10886 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
10887 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
10888 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
10889 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
10890 (cleanup): Move definition to pthread_join_common.c.
10891 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
10892 Remove superflous checks.
10893 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
10894 Likewise.
10895
10896 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
10897
10898 * sysdeps/aarch64/libm-test-ulps: Update.
10899
10900 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10901
10902 * sysdeps/aarch64/memset.S (MEMSET): Define.
10903
10904 2017-12-20 Florian Weimer <fweimer@redhat.com>
10905
10906 [BZ #22635]
10907 nptl: Provide full implementation of pthread_self in libc.so.
10908 * nptl/Makefile (routines): Add pthread_self.
10909 (libpthread-routines): Replace pthread_self with
10910 compat-pthread_self.
10911 * nptl/forward.c (pthread_self): Remove.
10912 * nptl/nptl-init.c (pthread_functions): Do not initialize
10913 ptr_pthread_self.
10914 * nptl/pthread_self.c (pthread_self): Remove weak alias.
10915 * nptl/compat-pthread_self.c: New file.
10916 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
10917 Remove ptr_pthread_self.
10918
10919 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
10920
10921 * posix/regcomp.c: Fix spelling in comments.
10922 * posix/regex.h: Likewise.
10923 * posix/regex_internal.c: Likewise.
10924 * posix/regexec.c: Likewise.
10925
10926 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10927
10928 [BZ #22377]
10929 * math/Makefile [C++] (tests): Add test for iseqsig.
10930 * math/math.h [C++] (iseqsig): New implementation, which does
10931 not rely on __MATH_TG/__builtin_types_compatible_p.
10932 * math/test-math-iseqsig.cc: New file.
10933 * sysdeps/powerpc/powerpc64le/Makefile
10934 (CFLAGS-test-math-iseqsig.cc): New variable.
10935
10936 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
10937
10938 * elf/dl-load.c (is_trusted_path): Remove.
10939 (fillin_rpath): Remove check_trusted argument and its use,
10940 all callers changed.
10941
10942 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
10943
10944 [BZ #22630]
10945 * Makeconfig (link-pie-before-libc): Replace -pie with
10946 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
10947 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
10948 (tst-dlopen-aout-no-pie): New.
10949 (LDFLAGS-tst-prelink): Removed.
10950 (tst-prelink-no-pie): New.
10951 (LDFLAGS-tst-main1): Removed.
10952 (tst-main1-no-pie): New.
10953 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
10954 (tst-gmon-no-pie): New.
10955
10956 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
10957
10958 * manual/install.texi: Document that --enable-static-pie
10959 implies PIE.
10960 * INSTALL: Regenerated.
10961
10962 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
10963
10964 [BZ #21309]
10965 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
10966 unsigned.
10967
10968 2017-12-19 Joseph Myers <joseph@codesourcery.com>
10969
10970 Revert:
10971
10972 2017-12-19 Joseph Myers <joseph@codesourcery.com>
10973
10974 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10975
10976 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
10977
10978 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
10979 <errno.h>. Include "eexp.tbl".
10980 (half): New constant.
10981 (one): Likewise.
10982 (__ieee754_exp): Rewrite.
10983 (__slowexp): Remove prototype.
10984 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
10985 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
10986 * sysdeps/i386/fpu/slowexp.c: Likewise.
10987 * sysdeps/ia64/fpu/slowexp.c: Likewise.
10988 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
10989 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
10990 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
10991 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
10992 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
10993 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
10994 comment.
10995 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
10996 (CPPFLAGS-slowexp.c): Remove variable.
10997 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10998 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
10999 (CFLAGS-slowexp-fma.c): Remove variable.
11000 (CFLAGS-slowexp-fma4.c): Likewise.
11001 (CFLAGS-slowexp-avx.c): Likewise.
11002 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
11003 define as macro.
11004 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
11005 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
11006 * math/Makefile (type-double-routines): Remove slowexp.
11007 * manual/probes.texi (slowexp_p6): Remove.
11008 (slowexp_p32): Likewise.
11009
11010 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11011
11012 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
11013 arithmetic.
11014
11015 * lib/glob.c (glob): Do not pass NULL to mempcpy.
11016
11017 2017-12-19 Joseph Myers <joseph@codesourcery.com>
11018
11019 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11020
11021 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
11022
11023 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
11024 <errno.h>. Include "eexp.tbl".
11025 (half): New constant.
11026 (one): Likewise.
11027 (__ieee754_exp): Rewrite.
11028 (__slowexp): Remove prototype.
11029 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
11030 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
11031 * sysdeps/i386/fpu/slowexp.c: Likewise.
11032 * sysdeps/ia64/fpu/slowexp.c: Likewise.
11033 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
11034 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
11035 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
11036 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11037 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
11038 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
11039 comment.
11040 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
11041 (CPPFLAGS-slowexp.c): Remove variable.
11042 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11043 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
11044 (CFLAGS-slowexp-fma.c): Remove variable.
11045 (CFLAGS-slowexp-fma4.c): Likewise.
11046 (CFLAGS-slowexp-avx.c): Likewise.
11047 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
11048 define as macro.
11049 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
11050 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
11051 * math/Makefile (type-double-routines): Remove slowexp.
11052 * manual/probes.texi (slowexp_p6): Remove.
11053 (slowexp_p32): Likewise.
11054
11055 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11056 James Clarke <jrtc27@jrtc27.com>
11057
11058 [BZ #22603]
11059 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
11060 addition.
11061
11062 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11063
11064 [BZ #22605]
11065 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
11066 code.
11067
11068 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
11069
11070 [BZ #22563]
11071 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11072 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
11073 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11074 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
11075 to feature_1.
11076
11077 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
11078
11079 [BZ #22563]
11080 * bits/types/__cancel_jmp_buf_tag.h: New file.
11081 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
11082 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
11083 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
11084 * nptl/Makefile (headers): Add
11085 bits/types/__cancel_jmp_buf_tag.h.
11086 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
11087 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
11088 * sysdeps/nptl/pthread.h: Include
11089 <bits/types/__cancel_jmp_buf_tag.h>.
11090 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
11091 __cancel_jmp_buf.
11092 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
11093
11094 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
11095
11096 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
11097 --enable-static-pie variants to x86_64, x32 and i686.
11098
11099 2017-12-19 Joseph Myers <joseph@codesourcery.com>
11100
11101 [BZ #22631]
11102 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
11103 argument for attrubutes. All callers changed.
11104 (__inline_mathop1): Likewise. All callers changed.
11105 (__inline_mathop): Likewise. All callers changed.
11106 [__USE_MISC] (scalbn): Use __inline_forward instead of
11107 __inline_forward_c.
11108 [__USE_ISOC99] (scalbln): Likewise.
11109 [__USE_ISOC99] (nearbyint): Likewise.
11110 [__USE_ISOC99] (lrint): Likewise.
11111 [__USE_MISC] (scalbnf): Likewise.
11112 [__USE_ISOC99] (scalblnf): Likewise.
11113 [__USE_ISOC99] (nearbyintf): Likewise.
11114 [__USE_ISOC99] (lrintf): Likewise.
11115 [__USE_MISC] (scalbnl): Likewise.
11116 [__USE_ISOC99] (scalblnl): Likewise.
11117 [__USE_ISOC99] (nearbyintl): Likewise.
11118 [__USE_ISOC99] (lrintl): Likewise.
11119 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
11120 __inline_mathop and __m81_defun changed.
11121
11122 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
11123 CPU or FPU for ARM hard-float configurations.
11124
11125 2017-12-18 Joseph Myers <joseph@codesourcery.com>
11126
11127 * nptl/tst-attr3.c: Include <libc-diag.h>.
11128 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
11129
11130 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
11131
11132 * string/tester.c (test_strncat): Also disable -Warray-bounds
11133 warnings for two tests.
11134
11135 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
11136
11137 [BZ #22614]
11138 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
11139 $(cc-pie-default) == yes.
11140 * config.make.in (cc-pie-default): New.
11141 * configure.ac (libc_cv_pie_default): Renamed to ...
11142 (libc_cv_cc_pie_default): This.
11143 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
11144 * configure: Regenerated.
11145
11146 2017-12-18 Florian Weimer <fweimer@redhat.com>
11147
11148 [BZ #20204]
11149 ld.so: Harden dl-libc/libdl hooks.
11150 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
11151 (rtld_active): New function.
11152 * dlfcn/dladdr.c (__dladdr): Call it.
11153 * dlfcn/dladdr1.c (__dladdr1): Likewise.
11154 * dlfcn/dlclose.c (__dlcose): Likewise.
11155 * dlfcn/dlerror.c (__dlerror): Likewise.
11156 * dlfcn/dlinfo.c (__dlinfo): Likewise.
11157 * dlfcn/dlmopen.c (__dlmopen): Likewise.
11158 * dlfcn/dlopen.c (__dlopen): Likewise.
11159 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
11160 * dlfcn/dlsym.c (__dlsym): Likewise.
11161 * dlfcn/dlvsym.c (__dlvsym): Likewise.
11162 * libio/vtables.c (_IO_vtable_check): Likewise.
11163 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
11164 (__libc_dlclose): Likewise.
11165 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
11166 assignment.
11167
11168 2017-12-18 Joseph Myers <joseph@codesourcery.com>
11169
11170 [BZ #22446]
11171 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
11172 buffers for readlink input and output.
11173
11174 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
11175
11176 [BZ #22624]
11177 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
11178 inhibit_stack_protector.
11179
11180 [BZ #22624]
11181 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
11182 inhibit_stack_protector.
11183
11184 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
11185
11186 [BZ #22627]
11187 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
11188 code and invocation.
11189
11190 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
11191
11192 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
11193
11194 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
11195
11196 [BZ #22505]
11197 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
11198
11199 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11200
11201 * sysdeps/s390/fpu/libm-test-ulps: Update.
11202
11203 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11204
11205 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11206
11207 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11208
11209 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
11210 constants to s_sincosf.h file.
11211 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11212 * sysdeps/ieee754/flt-32/s_sincosf.c: New
11213 implementation.
11214 * sysdeps/ieee754/flt-32/s_sincosf.h:
11215 New file.
11216
11217 2017-12-12 Carlos O'Donell <carlos@redhat.com>
11218
11219 [BZ #14681]
11220 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
11221 before mtrace.
11222
11223 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
11224
11225 [BZ #19574]
11226 * INSTALL: Regenerated.
11227 * Makeconfig (real-static-start-installed-name): New.
11228 (pic-default): Updated for --enable-static-pie.
11229 (pie-default): New for --enable-static-pie.
11230 (default-pie-ldflag): Likewise.
11231 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
11232 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
11233 Replace $(static-start-installed-name) with
11234 $(real-static-start-installed-name).
11235 (+prectorT): Updated for --enable-static-pie.
11236 (+postctorT): Likewise.
11237 (CFLAGS-.o): Add $(pie-default).
11238 (CFLAGS-.op): Likewise.
11239 * NEWS: Mention --enable-static-pie.
11240 * config.h.in (ENABLE_STATIC_PIE): New.
11241 * configure.ac (--enable-static-pie): New configure option.
11242 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
11243 (have-static-pie): Likewise.
11244 Enable static PIE if linker supports --no-dynamic-linker.
11245 (ENABLE_STATIC_PIE): New AC_DEFINE.
11246 (enable-static-pie): New LIBC_CONFIG_VAR.
11247 * configure: Regenerated.
11248 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
11249 gr$(start-installed-name) for --enable-static-pie.
11250 (extra-objs): Likewise.
11251 (install-lib): Likewise.
11252 (extra-objs): Add static-reloc.o and static-reloc.os
11253 ($(objpfx)$(start-installed-name)): Also depend on
11254 $(objpfx)static-reloc.o.
11255 ($(objpfx)r$(start-installed-name)): New.
11256 ($(objpfx)g$(start-installed-name)): Also depend on
11257 $(objpfx)static-reloc.os.
11258 ($(objpfx)gr$(start-installed-name)): New.
11259 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
11260 in libc.a.
11261 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
11262 initimage.
11263 * csu/static-reloc.c: New file.
11264 * elf/Makefile (routines): Add dl-reloc-static-pie.
11265 (elide-routines.os): Likewise.
11266 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
11267 (tst-tls1-static-non-pie-no-pie): New.
11268 * elf/dl-reloc-static-pie.c: New file.
11269 * elf/dl-support.c (_dl_get_dl_main_map): New function.
11270 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
11271 STATIC_PIE_BOOTSTRAP.
11272 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
11273 * gmon/Makefile (tests): Add tst-gmon-static-pie.
11274 (tests-static): Likewise.
11275 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
11276 (tst-gmon-static-no-pie): New.
11277 (CFLAGS-tst-gmon-static-pie.c): Likewise.
11278 (CRT-tst-gmon-static-pie): Likewise.
11279 (tst-gmon-static-pie-ENV): Likewise.
11280 (tests-special): Likewise.
11281 ($(objpfx)tst-gmon-static-pie.out): Likewise.
11282 (clean-tst-gmon-static-pie-data): Likewise.
11283 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
11284 * gmon/tst-gmon-static-pie.c: New file.
11285 * manual/install.texi: Document --enable-static-pie.
11286 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
11287 (_dl_get_dl_main_map): Likewise.
11288 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
11289 * sysdeps/x86_64/configure.ac: Likewise.
11290 * sysdeps/i386/configure: Regenerated.
11291 * sysdeps/x86_64/configure: Likewise.
11292 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
11293 (ASFLAGS-.op): Likewise.
11294
11295 2017-12-15 Joseph Myers <joseph@codesourcery.com>
11296
11297 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
11298 * posix/tst-mmap-offset.c (fname): Use /tmp.
11299 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
11300
11301 2017-12-15 Steve Ellcey <sellcey@cavium.com>
11302
11303 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
11304
11305 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
11306
11307 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
11308 errno.
11309
11310 2017-12-15 Joseph Myers <joseph@codesourcery.com>
11311
11312 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
11313 --with-float=hard for arm-linux-gnueabihf configurations.
11314
11315 [BZ #14121]
11316 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
11317 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
11318 ($(mo-installed)): Use $(objpfx)%.mo.
11319 (realclean): Remove rule.
11320
11321 * po/Makefile (linguas): Remove rule and dependencies.
11322 (linguas.mo): Likewise.
11323 (.PHONY): Do not depend on linguas and linguas.mo.
11324 (podir): Remove variable.
11325 (pofiles): Likewise.
11326 [$(pofiles)] (%.po): Remove rule.
11327
11328 * sysdeps/sparc/sparc32/Makefile
11329 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
11330 start-of-line whitespace in argument of echo.
11331 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
11332 with whitespace. Generate __wrap_.udiv alias.
11333 * sysdeps/sparc/sparc32/rem.S: Regenerated.
11334 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
11335 * sysdeps/sparc/sparc32/udiv.S: Likewise.
11336 * sysdeps/sparc/sparc32/urem.S: Likewise.
11337
11338 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11339
11340 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
11341 for aligned inputs.
11342
11343 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
11344
11345 * benchtests/bench-strcmp.c: Print output in JSON format.
11346
11347 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
11348
11349 2017-12-14 Florian Weimer <fweimer@redhat.com>
11350
11351 [BZ #22607]
11352 CVE-2017-1000409
11353 * elf/dl-load.c (_dl_init_paths): Compute number of components in
11354 the expanded path string.
11355
11356 2017-12-14 Florian Weimer <fweimer@redhat.com>
11357
11358 [BZ #22606]
11359 CVE-2017-1000408
11360 * elf/dl-load.c (system_dirs): Update comment.
11361 (nsystem_dirs_len): Use array_length.
11362 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
11363
11364 2017-12-14 Florian Weimer <fweimer@redhat.com>
11365
11366 Simplify compiling most of support/ outside of glibc.
11367 * support/check_addrinfo.c: Include <string.h>.
11368 * support/check_dns_packet.c: Likewise.
11369 * support/check_hostent.c: Likewise.
11370 * support/support_can_chroot.c: Include <support/xunistd.h>.
11371 * support/support_format_addrinfo.c: Include <stdlib.h>
11372 * support/support_format_dns_packet.c: Include <stdbool.h>.
11373 * support/support_format_hostent.c: Include <stdlib.h>.
11374 * support/support_format_netent.c: Likewise.
11375 * support/support_write_string.c: Include <support/xunistd.h>.
11376 * support/xdlfcn.c: Include <stddef.h>.
11377
11378 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
11379
11380 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
11381
11382 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
11383 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11384
11385 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
11386 (sysdeps_routines): Add memset-niagara7.
11387 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
11388 Likewise.
11389 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
11390 file.
11391 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
11392 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
11393 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
11394 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
11395 Add niagara7 option.
11396 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
11397 memset.
11398
11399 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
11400 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
11401 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
11402 Likewise.
11403 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
11404 New file.
11405 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
11406 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
11407 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
11408 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
11409 and __memmove_niagara7.
11410 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
11411 Add niagara7 option.
11412 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
11413 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
11414 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
11415 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
11416 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
11417
11418 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11419
11420 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
11421 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
11422 * sysdeps/sparc/sparc64/memmove.S: Likewise.
11423 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
11424
11425 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
11426 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
11427 _dl_sparc_cap_flags array.
11428 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
11429
11430 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
11431
11432 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
11433 time whenever possible.
11434
11435 2017-12-12 Carlos O'Donell <carlos@redhat.com>
11436
11437 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
11438 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
11439
11440 2017-12-12 Joseph Myers <joseph@codesourcery.com>
11441
11442 * soft-fp/fmadf4.c: Move to ....
11443 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
11444 * soft-fp/fmasf4.c: Move to ....
11445 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
11446 * soft-fp/fmatf4.c: Move to ....
11447 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
11448 * sysdeps/ieee754/soft-fp/Makefile: New file.
11449 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
11450 * sysdeps/arm/preconfigure: Regenerated.
11451 * sysdeps/arm/nofpu/Implies: New file.
11452 * sysdeps/arm/s_fma.c: Remove file.
11453 * sysdeps/arm/s_fmaf.c: Likewise.
11454 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
11455 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
11456 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11457 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
11458 * sysdeps/microblaze/s_fma.c: Remove file.
11459 * sysdeps/microblaze/s_fmaf.c: Likewise.
11460 * sysdeps/mips/mips32/nofpu/Implies: New file.
11461 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
11462 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
11463 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
11464 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
11465 * sysdeps/mips/ieee754/s_fma.c: Remove file.
11466 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
11467 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
11468 implementation.
11469 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
11470 * sysdeps/nios2/s_fma.c: Remove file.
11471 * sysdeps/nios2/s_fmaf.c: Likewise.
11472 * sysdeps/sh/nofpu/Implies: New file.
11473 * sysdeps/sh/s_fma.c: Remove file.
11474 * sysdeps/sh/s_fmaf.c: Likewise.
11475 * sysdeps/tile/Implies: Add ieee754/soft-fp.
11476 * sysdeps/tile/s_fma.c: Remove file.
11477 * sysdeps/tile/s_fmaf.c: Likewise.
11478
11479 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
11480
11481 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11482 Add s_cosf-sse2 and s_cosf-fma.
11483 (CFLAGS-s_cosf-fma.c): New.
11484 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
11485 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
11486 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
11487
11488 2017-12-12 Steve Ellcey <sellcey@cavium.com>
11489
11490 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
11491
11492 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11493
11494 * libio/Makefile (tests): Add tst-bz22415.
11495 (tst-bz22415-ENV): New rule.
11496 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
11497 (tests-special): Add tst-bz22415-mem.out.
11498 ($(objpfx)tst-bz22415-mem.out): New rule.
11499 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
11500 in case of a successful seek operation.
11501 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
11502 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
11503 buffer is required.
11504 * libio/tst-bz22415.c: New test.
11505
11506 * sysdeps/ia64/fpu/libm-test-ulps: Update.
11507
11508 2017-12-12 James Clarke <jrtc27@jrtc27.com>
11509
11510 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
11511 __IPC_64 to 0 to avoid IPC_64 being set.
11512
11513 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
11514
11515 [BZ #22593]
11516 * math/bits/mathcalls.h (nextafter): Remove const.
11517 (nexttoward): Likewise.
11518
11519 2017-12-12 Joseph Myers <joseph@codesourcery.com>
11520
11521 * configure.ac (--with-fp): Remove configure option.
11522 (with_fp_cond): New variable.
11523 (libc_cv_with_fp): New configure test. Use this variable instead
11524 of with_fp.
11525 * configure: Regenerated.
11526 * config.make.in (with-fp): Use @libc_cv_with_fp@.
11527 * manual/install.texi (Configuring and compiling): Remove
11528 --without-fp.
11529 * INSTALL: Regenerated.
11530 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
11531 * sysdeps/mips/preconfigure (with_fp_cond): Define.
11532 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
11533 * sysdeps/sh/preconfigure (with_fp_cond): Define.
11534 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
11535 use --without-fp to configure glibc.
11536
11537 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
11538
11539 * manual/locale.texi (nl_langinfo): Fix a typo.
11540
11541 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
11542
11543 [BZ #22588]
11544 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
11545
11546 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
11547
11548 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
11549 (CFLAGS-argp-parse.c): Likewise.
11550 (CFLAGS-argp-fmtstream.c): Likewise.
11551 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
11552 (CPPFLAGS-sha512-crypt.c): Likewise.
11553 (CPPFLAGS-md5-crypt.c): Likewise.
11554 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
11555 (CFLAGS-stack_chk_fail_local.c): Likewise.
11556 (CFLAGS-backtrace.c): Likewise.
11557 (CFLAGS-sprintf_chk.c): Likewise.
11558 (CFLAGS-snprintf_chk.c): Likewise.
11559 (CFLAGS-vsprintf_chk.c): Likewise.
11560 (CFLAGS-vsnprintf_chk.c): Likewise.
11561 (CFLAGS-asprintf_chk.c): Likewise.
11562 (CFLAGS-vasprintf_chk.c): Likewise.
11563 (CFLAGS-obprintf_chk.c): Likewise.
11564 (CFLAGS-dprintf_chk.c): Likewise.
11565 (CFLAGS-vdprintf_chk.c): Likewise.
11566 (CFLAGS-printf_chk.c): Likewise.
11567 (CFLAGS-fprintf_chk.c): Likewise.
11568 (CFLAGS-vprintf_chk.c): Likewise.
11569 (CFLAGS-vfprintf_chk.c): Likewise.
11570 (CFLAGS-gets_chk.c): Likewise.
11571 (CFLAGS-fgets_chk.c): Likewise.
11572 (CFLAGS-fgets_u_chk.c): Likewise.
11573 (CFLAGS-fread_chk.c): Likewise.
11574 (CFLAGS-fread_u_chk.c): Likewise.
11575 (CFLAGS-swprintf_chk.c): Likewise.
11576 (CFLAGS-vswprintf_chk.c): Likewise.
11577 (CFLAGS-wprintf_chk.c): Likewise.
11578 (CFLAGS-fwprintf_chk.c): Likewise.
11579 (CFLAGS-vwprintf_chk.c): Likewise.
11580 (CFLAGS-vfwprintf_chk.c): Likewise.
11581 (CFLAGS-fgetws_chk.c): Likewise.
11582 (CFLAGS-fgetws_u_chk.c): Likewise.
11583 (CFLAGS-read_chk.c): Likewise.
11584 (CFLAGS-pread_chk.c): Likewise.
11585 (CFLAGS-pread64_chk.c): Likewise.
11586 (CFLAGS-recv_chk.c): Likewise.
11587 (CFLAGS-recvfrom_chk.c): Likewise.
11588 (CFLAGS-tst-longjmp_chk.c): Likewise.
11589 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
11590 (CFLAGS-tst-longjmp_chk2.c): Likewise.
11591 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
11592 (CFLAGS-tst-longjmp_chk3.c): Likewise.
11593 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
11594 (CFLAGS-tst-chk1.c): Likewise.
11595 (CFLAGS-tst-chk2.c): Likewise.
11596 (CFLAGS-tst-chk3.c): Likewise.
11597 (CFLAGS-tst-chk4.cc): Likewise.
11598 (CFLAGS-tst-chk5.cc): Likewise.
11599 (CFLAGS-tst-chk6.cc): Likewise.
11600 (CFLAGS-tst-lfschk1.c): Likewise.
11601 (CFLAGS-tst-lfschk2.c): Likewise.
11602 (CFLAGS-tst-lfschk3.c): Likewise.
11603 (CFLAGS-tst-lfschk4.cc): Likewise.
11604 (CFLAGS-tst-lfschk5.cc): Likewise.
11605 (CFLAGS-tst-lfschk6.cc): Likewise.
11606 (CFLAGS-tst-ssp-1.c): Likewise.
11607 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
11608 (CFLAGS-scandir64.c): Likewise.
11609 (CFLAGS-scandir-tail.c): Likewise.
11610 (CFLAGS-scandir64-tail.c): Likewise.
11611 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
11612 (CFLAGS-dl-tunables.c): Likewise.
11613 (CFLAGS-dl-runtime.c): Likewise.
11614 (CFLAGS-dl-lookup.c): Likewise.
11615 (CFLAGS-dl-iterate-phdr.c): Likewise.
11616 (CFLAGS-vismain.c): Likewise.
11617 (CFLAGS-tst-linkall-static.c): Likewise.
11618 (CFLAGS-tst-linkall-static.c): Likewise.
11619 (CPPFLAGS-dl-load.c): Likewise.
11620 (CFLAGS-ldconfig.c): Likewise.
11621 (CFLAGS-dl-cache.c): Likewise.
11622 (CFLAGS-cache.c): Likewise.
11623 (CFLAGS-rtld.c): Likewise.
11624 (CFLAGS-multiload.c): Likewise.
11625 (CFLAGS-filtmod1.c): Likewise.
11626 (CFLAGS-tst-align.c): Likewise.
11627 (CFLAGS-tst-align2.c): Likewise.
11628 (CFLAGS-tst-alignmod.c): Likewise.
11629 (CFLAGS-tst-alignmod2.c): Likewise.
11630 (CPPFLAGS-tst-execstack.c): Likewise.
11631 (CFLAGS-tst-ptrguard1-static.c): Likewise.
11632 (CFLAGS-tst-latepthreadmod.c): Likewise.
11633 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
11634 (CFLAGS-getgrnam_r.c): Likewise.
11635 (CFLAGS-getgrent_r.c): Likewise.
11636 (CFLAGS-getgrent.c): Likewise.
11637 (CFLAGS-fgetgrent.c): Likewise.
11638 (CFLAGS-fgetgrent_r.c): Likewise.
11639 (CFLAGS-putgrent.c): Likewise.
11640 (CFLAGS-initgroups.c): Likewise.
11641 (CFLAGS-getgrgid.c): Likewise.
11642 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
11643 (CFLAGS-getsgent.c): Likewise.
11644 (CFLAGS-fgetsgent.c): Likewise.
11645 (CFLAGS-fgetsgent_r.c): Likewise.
11646 (CFLAGS-putsgent.c): Likewise.
11647 (CFLAGS-getsgnam.c): Likewise.
11648 (CFLAGS-getsgnam_r.c): Likewise.
11649 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
11650 (CFLAGS-iconv_charmap.c): Likewise.
11651 (CFLAGS-dummy-repertoire.c): Likewise.
11652 (CFLAGS-charmap.c): Likewise.
11653 (CFLAGS-linereader.c): Likewise.
11654 (CFLAGS-simple-hash.c): Likewise.
11655 (CFLAGS-gconv_conf.c): Likewise.
11656 (CFLAGS-iconvconfig.c): Likewise.
11657 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
11658 (CFLAGS-gethstbyad.c): Likewise.
11659 (CFLAGS-gethstbynm_r.c): Likewise.
11660 (CFLAGS-gethstbynm.c): Likewise.
11661 (CFLAGS-gethstbynm2_r.c): Likewise.
11662 (CFLAGS-gethstbynm2.c): Likewise.
11663 (CFLAGS-gethstent_r.c): Likewise.
11664 (CFLAGS-gethstent.c): Likewise.
11665 (CFLAGS-rcmd.c): Likewise.
11666 (CFLAGS-getnetbynm_r.c): Likewise.
11667 (CFLAGS-getnetbynm.c): Likewise.
11668 (CFLAGS-getnetbyad_r.c): Likewise.
11669 (CFLAGS-getnetbyad.c): Likewise.
11670 (CFLAGS-getnetent_r.c): Likewise.
11671 (CFLAGS-getnetent.c): Likewise.
11672 (CFLAGS-getaliasent_r.c): Likewise.
11673 (CFLAGS-getaliasent.c): Likewise.
11674 (CFLAGS-getrpcent_r.c): Likewise.
11675 (CFLAGS-getrpcent.c): Likewise.
11676 (CFLAGS-getservent_r.c): Likewise.
11677 (CFLAGS-getservent.c): Likewise.
11678 (CFLAGS-getprtent_r.c): Likewise.
11679 (CFLAGS-getprtent.c): Likewise.
11680 (CFLAGS-either_ntoh.c): Likewise.
11681 (CFLAGS-either_hton.c): Likewise.
11682 (CFLAGS-getnetgrent.c): Likewise.
11683 (CFLAGS-getnetgrent_r.c): Likewise.
11684 (CFLAGS-tst-checks-posix.c): Likewise.
11685 (CFLAGS-tst-sockaddr.c): Likewise.
11686 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
11687 (CFLAGS-tst-translit.c): Likewise.
11688 (CFLAGS-tst-gettext2.c): Likewise.
11689 (CFLAGS-tst-codeset.c): Likewise.
11690 (CFLAGS-tst-gettext3.c): Likewise.
11691 (CFLAGS-tst-gettext4.c): Likewise.
11692 (CFLAGS-tst-gettext5.c): Likewise.
11693 (CFLAGS-tst-gettext6.c): Likewise.
11694 * io/Makefile (CFLAGS-open.c): Likewise.
11695 (CFLAGS-open64.c): Likewise.
11696 (CFLAGS-creat.c): Likewise.
11697 (CFLAGS-creat64.c): Likewise.
11698 (CFLAGS-fcntl.c): Likewise.
11699 (CFLAGS-poll.c): Likewise.
11700 (CFLAGS-ppoll.c): Likewise.
11701 (CFLAGS-lockf.c): Likewise.
11702 (CFLAGS-statfs.c): Likewise.
11703 (CFLAGS-fstatfs.c): Likewise.
11704 (CFLAGS-statvfs.c): Likewise.
11705 (CFLAGS-fstatvfs.c): Likewise.
11706 (CFLAGS-fts.c): Likewise.
11707 (CFLAGS-fts64.c): Likewise.
11708 (CFLAGS-ftw.c): Likewise.
11709 (CFLAGS-ftw64.c): Likewise.
11710 (CFLAGS-lockf.c): Likewise.
11711 (CFLAGS-posix_fallocate.c): Likewise.
11712 (CFLAGS-posix_fallocate64.c): Likewise.
11713 (CFLAGS-fallocate.c): Likewise.
11714 (CFLAGS-fallocate64.c): Likewise.
11715 (CFLAGS-read.c): Likewise.
11716 (CFLAGS-write.c): Likewise.
11717 (CFLAGS-test-stat.c): Likewise.
11718 (CFLAGS-test-lfs.c): Likewise.
11719 * libio/Makefile (CFLAGS-fileops.c): Likewise.
11720 (CFLAGS-fputc.c): Likewise.
11721 (CFLAGS-fputwc.c): Likewise.
11722 (CFLAGS-freopen64.c): Likewise.
11723 (CFLAGS-freopen.c): Likewise.
11724 (CFLAGS-fseek.c): Likewise.
11725 (CFLAGS-fseeko64.c): Likewise.
11726 (CFLAGS-fseeko.c): Likewise.
11727 (CFLAGS-ftello64.c): Likewise.
11728 (CFLAGS-ftello.c): Likewise.
11729 (CFLAGS-fwide.c): Likewise.
11730 (CFLAGS-genops.c): Likewise.
11731 (CFLAGS-getc.c): Likewise.
11732 (CFLAGS-getchar.c): Likewise.
11733 (CFLAGS-getwc.c): Likewise.
11734 (CFLAGS-getwchar.c): Likewise.
11735 (CFLAGS-iofclose.c): Likewise.
11736 (CFLAGS-iofflush.c): Likewise.
11737 (CFLAGS-iofgetpos64.c): Likewise.
11738 (CFLAGS-iofgetpos.c): Likewise.
11739 (CFLAGS-iofgets.c): Likewise.
11740 (CFLAGS-iofgetws.c): Likewise.
11741 (CFLAGS-iofputs.c): Likewise.
11742 (CFLAGS-iofputws.c): Likewise.
11743 (CFLAGS-iofread.c): Likewise.
11744 (CFLAGS-iofsetpos64.c): Likewise.
11745 (CFLAGS-iofsetpos.c): Likewise.
11746 (CFLAGS-ioftell.c): Likewise.
11747 (CFLAGS-iofwrite.c): Likewise.
11748 (CFLAGS-iogetdelim.c): Likewise.
11749 (CFLAGS-iogetline.c): Likewise.
11750 (CFLAGS-iogets.c): Likewise.
11751 (CFLAGS-iogetwline.c): Likewise.
11752 (CFLAGS-ioputs.c): Likewise.
11753 (CFLAGS-ioseekoff.c): Likewise.
11754 (CFLAGS-ioseekpos.c): Likewise.
11755 (CFLAGS-iosetbuffer.c): Likewise.
11756 (CFLAGS-iosetvbuf.c): Likewise.
11757 (CFLAGS-ioungetc.c): Likewise.
11758 (CFLAGS-ioungetwc.c): Likewise.
11759 (CFLAGS-oldfileops.c): Likewise.
11760 (CFLAGS-oldiofclose.c): Likewise.
11761 (CFLAGS-oldiofgetpos64.c): Likewise.
11762 (CFLAGS-oldiofgetpos.c): Likewise.
11763 (CFLAGS-oldiofsetpos64.c): Likewise.
11764 (CFLAGS-oldiofsetpos.c): Likewise.
11765 (CFLAGS-peekc.c): Likewise.
11766 (CFLAGS-putc.c): Likewise.
11767 (CFLAGS-putchar.c): Likewise.
11768 (CFLAGS-putwc.c): Likewise.
11769 (CFLAGS-putwchar.c): Likewise.
11770 (CFLAGS-rewind.c): Likewise.
11771 (CFLAGS-wfileops.c): Likewise.
11772 (CFLAGS-wgenops.c): Likewise.
11773 (CFLAGS-oldiofopen.c): Likewise.
11774 (CFLAGS-iofopen.c): Likewise.
11775 (CFLAGS-iofopen64.c): Likewise.
11776 (CFLAGS-oldtmpfile.c): Likewise.
11777 (CFLAGS-tst_putwc.c): Likewise.
11778 * locale/Makefile (CFLAGS-md5.c): Likewise.
11779 (CFLAGS-charmap.c): Likewise.
11780 (CFLAGS-locfile.c): Likewise.
11781 (CFLAGS-charmap-dir.c): Likewise.
11782 * login/Makefile (CFLAGS-grantpt.c): Likewise.
11783 (CFLAGS-getpt.c): Likewise.
11784 (CFLAGS-pt_chown.c): Likewise.
11785 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
11786 (CFLAGS-obstack.c): Likewise.
11787 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
11788 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
11789 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
11790 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
11791 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
11792 (CFLAGS-test-tgmath.c): Likewise.
11793 (CFLAGS-test-tgmath2.c): Likewise.
11794 (CFLAGS-test-tgmath-ret.c): Likewise.
11795 (CFLAGS-test-powl.c): Likewise.
11796 (CFLAGS-test-snan.c): Likewise.
11797 (CFLAGS-test-signgam-finite.c): Likewise.
11798 (CFLAGS-test-signgam-finite-c99.c): Likewise.
11799 (CFLAGS-test-signgam-finite-c11.c): Likewise.
11800 (CFLAGS-test-signgam-uchar.c): Likewise.
11801 (CFLAGS-test-signgam-uchar-init.c): Likewise.
11802 (CFLAGS-test-signgam-uchar-static.c): Likewise.
11803 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
11804 (CFLAGS-test-signgam-uint.c): Likewise.
11805 (CFLAGS-test-signgam-uint-init.c): Likewise.
11806 (CFLAGS-test-signgam-uint-static.c): Likewise.
11807 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
11808 (CFLAGS-test-signgam-ullong.c): Likewise.
11809 (CFLAGS-test-signgam-ullong-init.c): Likewise.
11810 (CFLAGS-test-signgam-ullong-static.c): Likewise.
11811 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
11812 (CFLAGS-test-math-cxx11.cc): Likewise.
11813 (CFLAGS-test-math-isinff.cc): Likewise.
11814 (CFLAGS-test-math-iszero.cc): Likewise.
11815 (CFLAGS-test-math-issignaling.cc): Likewise.
11816 (CFLAGS-test-math-iscanonical.cc): Likewise.
11817 (CFLAGS-test-iszero-excess-precision.c): Likewise.
11818 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
11819 (CFLAGS-test-flt-eval-method.c): Likewise.
11820 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
11821 (CFLAGS-test-finite-macros.c): Likewise.
11822 * misc/Makefile (CFLAGS-select.c): Likewise.
11823 (CFLAGS-tsearch.c): Likewise.
11824 (CFLAGS-lsearch.c): Likewise.
11825 (CFLAGS-pselect.c): Likewise.
11826 (CFLAGS-readv.c): Likewise.
11827 (CFLAGS-writev.c): Likewise.
11828 (CFLAGS-preadv.c): Likewise.
11829 (CFLAGS-preadv64.c): Likewise.
11830 (CFLAGS-pwritev.c): Likewise.
11831 (CFLAGS-pwritev64.c): Likewise.
11832 (CFLAGS-preadv2.c): Likewise.
11833 (CFLAGS-preadv64v2.c): Likewise.
11834 (CFLAGS-pwritev2.c): Likewise.
11835 (CFLAGS-pwritev64v2.c): Likewise.
11836 (CFLAGS-usleep.c): Likewise.
11837 (CFLAGS-syslog.c): Likewise.
11838 (CFLAGS-error.c): Likewise.
11839 (CFLAGS-getpass.c): Likewise.
11840 (CFLAGS-mkstemp.c): Likewise.
11841 (CFLAGS-mkstemp64.c): Likewise.
11842 (CFLAGS-getsysstats.c): Likewise.
11843 (CFLAGS-getusershell.c): Likewise.
11844 (CFLAGS-err.c): Likewise.
11845 (CFLAGS-tst-tsearch.c): Likewise.
11846 (CFLAGS-msync.c): Likewise.
11847 (CFLAGS-fdatasync.c): Likewise.
11848 (CFLAGS-fsync.c): Likewise.
11849 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
11850 (CFLAGS-unwind.c): Likewise.
11851 (CFLAGS-unwind-forcedunwind.c): Likewise.
11852 (CFLAGS-pthread_cancel.c): Likewise.
11853 (CFLAGS-pthread_setcancelstate.c): Likewise.
11854 (CFLAGS-pthread_setcanceltype.c): Likewise.
11855 (CFLAGS-cancellation.c): Likewise.
11856 (CFLAGS-libc-cancellation.c): Likewise.
11857 (CFLAGS-pthread_exit.c): Likewise.
11858 (CFLAGS-forward.c): Likewise.
11859 (CFLAGS-pthread_testcancel.c): Likewise.
11860 (CFLAGS-pthread_join.c): Likewise.
11861 (CFLAGS-pthread_timedjoin.c): Likewise.
11862 (CFLAGS-pthread_once.c): Likewise.
11863 (CFLAGS-pthread_cond_wait.c): Likewise.
11864 (CFLAGS-sem_wait.c): Likewise.
11865 (CFLAGS-sem_timedwait.c): Likewise.
11866 (CFLAGS-fcntl.c): Likewise.
11867 (CFLAGS-lockf.c): Likewise.
11868 (CFLAGS-pread.c): Likewise.
11869 (CFLAGS-pread64.c): Likewise.
11870 (CFLAGS-pwrite.c): Likewise.
11871 (CFLAGS-pwrite64.c): Likewise.
11872 (CFLAGS-wait.c): Likewise.
11873 (CFLAGS-waitpid.c): Likewise.
11874 (CFLAGS-sigwait.c): Likewise.
11875 (CFLAGS-msgrcv.c): Likewise.
11876 (CFLAGS-msgsnd.c): Likewise.
11877 (CFLAGS-tcdrain.c): Likewise.
11878 (CFLAGS-open.c): Likewise.
11879 (CFLAGS-open64.c): Likewise.
11880 (CFLAGS-pause.c): Likewise.
11881 (CFLAGS-recv.c): Likewise.
11882 (CFLAGS-send.c): Likewise.
11883 (CFLAGS-accept.c): Likewise.
11884 (CFLAGS-sendto.c): Likewise.
11885 (CFLAGS-connect.c): Likewise.
11886 (CFLAGS-recvfrom.c): Likewise.
11887 (CFLAGS-recvmsg.c): Likewise.
11888 (CFLAGS-sendmsg.c): Likewise.
11889 (CFLAGS-close.c): Likewise.
11890 (CFLAGS-read.c): Likewise.
11891 (CFLAGS-write.c): Likewise.
11892 (CFLAGS-nanosleep.c): Likewise.
11893 (CFLAGS-sigsuspend.c): Likewise.
11894 (CFLAGS-msync.c): Likewise.
11895 (CFLAGS-fdatasync.c): Likewise.
11896 (CFLAGS-fsync.c): Likewise.
11897 (CFLAGS-pt-system.c): Likewise.
11898 (CFLAGS-tst-cleanup2.c): Likewise.
11899 (CFLAGS-tst-cleanupx2.c): Likewise.
11900 (CFLAGS-flockfile.c): Likewise.
11901 (CFLAGS-ftrylockfile.c): Likewise.
11902 (CFLAGS-funlockfile.c): Likewise.
11903 (CFLAGS-tst-initializers1.c): Likewise.
11904 (CFLAGS-tst-initializers1-c89.c): Likewise.
11905 (CFLAGS-tst-initializers1-c99.c): Likewise.
11906 (CFLAGS-tst-initializers1-c11.c): Likewise.
11907 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
11908 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
11909 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
11910 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
11911 (CFLAGS-nscd_getgr_r.c): Likewise.
11912 (CFLAGS-nscd_gethst_r.c): Likewise.
11913 (CFLAGS-nscd_getai.c): Likewise.
11914 (CFLAGS-nscd_initgroups.c): Likewise.
11915 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
11916 (CFLAGS-pause.c): Likewise.
11917 (CFLAGS-pread.c): Likewise.
11918 (CFLAGS-pread64.c): Likewise.
11919 (CFLAGS-pwrite.c): Likewise.
11920 (CFLAGS-pwrite64.c): Likewise.
11921 (CFLAGS-sleep.c): Likewise.
11922 (CFLAGS-wait.c): Likewise.
11923 (CFLAGS-waitid.c): Likewise.
11924 (CFLAGS-waitpid.c): Likewise.
11925 (CFLAGS-getopt.c): Likewise.
11926 (CFLAGS-wordexp.c): Likewise.
11927 (CFLAGS-sysconf.c): Likewise.
11928 (CFLAGS-pathconf.c): Likewise.
11929 (CFLAGS-fpathconf.c): Likewise.
11930 (CFLAGS-spawn.c): Likewise.
11931 (CFLAGS-spawnp.c): Likewise.
11932 (CFLAGS-spawni.c): Likewise.
11933 (CFLAGS-glob.c): Likewise.
11934 (CFLAGS-glob64.c): Likewise.
11935 (CFLAGS-getconf.c): Likewise.
11936 (CFLAGS-nanosleep.c): Likewise.
11937 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
11938 (CFLAGS-getpwent.c): Likewise.
11939 (CFLAGS-getpw.c): Likewise.
11940 (CFLAGS-fgetpwent_r.c): Likewise.
11941 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
11942 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
11943 (CFLAGS-mq_timedreceive.c): Likewise.
11944 (CFLAGS-mq_timedsend.c): Likewise.
11945 (CFLAGS-clock_nanosleep.c): Likewise.
11946 (CFLAGS-librt-cancellation.c): Likewise.
11947 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
11948 (CFLAGS-getspent.c): Likewise.
11949 (CFLAGS-fgetspent.c): Likewise.
11950 (CFLAGS-fgetspent_r.c): Likewise.
11951 (CFLAGS-putspent.c): Likewise.
11952 (CFLAGS-getspnam.c): Likewise.
11953 (CFLAGS-getspnam_r.c): Likewise.
11954 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
11955 (CFLAGS-sigsuspend.c): Likewise.
11956 (CFLAGS-sigtimedwait.c): Likewise.
11957 (CFLAGS-sigwait.c): Likewise.
11958 (CFLAGS-sigwaitinfo.c): Likewise.
11959 (CFLAGS-sigreturn.c): Likewise.
11960 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
11961 (CFLAGS-vfwprintf.c): Likewise.
11962 (CFLAGS-tmpfile.c): Likewise.
11963 (CFLAGS-tmpfile64.c): Likewise.
11964 (CFLAGS-tempname.c): Likewise.
11965 (CFLAGS-psignal.c): Likewise.
11966 (CFLAGS-vprintf.c): Likewise.
11967 (CFLAGS-cuserid.c): Likewise.
11968 (CFLAGS-errlist.c): Likewise.
11969 (CFLAGS-siglist.c): Likewise.
11970 (CFLAGS-scanf15.c): Likewise.
11971 (CFLAGS-scanf17.c): Likewise.
11972 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
11973 (CFLAGS-msort.c): Likewise.
11974 (CFLAGS-qsort.c): Likewise.
11975 (CFLAGS-system.c): Likewise.
11976 (CFLAGS-fmtmsg.c): Likewise.
11977 (CFLAGS-strfmon.c): Likewise.
11978 (CFLAGS-strfmon_l.c): Likewise.
11979 (CFLAGS-strfromd.c): Likewise.
11980 (CFLAGS-strfromf.c): Likewise.
11981 (CFLAGS-strfroml.c): Likewise.
11982 (CFLAGS-tst-bsearch.c): Likewise.
11983 (CFLAGS-tst-qsort.c): Likewise.
11984 (CFLAGS-tst-makecontext2.c): Likewise.
11985 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
11986 (CFLAGS-xnlm_prot.c): Likewise.
11987 (CFLAGS-xrstat.c): Likewise.
11988 (CFLAGS-xyppasswd.c): Likewise.
11989 (CFLAGS-xklm_prot.c): Likewise.
11990 (CFLAGS-xrex.c): Likewise.
11991 (CFLAGS-xsm_inter.c): Likewise.
11992 (CFLAGS-xmount.c): Likewise.
11993 (CFLAGS-xrusers.c): Likewise.
11994 (CFLAGS-xspray.c): Likewise.
11995 (CFLAGS-xnfs_prot.c): Likewise.
11996 (CFLAGS-xrquota.c): Likewise.
11997 (CFLAGS-xkey_prot.c): Likewise.
11998 (CFLAGS-auth_unix.c): Likewise.
11999 (CFLAGS-key_call.c): Likewise.
12000 (CFLAGS-pmap_rmt.c): Likewise.
12001 (CFLAGS-clnt_perr.c): Likewise.
12002 (CFLAGS-openchild.c): Likewise.
12003 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
12004 (CFLAGS-msgsnd.c): Likewise.
12005 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
12006 * time/Makefile (CFLAGS-tzfile.c): Likewise.
12007 (CFLAGS-tzset.c): Likewise.
12008 (CFLAGS-getdate.c): Likewise.
12009 (CFLAGS-test_time.c): Likewise.
12010 (CPPFLAGS-tst-tzname.c): Likewise.
12011 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
12012 (CFLAGS-zic.c): Likewise.
12013 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
12014 (CFLAGS-wcswidth.c): Likewise.
12015 (CFLAGS-wcstol.c): Likewise.
12016 (CFLAGS-wcstoul.c): Likewise.
12017 (CFLAGS-wcstoll.c): Likewise.
12018 (CFLAGS-wcstoull.c): Likewise.
12019 (CFLAGS-wcstod.c): Likewise.
12020 (CFLAGS-wcstold.c): Likewise.
12021 (CFLAGS-wcstof128.c): Likewise.
12022 (CFLAGS-wcstof.c): Likewise.
12023 (CFLAGS-wcstol_l.c): Likewise.
12024 (CFLAGS-wcstoul_l.c): Likewise.
12025 (CFLAGS-wcstoll_l.c): Likewise.
12026 (CFLAGS-wcstoull_l.c): Likewise.
12027 (CFLAGS-wcstod_l.c): Likewise.
12028 (CFLAGS-wcstold_l.c): Likewise.
12029 (CFLAGS-wcstof128_l.c): Likewise.
12030 (CFLAGS-wcstof_l.c): Likewise.
12031 (CPPFLAGS-tst-wchar-h.c): Likewise.
12032 (CPPFLAGS-wcstold_l.c): Likewise.
12033 ---
12034 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
12035
12036 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
12037
12038 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
12039 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
12040
12041 * manual/tunables.texi (Hardware Capability Tunables): Document
12042 glibc.tune.cached_memopt.
12043 * sysdeps/powerpc/cpu-features.c: New file.
12044 * sysdeps/powerpc/cpu-features.h: New file.
12045 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
12046 _dl_powerpc_cpu_features.
12047 * sysdeps/powerpc/dl-tunables.list: New file.
12048 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
12049 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
12050 (INIT_ARCH): Initialize use_aligned_memopt.
12051 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
12052 IS_IN(rtld))]: Restrict dl_platform_init availability and
12053 initialize CPU features used by tunables.
12054 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
12055 Add memcpy-power8-cached.
12056 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
12057 __memcpy_power8_cached.
12058 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
12059 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
12060 New file.
12061
12062 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
12063
12064 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
12065 (CFLAGS-noinl-tester.c): Likewise.
12066 (CFLAGS-tst-strlen.c): Likewise.
12067 (CFLAGS-stratcliff.c): Likewise.
12068 (CFLAGS-test-ffs.c): Likewise.
12069 (CFLAGS-tst-inlcall.c): Likewise.
12070 (CFLAGS-tst-xbzero-opt.c): Likewise.
12071 (CFLAGS-memcpy.c): Likewise.
12072 (CFLAGS-wordcopy.c): Likewise.
12073
12074 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
12075
12076 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
12077 Store r15 on stack and add cfi rule.
12078 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
12079 Likewise.
12080
12081 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
12082
12083 [BZ #22577]
12084 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
12085 call.
12086
12087 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
12088
12089 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12090 Add s_sinf-sse2 and s_sinf-fma.
12091 (CFLAGS-s_sinf-fma.c): New.
12092 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
12093 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
12094 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
12095
12096 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
12097
12098 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
12099
12100 2017-12-07 Joseph Myers <joseph@codesourcery.com>
12101
12102 [BZ #22568]
12103 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
12104 part of result to imaginary part of argument if it is zero and the
12105 real part of the argument is not finite.
12106 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
12107 of result to real part of argument if it is zero and the imaginary
12108 part of the argument is not finite.
12109
12110 2017-12-07 Mike FABIAN <mfabian@redhat.com>
12111
12112 [BZ #22524]
12113 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
12114 and to the list of locales to be built for testing.
12115 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
12116 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
12117 and build the collation rules upon that.
12118
12119 2017-12-07 Joseph Myers <joseph@codesourcery.com>
12120
12121 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
12122 * manual/math.texi (Mathematics): Document support for _Float32.
12123 * math/Makefile (test-types): Add float32.
12124 * math/Versions (GLIBC_2.27): Add _Float32 functions.
12125 * stdlib/Versions (GLIBC_2.27): Likewise.
12126 * wcsmbs/Versions (GLIBC_2.27): Likewise.
12127 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
12128 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12134 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12135 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12136 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12137 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12140 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12141 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12142 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12143 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12144 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12145 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
12148 Likewise.
12149 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12155 Likewise.
12156 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12157 Likewise.
12158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12159 Likewise.
12160 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12161 Likewise.
12162
12163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12164 Likewise.
12165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
12166 Likewise.
12167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12168 Likewise.
12169 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12170 Likewise.
12171 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12175 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12178 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12179 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12182 Likewise.
12183 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12184 Likewise.
12185 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12186 Likewise.
12187 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12188 Likewise.
12189 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12190 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12191 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12195 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
12196 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
12197
12198 2017-12-06 Joseph Myers <joseph@codesourcery.com>
12199
12200 * stdlib/strtof.c: Include <bits/floatn.h>
12201 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
12202 and later undefine as macro. Define as weak alias if
12203 [!USE_WIDE_CHAR].
12204 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
12205 and later undefine as macro. Define as weak alias if
12206 [USE_WIDE_CHAR].
12207 * stdlib/strtof_l.c: Include <bits/floatn.h>
12208 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
12209 and later undefine as macro. Define as weak alias if
12210 [!USE_WIDE_CHAR].
12211 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
12212 and later undefine as macro. Define as weak alias if
12213 [USE_WIDE_CHAR].
12214
12215 * stdlib/strfromf.c: Include <bits/floatn.h>.
12216 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
12217 and later undefine as macro and define as weak alias.
12218
12219 * math/test-float32.h: New file.
12220
12221 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
12222 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
12223 (libm_alias_float_other_r): Create f32 alias.
12224 (libm_alias_float_r): Use semicolon before call to
12225 libm_alias_float_other_r.
12226
12227 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
12228 second argument to libm_alias_float_other.
12229 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
12230 second argument to libm_alias_float_other.
12231 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
12232 argument to libm_alias_float_other.
12233
12234 [BZ #22561]
12235 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
12236 real part of result for argument 0 + i * NaN.
12237 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
12238 results for tests of 0 + i * NaN.
12239
12240 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12241
12242 * sysdeps/alpha/fpu/libm-test-ulps: Update.
12243
12244 2017-12-06 David S. Miller <davem@davemloft.net>
12245
12246 * sysdeps/sparc/fpu/libm-test-ulps: Update
12247 exp_{downward,towardzero,upward} ulps.
12248
12249 2017-12-06 Joseph Myers <joseph@codesourcery.com>
12250
12251 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
12252 variables static.
12253
12254 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
12255 (Y0_2D): Likewise.
12256 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
12257 (Y0_2D): Likewise.
12258 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
12259 (Y0_2D): Likewise.
12260 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
12261 (Y0_2D): Likewise.
12262
12263 2017-12-06 Mike FABIAN <mfabian@redhat.com>
12264
12265 [BZ #22515]
12266 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
12267 and to the list of locales to be built for testing.
12268 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
12269 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
12270 and build the collation rules upon that.
12271
12272 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12273
12274 * NEWS: Add sinf to list of optimized functions.
12275
12276 2017-12-06 Joseph Myers <joseph@codesourcery.com>
12277
12278 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
12279 (__HAVE_FLOAT32X): Likewise.
12280 * manual/math.texi (Mathematics): Document support for _Float64
12281 and _Float32x.
12282 * math/Makefile (test-types): Add float64 and float32x.
12283 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
12284 functions.
12285 * stdlib/Versions (GLIBC_2.27): Likewise.
12286 * wcsmbs/Versions (GLIBC_2.27): Likewise.
12287 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
12288 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
12308 Likewise.
12309 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12315 Likewise.
12316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12317 Likewise.
12318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12319 Likewise.
12320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12321 Likewise.
12322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12323 Likewise.
12324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
12325 Likewise.
12326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12327 Likewise.
12328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12329 Likewise.
12330 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12341 Likewise.
12342 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12343 Likewise.
12344 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12345 Likewise.
12346 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12347 Likewise.
12348 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12354 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
12355 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
12356
12357 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12358
12359 * bits/floatn-common.h: Include <bits/long-double.h>.
12360 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12361 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
12362 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12363 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
12364 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12365 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
12366 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12367 (__builtin_huge_valf64): Use __builtin_huge_vall.
12368 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12369 (__builtin_inff64): Use __builtin_infl.
12370 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12371 (__builtin_nanf64): Use __builtin_nanl.
12372 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12373 (__builtin_nansf64): Use __builtin_nansl.
12374
12375 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
12376 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
12377 Carlos O'Donnell <carlos@redhat.com>
12378
12379 * elf/dl-tunables.list: Add elision parameters.
12380 * manual/tunables.texi: Add entries about elision tunable.
12381 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
12382 Add callback functions to dynamically enable/disable elision.
12383 Add multiple callbacks functions to set elision parameters.
12384 Deleted __libc_enable_secure check.
12385 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
12386 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
12387 * configure: Regenerated.
12388 * configure.ac: Option enable_lock_elision was deleted.
12389 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
12390 * config.make.in: Remove references to enable_lock_elision.
12391 * manual/install.texi: Elision configure option was removed.
12392 * INSTALL: Regenerated to remove enable_lock_elision.
12393 * nptl/Makefile:
12394 Disable elision so it can verify error case for destroying a mutex.
12395 * sysdeps/powerpc/nptl/elide.h:
12396 Cleanup ENABLE_LOCK_ELISION check.
12397 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
12398 * sysdeps/s390/configure: Regenerated.
12399 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
12400 * nptl/tst-mutex8.c:
12401 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
12402 * sysdeps/powerpc/powerpc32/sysdep.h:
12403 Deleted all ENABLE_LOCK_ELISION checks.
12404 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12405 * sysdeps/powerpc/sysdep.h: Likewise.
12406 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
12407 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
12408 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
12409 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
12410 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
12411 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
12412 enable-lock-elision.
12413
12414 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12415
12416 * stdlib/strtod.c: Include <bits/floatn.h>.
12417 (BUILD_DOUBLE): New macro.
12418 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12419 (strtof64): Define and later undefine as macro. Define as weak
12420 alias if [!USE_WIDE_CHAR].
12421 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12422 (wcstof64): Define and later undefine as macro. Define as weak
12423 alias if [USE_WIDE_CHAR].
12424 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12425 (strtof32x): Define and later undefine as macro. Define as weak
12426 alias if [!USE_WIDE_CHAR].
12427 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12428 (wcstof32x): Define and later undefine as macro. Define as weak
12429 alias if [USE_WIDE_CHAR].
12430 * stdlib/strtod_l.c: Include <bits/floatn.h>.
12431 (BUILD_DOUBLE): New macro.
12432 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12433 (strtof64_l): Define and later undefine as macro. Define as weak
12434 alias if [!USE_WIDE_CHAR].
12435 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12436 (wcstof64_l): Define and later undefine as macro. Define as weak
12437 alias if [USE_WIDE_CHAR].
12438 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12439 (strtof32x_l): Define and later undefine as macro. Define as weak
12440 alias if [!USE_WIDE_CHAR].
12441 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12442 (wcstof32x_l): Define and later undefine as macro. Define as weak
12443 alias if [USE_WIDE_CHAR].
12444
12445 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12446
12447 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
12448 (reduced): Use ones as double instead of integer.
12449
12450 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12451
12452 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
12453
12454 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12455
12456 * stdlib/strfromd.c: Include <bits/floatn.h>.
12457 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
12458 and later undefine as macro and define as weak alias.
12459 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
12460 Likewise.
12461
12462 * math/test-float32x.h: New file.
12463 * math/test-float64.h: Likewise.
12464
12465 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
12466 (libm_alias_double_other_r_f64): New macro.
12467 (libm_alias_double_other_r_f32x): Likewise.
12468 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
12469 libm_alias_double_other_r_f32x.
12470 (libm_alias_double_r): Use semicolon before call to
12471 libm_alias_double_other_r.
12472 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
12473 <bits/floatn.h>.
12474 (libm_alias_double_other_r_f64): New macro.
12475 (libm_alias_double_other_r_f32x): Likewise.
12476 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
12477 libm_alias_double_other_r_f32x.
12478
12479 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
12480
12481 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
12482 int.
12483 (SINF_FUNC): Likewise. Replace floor with simple casts.
12484
12485 2017-12-05 Mike FABIAN <mfabian@redhat.com>
12486
12487 [BZ #22517]
12488 * localedata/Makefile: Add et_EE.UTF-8 to test-input
12489 and to the list of locales to be built for testing.
12490 * localedata/et_EE.UTF-8.in: New file for testing the collation.
12491 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
12492 and build the collation rules upon that.
12493
12494 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
12495
12496 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
12497 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
12498 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
12499 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
12500 instead of __insn__xxx.
12501 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
12502 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
12503 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
12504 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
12505 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
12506 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
12507
12508 2017-12-05 Florian Weimer <fweimer@redhat.com>
12509
12510 Linux: Implement interfaces for memory protection keys
12511 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
12512 xsignal, xsysconf.
12513 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
12514 * support/xunistd.h (xsysconf): Declare.
12515 * support/xraise.c: New file.
12516 * support/xsigaction.c: Likewise.
12517 * support/xsignal.c: Likewise.
12518 * support/xsysconf.c: Likewise.
12519 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
12520 pkey_set, pkey_get, pkey_mprotect.
12521 [misc] (tests): Add tst-pkey.
12522 (tst-pkey): Link with -lpthread.
12523 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
12524 pkey_free, pkey_set, pkey_get, pkey_mprotect.
12525 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
12526 (PKEY_DISABLE_WRITE): Define.
12527 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
12528 Declare.
12529 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
12530 (SEGV_PKUERR): Add.
12531 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
12532 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
12533 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
12534 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
12535 Add.
12536 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
12537 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
12538 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
12539 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
12540 * sysdeps/unix/sysv/linux/**.abilist: Update.
12541
12542 2017-12-05 Florian Weimer <fweimer@redhat.com>
12543
12544 * support/tst-test_compare.c (subprocess): Use long long instead
12545 of long argument for consistent type width across 32-bit and
12546 64-bit architectures.
12547 (do_test): Adjust expected output.
12548
12549 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12550
12551 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
12552 (cosf): Define using libm_alias_float.
12553 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
12554 (fabsf): Define using libm_alias_float.
12555 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
12556 (fmaf): Define using libm_alias_float.
12557 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
12558 (rintf): Define using libm_alias_float.
12559 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
12560 (sinf): Define using libm_alias_float.
12561 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
12562 <libm-alias-float.h>.
12563 (modff): Define using libm_alias_float.
12564 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
12565 <libm-alias-float.h>.
12566 (logbf): Define using libm_alias_float.
12567 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
12568 <libm-alias-float.h>.
12569 (ceilf): Define using libm_alias_float.
12570 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
12571 <libm-alias-float.h>.
12572 (copysignf): Define using libm_alias_float.
12573 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
12574 <libm-alias-float.h>.
12575 (floorf): Define using libm_alias_float.
12576 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
12577 <libm-alias-float.h>.
12578 (llrintf): Define using libm_alias_float.
12579 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
12580 <libm-alias-float.h>.
12581 (llroundf): Define using libm_alias_float.
12582 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
12583 <libm-alias-float.h>.
12584 (lrintf): Define using libm_alias_float.
12585 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
12586 <libm-alias-float.h>.
12587 (lroundf): Define using libm_alias_float.
12588 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
12589 <libm-alias-float.h>.
12590 (nearbyintf): Define using libm_alias_float.
12591 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
12592 <libm-alias-float.h>.
12593 (rintf): Define using libm_alias_float.
12594 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
12595 <libm-alias-float.h>.
12596 (roundf): Define using libm_alias_float.
12597 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
12598 <libm-alias-float.h>.
12599 (truncf): Define using libm_alias_float.
12600 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
12601 Include <libm-alias-float.h>.
12602 (ceilf): Define using libm_alias_float.
12603 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12604 Include <libm-alias-float.h>.
12605 (copysignf): Define using libm_alias_float.
12606 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
12607 Include <libm-alias-float.h>.
12608 (floorf): Define using libm_alias_float.
12609 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
12610 Include <libm-alias-float.h>.
12611 (llrintf): Define using libm_alias_float.
12612 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
12613 Include <libm-alias-float.h>.
12614 (llroundf): Define using libm_alias_float.
12615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
12616 Include <libm-alias-float.h>.
12617 (logbf): Define using libm_alias_float.
12618 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
12619 Include <libm-alias-float.h>.
12620 (lrintf): Define using libm_alias_float.
12621 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
12622 Include <libm-alias-float.h>.
12623 (lroundf): Define using libm_alias_float.
12624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
12625 Include <libm-alias-float.h>.
12626 (modff): Define using libm_alias_float.
12627 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
12628 Include <libm-alias-float.h>.
12629 (roundf): Define using libm_alias_float.
12630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
12631 Include <libm-alias-float.h>.
12632 (truncf): Define using libm_alias_float.
12633 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
12634 <libm-alias-float.h>.
12635 (llrintf): Define using libm_alias_float.
12636 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
12637 <libm-alias-float.h>.
12638 (llroundf): Define using libm_alias_float.
12639 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
12640 <libm-alias-float.h>.
12641 (ceilf): Define using libm_alias_float.
12642 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
12643 <libm-alias-float.h>.
12644 (floorf): Define using libm_alias_float.
12645 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
12646 <libm-alias-float.h>.
12647 (llroundf): Define using libm_alias_float.
12648 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
12649 <libm-alias-float.h>.
12650 (lroundf): Define using libm_alias_float.
12651 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
12652 <libm-alias-float.h>.
12653 (roundf): Define using libm_alias_float.
12654 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
12655 <libm-alias-float.h>.
12656 (truncf): Define using libm_alias_float.
12657 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
12658 <libm-alias-float.h>.
12659 (copysignf): Define using libm_alias_float.
12660 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
12661 <libm-alias-float.h>.
12662 (llrintf): Define using libm_alias_float.
12663 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
12664 <libm-alias-float.h>.
12665 (llroundf): Define using libm_alias_float.
12666 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
12667 <libm-alias-float.h>.
12668 (lrintf): Define using libm_alias_float.
12669 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
12670 <libm-alias-float.h>.
12671 (lroundf): Define using libm_alias_float.
12672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
12673 <libm-alias-float.h>.
12674 (ceilf): Define using libm_alias_float.
12675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
12676 <libm-alias-float.h>.
12677 (copysignf): Define using libm_alias_float.
12678 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
12679 <libm-alias-float.h>.
12680 (cosf): Define using libm_alias_float.
12681 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
12682 <libm-alias-float.h>.
12683 (floorf): Define using libm_alias_float.
12684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
12685 <libm-alias-float.h>.
12686 (llrintf): Define using libm_alias_float.
12687 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
12688 <libm-alias-float.h>.
12689 (llroundf): Define using libm_alias_float.
12690 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
12691 <libm-alias-float.h>.
12692 (logbf): Define using libm_alias_float.
12693 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
12694 <libm-alias-float.h>.
12695 (modff): Define using libm_alias_float.
12696 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
12697 <libm-alias-float.h>.
12698 (roundf): Define using libm_alias_float.
12699 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
12700 <libm-alias-float.h>.
12701 (sinf): Define using libm_alias_float.
12702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
12703 <libm-alias-float.h>.
12704 (truncf): Define using libm_alias_float.
12705 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
12706 <libm-alias-float.h>.
12707 (ceilf): Define using libm_alias_float.
12708 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
12709 <libm-alias-float.h>.
12710 (copysignf): Define using libm_alias_float.
12711 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
12712 <libm-alias-float.h>.
12713 (floorf): Define using libm_alias_float.
12714 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
12715 <libm-alias-float.h>.
12716 (llrintf): Define using libm_alias_float.
12717 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
12718 <libm-alias-float.h>.
12719 (llroundf): Define using libm_alias_float.
12720 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
12721 <libm-alias-float.h>.
12722 (nearbyintf): Define using libm_alias_float.
12723 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
12724 <libm-alias-float.h>.
12725 (rintf): Define using libm_alias_float.
12726 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
12727 <libm-alias-float.h>.
12728 (roundf): Define using libm_alias_float.
12729 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
12730 <libm-alias-float.h>.
12731 (truncf): Define using libm_alias_float.
12732 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
12733 <libm-alias-float.h>.
12734 (ceilf): Define using libm_alias_float.
12735 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
12736 <libm-alias-float.h>.
12737 (floorf): Define using libm_alias_float.
12738 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
12739 <libm-alias-float.h>.
12740 (llroundf): Define using libm_alias_float.
12741 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
12742 <libm-alias-float.h>.
12743 (roundf): Define using libm_alias_float.
12744 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
12745 <libm-alias-float.h>.
12746 (truncf): Define using libm_alias_float.
12747 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
12748 <libm-alias-float.h>.
12749 (copysignf): Define using libm_alias_float.
12750 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
12751 <libm-alias-float.h>.
12752 (llrintf): Define using libm_alias_float.
12753 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
12754 <libm-alias-float.h>.
12755 (llroundf): Define using libm_alias_float.
12756 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
12757 <libm-alias-float.h>.
12758 (cosf): Define using libm_alias_float.
12759 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
12760 <libm-alias-float.h>.
12761 (llrintf): Define using libm_alias_float.
12762 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
12763 <libm-alias-float.h>.
12764 (llroundf): Define using libm_alias_float.
12765 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
12766 <libm-alias-float.h>.
12767 (sinf): Define using libm_alias_float.
12768
12769 2017-12-04 Florian Weimer <fweimer@redhat.com>
12770
12771 * support/check.h (TEST_COMPARE): Define.
12772 (support_test_compare_failure): Declare.
12773 * support/Makefile (libsupport-routines): Add
12774 support_test_compare_failure.
12775 (tests): Add tst-test_compare.
12776 * support /support_test_compare_failure.c: New file.
12777 * support/tst-test_compare.c: Likewise.
12778
12779 2017-12-04 Mike FABIAN <mfabian@redhat.com>
12780
12781 [BZ #22527]
12782 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
12783 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
12784 available, this rewrite of the collation rules does reproduce
12785 the test file in the same order.
12786
12787 2017-12-04 Mike FABIAN <mfabian@redhat.com>
12788
12789 [BZ #10580]
12790 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
12791 digraphs in the month and day names. Using single code points for
12792 digraphs is deprecated. While there are dedicated Unicode
12793 codepoints, for the digraphs, these are included for backwards
12794 compatibility and modern texts use a sequence of Basic Latin
12795 characters. See: https://www.unicode.org/faq/ligature_digraph.html
12796 This makes the month and day names agree exactly with CLDR now,
12797 CLDR does not use the single code points for the digraphs either.
12798
12799 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
12800
12801 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
12802
12803 2017-12-04 Joseph Myers <joseph@codesourcery.com>
12804
12805 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
12806 of floor.
12807
12808 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
12809
12810 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
12811 Define only for libc.so.
12812
12813 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12814
12815 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
12816 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
12817 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
12818 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
12819 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12820
12821 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12822
12823 [BZ #5997]
12824 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
12825
12826 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
12827
12828 [BZ libc/19170]
12829 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
12830 PREINIT_FUNCTION_WEAK is nonzero.
12831 (gmon_initializer): New function. Put procedure label for it in
12832 .init_array section.
12833 (_init): Don't call PREINIT_FUNCTION.
12834 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
12835 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
12836 value when map argument is null.
12837
12838 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
12839 depi instruction from PIC pc-relative sequence.
12840 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
12841 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
12842 (elf_machine_load_address): Likewise.
12843 (elf_machine_runtime_setup): Likewise.
12844
12845 2017-12-02 Joseph Myers <joseph@codesourcery.com>
12846
12847 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
12848 <libm-alias-double.h>.
12849 (logb): Define using libm_alias_double.
12850 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
12851 <libm-alias-double.h>.
12852 (copysign): Define using libm_alias_double.
12853 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
12854 <libm-alias-double.h>.
12855 (llrint): Define using libm_alias_double.
12856 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
12857 <libm-alias-double.h>.
12858 (llround): Define using libm_alias_double.
12859 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
12860 <libm-alias-double.h>.
12861 (lrint): Define using libm_alias_double.
12862 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
12863 <libm-alias-double.h>.
12864 (lround): Define using libm_alias_double.
12865 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12866 Include <libm-alias-double.h>.
12867 (copysign): Define using libm_alias_double.
12868 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
12869 Include <libm-alias-double.h>.
12870 (llrint): Define using libm_alias_double.
12871 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
12872 Include <libm-alias-double.h>.
12873 (llround): Define using libm_alias_double.
12874 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
12875 <libm-alias-double.h>.
12876 (logb): Define using libm_alias_double.
12877 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
12878 Include <libm-alias-double.h>.
12879 (lrint): Define using libm_alias_double.
12880 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
12881 Include <libm-alias-double.h>.
12882 (lround): Define using libm_alias_double.
12883 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
12884 <libm-alias-double.h>.
12885 (llrint): Define using libm_alias_double.
12886 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
12887 <libm-alias-double.h>.
12888 (llround): Define using libm_alias_double.
12889 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
12890 <libm-alias-double.h>.
12891 (llround): Define using libm_alias_double.
12892 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
12893 <libm-alias-double.h>.
12894 (lround): Define using libm_alias_double.
12895 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
12896 <libm-alias-double.h>.
12897 (copysign): Define using libm_alias_double.
12898 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
12899 <libm-alias-double.h>.
12900 (llrint): Define using libm_alias_double.
12901 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
12902 <libm-alias-double.h>.
12903 (llround): Define using libm_alias_double.
12904 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
12905 <libm-alias-double.h>.
12906 (lrint): Define using libm_alias_double.
12907 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
12908 <libm-alias-double.h>.
12909 (lround): Define using libm_alias_double.
12910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
12911 <libm-alias-double.h>.
12912 (copysign): Define using libm_alias_double.
12913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
12914 <libm-alias-double.h>.
12915 (llrint): Define using libm_alias_double.
12916 (lrint): Likewise.
12917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
12918 <libm-alias-double.h>.
12919 (llround): Define using libm_alias_double.
12920 (lround): Likewise.
12921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
12922 <libm-alias-double.h>.
12923 (logb): Define using libm_alias_double.
12924 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
12925 <libm-alias-double.h>.
12926 (copysign): Define using libm_alias_double.
12927 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
12928 <libm-alias-double.h>.
12929 (llrint): Define using libm_alias_double.
12930 (lrint): Likewise.
12931 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
12932 <libm-alias-double.h>.
12933 (llround): Define using libm_alias_double.
12934 (lround): Likewise.
12935 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
12936 <libm-alias-double.h>.
12937 (llround): Define using libm_alias_double.
12938 (lround): Likewise.
12939 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
12940 <libm-alias-double.h>.
12941 (copysign): Define using libm_alias_double.
12942 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
12943 <libm-alias-double.h>.
12944 (llrint): Define using libm_alias_double.
12945 (lrint): Likewise.
12946 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
12947 <libm-alias-double.h>.
12948 (llround): Define using libm_alias_double.
12949 (lround): Likewise.
12950 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
12951 <libm-alias-double.h>.
12952 (llrint): Define using libm_alias_double.
12953 (lrint): Likewise.
12954 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
12955 <libm-alias-double.h>.
12956 (llround): Define using libm_alias_double.
12957 (lround): Likewise.
12958
12959 2017-12-01 Joseph Myers <joseph@codesourcery.com>
12960
12961 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
12962 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
12963 compat symbol based on llround.
12964
12965 * sysdeps/powerpc/power7/fpu/s_logb.c
12966 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
12967 symbol based on __logb, not on logb.
12968 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
12969 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
12970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
12971 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
12972
12973 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
12974 (rint): Define using libm_alias_double.
12975 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
12976 <libm-alias-double.h>.
12977 (modf): Define using libm_alias_double.
12978 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
12979 <libm-alias-double.h>.
12980 (ceil): Define using libm_alias_double.
12981 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
12982 <libm-alias-double.h>.
12983 (floor): Define using libm_alias_double.
12984 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
12985 <libm-alias-double.h>.
12986 (nearbyint): Define using libm_alias_double.
12987 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
12988 <libm-alias-double.h>.
12989 (rint): Define using libm_alias_double.
12990 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
12991 <libm-alias-double.h>.
12992 (round): Define using libm_alias_double.
12993 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
12994 <libm-alias-double.h>.
12995 (trunc): Define using libm_alias_double.
12996 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
12997 <libm-alias-double.h>.
12998 (ceil): Define using libm_alias_double.
12999 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
13000 Include <libm-alias-double.h>.
13001 (floor): Define using libm_alias_double.
13002 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
13003 <libm-alias-double.h>.
13004 (modf): Define using libm_alias_double.
13005 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
13006 Include <libm-alias-double.h>.
13007 (round): Define using libm_alias_double.
13008 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
13009 Include <libm-alias-double.h>.
13010 (trunc): Define using libm_alias_double.
13011 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
13012 <libm-alias-double.h>.
13013 (ceil): Define using libm_alias_double.
13014 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
13015 <libm-alias-double.h>.
13016 (floor): Define using libm_alias_double.
13017 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
13018 <libm-alias-double.h>.
13019 (round): Define using libm_alias_double.
13020 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
13021 <libm-alias-double.h>.
13022 (trunc): Define using libm_alias_double.
13023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
13024 <libm-alias-double.h>.
13025 (ceil): Define using libm_alias_double.
13026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
13027 <libm-alias-double.h>.
13028 (floor): Define using libm_alias_double.
13029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
13030 <libm-alias-double.h>.
13031 (modf): Define using libm_alias_double.
13032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
13033 <libm-alias-double.h>.
13034 (round): Define using libm_alias_double.
13035 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
13036 <libm-alias-double.h>.
13037 (trunc): Define using libm_alias_double.
13038 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
13039 <libm-alias-double.h>.
13040 (ceil): Define using libm_alias_double.
13041 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
13042 <libm-alias-double.h>.
13043 (floor): Define using libm_alias_double.
13044 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
13045 <libm-alias-double.h>.
13046 (nearbyint): Define using libm_alias_double.
13047 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
13048 <libm-alias-double.h>.
13049 (rint): Define using libm_alias_double.
13050 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
13051 <libm-alias-double.h>.
13052 (round): Define using libm_alias_double.
13053 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
13054 <libm-alias-double.h>.
13055 (trunc): Define using libm_alias_double.
13056 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
13057 <libm-alias-double.h>.
13058 (ceil): Define using libm_alias_double.
13059 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
13060 <libm-alias-double.h>.
13061 (floor): Define using libm_alias_double.
13062 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
13063 <libm-alias-double.h>.
13064 (round): Define using libm_alias_double.
13065 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
13066 <libm-alias-double.h>.
13067 (trunc): Define using libm_alias_double.
13068
13069 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
13070 (fabs): Define using libm_alias_double.
13071 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
13072 (fma): Define using libm_alias_double.
13073 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
13074 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
13075 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
13076 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
13077
13078 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13079
13080 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
13081
13082 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
13083 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
13084 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
13085
13086 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
13087 due redirect macro.
13088
13089 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
13090
13091 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
13092
13093 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13094
13095 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
13096 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
13097 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
13098 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
13099
13100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13101 (libm-sysdep_routines): Add s_nearbyintf-generic and
13102 s_nearbyint-generic.
13103 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
13104 New file.
13105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
13106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
13107 Likewise.
13108 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
13109 Likewise.
13110 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
13111 file.
13112 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
13113 Likewise.
13114
13115 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13116 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
13117 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
13118 file.
13119 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
13120 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
13121 Likewise.
13122 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
13123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
13124 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
13125
13126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13127 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
13128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
13129 file.
13130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
13131 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
13132 Likewise.
13133 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
13134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
13135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
13136
13137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13138 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
13139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
13140 file.
13141 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
13142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
13143 Likewise.
13144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
13145 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
13146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
13147
13148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13149 (sysdep_calls): New rule.
13150 (sysdep_routines): Use sysdep_calls as base.
13151 (libm-sysdep_routines): Add generic rule for symbols shared with
13152 libc. Add s_copysign-generic and s_copysign-generic objects.
13153 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
13154 New file.
13155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
13156 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
13157 Likewise.
13158 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
13159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
13160 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
13161
13162 2017-12-01 Mike FABIAN <mfabian@redhat.com>
13163
13164 [BZ #22519]
13165 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
13166 the list of locales to be built for testing.
13167 * localedata/is_IS.UTF-8.in: New file.
13168 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
13169 on iso14651_t1.
13170
13171 2017-12-01 Joseph Myers <joseph@codesourcery.com>
13172
13173 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
13174 <libm-alias-float.h>.
13175 (fabsf): Define using libm_alias_float.
13176
13177 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
13178
13179 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
13180
13181 2017-11-30 Joseph Myers <joseph@codesourcery.com>
13182
13183 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
13184 <libm-alias-float.h>.
13185 (fabsf): Define using libm_alias_float.
13186 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
13187 <libm-alias-float.h>.
13188 (lrintf): Define using libm_alias_float.
13189 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
13190 <libm-alias-float.h>.
13191 (rintf): Define using libm_alias_float.
13192
13193 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
13194 <libm-alias-double.h>.
13195 (fabs): Define using libm_alias_double.
13196 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
13197 <libm-alias-double.h>.
13198 (lrint): Define using libm_alias_double.
13199 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
13200 <libm-alias-double.h>.
13201 (rint): Define using libm_alias_double.
13202
13203 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
13204 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
13205 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
13206 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
13207 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
13208 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
13209 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
13210 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
13211 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
13212 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
13213 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
13214 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
13215 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
13216 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
13217 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
13218 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
13219 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
13220 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
13221 s_atan_template.c.
13222 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
13223 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
13224 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
13225 s_ceil_template.c.
13226 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
13227 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
13228 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
13229 s_cos_template.c.
13230 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
13231 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
13232 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
13233 s_expm1_template.c.
13234 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
13235 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
13236 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
13237 s_fabs_template.c.
13238 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
13239 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
13240 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
13241 s_floor_template.c.
13242 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
13243 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
13244 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
13245 s_frexp_template.c.
13246 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
13247 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
13248 s_lrint_template.c.
13249 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
13250 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
13251 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
13252 s_modf_template.c.
13253 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
13254 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
13255 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
13256 s_nearbyint_template.c.
13257 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
13258 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
13259 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
13260 s_remquo_template.c.
13261 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
13262 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
13263 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
13264 s_rint_template.c.
13265 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
13266 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
13267 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
13268 s_sin_template.c.
13269 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
13270 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
13271 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
13272 s_sincos_template.c.
13273 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
13274 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
13275 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
13276 s_tan_template.c.
13277 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
13278 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
13279 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
13280 s_tanh_template.c.
13281 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
13282 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
13283 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
13284 s_trunc_template.c.
13285 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
13286 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
13287 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
13288 s_atan.c instead of including s_atan.c.
13289 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
13290 s_atanf.c instead of including s_atanf.c.
13291 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
13292 s_atanl.c instead of including s_atanl.c.
13293 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
13294 instead of s_atan.c.
13295 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
13296 instead of s_atanf.c.
13297 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
13298 instead of s_atanl.c.
13299
13300 * scripts/update-copyrights: Do not handle intl/plural.c
13301 specially.
13302
13303 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
13304
13305 [BZ #22432]
13306 * configure.ac (BISON): Require to be present.
13307 * configure: Regenerated.
13308 * intl/Makefile (generated): Add plural.c.
13309 [$(BISON) != no]: Make code unconditional.
13310 (plural.c): Change rule to $(objpfx)plural.c.
13311 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
13312 * intl/plural.c: Remove.
13313 * manual/install.texi (Tools for Compilation): Document bison as
13314 required.
13315 * INSTALL: Regenerated.
13316
13317 2017-11-30 Joseph Myers <joseph@codesourcery.com>
13318
13319 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
13320 <libm-alias-double.h>.
13321 (llrint): Define using libm_alias_double.
13322 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
13323 <libm-alias-float.h>.
13324 (llrintf): Define using libm_alias_float.
13325 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
13326 <libm-alias-ldouble.h>.
13327 (llrintl): Define using libm_alias_ldouble.
13328
13329 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
13330 declare_mgen_alias instead of weak_alias.
13331 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
13332 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
13333 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
13334
13335 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13336
13337 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13338 Add add_n-generic.
13339 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
13340 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
13341 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
13342
13343 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13344 Add submul_1-generic.
13345 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
13346 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
13347 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
13348
13349 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13350 Add addmul_1-generic.
13351 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
13352 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
13353 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
13354
13355 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13356 Add sub_n-generic.
13357 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
13358 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
13359 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
13360
13361 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13362 Add mul_1-generic.
13363 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
13364 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
13365 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
13366
13367 2017-11-30 Mike FABIAN <mfabian@redhat.com>
13368
13369 According to CLDR, collation rules for Serbian and Bosnian
13370 should be the same as for Croatian.
13371
13372 [BZ #22534]
13373 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
13374 and to the list of locales to be built for testing.
13375 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
13376 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
13377 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
13378 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
13379
13380 2017-11-30 Mike FABIAN <mfabian@redhat.com>
13381
13382 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
13383 to make test case pass.
13384 * localedata/hr_HR.UTF-8.in: Add more test strings.
13385
13386 2017-11-30 Mike FABIAN <mfabian@redhat.com>
13387
13388 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
13389
13390 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
13391
13392 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
13393 the list of locales to built for testing.
13394 * localedata/hr_HR.UTF-8.in: New file.
13395
13396 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
13397
13398 [BZ #10580]
13399 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
13400 iso14651_t1.
13401 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
13402 CLDR (except use ligatures for the digraphs, CLDR does not use
13403 the ligatures), add first_workday, some fixes in the date and time
13404 formats.
13405 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
13406 for Đ and đ.
13407 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
13408 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
13409 Add int_p_cs_precedes and int_n_cs_precedes.
13410 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
13411 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
13412 LC_MONETARY now).
13413 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
13414 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
13415 name_miss.
13416 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
13417 and lang_lib. Change postal_fmt.
13418
13419 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
13420
13421 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
13422 <setjmp.h>.
13423 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
13424 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
13425 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
13426 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
13427 * sysdeps/generic/setjmpP.h: New file.
13428 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
13429 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
13430 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
13431 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
13432 Add jmp_buf-ssp.sym.
13433 (tests): Add tst-saved_mask-1.
13434
13435 2017-11-30 Arjun Shankar <arjun@redhat.com>
13436
13437 [BZ #22375]
13438 CVE-2017-17426
13439 * malloc/malloc.c (__libc_malloc): Use checked_request2size
13440 instead of request2size.
13441
13442 2017-11-30 Joseph Myers <joseph@codesourcery.com>
13443
13444 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
13445 (__lllrint): Remove alias.
13446 (lllrint): Likewise.
13447 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
13448 (__lllrintf): Likewise.
13449 (lllrintf): Likewise.
13450
13451 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
13452 <libm-alias-float.h>.
13453 (copysignf): Define using libm_alias_float.
13454 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
13455 <libm-alias-float.h>.
13456 (fabsf): Define using libm_alias_float.
13457 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
13458 Include <libm-alias-float.h>.
13459 (copysignf): Define using libm_alias_float.
13460 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
13461 <libm-alias-float.h>.
13462 (fabsf): Define using libm_alias_float.
13463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
13464 <libm-alias-float.h>.
13465 (fdimf): Define using libm_alias_float.
13466 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
13467 <libm-alias-float.h>.
13468 (fmaf): Define using libm_alias_float.
13469 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
13470 <libm-alias-float.h>.
13471 (llrintf): Define using libm_alias_float.
13472 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
13473 Include <libm-alias-float.h>.
13474 (nearbyintf): Define using libm_alias_float.
13475 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
13476 <libm-alias-float.h>.
13477 (rintf): Define using libm_alias_float.
13478 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
13479 <libm-alias-float.h>.
13480 (llrintf): Define using libm_alias_float.
13481 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
13482 <libm-alias-float.h>.
13483 (lrintf): Define using libm_alias_float.
13484 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
13485 <libm-alias-float.h>.
13486 (nearbyintf): Define using libm_alias_float.
13487 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
13488 <libm-alias-float.h>.
13489 (rintf): Define using libm_alias_float.
13490 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
13491 <libm-alias-float.h>.
13492 (ceilf): Define using libm_alias_float.
13493 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
13494 <libm-alias-float.h>.
13495 (floorf): Define using libm_alias_float.
13496 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
13497 <libm-alias-float.h>.
13498 (fmaf): Define using libm_alias_float.
13499 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
13500 <libm-alias-float.h>.
13501 (lrintf): Define using libm_alias_float.
13502 (llrintf): Likewise.
13503 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
13504 <libm-alias-float.h>.
13505 (nearbyintf): Define using libm_alias_float.
13506 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
13507 <libm-alias-float.h>.
13508 (rintf): Define using libm_alias_float.
13509 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
13510 <libm-alias-float.h>.
13511 (truncf): Define using libm_alias_float.
13512 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
13513 <libm-alias-float.h>.
13514 (copysignf): Define using libm_alias_float.
13515 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
13516 <libm-alias-float.h>.
13517 (fabsf): Define using libm_alias_float.
13518 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
13519 <libm-alias-float.h>.
13520 (lrintf): Define using libm_alias_float.
13521 (llrintf): Likewise.
13522 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
13523 <libm-alias-float.h>.
13524 (nearbyintf): Define using libm_alias_float.
13525 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
13526 <libm-alias-float.h>.
13527 (rintf): Define using libm_alias_float.
13528
13529 2017-11-29 Joseph Myers <joseph@codesourcery.com>
13530
13531 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
13532 <libm-alias-double.h>.
13533 (copysign): Define using libm_alias_double.
13534 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
13535 <libm-alias-double.h>.
13536 (fabs): Define using libm_alias_double.
13537 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
13538 Include <libm-alias-double.h>.
13539 (copysign): Define using libm_alias_double.
13540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
13541 <libm-alias-double.h>.
13542 (fabs): Define using libm_alias_double.
13543 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
13544 <libm-alias-double.h>.
13545 (fdim): Define using libm_alias_double.
13546 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
13547 <libm-alias-double.h>.
13548 (fma): Define using libm_alias_double.
13549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
13550 <libm-alias-double.h>.
13551 (llrint): Define using libm_alias_double.
13552 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
13553 Include <libm-alias-double.h>.
13554 (nearbyint): Define using libm_alias_double.
13555 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
13556 <libm-alias-double.h>.
13557 (rint): Define using libm_alias_double.
13558 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
13559 <libm-alias-double.h>.
13560 (fabs): Define using libm_alias_double.
13561 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
13562 <libm-alias-double.h>.
13563 (llrint): Define using libm_alias_double.
13564 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
13565 <libm-alias-double.h>.
13566 (nearbyint): Define using libm_alias_double.
13567 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
13568 <libm-alias-double.h>.
13569 (rint): Define using libm_alias_double.
13570 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
13571 <libm-alias-double.h>.
13572 (ceil): Define using libm_alias_double.
13573 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
13574 <libm-alias-double.h>.
13575 (floor): Define using libm_alias_double.
13576 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
13577 <libm-alias-double.h>.
13578 (fma): Define using libm_alias_double.
13579 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
13580 <libm-alias-double.h>.
13581 (lrint): Define using libm_alias_double.
13582 (llrint): Likewise.
13583 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
13584 <libm-alias-double.h>.
13585 (nearbyint): Define using libm_alias_double.
13586 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
13587 <libm-alias-double.h>.
13588 (rint): Define using libm_alias_double.
13589 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
13590 <libm-alias-double.h>.
13591 (trunc): Define using libm_alias_double.
13592 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
13593 <libm-alias-double.h>.
13594 (copysign): Define using libm_alias_double.
13595 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
13596 <libm-alias-double.h>.
13597 (fabs): Define using libm_alias_double.
13598 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
13599 <libm-alias-double.h>.
13600 (lrint): Define using libm_alias_double.
13601 (llrint): Likewise.
13602 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
13603 <libm-alias-double.h>.
13604 (nearbyint): Define using libm_alias_double.
13605 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
13606 <libm-alias-double.h>.
13607 (rint): Define using libm_alias_double.
13608
13609 [BZ #22229]
13610 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
13611 <math_ldbl_opt.h>.
13612 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
13613
13614 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13615 SPARC --disable-multi-arch glibc variants.
13616
13617 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
13618 <libm-alias-float.h>.
13619 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13620 if [SHARED].
13621 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
13622 <libm-alias-float.h>.
13623 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13624 if [SHARED].
13625 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
13626 <libm-alias-float.h>.
13627 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13628 if [SHARED].
13629 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
13630 <libm-alias-float.h>.
13631 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13632 if [SHARED].
13633 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
13634 <libm-alias-float.h>.
13635 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13636 if [SHARED].
13637 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
13638 <libm-alias-float.h>.
13639 (ceilf): Define using libm_alias_float.
13640 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
13641 <libm-alias-float.h>.
13642 (floorf): Define using libm_alias_float.
13643 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
13644 <libm-alias-float.h>.
13645 (fmaf): Define using libm_alias_float.
13646 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
13647 <libm-alias-float.h>.
13648 (nearbyintf): Define using libm_alias_float.
13649 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
13650 <libm-alias-float.h>.
13651 (rintf): Define using libm_alias_float.
13652 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
13653 <libm-alias-float.h>.
13654 (truncf): Define using libm_alias_float.
13655 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
13656 (copysignf): Define using libm_alias_float.
13657 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
13658 (cosf): Define using libm_alias_float.
13659 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
13660 (fabsf): Define using libm_alias_float.
13661 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
13662 (fmaxf): Define using libm_alias_float.
13663 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
13664 (fminf): Define using libm_alias_float.
13665 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
13666 (llrintf): Define using libm_alias_float.
13667 [!__ILP32__] (lrintf): Likewise.
13668 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
13669 (sincosf): Define using libm_alias_float.
13670 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
13671 (sinf): Define using libm_alias_float.
13672 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
13673 (lrintf): Define using libm_alias_float.
13674
13675 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
13676 <libm-alias-double.h>.
13677 (atan): Define using libm_alias_double.
13678 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
13679 <libm-alias-double.h>.
13680 (ceil): Define using libm_alias_double.
13681 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
13682 <libm-alias-double.h>.
13683 (floor): Define using libm_alias_double.
13684 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
13685 <libm-alias-double.h>.
13686 (fma): Define using libm_alias_double.
13687 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
13688 <libm-alias-double.h>.
13689 (nearbyint): Define using libm_alias_double.
13690 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
13691 <libm-alias-double.h>.
13692 (rint): Define using libm_alias_double.
13693 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
13694 <libm-alias-double.h>.
13695 (sin): Define using libm_alias_double.
13696 (cos): Likewise.
13697 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
13698 <libm-alias-double.h>.
13699 (tan): Define using libm_alias_double.
13700 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
13701 <libm-alias-double.h>.
13702 (trunc): Define using libm_alias_double.
13703 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
13704 (copysign): Define using libm_alias_double.
13705 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
13706 (fabs): Define using libm_alias_double.
13707 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
13708 (fmax): Define using libm_alias_double.
13709 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
13710 (fmin): Define using libm_alias_double.
13711 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
13712 (llrint): Define using libm_alias_double.
13713 [!__ILP32__] (lrint): Likewise.
13714 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
13715 (lrint): Define using libm_alias_double.
13716
13717 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13718
13719 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13720 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
13721 objects.
13722 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
13723 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
13724 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
13725 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
13726 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
13727 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
13728
13729 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13730 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
13731 objects.
13732 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
13733 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
13734 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
13735 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
13736 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
13737 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
13738
13739 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13740 (libm-sysdep_routines): Add s_nearbyint-generic and
13741 s_nearbyintf-generic objects.
13742 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
13743 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
13744 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
13745 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
13746 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
13747 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
13748
13749 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13750 Add s_finitef-generic and s_finite-generic objects.
13751 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
13752 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
13753 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
13754 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
13755 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
13756 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
13757
13758 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13759 Add s_isinff-generic and s_isinf-generic objects.
13760 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
13761 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
13762 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
13763 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
13764 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
13765 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
13766
13767 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13768 Add s_isnanf-generic and s_isnan-generic objects.
13769 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
13770 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
13771 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
13772 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
13773 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
13774 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
13775
13776 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
13777 macro.
13778 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
13779 rule.
13780 (sysdep_routines): Use sysdep_calls as base.
13781 (libm-sysdep_routines): Add generic rule for symbols shared with
13782 libc. Add s_signbit-generic and s_signbitf-generic objects.
13783 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
13784 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
13785 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
13786 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
13787 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
13788 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
13789
13790 2017-11-29 Joseph Myers <joseph@codesourcery.com>
13791
13792 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
13793 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
13794 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
13795 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
13796 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
13797 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
13798 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
13799 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
13800 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
13801 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
13802 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
13803 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
13804 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
13805 libm_alias_float_r.
13806 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
13807 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
13808 (logf): Likewise.
13809 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
13810 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
13811 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
13812 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
13813 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
13814 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
13815 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
13816 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
13817 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
13818 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
13819 libm_alias_float.
13820 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
13821 (cosf): Likewise.
13822 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
13823 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
13824 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
13825 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
13826 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
13827 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
13828 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
13829 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
13830 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
13831 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
13832 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
13833 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
13834 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
13835 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
13836 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
13837 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
13838 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
13839 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
13840 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
13841 libm_alias_float.
13842 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
13843 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
13844 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
13845 * sysdeps/ia64/fpu/w_lgammaf_main.c
13846 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
13847 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
13848
13849 2017-11-28 Mike FABIAN <mfabian@redhat.com>
13850 Alexandre Oliva <aoliva@redhat.com>
13851
13852 [BZ #17750]
13853 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
13854 * localedata/fr_CA.UTF-8.in: New file with test data for backward
13855 accents sorting.
13856 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
13857 sorting.
13858 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
13859 * localedata/locales/de_DE (LC_COLLATE): Likewise.
13860 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
13861 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
13862 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
13863 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
13864 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
13865 instead of “ifdef DIACRIT_BACKWARD”.
13866
13867 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13868
13869 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
13870 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
13871 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
13872 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
13873 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
13874 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
13875 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13876 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13877 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13878 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13879 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
13880 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
13881 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13882 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13883 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
13884 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
13885 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
13886 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
13887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13888 ($(have-as-vis3) == yes): Remove conditional.
13889 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
13890 Likewise.
13891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
13892 file.
13893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
13894 file.
13895 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
13896 file.
13897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
13898 file.
13899 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
13900 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
13901 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
13902 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
13903 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
13904 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
13905 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
13906 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
13907
13908 2017-11-29 Joseph Myers <joseph@codesourcery.com>
13909
13910 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
13911 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
13912 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
13913 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
13914 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
13915 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
13916 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
13917 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
13918 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
13919 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
13920 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
13921 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
13922 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
13923 libm_alias_double_r.
13924 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
13925 (log): Likewise.
13926 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
13927 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
13928 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
13929 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
13930 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
13931 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
13932 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
13933 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
13934 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
13935 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
13936 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
13937 libm_alias_double.
13938 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
13939 (cos): Likewise.
13940 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
13941 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
13942 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
13943 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
13944 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
13945 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
13946 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
13947 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
13948 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
13949 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
13950 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
13951 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
13952 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
13953 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
13954 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
13955 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
13956 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
13957 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
13958 libm_alias_double.
13959 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
13960 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
13961 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
13962 * sysdeps/ia64/fpu/w_lgamma_main.c
13963 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
13964 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
13965
13966 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
13967
13968 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
13969 address of $global$ into %dp register earlier. Use pc-relative
13970 instruction sequence for PIC case.
13971
13972 2017-11-28 Joseph Myers <joseph@codesourcery.com>
13973
13974 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
13975 (asinhf): Define using libm_alias_float.
13976 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
13977 (atanf): Define using libm_alias_float.
13978 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
13979 (cbrtf): Define using libm_alias_float.
13980 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
13981 (ceilf): Define using libm_alias_float.
13982 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
13983 (copysignf): Define using libm_alias_float.
13984 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
13985 (expm1f): Define using libm_alias_float.
13986 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
13987 (fabsf): Define using libm_alias_float.
13988 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
13989 (floorf): Define using libm_alias_float.
13990 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
13991 (fmaxf): Define using libm_alias_float.
13992 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
13993 (fminf): Define using libm_alias_float.
13994 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
13995 (frexpf): Define using libm_alias_float.
13996 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
13997 (llrintf): Define using libm_alias_float.
13998 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
13999 (logbf): Define using libm_alias_float.
14000 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
14001 (lrintf): Define using libm_alias_float.
14002 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
14003 (nearbyintf): Define using libm_alias_float.
14004 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
14005 (remquof): Define using libm_alias_float.
14006 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
14007 (rintf): Define using libm_alias_float.
14008 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
14009 (truncf): Define using libm_alias_float.
14010 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
14011 <libm-alias-float.h>.
14012 (exp2f): Define using libm_alias_float, or libm_alias_float_other
14013 if [SHARED].
14014 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
14015 <libm-alias-float.h>.
14016 (expf): Define using libm_alias_float, or libm_alias_float_other
14017 if [SHARED].
14018 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
14019 <libm-alias-float.h>.
14020 (log2f): Define using libm_alias_float, or libm_alias_float_other
14021 if [SHARED].
14022 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
14023 <libm-alias-float.h>.
14024 (logf): Define using libm_alias_float, or libm_alias_float_other
14025 if [SHARED].
14026 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
14027 <libm-alias-float.h>.
14028 (powf): Define using libm_alias_float, or libm_alias_float_other
14029 if [SHARED].
14030 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
14031 <libm-alias-float.h>.
14032 (cosf): Define using libm_alias_float.
14033 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
14034 <libm-alias-float.h>.
14035 (sincosf): Define using libm_alias_float.
14036 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
14037 <libm-alias-float.h>.
14038 (sinf): Define using libm_alias_float.
14039 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
14040 (fmaxf): Define using libm_alias_float.
14041 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
14042 (fminf): Define using libm_alias_float.
14043 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14044 <libm-alias-float.h>.
14045 (fmaf): Define using libm_alias_float.
14046
14047 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
14048 (asinh): Define using libm_alias_double.
14049 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
14050 (atan): Define using libm_alias_double.
14051 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
14052 (cbrt): Define using libm_alias_double.
14053 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
14054 (ceil): Define using libm_alias_double.
14055 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
14056 (copysign): Define using libm_alias_double.
14057 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
14058 (expm1): Define using libm_alias_double.
14059 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
14060 (fabs): Define using libm_alias_double.
14061 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
14062 (fdim): Define using libm_alias_double.
14063 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
14064 (floor): Define using libm_alias_double.
14065 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
14066 (fmax): Define using libm_alias_double.
14067 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
14068 (fmin): Define using libm_alias_double.
14069 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
14070 (frexp): Define using libm_alias_double.
14071 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
14072 (llrint): Define using libm_alias_double.
14073 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
14074 (logb): Define using libm_alias_double.
14075 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
14076 (lrint): Define using libm_alias_double.
14077 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
14078 (nearbyint): Define using libm_alias_double.
14079 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
14080 (remquo): Define using libm_alias_double.
14081 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
14082 (rint): Define using libm_alias_double.
14083 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
14084 (trunc): Define using libm_alias_double.
14085 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
14086 (fmax): Define using libm_alias_double.
14087 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
14088 (fmin): Define using libm_alias_double.
14089 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
14090 (fma): Define using libm_alias_double.
14091
14092 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
14093
14094 [BZ #22370]
14095 * elf/dl-hwcaps.c (ROUND): Removed.
14096 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
14097 and ELF_NOTE_NEXT_OFFSET.
14098 * elf/dl-load.c (ROUND): Removed.
14099 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
14100 * elf/readelflib.c (ROUND): Removed.
14101 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
14102 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
14103 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
14104 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
14105
14106 2017-11-28 Joseph Myers <joseph@codesourcery.com>
14107
14108 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
14109 [!__fmaf] (fmaf): Define using libm_alias_float.
14110
14111 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
14112 [!__fma] (fma): Define using libm_alias_double.
14113 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
14114
14115 2017-11-28 Mike FABIAN <mfabian@redhat.com>
14116
14117 [BZ #22336]
14118 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
14119 and implement the collation rules for cs from CLDR on top of that.
14120 * Makefile: Add cs_CZ.UTF-8 to test-input.
14121 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
14122
14123 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
14124
14125 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
14126
14127 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
14128 Icarus Sparry <icarus.w.sparry@intel.com>
14129
14130 * benchtests/Makefile:Add BENCHSET to allow subsets of
14131 benchmarks to be run.
14132 * benchtests/README: Add documentation for: Running subsets of
14133 benchmarks.
14134
14135 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
14136
14137 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
14138 range of tests names.
14139
14140 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
14141 result from property and remove "max", min" and "mean" from
14142 required properties based on benchtests/bench-skeleton.c.
14143
14144 2017-11-28 Florian Weimer <fweimer@redhat.com>
14145
14146 [BZ #20826]
14147 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
14148 due to Internet requirement.
14149 * posix/Makefile (tests): Remove tst-getaddrinfo4,
14150 tst-getaddrinfo5.
14151 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
14152
14153 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14154
14155 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14156 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
14157 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
14158 (sysdep_routines): Add memset-ultra1.
14159 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
14160 file.
14161 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
14162 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
14163 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
14164 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
14165 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
14166 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
14167 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
14168 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14169
14170 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
14171 file.
14172 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
14173 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
14174 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
14175 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
14176 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
14177 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
14178 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
14179 macro.
14180 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14181 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
14182 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
14183 (sysdep_routines): Add memcpy-ultra1.
14184 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
14185 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
14186
14187 2017-11-28 Joseph Myers <joseph@codesourcery.com>
14188
14189 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
14190 (cfloat_versions): Take function argument without trailing 'f'.
14191 Call libm_alias_float_other.
14192 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
14193 * sysdeps/alpha/fpu/cargf.c: Likewise.
14194 * sysdeps/alpha/fpu/cimagf.c: Likewise.
14195 * sysdeps/alpha/fpu/conjf.c: Likewise.
14196 * sysdeps/alpha/fpu/crealf.c: Likewise.
14197 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
14198 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
14199 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
14200 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
14201 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
14202 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
14203 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
14204 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
14205 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
14206 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
14207 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
14208 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
14209 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
14210 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
14211 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
14212 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
14213 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
14214 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
14215 (clog10f): Use libm_alias_float_other.
14216 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
14217 (ceilf): Define using libm_alias_float.
14218 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
14219 (copysignf): Define using libm_alias_float.
14220 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
14221 (fabsf): Define using libm_alias_float.
14222 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
14223 (floorf): Define using libm_alias_float.
14224 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
14225 (fmaxf): Define using libm_alias_float.
14226 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
14227 (fminf): Define using libm_alias_float.
14228 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
14229 (lrintf): Define using libm_alias_float.
14230 (llrintf): Likewise.
14231 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
14232 (lroundf): Define using libm_alias_float.
14233 (llroundf): Likewise.
14234 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
14235 (rintf): Define using libm_alias_float.
14236 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
14237 (truncf): Define using libm_alias_float.
14238
14239 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
14240 (ceilf): Define using libm_alias_float.
14241 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
14242 (floorf): Define using libm_alias_float.
14243 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
14244 (fmaf): Define using libm_alias_float.
14245 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
14246 (fmaxf): Define using libm_alias_float.
14247 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
14248 (fminf): Define using libm_alias_float.
14249 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
14250 (llrintf): Define using libm_alias_float.
14251 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
14252 (llroundf): Define using libm_alias_float.
14253 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
14254 (lrintf): Define using libm_alias_float.
14255 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
14256 (lroundf): Define using libm_alias_float.
14257 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
14258 <libm-alias-float.h>.
14259 (nearbyintf): Define using libm_alias_float.
14260 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
14261 (rintf): Define using libm_alias_float.
14262 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
14263 (roundf): Define using libm_alias_float.
14264 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
14265 (truncf): Define using libm_alias_float.
14266
14267 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
14268 (ceil): Define using libm_alias_double.
14269 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
14270 (copysign): Define using libm_alias_double.
14271 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
14272 (fabs): Define using libm_alias_double.
14273 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
14274 (floor): Define using libm_alias_double.
14275 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
14276 (fmax): Define using libm_alias_double.
14277 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
14278 (fmin): Define using libm_alias_double.
14279 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
14280 (lrint): Define using libm_alias_double.
14281 (llrint): Likewise.
14282 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
14283 (lround): Define using libm_alias_double.
14284 (llround): Likewise.
14285 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
14286 (rint): Define using libm_alias_double.
14287 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
14288 (trunc): Define using libm_alias_double.
14289
14290 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
14291 (libm_alias_double_r): Add semicolon after weak_alias call.
14292
14293 2017-11-27 Joseph Myers <joseph@codesourcery.com>
14294
14295 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
14296 (ceil): Define using libm_alias_double.
14297 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
14298 (floor): Define using libm_alias_double.
14299 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
14300 (fma): Define using libm_alias_double.
14301 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
14302 (fmax): Define using libm_alias_double.
14303 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
14304 (fmin): Define using libm_alias_double.
14305 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
14306 (llrint): Define using libm_alias_double.
14307 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
14308 (llround): Define using libm_alias_double.
14309 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
14310 (lrint): Define using libm_alias_double.
14311 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
14312 (lround): Define using libm_alias_double.
14313 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
14314 (nearbyint): Define using libm_alias_double.
14315 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
14316 (rint): Define using libm_alias_double.
14317 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
14318 (round): Define using libm_alias_double.
14319 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
14320 (trunc): Define using libm_alias_double.
14321
14322 2017-11-27 Florian Weimer <fweimer@redhat.com>
14323
14324 * sysdeps/unix/sysv/linux/mlock2.c: New file.
14325 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
14326 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
14327 (tests): Add tst-mlock2.
14328 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
14329 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
14330 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
14331 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
14332 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
14333 for mlock. Document mlock2.
14334
14335 2017-11-27 Joseph Myers <joseph@codesourcery.com>
14336
14337 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
14338 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
14339 Likewise.
14340 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
14341 Likewise.
14342 * sysdeps/x86/Makeconfig: New file.
14343 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
14344 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14345 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
14346 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14347 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14348 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14349 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
14350 Likewise.
14351 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14352 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14353 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14354 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14355 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14356 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14357 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14358 * manual/math.texi (Mathematics): Document support for _Float64x.
14359 * math/Versions (GLIBC_2.27): Add _Float64x functions.
14360 * stdlib/Versions (GLIBC_2.27): Likewise.
14361 * wcsmbs/Versions (GLIBC_2.27): Likewise.
14362 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
14363 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14374 Likewise.
14375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14376 Likewise.
14377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14389 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
14390 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14391
14392 2017-11-27 Andreas Schwab <schwab@suse.de>
14393
14394 * elf/Makefile (dl-routines): Add dl-sort-maps.
14395 * elf/dl-sort-maps.c: New file.
14396 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
14397 (_dl_sort_maps): Declare.
14398 * elf/dl-fini.c (_dl_sort_fini): Remove.
14399 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
14400 * elf/dl-close.c (_dl_close_worker): Likewise.
14401 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
14402 open-coding it.
14403 * elf/dl-open.c (dl_open_worker): Likewise.
14404
14405 2017-11-24 Joseph Myers <joseph@codesourcery.com>
14406
14407 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
14408 using libm_alias_float128.
14409 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
14410 Likewise.
14411 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
14412 Likewise.
14413 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
14414 (setpayloadsigf128): Likewise.
14415 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
14416 Likewise.
14417 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
14418 Likewise.
14419
14420 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
14421 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
14422 -mfloat128 to CFLAGS.
14423 ($(foreach
14424 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
14425 Likewise.
14426 (CFLAGS-libm-test-support-float64x.c): New variable.
14427 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
14428 $(f128-loader-link) to gnulib-tests.
14429
14430 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
14431 (libm_alias_float128_other_r): If
14432 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
14433 alias.
14434 (libm_alias_float128_r): Add semicolon after weak_alias call.
14435 * sysdeps/generic/libm-alias-ldouble.h
14436 (libm_alias_ldouble_other_r_f128): New macro.
14437 (libm_alias_ldouble_other_r_f64x): Likewise.
14438 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
14439 and libm_alias_ldouble_other_r_f64x.
14440 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
14441 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
14442 (libm_alias_ldouble_other_r_f128): New macro.
14443 (libm_alias_ldouble_other_r_f64x): Likewise.
14444 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
14445 and libm_alias_ldouble_other_r_f64x.
14446
14447 * stdlib/strfroml.c: Always include <stdlib.h>.
14448 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
14449 undefine as macro and define as weak alias.
14450 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
14451 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
14452 <stdlib.h>.
14453 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
14454 Define and later undefine as macro and define as weak alias.
14455
14456 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
14457 Define and later undefine as macro. Define as weak alias if
14458 [!USE_WIDE_CHAR].
14459 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
14460 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14461 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
14462 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
14463 Define and later undefine as macro. Define as weak alias if
14464 [!USE_WIDE_CHAR].
14465 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
14466 Define and later undefine as macro. Define as weak alias if
14467 [USE_WIDE_CHAR].
14468 * sysdeps/ieee754/float128/strtof128_l.c
14469 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
14470 Define and later undefine as macro. Define as weak alias if
14471 [!USE_WIDE_CHAR].
14472 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
14473 Define and later undefine as macro. Define as weak alias if
14474 [USE_WIDE_CHAR].
14475 * sysdeps/ieee754/ldbl-128/strtold_l.c
14476 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14477 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
14478 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14479 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14480 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
14481 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14482 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
14483 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14484 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14485 * sysdeps/ieee754/ldbl-96/strtold_l.c
14486 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14487 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
14488 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14489 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14490
14491 * math/test-float64x.h: New file.
14492 * math/Makefile (type-float64x-yes): New variable.
14493 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
14494
14495 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
14496 function-like macro.
14497 (min_of_type_): Likewise.
14498 (min_of_type_l): Likewise.
14499 (min_of_type_f128): Likewise.
14500 (min_of_type): Pass () as last argument of __MATH_TG.
14501
14502 * stdlib/tst-strtod-round-skeleton.c
14503 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
14504 headers.
14505
14506 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
14507 for combinations of long double with _Float64 and _Float64x.
14508
14509 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
14510 (__DECL_SIMD_cosf32): Likewise.
14511 (__DECL_SIMD_cosf64): Likewise.
14512 (__DECL_SIMD_cosf32x): Likewise.
14513 (__DECL_SIMD_cosf64x): Likewise.
14514 (__DECL_SIMD_cosf128x): Likewise.
14515 (__DECL_SIMD_sinf16): Likewise.
14516 (__DECL_SIMD_sinf32): Likewise.
14517 (__DECL_SIMD_sinf64): Likewise.
14518 (__DECL_SIMD_sinf32x): Likewise.
14519 (__DECL_SIMD_sinf64x): Likewise.
14520 (__DECL_SIMD_sinf128x): Likewise.
14521 (__DECL_SIMD_sincosf16): Likewise.
14522 (__DECL_SIMD_sincosf32): Likewise.
14523 (__DECL_SIMD_sincosf64): Likewise.
14524 (__DECL_SIMD_sincosf32x): Likewise.
14525 (__DECL_SIMD_sincosf64x): Likewise.
14526 (__DECL_SIMD_sincosf128x): Likewise.
14527 (__DECL_SIMD_logf16): Likewise.
14528 (__DECL_SIMD_logf32): Likewise.
14529 (__DECL_SIMD_logf64): Likewise.
14530 (__DECL_SIMD_logf32x): Likewise.
14531 (__DECL_SIMD_logf64x): Likewise.
14532 (__DECL_SIMD_logf128x): Likewise.
14533 (__DECL_SIMD_expf16): Likewise.
14534 (__DECL_SIMD_expf32): Likewise.
14535 (__DECL_SIMD_expf64): Likewise.
14536 (__DECL_SIMD_expf32x): Likewise.
14537 (__DECL_SIMD_expf64x): Likewise.
14538 (__DECL_SIMD_expf128x): Likewise.
14539 (__DECL_SIMD_powf16): Likewise.
14540 (__DECL_SIMD_powf32): Likewise.
14541 (__DECL_SIMD_powf64): Likewise.
14542 (__DECL_SIMD_powf32x): Likewise.
14543 (__DECL_SIMD_powf64x): Likewise.
14544 (__DECL_SIMD_powf128x): Likewise.
14545
14546 * stdlib/Versions (libc): Move entries for wcstof128 and
14547 wcstof128_l to ....
14548 * wcsmbs/Versions (libc): ... here.
14549 Include <float128-abi.h>.
14550
14551 2017-11-24 Florian Weimer <fweimer@redhat.com>
14552
14553 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14554 bits/mman-shared.h.
14555 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
14556 <bits/mman-shared.h>.
14557 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
14558 to ...
14559 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
14560 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
14561 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
14562 <bits/mman-shared.h>.
14563
14564 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14565
14566 [BZ #22457]
14567 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
14568 posix_memalign/free.
14569 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
14570
14571 2017-11-22 Mike FABIAN <mfabian@redhat.com>
14572
14573 [BZ #22469]
14574 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
14575 and implement the collation rules for pl from CLDR on top of that.
14576 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
14577 of locales to be built for testing.
14578 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
14579
14580 2017-11-23 Joseph Myers <joseph@codesourcery.com>
14581
14582 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
14583 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
14584 libm_alias_ldouble_other.
14585 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
14586 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
14587 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
14588 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
14589 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
14590 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
14591 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
14592 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
14593 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
14594 libm_alias_ldouble_r.
14595 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
14596 libm_alias_ldouble_other.
14597 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
14598 (log10l): Likewise.
14599 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
14600 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
14601 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
14602 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
14603 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
14604 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
14605 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
14606 (atan2l): Likewise.
14607 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
14608 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
14609 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
14610 libm_alias_ldouble.
14611 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
14612 (cosl): Likewise.
14613 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
14614 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
14615 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
14616 (expl): Likewise.
14617 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
14618 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
14619 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
14620 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
14621 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
14622 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
14623 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
14624 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
14625 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
14626 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
14627 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
14628 libm_alias_ldouble.
14629 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
14630 libm_alias_ldouble_other.
14631 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
14632 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
14633 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
14634 libm_alias_ldouble.
14635 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
14636 libm_alias_ldouble_other.
14637 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
14638 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
14639 * sysdeps/ia64/fpu/w_lgammal_main.c
14640 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
14641 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
14642
14643 2017-11-23 Florian Weimer <fweimer@redhat.com>
14644
14645 * malloc/malloc.c (tcache_thread_shutdown): Rename from
14646 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
14647 alike. Remove freeres marker.
14648 * malloc/arena.c (arena_thread_freeres): Call
14649 tcache_thread_shutdown.
14650
14651 2017-11-23 Florian Weimer <fweimer@redhat.com>
14652
14653 [BZ #22459]
14654 Export nscd hash function as __nss_hash.
14655 * include/nss.h (__nss_hash): Declare.
14656 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
14657 symbol.
14658 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
14659 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
14660 of __nscd_hash.
14661 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
14662 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
14663 * nss/Makefiles (routines): Add nss_hash.
14664 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
14665 * nss/nss_hash.c: Rename from nis/nis_hash.c.
14666 (__nss_hash): Rename from __nis_hash. Define hidden alias.
14667 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
14668
14669 2017-11-23 Florian Weimer <fweimer@redhat.com>
14670
14671 [BZ #22478]
14672 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
14673 Return error code, not -1.
14674 * signal/tst-sigwait-eintr.c: New file.
14675 * signal/Makefile (tests): Add tst-sigwait-eintr.
14676
14677 2017-11-23 Florian Weimer <fweimer@redhat.com>
14678
14679 Linux: Add memfd_create system call wrapper
14680 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
14681 tst-memfd_create.
14682 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
14683 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
14684 [__USE_GNU] (memfd_create): Declare.
14685 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
14686 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
14687 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
14688 * sysdeps/unix/sysv/linux/**.abilist: Update.
14689 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
14690
14691 2017-11-22 Joseph Myers <joseph@codesourcery.com>
14692
14693 * localedata/gen-locale.sh: Fix typo in variable name.
14694
14695 * resolv/res_debug.c (p_secstodate): Condition definition on
14696 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
14697 directly as __p_secstodate, and as a compat symbol. Do not use
14698 libresolv_hidden_def.
14699 * resolv/resolv.h (p_secstodate): Remove macro and function
14700 declaration.
14701 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
14702 using p_secstodate.
14703 * include/resolv.h (__p_secstodate): Do not use
14704 libresolv_hidden_proto.
14705 * resolv/Makefile (tests): Move tst-p_secstodate to ....
14706 (tests-internal): ... here.
14707 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
14708 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
14709 and declare and use __p_secstodate and use compat_symbol_reference
14710 in that case.
14711 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
14712 implementation returning 77.
14713
14714 [BZ #22463]
14715 * resolv/res_debug.c: Include <libc-diag.h>.
14716 (p_secstodate): Assert time_t at least as wide as u_long. On
14717 overflow, use integer seconds since the epoch as output, or use
14718 "<overflow>" as output and set errno to EOVERFLOW if integer
14719 seconds since the epoch would be 14 or more characters.
14720 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
14721 for sprintf call.
14722 * resolv/tst-p_secstodate.c: New file.
14723 * resolv/Makefile (tests): Add tst-p_secstodate.
14724 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
14725
14726 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
14727 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
14728 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
14729
14730 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
14731
14732 * posix/regcomp.c (init_word_char): Add comments.
14733
14734 2017-11-22 Joseph Myers <joseph@codesourcery.com>
14735
14736 [BZ #22447]
14737 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
14738 strlen to compute length of ut_user and set trailing NUL byte of
14739 result explicitly.
14740
14741 2017-11-21 Mike FABIAN <mfabian@redhat.com>
14742
14743 [BZ #15537]
14744 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
14745 using “copy "iso14651_t1"” and then implementing the
14746 collation rules for lv from CLDR on top of that.
14747 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
14748 of locales to be built for testing.
14749 * lv_LV.UTF-8.in: New file with test data to test the Latvian
14750 sorting.
14751
14752 2017-11-21 Joseph Myers <joseph@codesourcery.com>
14753
14754 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
14755 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
14756 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
14757 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
14758 [__USE_MISC] (MADV_HWPOISON): New macro.
14759 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
14760
14761 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14762
14763 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
14764 -Wmissing-braces on GCC 4.9.
14765
14766 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
14767
14768 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
14769 * sysdeps/s390/s390-32/start.S (_start): Likewise
14770 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
14771 (thread_start): Likewise.
14772 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
14773 (thread_start): Likewise.
14774 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
14775 (__makecontext_ret): Likewise.
14776 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
14777 (__makecontext_ret): Likewise.
14778
14779 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
14780
14781 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
14782 __wcschrnul): Remove attribute_hidden.
14783
14784 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
14785
14786 regex: don't assume uint64_t or uint32_t
14787 This avoids -Werror=overflow errors for 32-bit systems in
14788 the 64-bit case. Problem reported by Joseph Myers in:
14789 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
14790 Also, when this code is used in Gnulib it ports to platforms
14791 that lack uint64_t and uint32_t. The C standard doesn't guarantee
14792 them, and on some 32-bit compilers there is no uint64_t.
14793 Problem reported by Gianluigi Tiesi in:
14794 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
14795 * posix/regcomp.c (init_word_char): Don't assume that the types
14796 uint64_t and uint32_t exist. Adapted from Gnulib patch
14797 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
14798 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
14799
14800 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
14801
14802 * sysdeps/aarch64/memset-reg.h: New file.
14803 * sysdeps/aarch64/memset.S: Use it.
14804 (__memset): Rename to MEMSET macro.
14805 [ZVA_MACRO]: Use zva_macro.
14806 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14807 Add memset_generic and memset_falkor.
14808 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14809 (__libc_ifunc_impl_list): Add memset ifuncs.
14810 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
14811 local variable zva_size.
14812 * sysdeps/aarch64/multiarch/memset.c: New file.
14813 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
14814 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
14815 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
14816 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14817 (DCZID_DZP_MASK): New macro.
14818 (DCZID_BS_MASK): Likewise.
14819 (init_cpu_features): Read and set zva_size.
14820 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
14821 (struct cpu_features): New member zva_size.
14822
14823 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
14824 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
14825 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
14826
14827 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
14828 backwards. Fix timing computation.
14829 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
14830 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
14831 on memset by N at a time. Fix timing computation.
14832
14833 2017-11-20 Florian Weimer <fweimer@redhat.com>
14834
14835 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
14836 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
14837
14838 2017-11-19 Florian Weimer <fweimer@redhat.com>
14839
14840 manual: Document mprotect
14841 * manual/memory.texi (Memory Protection): New section.
14842 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
14843 documentation of PROT_* flags and reference the Memory Protection
14844 section instead.
14845
14846 2017-11-19 Florian Weimer <fweimer@redhat.com>
14847
14848 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
14849 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
14850 (Scatter-Gather): ... to here. Remove misleading comment.
14851
14852 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
14853
14854 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
14855 style.
14856
14857 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
14858 when /proc/<pid>/setgroups does not exist.
14859
14860 2017-11-18 Florian Weimer <fweimer@redhat.com>
14861
14862 * sysdeps/unix/sysv/linux/tst-ttyname.c
14863 (become_root_in_mount_ns): Remove.
14864 (do_in_chroot_1): Call support_enter_mount_namespace.
14865 (do_in_chroot_2): Likewise.
14866 (do_test): Call support_become_root early.
14867
14868 2017-11-18 Florian Weimer <fweimer@redhat.com>
14869
14870 * support/namespace.h (support_enter_mount_namespace): Declare.
14871 * support/support_enter_mount_namespace.c: New file.
14872 * support/Makefile (libsupport-routines): Add
14873 support_enter_mount_namespace.
14874
14875 2017-11-18 Florian Weimer <fweimer@redhat.com>
14876
14877 * support/temp_file.c (support_create_temp_directory): Use
14878 test_dir and do not rely on the presence of the XXXXXX suffix.
14879 * support/temp_file.h (support_create_temp_directory): Update
14880 comment.
14881 * support/tst-xreadlink.c (do_test): Adjust.
14882 * support/support_chroot.c (support_chroot_create): Likewise.
14883
14884 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14885
14886 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
14887 macro.
14888 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
14889 htm-no-suspend.
14890
14891 2017-11-17 Joseph Myers <joseph@codesourcery.com>
14892
14893 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
14894 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
14895 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
14896 (ceill): Define using libm_alias_ldouble.
14897 * sysdeps/x86_64/fpu/s_copysignl.S: Include
14898 <libm-alias-ldouble.h>.
14899 (copysignl): Define using libm_alias_ldouble.
14900 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
14901 (fabsl): Define using libm_alias_ldouble.
14902 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
14903 (floorl): Define using libm_alias_ldouble.
14904 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14905 (fmaxl): Define using libm_alias_ldouble.
14906 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14907 (fminl): Define using libm_alias_ldouble.
14908 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
14909 (llrintl): Define using libm_alias_ldouble.
14910 (lrintl): Likewise.
14911 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
14912 <libm-alias-ldouble.h>.
14913 (nearbyintl): Define using libm_alias_ldouble.
14914 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
14915 (truncl): Define using libm_alias_ldouble.
14916 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
14917 <libm-alias-ldouble.h>.
14918 (lrintl): Define using libm_alias_ldouble.
14919
14920 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
14921 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
14922 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
14923 (asinhl): Define using libm_alias_ldouble.
14924 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
14925 (atanl): Define using libm_alias_ldouble.
14926 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
14927 (cbrtl): Define using libm_alias_ldouble.
14928 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
14929 (ceill): Define using libm_alias_ldouble.
14930 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
14931 (copysignl): Define using libm_alias_ldouble.
14932 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
14933 (fabsl): Define using libm_alias_ldouble.
14934 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
14935 (floorl): Define using libm_alias_ldouble.
14936 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14937 (fmaxl): Define using libm_alias_ldouble.
14938 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14939 (fminl): Define using libm_alias_ldouble.
14940 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
14941 (frexpl): Define using libm_alias_ldouble.
14942 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
14943 (llrintl): Define using libm_alias_ldouble.
14944 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
14945 (logbl): Define using libm_alias_ldouble.
14946 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
14947 (lrintl): Define using libm_alias_ldouble.
14948 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
14949 (nearbyintl): Define using libm_alias_ldouble.
14950 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
14951 (nextafterl): Define using libm_alias_ldouble.
14952 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
14953 (remquol): Define using libm_alias_ldouble.
14954 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
14955 (rintl): Define using libm_alias_ldouble.
14956 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
14957 (truncl): Define using libm_alias_ldouble.
14958 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14959 (fmaxl): Define using libm_alias_ldouble.
14960 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14961 (fminl): Define using libm_alias_ldouble.
14962
14963 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
14964 to C syntax instead of availability and properties of types.
14965 * bits/floatn.h [!__ASSEMBLER]: Likewise.
14966 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
14967 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
14968 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
14969 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
14970 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
14971
14972 2017-11-17 Florian Weimer <fweimer@redhat.com>
14973
14974 support_become_root: Enable file creation in namespaces.
14975 * support/support_become_root.c (setup_mapping): New function.
14976 (support_become_root): Call it.
14977
14978 2017-11-17 Joseph Myers <joseph@codesourcery.com>
14979
14980 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
14981 macro.
14982
14983 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14984
14985 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
14986 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
14987
14988 2017-11-16 Joseph Myers <joseph@codesourcery.com>
14989
14990 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
14991
14992 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14993 version to 4.14.
14994
14995 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
14996
14997 * INSTALL: Fix botched up regeneration.
14998
14999 * NEWS: Update sourceare link to https.
15000 * configure.ac: Likewise.
15001 * crypt/md5test-giant.c: Likewise.
15002 * dlfcn/bug-atexit1.c: Likewise.
15003 * dlfcn/bug-atexit2.c: Likewise.
15004 * localedata/README: Likewise.
15005 * malloc/tst-mallocfork.c: Likewise.
15006 * manual/install.texi: Likewise.
15007 * nptl/tst-pthread-getattr.c: Likewise.
15008 * stdio-common/tst-fgets.c: Likewise.
15009 * stdio-common/tst-fwrite.c: Likewise.
15010 * sunrpc/Makefile: Likewise.
15011 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
15012 * wcsmbs/tst-mbrtowc2.c: Likewise.
15013 * configure: Regenerate.
15014 * INSTALL: Regenerate.
15015
15016 2017-11-15 Martin Sebor <msebor@redhat.com>
15017
15018 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
15019 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
15020 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
15021
15022 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
15023
15024 [BZ #22145]
15025 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
15026 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
15027
15028 [BZ #22145]
15029 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
15030 Defer is_pty check until end of the function.
15031 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15032
15033 [BZ #22145]
15034 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
15035 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
15036 (ttyname): Likewise.
15037 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
15038 (__ttyname_r): Likewise.
15039
15040 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
15041 int to bool.
15042
15043 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
15044
15045 * manual/terminal.texi (Is It a Terminal):
15046 Mention ENODEV for ttyname and ttyname_r.
15047
15048 2017-11-15 Joseph Myers <joseph@codesourcery.com>
15049
15050 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
15051 constant and macro.
15052
15053 * sysdeps/unix/sysv/linux/bits/mman-linux.h
15054 [__USE_MISC] (MADV_WIPEONFORK): New macro.
15055 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
15056 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
15057 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
15058 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
15059
15060 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15061
15062 * signal/sigrelse.c (sigrelse): Optimize implementation.
15063
15064 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
15065 (__sigpause): Rely on __sigsuspend to implement single thread
15066 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
15067
15068 2017-11-15 Joseph Myers <joseph@codesourcery.com>
15069
15070 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15071 kernel version to 4.14.
15072
15073 2017-11-15 Steve Ellcey <sellcey@cavium.com>
15074
15075 [BZ #22442]
15076 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
15077 Check if ifname is too long.
15078
15079 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
15080
15081 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
15082
15083 2017-11-15 Mike FABIAN <mfabian@redhat.com>
15084
15085 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
15086 was accidentally lost.
15087
15088 2017-11-15 Mike FABIAN <mfabian@redhat.com>
15089
15090 * localedata/locales/az_IR: Add standard copyright header.
15091
15092 2017-11-15 Florian Weimer <fweimer@redhat.com>
15093
15094 [BZ #22439]
15095 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
15096 not just the top one. Output a new "subheaps" statistic.
15097
15098 2017-11-15 Florian Weimer <fweimer@redhat.com>
15099
15100 [BZ #22408]
15101 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
15102 under the per-arena lock.
15103 * malloc/Makefile (tests): Add tst-malloc_info.
15104 (tst-malloc_info): Link with libpthread.
15105 * malloc/tst-malloc_info.c: New file.
15106
15107 2017-11-15 Joseph Myers <joseph@codesourcery.com>
15108
15109 [BZ #21660]
15110 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
15111 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
15112 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
15113 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
15114 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
15115 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
15116 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
15117 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
15118 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
15119 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
15120 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
15121 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
15122 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
15123 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
15124 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
15125 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
15126 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
15127 (__floating_type): Likewise.
15128 (__real_integer_type): Likewise.
15129 (__complex_integer_type): Likewise.
15130 (__expr_is_real): Likewise.
15131 (__tgmath_real_type_sub): Likewise.
15132 (__tgmath_real_type): Likewise.
15133 (__tgmath_complex_type_sub): Likewise.
15134 (__tgmath_complex_type): Likewise.
15135 (__TGMATH_F128): Likewise.
15136 (__TGMATH_CF128): Likewise.
15137 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
15138 new macros.
15139 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
15140 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
15141 Likewise.
15142 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
15143 Likewise.
15144 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
15145 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
15146 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
15147 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
15148 Likewise.
15149 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
15150 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
15151 Likewise.
15152 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
15153 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
15154 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
15155 Likewise.
15156 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
15157 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
15158 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
15159 (cimag): Likewise.
15160 (creal): Likewise.
15161
15162 2017-11-14 Joseph Myers <joseph@codesourcery.com>
15163
15164 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
15165 for stpncpy calls for GCC 8.
15166 (test_strncat): Disable -Wstringop-truncation warning for strncat
15167 calls for GCC 8. Disable -Wstringop-overflow= warning for one
15168 strncat call for GCC 7.
15169 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
15170 calls for GCC 8.
15171 (test_memcmp): Use memcpy instead of strncpy for calls not copying
15172 trailing NUL.
15173
15174 * string/bug-strncat1.c: Include <libc-diag.h>.
15175 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
15176
15177 2017-11-13 Claude Paroz <claude@2xlibre.net>
15178
15179 [BZ #22387]
15180 * localedata/locales/aa_DJ: Improved readibility by replacing
15181 <Uxxxx> sequences in the ASCII printable range by their ASCII
15182 character equivalents.
15183 * localedata/locales/aa_ER: Likewise.
15184 * localedata/locales/aa_ER@saaho: Likewise.
15185 * localedata/locales/aa_ET: Likewise.
15186 * localedata/locales/af_ZA: Likewise.
15187 * localedata/locales/agr_PE: Likewise.
15188 * localedata/locales/ak_GH: Likewise.
15189 * localedata/locales/am_ET: Likewise.
15190 * localedata/locales/anp_IN: Likewise.
15191 * localedata/locales/ar_AE: Likewise.
15192 * localedata/locales/ar_BH: Likewise.
15193 * localedata/locales/ar_DZ: Likewise.
15194 * localedata/locales/ar_EG: Likewise.
15195 * localedata/locales/ar_IN: Likewise.
15196 * localedata/locales/ar_IQ: Likewise.
15197 * localedata/locales/ar_JO: Likewise.
15198 * localedata/locales/ar_KW: Likewise.
15199 * localedata/locales/ar_LB: Likewise.
15200 * localedata/locales/ar_LY: Likewise.
15201 * localedata/locales/ar_MA: Likewise.
15202 * localedata/locales/ar_OM: Likewise.
15203 * localedata/locales/ar_QA: Likewise.
15204 * localedata/locales/ar_SA: Likewise.
15205 * localedata/locales/ar_SD: Likewise.
15206 * localedata/locales/ar_SS: Likewise.
15207 * localedata/locales/ar_SY: Likewise.
15208 * localedata/locales/ar_TN: Likewise.
15209 * localedata/locales/ar_YE: Likewise.
15210 * localedata/locales/as_IN: Likewise.
15211 * localedata/locales/ast_ES: Likewise.
15212 * localedata/locales/ayc_PE: Likewise.
15213 * localedata/locales/az_AZ: Likewise.
15214 * localedata/locales/az_IR: Likewise.
15215 * localedata/locales/be_BY: Likewise.
15216 * localedata/locales/be_BY@latin: Likewise.
15217 * localedata/locales/bem_ZM: Likewise.
15218 * localedata/locales/ber_DZ: Likewise.
15219 * localedata/locales/ber_MA: Likewise.
15220 * localedata/locales/bg_BG: Likewise.
15221 * localedata/locales/bhb_IN: Likewise.
15222 * localedata/locales/bho_IN: Likewise.
15223 * localedata/locales/bi_VU: Likewise.
15224 * localedata/locales/bn_BD: Likewise.
15225 * localedata/locales/bn_IN: Likewise.
15226 * localedata/locales/bo_CN: Likewise.
15227 * localedata/locales/bo_IN: Likewise.
15228 * localedata/locales/br_FR: Likewise.
15229 * localedata/locales/brx_IN: Likewise.
15230 * localedata/locales/bs_BA: Likewise.
15231 * localedata/locales/byn_ER: Likewise.
15232 * localedata/locales/ca_AD: Likewise.
15233 * localedata/locales/ca_ES: Likewise.
15234 * localedata/locales/ca_FR: Likewise.
15235 * localedata/locales/ca_IT: Likewise.
15236 * localedata/locales/ce_RU: Likewise.
15237 * localedata/locales/chr_US: Likewise.
15238 * localedata/locales/cmn_TW: Likewise.
15239 * localedata/locales/crh_UA: Likewise.
15240 * localedata/locales/cs_CZ: Likewise.
15241 * localedata/locales/csb_PL: Likewise.
15242 * localedata/locales/cv_RU: Likewise.
15243 * localedata/locales/cy_GB: Likewise.
15244 * localedata/locales/da_DK: Likewise.
15245 * localedata/locales/de_AT: Likewise.
15246 * localedata/locales/de_BE: Likewise.
15247 * localedata/locales/de_CH: Likewise.
15248 * localedata/locales/de_DE: Likewise.
15249 * localedata/locales/de_IT: Likewise.
15250 * localedata/locales/de_LI: Likewise.
15251 * localedata/locales/de_LU: Likewise.
15252 * localedata/locales/doi_IN: Likewise.
15253 * localedata/locales/dv_MV: Likewise.
15254 * localedata/locales/dz_BT: Likewise.
15255 * localedata/locales/el_CY: Likewise.
15256 * localedata/locales/el_GR: Likewise.
15257 * localedata/locales/en_AG: Likewise.
15258 * localedata/locales/en_AU: Likewise.
15259 * localedata/locales/en_BW: Likewise.
15260 * localedata/locales/en_CA: Likewise.
15261 * localedata/locales/en_DK: Likewise.
15262 * localedata/locales/en_GB: Likewise.
15263 * localedata/locales/en_HK: Likewise.
15264 * localedata/locales/en_IE: Likewise.
15265 * localedata/locales/en_IL: Likewise.
15266 * localedata/locales/en_IN: Likewise.
15267 * localedata/locales/en_NG: Likewise.
15268 * localedata/locales/en_NZ: Likewise.
15269 * localedata/locales/en_PH: Likewise.
15270 * localedata/locales/en_SG: Likewise.
15271 * localedata/locales/en_US: Likewise.
15272 * localedata/locales/en_ZA: Likewise.
15273 * localedata/locales/en_ZM: Likewise.
15274 * localedata/locales/en_ZW: Likewise.
15275 * localedata/locales/eo: Likewise.
15276 * localedata/locales/es_AR: Likewise.
15277 * localedata/locales/es_BO: Likewise.
15278 * localedata/locales/es_CL: Likewise.
15279 * localedata/locales/es_CO: Likewise.
15280 * localedata/locales/es_CR: Likewise.
15281 * localedata/locales/es_CU: Likewise.
15282 * localedata/locales/es_DO: Likewise.
15283 * localedata/locales/es_EC: Likewise.
15284 * localedata/locales/es_ES: Likewise.
15285 * localedata/locales/es_GT: Likewise.
15286 * localedata/locales/es_HN: Likewise.
15287 * localedata/locales/es_MX: Likewise.
15288 * localedata/locales/es_NI: Likewise.
15289 * localedata/locales/es_PA: Likewise.
15290 * localedata/locales/es_PE: Likewise.
15291 * localedata/locales/es_PR: Likewise.
15292 * localedata/locales/es_PY: Likewise.
15293 * localedata/locales/es_SV: Likewise.
15294 * localedata/locales/es_US: Likewise.
15295 * localedata/locales/es_UY: Likewise.
15296 * localedata/locales/es_VE: Likewise.
15297 * localedata/locales/et_EE: Likewise.
15298 * localedata/locales/eu_ES: Likewise.
15299 * localedata/locales/eu_ES@euro: Likewise.
15300 * localedata/locales/fa_IR: Likewise.
15301 * localedata/locales/ff_SN: Likewise.
15302 * localedata/locales/fi_FI: Likewise.
15303 * localedata/locales/fil_PH: Likewise.
15304 * localedata/locales/fo_FO: Likewise.
15305 * localedata/locales/fr_BE: Likewise.
15306 * localedata/locales/fr_CA: Likewise.
15307 * localedata/locales/fr_CH: Likewise.
15308 * localedata/locales/fr_FR: Likewise.
15309 * localedata/locales/fr_LU: Likewise.
15310 * localedata/locales/fur_IT: Likewise.
15311 * localedata/locales/fy_DE: Likewise.
15312 * localedata/locales/fy_NL: Likewise.
15313 * localedata/locales/ga_IE: Likewise.
15314 * localedata/locales/gd_GB: Likewise.
15315 * localedata/locales/gez_ER: Likewise.
15316 * localedata/locales/gez_ET: Likewise.
15317 * localedata/locales/gl_ES: Likewise.
15318 * localedata/locales/gu_IN: Likewise.
15319 * localedata/locales/gv_GB: Likewise.
15320 * localedata/locales/ha_NG: Likewise.
15321 * localedata/locales/hak_TW: Likewise.
15322 * localedata/locales/he_IL: Likewise.
15323 * localedata/locales/hi_IN: Likewise.
15324 * localedata/locales/hif_FJ: Likewise.
15325 * localedata/locales/hne_IN: Likewise.
15326 * localedata/locales/hr_HR: Likewise.
15327 * localedata/locales/hsb_DE: Likewise.
15328 * localedata/locales/ht_HT: Likewise.
15329 * localedata/locales/hu_HU: Likewise.
15330 * localedata/locales/hy_AM: Likewise.
15331 * localedata/locales/i18n: Likewise.
15332 * localedata/locales/ia_FR: Likewise.
15333 * localedata/locales/id_ID: Likewise.
15334 * localedata/locales/ig_NG: Likewise.
15335 * localedata/locales/ik_CA: Likewise.
15336 * localedata/locales/is_IS: Likewise.
15337 * localedata/locales/it_CH: Likewise.
15338 * localedata/locales/it_IT: Likewise.
15339 * localedata/locales/iu_CA: Likewise.
15340 * localedata/locales/ja_JP: Likewise.
15341 * localedata/locales/ka_GE: Likewise.
15342 * localedata/locales/kk_KZ: Likewise.
15343 * localedata/locales/kl_GL: Likewise.
15344 * localedata/locales/kn_IN: Likewise.
15345 * localedata/locales/ko_KR: Likewise.
15346 * localedata/locales/kok_IN: Likewise.
15347 * localedata/locales/ks_IN: Likewise.
15348 * localedata/locales/ks_IN@devanagari: Likewise.
15349 * localedata/locales/ku_TR: Likewise.
15350 * localedata/locales/kw_GB: Likewise.
15351 * localedata/locales/ky_KG: Likewise.
15352 * localedata/locales/lb_LU: Likewise.
15353 * localedata/locales/lg_UG: Likewise.
15354 * localedata/locales/li_BE: Likewise.
15355 * localedata/locales/li_NL: Likewise.
15356 * localedata/locales/lij_IT: Likewise.
15357 * localedata/locales/ln_CD: Likewise.
15358 * localedata/locales/lo_LA: Likewise.
15359 * localedata/locales/lt_LT: Likewise.
15360 * localedata/locales/lv_LV: Likewise.
15361 * localedata/locales/lzh_TW: Likewise.
15362 * localedata/locales/mag_IN: Likewise.
15363 * localedata/locales/mai_IN: Likewise.
15364 * localedata/locales/mg_MG: Likewise.
15365 * localedata/locales/mhr_RU: Likewise.
15366 * localedata/locales/mi_NZ: Likewise.
15367 * localedata/locales/mk_MK: Likewise.
15368 * localedata/locales/ml_IN: Likewise.
15369 * localedata/locales/mn_MN: Likewise.
15370 * localedata/locales/mni_IN: Likewise.
15371 * localedata/locales/mr_IN: Likewise.
15372 * localedata/locales/ms_MY: Likewise.
15373 * localedata/locales/mt_MT: Likewise.
15374 * localedata/locales/my_MM: Likewise.
15375 * localedata/locales/nan_TW: Likewise.
15376 * localedata/locales/nan_TW@latin: Likewise.
15377 * localedata/locales/nb_NO: Likewise.
15378 * localedata/locales/nds_DE: Likewise.
15379 * localedata/locales/nds_NL: Likewise.
15380 * localedata/locales/ne_NP: Likewise.
15381 * localedata/locales/nhn_MX: Likewise.
15382 * localedata/locales/niu_NU: Likewise.
15383 * localedata/locales/niu_NZ: Likewise.
15384 * localedata/locales/nl_AW: Likewise.
15385 * localedata/locales/nl_BE: Likewise.
15386 * localedata/locales/nl_NL: Likewise.
15387 * localedata/locales/nn_NO: Likewise.
15388 * localedata/locales/nr_ZA: Likewise.
15389 * localedata/locales/nso_ZA: Likewise.
15390 * localedata/locales/oc_FR: Likewise.
15391 * localedata/locales/om_ET: Likewise.
15392 * localedata/locales/om_KE: Likewise.
15393 * localedata/locales/or_IN: Likewise.
15394 * localedata/locales/os_RU: Likewise.
15395 * localedata/locales/pa_IN: Likewise.
15396 * localedata/locales/pa_PK: Likewise.
15397 * localedata/locales/pap_AW: Likewise.
15398 * localedata/locales/pap_CW: Likewise.
15399 * localedata/locales/pl_PL: Likewise.
15400 * localedata/locales/ps_AF: Likewise.
15401 * localedata/locales/pt_BR: Likewise.
15402 * localedata/locales/pt_PT: Likewise.
15403 * localedata/locales/quz_PE: Likewise.
15404 * localedata/locales/raj_IN: Likewise.
15405 * localedata/locales/ro_RO: Likewise.
15406 * localedata/locales/ru_RU: Likewise.
15407 * localedata/locales/ru_UA: Likewise.
15408 * localedata/locales/rw_RW: Likewise.
15409 * localedata/locales/sa_IN: Likewise.
15410 * localedata/locales/sat_IN: Likewise.
15411 * localedata/locales/sc_IT: Likewise.
15412 * localedata/locales/sd_IN: Likewise.
15413 * localedata/locales/sd_IN@devanagari: Likewise.
15414 * localedata/locales/se_NO: Likewise.
15415 * localedata/locales/sgs_LT: Likewise.
15416 * localedata/locales/shs_CA: Likewise.
15417 * localedata/locales/si_LK: Likewise.
15418 * localedata/locales/sid_ET: Likewise.
15419 * localedata/locales/sk_SK: Likewise.
15420 * localedata/locales/sl_SI: Likewise.
15421 * localedata/locales/sm_WS: Likewise.
15422 * localedata/locales/so_DJ: Likewise.
15423 * localedata/locales/so_ET: Likewise.
15424 * localedata/locales/so_KE: Likewise.
15425 * localedata/locales/so_SO: Likewise.
15426 * localedata/locales/sq_AL: Likewise.
15427 * localedata/locales/sq_MK: Likewise.
15428 * localedata/locales/sr_ME: Likewise.
15429 * localedata/locales/sr_RS: Likewise.
15430 * localedata/locales/sr_RS@latin: Likewise.
15431 * localedata/locales/ss_ZA: Likewise.
15432 * localedata/locales/st_ZA: Likewise.
15433 * localedata/locales/sv_FI: Likewise.
15434 * localedata/locales/sv_SE: Likewise.
15435 * localedata/locales/sw_KE: Likewise.
15436 * localedata/locales/sw_TZ: Likewise.
15437 * localedata/locales/szl_PL: Likewise.
15438 * localedata/locales/ta_IN: Likewise.
15439 * localedata/locales/ta_LK: Likewise.
15440 * localedata/locales/tcy_IN: Likewise.
15441 * localedata/locales/te_IN: Likewise.
15442 * localedata/locales/tg_TJ: Likewise.
15443 * localedata/locales/th_TH: Likewise.
15444 * localedata/locales/the_NP: Likewise.
15445 * localedata/locales/ti_ER: Likewise.
15446 * localedata/locales/ti_ET: Likewise.
15447 * localedata/locales/tig_ER: Likewise.
15448 * localedata/locales/tk_TM: Likewise.
15449 * localedata/locales/tl_PH: Likewise.
15450 * localedata/locales/tn_ZA: Likewise.
15451 * localedata/locales/to_TO: Likewise.
15452 * localedata/locales/tpi_PG: Likewise.
15453 * localedata/locales/tr_CY: Likewise.
15454 * localedata/locales/tr_TR: Likewise.
15455 * localedata/locales/ts_ZA: Likewise.
15456 * localedata/locales/tt_RU: Likewise.
15457 * localedata/locales/tt_RU@iqtelif: Likewise.
15458 * localedata/locales/ug_CN: Likewise.
15459 * localedata/locales/uk_UA: Likewise.
15460 * localedata/locales/unm_US: Likewise.
15461 * localedata/locales/ur_IN: Likewise.
15462 * localedata/locales/ur_PK: Likewise.
15463 * localedata/locales/uz_UZ: Likewise.
15464 * localedata/locales/uz_UZ@cyrillic: Likewise.
15465 * localedata/locales/ve_ZA: Likewise.
15466 * localedata/locales/vi_VN: Likewise.
15467 * localedata/locales/wa_BE: Likewise.
15468 * localedata/locales/wae_CH: Likewise.
15469 * localedata/locales/wal_ET: Likewise.
15470 * localedata/locales/wo_SN: Likewise.
15471 * localedata/locales/xh_ZA: Likewise.
15472 * localedata/locales/yi_US: Likewise.
15473 * localedata/locales/yo_NG: Likewise.
15474 * localedata/locales/yue_HK: Likewise.
15475 * localedata/locales/yuw_PG: Likewise.
15476 * localedata/locales/zh_CN: Likewise.
15477 * localedata/locales/zh_HK: Likewise.
15478 * localedata/locales/zh_SG: Likewise.
15479 * localedata/locales/zh_TW: Likewise.
15480 * localedata/locales/zu_ZA: Likewise.
15481
15482 2017-11-13 Florian Weimer <fweimer@redhat.com>
15483
15484 * support/next_to_fault.h, support/next_to_fault.c: New files.
15485 * support/Makefile (libsupport-routines): Add next_to_fault.
15486 * resolv/tst-inet_pton.c (struct next_to_fault)
15487 (next_to_fault_allocate, next_to_fault_free): Remove.
15488 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
15489
15490 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
15491
15492 * elf/dl-support.c: Include <dl-procruntime.c>.
15493 * include/link.h: Include <link_map.h>.
15494 * sysdeps/generic/dl-procruntime.c: New file.
15495 * sysdeps/generic/link_map.h: Likewise.
15496 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
15497 the writable ld.so namespace.
15498
15499 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
15500
15501 timezone: pacify GCC -Wstringop-truncation
15502 Problem reported by Martin Sebor in:
15503 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
15504 * timezone/zic.c (writezone): Use memcpy, not strncpy.
15505
15506 2017-11-12 Florian Weimer <fweimer@redhat.com>
15507
15508 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
15509 tst-xreadlink.
15510 (tests): Add tst-xreadlink.
15511 * support/support.h (xstrndup): Declare.
15512 * support/xunistd.h (xunlink, xreadlink): Declare.
15513 * support/temp_file.h (support_create_temp_directory): Declare.
15514 * support/temp_file.c (support_create_temp_directory): New function.
15515 * support/support_chroot.c (support_chroot_create): Use it.
15516 * support/xreadlink.c: New file.
15517 * support/xstrndup.c: Likewise.
15518 * support/xunlink.c: Likewise.
15519 * support/tst-xreadlink.c: Likewise.
15520
15521 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
15522
15523 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
15524
15525 2017-11-11 Florian Weimer <fweimer@redhat.com>
15526
15527 [BZ #22409]
15528 [BZ #22412]
15529 * resolv/res_comp.c (printable_string, binary_hnok)
15530 (binary_leading_dash): New functions.
15531 (res_hnok): Reimplement using these functions and ns_name_pton.
15532 (res_ownok): Likewise.
15533 (res_mailok): Reimplement using printable_string, ns_name_pton and
15534 binary_hnok.
15535 (res_dnok): Reimplement using printable_string and ns_name_pton.
15536 * resolv/tst-res_hnok.c (tests): Add additional tests.
15537 (LETTERDIGITS, PRINTABLE): Define.
15538 (do_test): Adjust one_char results.
15539
15540 2017-11-11 Florian Weimer <fweimer@redhat.com>
15541
15542 [BZ #22413]
15543 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
15544 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
15545
15546 2017-11-11 Florian Weimer <fweimer@redhat.com>
15547
15548 * resolv/tst-ns_name_pton.c: New file.
15549 * resolv/Makefile (tests): Add tst-ns_name_pton.
15550 (tst-ns_name_pton): Link against libresolv.
15551
15552 2017-11-11 Florian Weimer <fweimer@redhat.com>
15553
15554 * resolv/tst-res_hnok.c: New file.
15555 * resolv/Makefile (tests): Add tst-res_hnok.
15556 (tst-res_hnok): Link against libresolv.
15557
15558 2017-11-11 Florian Weimer <fweimer@redhat.com>
15559
15560 * resolv/tst-resolv-network.c: Use test framework instead explicit
15561 main function.
15562
15563 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
15564
15565 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
15566 <jmp_buf-macros.h>.
15567 [!_ISOMAC] (STR_HELPER): New.
15568 [!_ISOMAC] (STR): Likewise.
15569 [!_ISOMAC] (TEST_SIZE): Likewise.
15570 [!_ISOMAC] (TEST_ALIGN): Likewise.
15571 [!_ISOMAC] (TEST_OFFSET): Likewise.
15572 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
15573 field offsets of jmp_buf as well as sigjmp_buf.
15574 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
15575 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
15576 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
15577 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
15578 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
15579 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
15580 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
15581 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
15582 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
15583 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
15584 Likewise.
15585 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
15586 Likewise.
15587 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
15588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
15589 Likewise.
15590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
15591 Likewise.
15592 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
15593 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
15594 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
15595 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
15596 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
15597 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
15598 Likewise.
15599 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
15600 Likewise.
15601 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
15602 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
15603 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
15604
15605 2017-11-07 Joseph Myers <joseph@codesourcery.com>
15606
15607 * include/float.h
15608 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15609 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
15610 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15611 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
15612 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15613 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
15614 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15615 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
15616 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15617 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
15618 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15619 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
15620 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15621 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
15622 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15623 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
15624 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15625 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
15626 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15627 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
15628 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15629 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
15630 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15631 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
15632 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15633 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
15634 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15635 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
15636 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15637 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
15638 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15639 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
15640 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15641 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
15642 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15643 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
15644 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15645 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
15646 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15647 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
15648 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15649 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
15650 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15651 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
15652 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15653 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
15654 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15655 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
15656 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15657 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
15658 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15659 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
15660 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15661 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
15662 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15663 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
15664 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15665 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
15666 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15667 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
15668 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15669 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
15670 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15671 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
15672 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15673 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
15674 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15675 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
15676 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15677 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
15678 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15679 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
15680 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15681 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
15682 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15683 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
15684 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15685 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
15686 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15687 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
15688 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15689 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
15690 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15691 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
15692 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15693 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
15694 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15695 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
15696
15697 * stdlib/tst-strtod.h (F16): New macro.
15698 (F32): Likewise.
15699 (F64): Likewise.
15700 (F32X): Likewise.
15701 (F64X): Likewise.
15702 (F128X): Likewise.
15703 (IF_FLOAT16): Likewise.
15704 (IF_FLOAT32): Likewise.
15705 (IF_FLOAT64): Likewise.
15706 (IF_FLOAT32X): Likewise.
15707 (IF_FLOAT64X): Likewise.
15708 (IF_FLOAT128X): Likewise.
15709 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
15710 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
15711 (STRTOD_TEST_FOREACH): Likewise.
15712 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
15713 (CHOOSE_f64): Likewise.
15714 (CHOOSE_f32x): Likewise.
15715 (CHOOSE_f64x): Likewise.
15716
15717 2017-11-07 Andreas Schwab <schwab@suse.de>
15718
15719 * nptl/Makefile (tests-internal): Remove tst-typesizes.
15720
15721 2017-11-07 Mike FABIAN <mfabian@redhat.com>
15722
15723 [BZ #22403]
15724 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
15725 to be escaped.
15726 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
15727 to be escaped.
15728
15729 2017-11-07 Claude Paroz <claude@2xlibre.net>
15730
15731 [BZ #22403]
15732 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
15733 to be escaped.
15734 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
15735 to be escaped.
15736 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
15737 to be escaped.
15738
15739 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15740
15741 [BZ #22298]
15742 * nptl/allocatestack.c (allocate_stack): Check if
15743 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
15744 __PTHREAD_MUTEX_HAVE_PREV is defined.
15745 * nptl/descr.h (pthread): Likewise.
15746 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
15747 Likewise.
15748 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15749 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15750 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
15751 * sysdeps/nptl/bits/thread-shared-types.h
15752 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
15753 defines.
15754 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
15755 of __WORDSIZE for internal layout.
15756 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
15757 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
15758 instead of __WORDSIZE whether to use an union for __spins and __list
15759 fields.
15760 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
15761 case.
15762 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
15763 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
15764 defines.
15765 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
15766 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15767 Likewise.
15768 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
15769 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15770 Likewise.
15771 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
15772 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15773 Likewise.
15774 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
15775 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15776 Likewise.
15777 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
15778 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15779 Likewise.
15780 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
15781 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15782 Likewise.
15783 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
15784 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15785 Likewise.
15786 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
15787 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15788 Likewise.
15789 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
15790 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15791 Likewise.
15792 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
15793 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15794 Likewise.
15795 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
15796 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15797 Likewise.
15798 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
15799 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15800 Likewise.
15801 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
15802 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15803 Likewise.
15804 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
15805 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15806 Likewise.
15807
15808 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
15809 New macros.
15810 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
15811 checks for expected input type size.
15812 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
15813 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15814 Likewise.
15815 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15816 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
15817 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
15818 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
15819 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
15820 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
15821 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
15822 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
15823 superflous runtime assert check.
15824 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
15825 Likewise.
15826 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
15827 Likewise.
15828 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
15829 Likewise.
15830 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
15831 Likewise.
15832 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
15833 Likewise.
15834 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
15835 Likewise.
15836 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
15837 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
15838 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
15839 Likewise.
15840 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
15841 Likewise.
15842 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
15843 Likewise.
15844 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
15845 Likewise.
15846 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
15847 Likewise.
15848 * nptl/pthread_attr_setinheritsched.c
15849 (__pthread_attr_setinheritsched): Likewise.
15850 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
15851 Likewise.
15852 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
15853 Likewise.
15854 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
15855 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
15856 __old_pthread_attr_setstack): Likewise.
15857 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
15858 Likewise.
15859 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
15860 Likewise.
15861 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
15862 Likewise.
15863 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
15864 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
15865 Likewise.
15866 * nptl/tst-typesizes.c: Remove file.
15867
15868 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
15869 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
15870 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
15871 checks for internal pthread_mutex_t offsets.
15872 * sysdeps/aarch64/nptl/pthread-offsets.h
15873 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
15874 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
15875 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
15876 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
15877 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
15878 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
15879 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
15880 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
15881 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
15882 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
15883 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
15884 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
15885 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
15886 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
15887 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
15888 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
15889 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
15890 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
15891
15892 2017-11-07 Florian Weimer <fweimer@redhat.com>
15893
15894 * bits/mman-linux.h: Move ...
15895 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
15896 comment.
15897 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
15898 outdated comment.
15899
15900 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15901
15902 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
15903 Redefine STRNLEN as __strnlen_power8.
15904
15905 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15906
15907 * signal/sighold.c (sighold): Optimize implementation.
15908
15909 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
15910 __NR_rt_sigqueueinfo.
15911
15912 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
15913 __sigtimedwait.
15914 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
15915 assume __NR_rt_sigtimedwait.
15916 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
15917 and add LIBC_CANCEL_HANDLED for cancellation marking.
15918 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
15919
15920 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
15921 (sysdeps_routines): Add memchr_noneon.
15922 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
15923 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
15924 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
15925 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
15926 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
15927 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
15928 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
15929
15930 * sysdeps/arm/arm-ifunc.h: New file.
15931 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
15932 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
15933 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
15934 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
15935 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
15936 (__memcpy_neon): Avoid create hidden alias.
15937 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
15938 (__memcpy_vfp): Likewise.
15939 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
15940 (sysdep_routines): Add memcpy_arm.
15941 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
15942
15943 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
15944
15945 [BZ #22362]
15946 * Makerules (make-link-multidir): New.
15947 * config.make.in (multidir): New.
15948 * configure.ac (libc_cv_multidir): New. AC_SUBST.
15949 * configure: Regenerated.
15950 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
15951 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
15952 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
15953 New target.
15954
15955 2017-11-06 Joseph Myers <joseph@codesourcery.com>
15956
15957 [BZ #22402]
15958 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
15959 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
15960
15961 2017-11-04 Mike FABIAN <mfabian@redhat.com>
15962
15963 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
15964 to be escaped.
15965
15966 2017-11-04 Florian Weimer <fweimer@redhat.com>
15967
15968 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
15969
15970 2017-11-03 Joseph Myers <joseph@codesourcery.com>
15971
15972 * math/math.h [__HAVE_DISTINCT_FLOAT16
15973 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
15974 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
15975 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
15976 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
15977 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
15978 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
15979 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
15980 (__MATH_TG_F32): New macro.
15981 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
15982 (__MATH_TG_F64X): Likewise.
15983 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
15984 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
15985
15986 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
15987
15988 * po/de.po: Update translations.
15989 * po/ru.po: Likewise.
15990
15991 2017-11-03 Florian Weimer <fweimer@redhat.com>
15992
15993 * manual/filesys.texi (Hard Links): Document linkat.
15994
15995 2017-11-03 Joseph Myers <joseph@codesourcery.com>
15996
15997 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
15998 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
15999 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
16000 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
16001 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
16002 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
16003 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
16004 the same as _Float128.
16005 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
16006 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
16007 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
16008
16009 * stdlib/stdlib.h
16010 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
16011 Declare.
16012 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
16013 Likewise.
16014 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
16015 Likewise.
16016 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16017 (strtof32x): Likewise.
16018 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16019 (strtof64x): Likewise.
16020 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16021 (strtof128x): Likewise.
16022 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16023 (strfromf16): Likewise.
16024 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16025 (strfromf32): Likewise.
16026 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16027 (strfromf64): Likewise.
16028 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16029 (strfromf32x): Likewise.
16030 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16031 (strfromf64x): Likewise.
16032 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16033 (strfromf128x): Likewise.
16034 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
16035 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
16036 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
16037 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
16038 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
16039 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
16040
16041 2017-11-03 Richard Henderson <rth@twiddle.net>
16042
16043 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
16044
16045 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16046
16047 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
16048
16049 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16050
16051 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
16052 DT_TLSDESC_GOT initialization.
16053 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
16054 (_dl_tlsdesc_resolve_hold): Likewise.
16055 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
16056 (_dl_tlsdesc_resolve_hold): Likewise.
16057 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
16058 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
16059
16060 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16061
16062 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
16063
16064 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16065
16066 [BZ #18572]
16067 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
16068 non-lazily for R_ARM_TLS_DESC.
16069
16070 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16071
16072 [BZ #17078]
16073 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
16074 R_ARM_TLS_DESC case.
16075 (elf_machine_lazy_rel): Remove the prelink check.
16076
16077 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16078
16079 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
16080 DT_TLSDESC_GOT initialization.
16081 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
16082 (_dl_tlsdesc_resolve_rela): Likewise.
16083 (_dl_tlsdesc_resolve_hold): Likewise.
16084 (_dl_tlsdesc_undefweak): Remove ldar.
16085 (_dl_tlsdesc_dynamic): Likewise.
16086 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
16087 (_dl_tlsdesc_resolve_rela): Likewise.
16088 (_dl_tlsdesc_resolve_hold): Likewise.
16089 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
16090 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
16091 (_dl_tlsdesc_resolve_rela): Likewise.
16092 (_dl_tlsdesc_resolve_hold): Likewise.
16093
16094 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16095
16096 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
16097 binding and initialization non-lazily for R_AARCH64_TLSDESC.
16098
16099 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16100
16101 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
16102 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
16103
16104 2017-11-02 Joseph Myers <joseph@codesourcery.com>
16105
16106 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
16107 Declare.
16108 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
16109 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
16110 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
16111 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
16112 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
16113 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
16114 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
16115 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
16116 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
16117 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
16118 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
16119
16120 2017-11-02 Mike FABIAN <mfabian@redhat.com>
16121
16122 [BZ #22382]
16123 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
16124 * localedata/locales/tpi_PG: Add standard header.
16125
16126 2017-11-02 Florian Weimer <fweimer@redhat.com>
16127
16128 test-errno-linux: quotactl can fail with EPERM in containers.
16129 * sysdeps/unix/sysv/linux/test-errno-linux.c
16130 (LIST, LIST_FORWARD): New macros.
16131 (check_error_in_list): New function.
16132 (test_wrp_rv): Accept list of permitted error codes.
16133 (test_wrp_rv2): Remove.
16134 (test_wrp): Call test_wrp_rv with list of error codes.
16135 (test_wrp2): Accept list of error codes.
16136 (do_test): Adjust. Allow EPERM for quotactl.
16137
16138 2017-11-02 Florian Weimer <fweimer@redhat.com>
16139
16140 * stdio-common/bug16.c (do_test): Use array_length.
16141 * stdio-common/errlist.c (_sys_nerr): Likewise.
16142 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
16143 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
16144 * stdio-common/psiginfo.c (psiginfo): Use array_length.
16145 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
16146 (do_test): Use array_length.
16147 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
16148 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
16149 * stdio-common/tst-printf-round.c (do_test): Likewise.
16150 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
16151 (CHECK): Use array_length.
16152 * stdio-common/tstdiomisc.c (t3, F): Likewise.
16153 * stdio-common/tstscanf.c (main): Likewise.
16154 * stdio-common/vfprintf.c (process_string_arg): Likewise.
16155
16156 2017-11-02 Florian Weimer <fweimer@redhat.com>
16157
16158 Add array_length and array_end macros.
16159 * include/array_length.h: New file.
16160
16161 2017-11-02 Florian Weimer <fweimer@redhat.com>
16162
16163 [BZ #22332]
16164 * posix/tst-glob-tilde.c (do_noescape): New variable.
16165 (one_test): Process it.
16166 (do_test): Set do_noescape. Add unescaping test case.
16167
16168 2017-11-01 Joseph Myers <joseph@codesourcery.com>
16169
16170 * math/complex.h
16171 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
16172 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
16173 with appropriate macros defined and undefined.
16174 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
16175 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16176 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
16177 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16178 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
16179 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16180 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
16181 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16182 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
16183 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16184
16185 * math/complex.h
16186 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
16187 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
16188 that for long double. Do not condition define and undefine of
16189 _Mdouble_complex_ on [__CFLOAT128].
16190
16191 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
16192
16193 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
16194 of <sysdeps/generic/sysdep.h>.
16195 (ALIGNARG): Removed.
16196 (ASM_SIZE_DIRECTIVE): Likewise.
16197 (ENTRY): Likewise.
16198 (END): Likewise.
16199 (ENTRY_CHK): Likewise.
16200 (END_CHK): Likewise.
16201 (syscall_error): Likewise.
16202 (mcount): Likewise.
16203 (PSEUDO_END): Likewise.
16204 (L): Likewise.
16205 (atom_text_section): Likewise.
16206 * sysdeps/x86/sysdep.h: New file.
16207 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
16208 of <sysdeps/generic/sysdep.h>.
16209 (ALIGNARG): Removed.
16210 (ASM_SIZE_DIRECTIVE): Likewise.
16211 (ENTRY): Likewise.
16212 (END): Likewise.
16213 (ENTRY_CHK): Likewise.
16214 (END_CHK): Likewise.
16215 (syscall_error): Likewise.
16216 (mcount): Likewise.
16217 (PSEUDO_END): Likewise.
16218 (L): Likewise.
16219 (atom_text_section): Likewise.
16220
16221 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
16222
16223 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
16224 category of LC_CTYPE set to "i18n:2012".
16225 * localedata/locales/i18n_ctype: Regenerate.
16226
16227 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
16228
16229 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
16230 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
16231 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
16232 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
16233
16234 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
16235 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
16236 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
16237 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
16238
16239 2017-10-31 Joseph Myers <joseph@codesourcery.com>
16240
16241 * math/complex.h
16242 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
16243 New macro.
16244 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
16245 Likewise.
16246 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
16247 Likewise.
16248 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16249 (CMPLXF32X): Likewise.
16250 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16251 (CMPLXF64X): Likewise.
16252 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16253 (CMPLXF128X): Likewise.
16254
16255 * math/math.h
16256 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
16257 (__MATH_EVAL_FMT2): Define to add 0.0f.
16258
16259 2017-10-31 Alan Modra <amodra@gmail.com>
16260
16261 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
16262 include sysdep.h.
16263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
16264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
16265 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
16266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
16267 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
16268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
16269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
16270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
16271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
16272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
16273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
16274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
16275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
16276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
16277 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
16278 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
16279 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
16280 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
16281 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
16282 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
16283 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
16284 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
16285 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
16286 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
16287 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
16288 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
16289 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
16290 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
16291 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
16292 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
16293 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
16294 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
16295 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
16296 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
16297 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
16298 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
16299 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
16300 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
16301 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
16302 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
16303 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
16304 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
16305 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
16306 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
16307 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
16308 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
16309 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
16310 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
16311 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
16312 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
16313 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
16314 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
16315 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
16316 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
16317 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
16318 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
16319 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
16320 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
16321 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
16322 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
16323 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
16324 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
16325 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
16326 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
16327 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
16328 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
16329 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
16330 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
16331 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
16332
16333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
16334 include sysdep.h and math_ldbl_opt.h.
16335
16336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
16337 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
16338 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
16339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
16340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
16341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
16342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
16343 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
16344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
16345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
16346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
16347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
16348 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
16349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
16350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
16351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
16352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
16353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
16354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
16355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
16356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
16357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
16358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
16359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
16360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
16361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
16362
16363 2017-10-31 Alan Modra <amodra@gmail.com>
16364
16365 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
16366 string/strncase_l.c, not string/strncase.c.
16367 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
16368 (libc_hidden_def): Redefine.
16369
16370 2017-10-31 Alan Modra <amodra@gmail.com>
16371
16372 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
16373 (__STRCMP, STRCMP, __strcasecmp_l): Define.
16374 (__strcasecmp): Don't define.
16375
16376 2017-10-31 Alan Modra <amodra@gmail.com>
16377
16378 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
16379 IS_IN (libc).
16380 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
16381 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
16382 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
16383
16384 2017-10-31 Alan Modra <amodra@gmail.com>
16385
16386 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
16387 USE_AS_STPNCPY.
16388
16389 2017-10-31 Alan Modra <amodra@gmail.com>
16390
16391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
16392 Redefine only when SHARED.
16393
16394 2017-10-30 Joseph Myers <joseph@codesourcery.com>
16395
16396 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
16397 Include <bits/math-finite.h> with appropriate macros defined and
16398 undefined.
16399 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
16400 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
16401 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
16402 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
16403 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
16404
16405 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
16406 [!_Mlong_double_] (_Mlong_double_): Likewise.
16407 [!_Mfloat16_] (_Mfloat16_): Likewise.
16408 [!_Mfloat32_] (_Mfloat32_): Likewise.
16409 [!_Mfloat64_] (_Mfloat64_): Likewise.
16410 [!_Mfloat128_] (_Mfloat128_): Likewise.
16411 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
16412 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
16413 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
16414 (_Mdouble_): Define without indirection through those macros.
16415 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
16416 [!_Mfloat128_] (_Mfloat128_): Likewise.
16417 [_Mlong_double_] (_Mlong_double_): Likewise.
16418 (_Mdouble_): Define without indirection through those macros.
16419 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
16420 not add -D_Mlong_double_=double.
16421 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
16422 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
16423
16424 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
16425
16426 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
16427
16428 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
16429
16430 * sysdeps/x86/libc-start.c: Reformat.
16431
16432 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
16433
16434 [BZ #22353]
16435 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
16436 (1): Renamed to ...
16437 (L(Src0)): This.
16438 (L(Src1)): New.
16439 (L(Src2)): Likewise.
16440 (L(1)): Renamed to ...
16441 (L(Src3)): This.
16442
16443 2017-10-30 Joseph Myers <joseph@codesourcery.com>
16444
16445 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
16446 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
16447 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
16448 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
16449 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
16450 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
16451 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
16452 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
16453 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
16454 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
16455 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
16456 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
16457 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
16458 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
16459 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
16460 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
16461 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
16462 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
16463 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
16464 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
16465 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
16466 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
16467 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
16468 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
16469 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
16470 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
16471 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
16472 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
16473 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
16474 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
16475 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
16476 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
16477 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
16478 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
16479 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
16480 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
16481 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
16482 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
16483 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
16484 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
16485 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
16486 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
16487 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
16488 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
16489 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
16490 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
16491 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
16492 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
16493 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
16494 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
16495 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
16496 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
16497 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
16498 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
16499 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
16500 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
16501 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
16502 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
16503 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
16504 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
16505 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
16506 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
16507 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
16508 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
16509 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
16510 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
16511
16512 2017-10-30 Florian Weimer <fweimer@redhat.com>
16513
16514 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
16515 always defined.
16516 * io/tst-mkdirat.c (do_test): Likewise.
16517 * io/tst-mkfifoat.c (do_test): Likewise.
16518 * io/tst-mknodat.c (do_test): Likewise.
16519 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
16520 * locale/programs/locale.c (select_dirs): Likewise.
16521 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
16522 * posix/bug-glob2.c (my_readdir): Likewise.
16523 * posix/tst-dir.c (main): Likewise.
16524 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
16525 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
16526
16527 2017-10-30 Florian Weimer <fweimer@redhat.com>
16528
16529 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
16530 just __USE_GNU.
16531
16532 2017-10-30 Florian Weimer <fweimer@redhat.com>
16533
16534 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
16535 Convert to support/test-driver.c.
16536 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
16537 New macro parameters.
16538 (PRINTF): Remove macro. Use test_verbose conditionals instead.
16539 * posix/tst-gnuglob.c: New file.
16540 * posix/tst-gnuglob64.c: Likewise.
16541 * posix/Makefile (tests): Add tst-gnuglob64.
16542
16543 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
16544
16545 [BZ #19485]
16546 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
16547 and use a better translation for March in “mon”.
16548 * localedata/locales/csb_PL: Use more ASCII to improve the
16549 readability of the source.
16550
16551 2017-10-30 Mike FABIAN <mfabian@redhat.com>
16552
16553 [BZ #13953]
16554 * localedata/locales/km_KH: Use ASCII as much
16555 as possible for better readability of the source and
16556 remove useless comments.
16557 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
16558 was commented out and apparently wrong anyway because it was
16559 using Lao characters. If Buddhist era should be used
16560 for km_KH, a native speaker should write the correct formaat
16561 for Khmer.
16562 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
16563 (According to CLDR, the first weekday for Cambodia is Sunday).
16564 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
16565 (These were using Lao characters which must be wrong. If we get
16566 the correct data from a native speaker, we could add it back, until
16567 then it is better not to have name_mr and name_mrs at all than
16568 having it wrong).
16569
16570 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
16571
16572 * locale/loadlocale.c: Correct size of
16573 _nl_value_type_LC_<category> arrays.
16574
16575 2017-10-27 Joseph Myers <joseph@codesourcery.com>
16576
16577 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
16578 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
16579 with appropriate macros defined and undefined.
16580 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
16581 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
16582 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
16583 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
16584 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
16585
16586 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
16587
16588 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16589 "-O2 -march=i586".
16590
16591 2017-10-27 Mike FABIAN <mfabian@redhat.com>
16592
16593 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
16594 with lowercase letters to make it agree with CLDR.
16595
16596 2017-10-27 Mike FABIAN <mfabian@redhat.com>
16597
16598 [BZ #15260]
16599 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
16600 first letters of yesstr and nostr in yesexpr and noexpr,
16601 not for the full words.
16602 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
16603 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
16604 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
16605 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
16606 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
16607 first letters of yesstr and nostr in yesexpr and noexpr,
16608 until now only English was matched in yesexpr and noexpr.
16609 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
16610 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
16611 fil but not for tl. As tl and fil are very similar, using fil
16612 is probably better than using English.
16613
16614 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
16615
16616 [BZ #21706]
16617 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
16618 in yesstr and nostr.
16619
16620 2017-10-26 Joseph Myers <joseph@codesourcery.com>
16621
16622 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
16623 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
16624 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
16625 Likewise.
16626 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
16627 Likewise.
16628 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
16629 Likewise.
16630 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
16631 Likewise.
16632 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16633 (SNANF128X): Likewise.
16634
16635 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
16636 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
16637 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16638 (HUGE_VAL_F32): Likewise.
16639 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16640 (HUGE_VAL_F64): Likewise.
16641 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16642 (HUGE_VAL_F32X): Likewise.
16643 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16644 (HUGE_VAL_F64X): Likewise.
16645 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16646 (HUGE_VAL_F128X): Likewise.
16647
16648 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
16649
16650 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
16651 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
16652 for the br_FR locale.
16653
16654 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
16655
16656 [BZ #21706]
16657 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
16658
16659 2017-10-25 Carlos O'Donell <carlos@redhat.com>
16660
16661 * locale/programs/record-status.h: Define globals, and function
16662 prototypes. Move function bodies...
16663 * locale/programs/record-status.c: ... to here. New file.
16664 * iconv/Makefile (iconv_prog-modules): Add record-status.
16665 * locale/Makefile (lib-modules): Likewise.
16666 * iconv/iconv_prog.c: Remove verbose.
16667 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
16668 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
16669 record a warning about ASCII compatibility.
16670 * locale/programs/ld-monetary.c (monetary_finish): If
16671 warn_int_curr_symbol is true then record a warning about the symbol
16672 not being in our ISO 4217 list.
16673 * locale/programs/locale.c: Include record-status.h. Remove verbose.
16674 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
16675 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
16676 (OPT_NO_WARN): Define.
16677 (OPT_WARN): Define.
16678 (options): Add entry for --no-warnings, and --warnings.
16679 (set_warnings): New function to enable/disable warnings.
16680 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
16681 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
16682 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
16683 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
16684 Pass flags to generate_locale.
16685 (generate_locale): Accept new flag argument and pass it to localedef
16686 invocation.
16687 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
16688 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
16689
16690 * localedata/Makefile (test-input-data): Use full file name.
16691 * localedata/da_DK.in: Rename to...
16692 * localedata/da_DK.ISO-8859-1.in: ...this.
16693 * localedata/de_DE.in: Rename to...
16694 * localedata/de_DE.ISO-8859-1.in: ...this.
16695 * localedata/en_US.in: Rename to...
16696 * localedata/en_US.ISO-8859-1.in: ...this.
16697 * localedata/fr_FR.in: Rename to...
16698 * localedata/fr_FR.UTF-8.in: ... this.
16699 * localedata/hr_HR.in: Rename to...
16700 * localedata/hr_HR.ISO-8859-2.in: ...this.
16701 * localedata/hu_HU.in: Rename to...
16702 * localedata/hu_HU.UTF-8.in: ...this.
16703 * localedata/si_LK.in: Rename to...
16704 * localedata/si_LK.UTF-8.in: ...this.
16705 * localedata/sv_SE.in: Rename to...
16706 * localedata/sv_SE.ISO-8859-1.in: ...this.
16707 * localedata/tr_TR.in: Rename to...
16708 * localedata/tr_TR.UTF-8.in: ...this.
16709 * localedata/uk_UA.in: Rename to...
16710 * localedata/uk_UA.UTF-8.in: ...this.
16711 * localedata/sort-test.sh: Test file is locale name with the
16712 suffix.
16713
16714 * localedata/unicode-gen/Makefile (check_i18n): Rename to
16715 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
16716 file.
16717 * localedata/locales/i18n_ctype: Regenerate.
16718 * localedata/locales/tr_TR: Likewise.
16719 * localedata/locales/translit_circle: Likewise.
16720 * localedata/locales/translit_cjk_compat: Likewise.
16721 * localedata/locales/translit_combining: Likewise.
16722 * localedata/locales/translit_compat: Likewise.
16723 * localedata/locales/translit_font: Likewise.
16724 * localedata/locales/translit_fraction: Likewise.
16725
16726 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16727
16728 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
16729 lxvd2x/stxvd2x with lvx/stvx.
16730 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
16731
16732 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
16733
16734 * include/alloc_buffer.h: Replace "if if " with "if " in
16735 comments.
16736 * sysdeps/mips/memcpy.S: Likkewise.
16737 * sysdeps/mips/memset.S: Likewise.
16738 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
16739 Likewise.
16740 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
16741 Likewise.
16742 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
16743 Likewise.
16744
16745 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16746
16747 [BZ #15261]
16748 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
16749 yesexpr and noexpr.
16750 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
16751 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
16752 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
16753 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
16754 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
16755 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
16756 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
16757
16758 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16759
16760 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
16761 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
16762 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
16763 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
16764 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
16765 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
16766 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
16767 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
16768 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
16769 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
16770 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
16771 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
16772
16773 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16774
16775 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
16776 as possible for better readability of the source.
16777 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
16778 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
16779 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
16780 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
16781 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
16782 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
16783 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
16784 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
16785 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
16786 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
16787 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
16788 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
16789 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
16790 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
16791 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
16792 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
16793 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
16794 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
16795 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
16796 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
16797 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
16798 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
16799 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
16800 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
16801 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
16802 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
16803 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
16804 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
16805 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
16806 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
16807 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
16808 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
16809 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
16810 * localedata/locales/en_US (LC_MESSAGES): Likewise.
16811 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
16812 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
16813 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
16814 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
16815 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
16816 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
16817 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
16818 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
16819 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
16820 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
16821 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
16822 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
16823 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
16824 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
16825 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
16826 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
16827 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
16828 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
16829 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
16830 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
16831 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
16832 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
16833 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
16834 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
16835 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
16836 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
16837 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
16838 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
16839 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
16840 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
16841 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
16842 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
16843 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
16844 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
16845 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
16846 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
16847 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
16848 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
16849 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
16850 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
16851 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
16852 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
16853 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
16854 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
16855 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
16856 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
16857 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
16858 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
16859 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
16860 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
16861 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
16862 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
16863 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
16864 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
16865 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
16866 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
16867 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
16868 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
16869 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
16870 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
16871 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
16872 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
16873 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
16874 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
16875 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
16876 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
16877 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
16878 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
16879 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
16880 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
16881 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
16882 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
16883 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
16884 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
16885 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
16886 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
16887 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
16888 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
16889 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
16890 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
16891 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
16892 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
16893 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
16894 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
16895 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
16896 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
16897 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
16898 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
16899 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
16900 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
16901 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
16902 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
16903 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
16904 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
16905 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
16906 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
16907 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
16908 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
16909 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
16910 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
16911 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
16912 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
16913 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
16914 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
16915 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
16916 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
16917 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
16918 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
16919 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
16920 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
16921 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
16922 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
16923 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
16924 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
16925 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
16926 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
16927 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
16928 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
16929 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
16930 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
16931 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
16932 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
16933 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
16934 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
16935 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
16936 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
16937 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
16938 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
16939 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
16940 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
16941 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
16942 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
16943 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
16944 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
16945 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
16946 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
16947 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
16948 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
16949 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
16950 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
16951
16952 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16953
16954 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
16955 (Use first letters of yesstr and nostr correctly instead of using
16956 full words).
16957
16958 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16959
16960 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
16961 (Use first letters of yesstr and nostr correctly).
16962
16963 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16964
16965 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
16966 also check for the first characters of yesstr and nostr.
16967 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
16968 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
16969
16970 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16971
16972 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
16973 also check for Chinese characters.
16974
16975 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16976
16977 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
16978 match also for the contents of yesstr and nostr. As the first letter
16979 of yesstr and nostr is equal, checking only for the first letter
16980 is not enough.
16981
16982 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16983
16984 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
16985 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
16986
16987 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16988
16989 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
16990 of main contributor.
16991
16992 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16993
16994 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
16995 instead of using English.
16996
16997 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16998
16999 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
17000 by including the first letters of nostr and yesexpr in the regexp.
17001 Also make it more readable by using ASCII where possible.
17002
17003 2017-10-25 Mike FABIAN <mfabian@redhat.com>
17004
17005 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
17006 the first letter of nostr in the regexp. It agrees with CLDR now.
17007 Also make it more readable by using ASCII where possible.
17008
17009 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17010
17011 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
17012 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
17013 these strings contain a U+17D6 (which somewhat looks like a colon)
17014 instead of a real colon to separate the full words for “yes”
17015 and “no” from the single letter responses.
17016
17017 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17018
17019 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
17020 it agree with CLDR (include the first letter of yesstr).
17021 Also make it more readable by using ASCII where possible.
17022
17023 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17024
17025 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
17026 and improve yesexpr and noexpr. The yesstr and nostr apparently
17027 came from CLDR. And CLDR has a bug there: these strings contain
17028 a U+0903 (which looks like a colon) instead of a real colon
17029 to separate the full words for “yes” and “no” from the single
17030 letter responses.
17031
17032 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17033
17034 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
17035 letters of the full yesstr and nostr in yesexpr and noexpr.
17036
17037 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17038
17039 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
17040 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
17041 * localedata/locales/an_ES: Make source more readable by using ASCII
17042 where possible.
17043
17044 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17045
17046 [BZ #20952]
17047 * localedata/locales/yuw_PG: New file.
17048 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
17049 * locale/iso-639.def: Add Yau (Uruwa).
17050
17051 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
17052
17053 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
17054
17055 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
17056
17057 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
17058 (__libc_realloc): Likewise.
17059 (_mid_memalign): Likewise.
17060 (__libc_calloc): Likewise.
17061
17062 2017-10-23 Mike FABIAN <mfabian@redhat.com>
17063
17064 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
17065 by adding the generic +1 and -0 as in all other locales.
17066 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
17067 day names and make it more readable by using ASCII where possible.
17068
17069 2017-10-24 Joseph Myers <joseph@codesourcery.com>
17070
17071 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
17072 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
17073
17074 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17075
17076 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
17077 WNOHANG in waitpid call.
17078
17079 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
17080
17081 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
17082 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
17083
17084 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
17085 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
17086 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
17087 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
17088 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
17089 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
17090 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
17091 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
17092 variables.
17093
17094 2017-10-23 Michael Collison <michael.collison@arm.com>
17095
17096 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
17097 with __builtin_sqrt.
17098 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
17099 with __builtin_sqrtf.
17100 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
17101 with __builtin_ceil.
17102 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
17103 with __builtin_ceilf.
17104 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
17105 with __builtin_floor.
17106 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
17107 with __builtin_floorf.
17108 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
17109 with __builtin_fma.
17110 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
17111 with __builtin_fmaf.
17112 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
17113 with __builtin_fmax.
17114 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
17115 with __builtin_fmaxf.
17116 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
17117 with __builtin_fmin.
17118 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
17119 with __builtin_fminf.
17120 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
17121 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
17122 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
17123 with builtin_rint and conversion to int.
17124 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
17125 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
17126 with builtin_llround.
17127 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
17128 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
17129 with builtin_rint and conversion to long int.
17130 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
17131 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
17132 with builtin_lround.
17133 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
17134 with builtin_lroundf.
17135 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
17136 statements with __builtin_nearbyint.
17137 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
17138 statements with __builtin_nearbyintf.
17139 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
17140 with __builtin_rint.
17141 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
17142 with __builtin_rintf.
17143 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
17144 with __builtin_round.
17145 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
17146 with __builtin_roundf.
17147 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
17148 with __builtin_trunc.
17149 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
17150 with __builtin_truncf.
17151 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
17152 and s_l[l]round[f].c too.
17153
17154 2017-10-23 Alan Modra <amodra@gmail.com>
17155
17156 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
17157 Adjust stack after restoring regs. Add missing LR cfi_restore.
17158
17159 2017-10-23 Alan Modra <amodra@gmail.com>
17160
17161 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
17162 Move LR save and frame setup/teardown and LR restore to
17163 immediately around memset call. Provide cfi.
17164
17165 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17166
17167 * sysdeps/i386/fpu/e_powf.S: Removed.
17168 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
17169 * sysdeps/i386/fpu/w_powf.c: Likewise.
17170 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
17171 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17172 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17173 Add e_powf-sse2.
17174 (CFLAGS-e_powf-sse2.c): New.
17175 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
17176 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
17177
17178 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17179
17180 * sysdeps/i386/fpu/e_log2f.S: Removed.
17181 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
17182 * sysdeps/i386/fpu/w_log2f.c: Likewise.
17183 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
17184 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17185 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17186 Add e_log2f-sse2.
17187 (CFLAGS-e_log2f-sse2.c): New.
17188 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
17189 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
17190
17191 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17192
17193 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17194 Add e_powf-fma.
17195 (CFLAGS-e_powf-fma.c): New.
17196 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
17197 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
17198
17199 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17200
17201 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17202 Add e_log2f-fma.
17203 (CFLAGS-e_log2f-fma.c): New.
17204 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
17205 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
17206
17207 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17208
17209 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17210 Add e_logf-fma.
17211 (CFLAGS-e_logf-fma.c): New.
17212 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
17213 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
17214
17215 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17216
17217 * sysdeps/i386/fpu/e_logf.S: Removed.
17218 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
17219 * sysdeps/i386/fpu/w_logf.c: Likewise.
17220 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
17221 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
17222 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17223 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17224 Add e_logf-sse2.
17225 (CFLAGS-e_logf-sse2.c): New.
17226 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
17227 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
17228
17229 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17230
17231 * sysdeps/i386/fpu/e_exp2f.S: Removed.
17232 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
17233 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
17234 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17235 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17236 Add e_exp2f-sse2.
17237 (CFLAGS-e_exp2f-sse2.c): New.
17238 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
17239 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
17240
17241 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17242
17243 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17244 Add e_exp2f-fma.
17245 (CFLAGS-e_exp2f-fma.c): New.
17246 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
17247 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
17248
17249 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17250
17251 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
17252 * sysdeps/i386/fpu/e_expf.S: Likewise.
17253 * sysdeps/i386/fpu/math_errf.c: Likewise.
17254 * sysdeps/i386/fpu/w_expf.c: Likewise.
17255 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
17256 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
17257 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
17258 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
17259 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17260 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17261 Remove e_expf-ia32.
17262 (CFLAGS-e_expf-sse2.c): New.
17263 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
17264 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
17265
17266 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17267
17268 * sysdeps/x86_64/fpu/e_expf.S: Removed.
17269 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
17270 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
17271 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
17272 e_expf.c.
17273 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
17274 New.
17275 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
17276 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
17277 Renamed to ...
17278 (__redirect_expf): This.
17279 (SYMBOL_NAME): Changed to expf.
17280 (__ieee754_expf): Renamed to ...
17281 (__expf): This.
17282 (__GI___expf): This.
17283 (__ieee754_expf): Add strong_alias.
17284 (__expf_finite): Likewise.
17285 (__expf): New.
17286 Include <sysdeps/ieee754/flt-32/e_expf.c>.
17287
17288 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
17289
17290 [BZ #22332]
17291 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
17292 unescaping.
17293
17294 2017-10-21 Florian Weimer <fweimer@redhat.com>
17295
17296 * posix/Makefile (tests): Add tst-glob-tilde.
17297 (tests-special): Add tst-glob-tilde-mem.out
17298 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
17299 (tst-glob-tilde-mem.out): Add mtrace check.
17300 * posix/tst-glob-tilde.c: New file.
17301
17302 2017-10-20 Joseph Myers <joseph@codesourcery.com>
17303
17304 * bits/floatn-common.h: New file.
17305 * math/Makefile (headers): Add bits/floatn-common.h.
17306 * bits/floatn.h: Include <bits/floatn-common.h>.
17307 * sysdeps/ia64/bits/floatn.h: Likewise.
17308 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
17309 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
17310 * sysdeps/powerpc/bits/floatn.h: Likewise.
17311 * sysdeps/x86/bits/floatn.h: Likewise.
17312
17313 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17314
17315 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
17316 indicates whether compiler emits an warning for alias for
17317 functions with incompatible types.
17318
17319 [BZ #22273]
17320 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
17321 the auxiliary process is terminated by a signal before calling _exit
17322 or execve.
17323
17324 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
17325
17326 [BZ #21265]
17327 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
17328 New.
17329 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
17330 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
17331 and bit_arch_XSAVEC_Usable if needed.
17332 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
17333 and bit_arch_Use_dl_runtime_resolve_opt.
17334 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
17335 Removed.
17336 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
17337 (bit_arch_Prefer_No_AVX512): Updated.
17338 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
17339 (bit_arch_XSAVEC_Usable): New.
17340 (STATE_SAVE_OFFSET): Likewise.
17341 (STATE_SAVE_MASK): Likewise.
17342 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
17343 (cpu_features): Add xsave_state_size and xsave_state_full_size.
17344 (index_arch_Use_dl_runtime_resolve_opt): Removed.
17345 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
17346 (index_arch_XSAVEC_Usable): New.
17347 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17348 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
17349 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
17350 is enabled.
17351 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
17352 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
17353 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
17354 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
17355 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
17356 _dl_runtime_resolve_xsavec.
17357 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
17358 Removed.
17359 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
17360 instead of VEC_SIZE.
17361 (REGISTER_SAVE_BND0): Removed.
17362 (REGISTER_SAVE_BND1): Likewise.
17363 (REGISTER_SAVE_BND3): Likewise.
17364 (REGISTER_SAVE_RAX): Always defined to 0.
17365 (VMOV): Removed.
17366 (_dl_runtime_resolve_avx): Likewise.
17367 (_dl_runtime_resolve_avx_slow): Likewise.
17368 (_dl_runtime_resolve_avx_opt): Likewise.
17369 (_dl_runtime_resolve_avx512): Likewise.
17370 (_dl_runtime_resolve_avx512_opt): Likewise.
17371 (_dl_runtime_resolve_sse): Likewise.
17372 (_dl_runtime_resolve_sse_vex): Likewise.
17373 (USE_FXSAVE): New.
17374 (_dl_runtime_resolve_fxsave): Likewise.
17375 (USE_XSAVE): Likewise.
17376 (_dl_runtime_resolve_xsave): Likewise.
17377 (USE_XSAVEC): Likewise.
17378 (_dl_runtime_resolve_xsavec): Likewise.
17379 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
17380 Removed.
17381 (_dl_runtime_resolve_avx512_opt): Likewise.
17382 (_dl_runtime_resolve_avx): Likewise.
17383 (_dl_runtime_resolve_avx_opt): Likewise.
17384 (_dl_runtime_resolve_sse): Likewise.
17385 (_dl_runtime_resolve_sse_vex): Likewise.
17386 (_dl_runtime_resolve_fxsave): New.
17387 (_dl_runtime_resolve_xsave): Likewise.
17388 (_dl_runtime_resolve_xsavec): Likewise.
17389
17390 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
17391
17392 [BZ #22320]
17393 CVE-2017-15670
17394 * posix/glob.c (__glob): Fix one-byte overflow.
17395
17396 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
17397
17398 * malloc/malloc.c (sysdep-cancel.h): Add include.
17399
17400 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
17401
17402 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
17403
17404 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
17405
17406 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
17407 (tests): Remove $(objpfx)ga_test depdendency.
17408 * resolv/ga_test.c: Remove file.
17409
17410 2017-10-20 Mike FABIAN <mfabian@redhat.com>
17411
17412 [BZ #18812]
17413 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
17414 * localedata/locales/kab_DZ: New file.
17415
17416 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
17417
17418 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
17419 _dl_relocate_static_pie instead of _dl_start to compute load
17420 address in static PIE.
17421
17422 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
17423
17424 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
17425
17426 2017-10-20 Mike FABIAN <mfabian@redhat.com>
17427
17428 [BZ #13605]
17429 * localedata/SUPPORTED: Add shn_MM/UTF-8.
17430 * localedata/locales/shn_MM: New file.
17431
17432 2017-10-20 Florian Weimer <fweimer@redhat.com>
17433
17434 [BZ #22321]
17435 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
17436 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
17437 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
17438 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
17439 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
17440 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
17441
17442 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
17443
17444 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
17445
17446 2017-10-19 Joseph Myers <joseph@codesourcery.com>
17447
17448 * sysdeps/mips/ieee754/bits/floatn.h: New file.
17449
17450 [BZ #22322]
17451 * sysdeps/mips/bits/long-double.h: Move to ....
17452 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
17453
17454 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
17455
17456 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
17457
17458 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
17459 H.J. Lu <hongjiu.lu@intel.com>
17460
17461 [BZ #22299]
17462 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17463 GLRO(dl_platform) to NULL.
17464 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
17465 (modules-names): Add tst-platformmod-1 and
17466 x86_64/tst-platformmod-2.
17467 (CFLAGS-tst-platform-1.c): New.
17468 (CFLAGS-tst-platformmod-1.c): Likewise.
17469 (CFLAGS-tst-platformmod-2.c): Likewise.
17470 (LDFLAGS-tst-platformmod-2.so): Likewise.
17471 ($(objpfx)tst-platform-1): Likewise.
17472 ($(objpfx)tst-platform-1.out): Likewise.
17473 (tst-platform-1-ENV): Likewise.
17474 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
17475 * sysdeps/x86_64/tst-platform-1.c: New file.
17476 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
17477 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
17478
17479 2017-10-19 Mike FABIAN <mfabian@redhat.com>
17480
17481 [BZ #13994]
17482 * locale/iso-639.def: Add Karbi.
17483 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
17484 * localedata/locales/mjw_IN: New file.
17485
17486 2017-10-18 Joseph Myers <joseph@codesourcery.com>
17487
17488 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
17489 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
17490 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
17491 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
17492 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
17493 (libm_alias_ldouble_other_r): Also create _Float128 alias.
17494 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
17495 <bits/floatn.h>.
17496 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
17497 (libm_alias_ldouble_other_r): Also create _Float128 alias.
17498 * manual/math.texi (Mathematics): Document additional architecture
17499 support for _Float128.
17500 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
17501 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17502 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17503 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17504 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17505 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17506 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17507 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17508 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17509 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17510 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17511 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17512 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17513 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17514 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17515
17516 2017-10-18 Renlin Li <renlin.li@arm.com>
17517
17518 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
17519 _DYNAMIC symbol to calculate load address.
17520
17521 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
17522
17523 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
17524 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
17525 summary bits.
17526 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
17527 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
17528
17529 2017-10-18 Mike FABIAN <mfabian@redhat.com>
17530
17531 [BZ #16777]
17532 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
17533 and improve readability by using more ASCII.
17534 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
17535 and improve readability by using more ASCII.
17536
17537 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
17538
17539 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
17540 not all targets support atomics on bool.
17541
17542 2017-10-17 Joseph Myers <joseph@codesourcery.com>
17543
17544 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
17545 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
17546 __f128.
17547 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17548 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
17549 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17550 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
17551 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17552 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
17553
17554 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17555
17556 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
17557 defines.
17558
17559 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
17560
17561 [BZ #22159]
17562 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
17563 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
17564 (do_check_remalloced_chunk): Fix build bug.
17565 (do_check_malloc_state): Add assert that checks arena->top.
17566 (malloc_consolidate): Remove initialization.
17567 (int_mallinfo): Remove call to malloc_consolidate.
17568 (__libc_mallopt): Clarify why malloc_consolidate is needed.
17569
17570 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
17571
17572 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
17573 (have_fastchunks): Remove.
17574 (clear_fastchunks): Remove.
17575 (set_fastchunks): Remove.
17576 (malloc_state): Add have_fastchunks.
17577 (malloc_init_state): Use have_fastchunks.
17578 (do_check_malloc_state): Remove incorrect invariant checks.
17579 (_int_malloc): Use have_fastchunks.
17580 (_int_free): Likewise.
17581 (malloc_consolidate): Likewise.
17582
17583 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
17584
17585 * malloc/malloc.c (tcache_put): Inline.
17586 (tcache_get): Inline.
17587
17588 2017-10-17 Jordi Mallach <jordi@gnu.org>
17589
17590 Aurelien Jarno <aurelien@aurel32.net>
17591 [BZ #2522]
17592 * localedata/locales/ca_ES@valencia: New file.
17593 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
17594
17595 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
17596
17597 [BZ #22296]
17598 * math/math.h: Let signbit use the builtin in C++ mode with gcc
17599 < 6.x
17600
17601 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17602
17603 * scripts/build-many-glibcs.py (Context.add_all_configs):
17604 Add arm-linux-gnueabihf multiarch extra_glibcs.
17605
17606 * sysdeps/generic/ifunc-init.h: New file.
17607 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
17608
17609 2017-10-17 Mike FABIAN <mfabian@redhat.com>
17610
17611 [BZ #22019]
17612 * localedata/locales/el_GR: Set n_cs_precedes to 0.
17613 * localedata/locales/el_CY: copy "el_GR" because it is identical.
17614 * stdlib/tst-strfmon_l.c: adapt test case.
17615
17616 2017-10-16 Joseph Myers <joseph@codesourcery.com>
17617
17618 * sysdeps/generic/float128-abi.h: New file.
17619 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
17620 non-__prefixed symbols to ....
17621 * math/Versions: ... here. Include <float128-abi.h>.
17622 * stdlib/Versions ... and here. Include <float128-abi.h>
17623
17624 2017-10-16 Florian Weimer <fweimer@redhat.com>
17625
17626 * version.h (VERSION): Switch to ".9000" as the development
17627 version suffix.
17628
17629 2017-10-16 Florian Weimer <fweimer@redhat.com>
17630
17631 [BZ #22050]
17632 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
17633 compat_symbol_reference to access non-default version.
17634
17635 2017-10-16 Florian Weimer <fweimer@redhat.com>
17636
17637 * malloc/Makefile (others-extras): Set to mcheck-init.o.
17638
17639 2017-10-16 Carlos O'Donell <carlos@redhat.com>
17640
17641 * include/shlib-compat.h (compat_symbol_reference): Update
17642 comment.
17643
17644 2017-10-16 Joseph Myers <joseph@codesourcery.com>
17645
17646 * math/Makefile (test-types): Add
17647 $(type-float128-$(float128-alias-fcts)).
17648 * math/test-float128.h (TYPE_STR): Define conditional on
17649 [FLT128_MANT_DIG == LDBL_MANT_DIG].
17650 (ULP_IDX): Likewise.
17651 (ULP_I_IDX): Likewise.
17652
17653 * stdlib/strtold.c: Include <bits/floatn.h>
17654 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
17655 and later undefine as macro. Define as weak alias if
17656 [!USE_WIDE_CHAR].
17657 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
17658 and later undefine as macro. Define as weak alias if
17659 [USE_WIDE_CHAR].
17660 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
17661 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
17662 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
17663 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
17664 Define and later undefine as macro. Define as weak alias if
17665 [USE_WIDE_CHAR].
17666 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
17667 <bits/floatn.h>.
17668 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
17669 Define and later undefine as macro. Define as weak alias if
17670 [!USE_WIDE_CHAR].
17671 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
17672 Define and later undefine as macro. Define as weak alias if
17673 [USE_WIDE_CHAR].
17674
17675 2017-10-15 Carlos O'Donell <carlos@redhat.com>
17676
17677 * localedata/collate-test.c (allocate_arrays): Don't use \n in
17678 record_verbose messages.
17679
17680 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
17681
17682 [BZ #22052]
17683 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
17684 to silence -O3 -Wall warning with GCC 7.
17685
17686 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
17687
17688 * Makeconfig (+link-static-before-libc): Use the first of
17689 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
17690 * gmon/Makefile (tests): Add tst-gmon-static.
17691 (tests-static): Likewise.
17692 (CFLAGS-tst-gmon-static.c): New.
17693 (CRT-tst-gmon-static): Likewise.
17694 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
17695 (tst-gmon-static-ENV): Likewise.
17696 (tests-special): Likewise.
17697 ($(objpfx)tst-gmon-static.out): Likewise.
17698 (clean-tst-gmon-static-data): Likewise.
17699 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
17700 * gmon/tst-gmon-static-gprof.sh: New file.
17701 * gmon/tst-gmon-static.c: Likewise.
17702
17703 2017-10-13 Carlos O'Donell <carlos@redhat.com>
17704
17705 [BZ #22295]
17706 * locale/programs/linereader.c (get_string): Don't warn on
17707 non-symbolic character.
17708
17709 [BZ #22294]
17710 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
17711 int_curr_symbol.
17712
17713 [BZ #22292]
17714 * locale/programs/record-status.h: New file
17715 * locale/programs/locale.c: Add comment.
17716 * locale/programs/charmap-dir.c: Don't include error.h.
17717 (charmap_opendir): Use record_error.
17718 * locale/programs/charmap.c: Don't include error.h.
17719 (charmap_read): Use record_error, and record_warning.
17720 (parse_charmap): Likewise.
17721 * locale/programs/ld-address.c: Don't include error.h.
17722 (address_finish): Use record_error, and record_warning.
17723 * locale/programs/ld-collate.c: Don't include error.h.
17724 (collate_finish): Use record_error, and record_error_at_line.
17725 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
17726 (ctype_class_new): Likewise.
17727 (ctype_map_new): Likewise.
17728 (set_one_default): Likewise.
17729 (set_class_defaults): Likewise.
17730 (translit_flatten): Likewise.
17731 (allocate_arrays): Use record_error, and record_verbose.
17732 * locale/programs/ld-identification.c: Don't include error.h.
17733 (indentation_finish): Use record_error and record_warning.
17734 * locale/programs/ld-measurement.c: Don't include error.h.
17735 (measurement_finish): Use record_error.
17736 * locale/programs/ld-messages.c
17737 (message_finish): Likewise.
17738 * locale/programs/ld-monetary.c
17739 (monetary_finish): Likewise.
17740 * locale/programs/ld-name.c (name_finish): Use record_error
17741 and record_warning.
17742 * locale/programs/ld-numeric.c
17743 (numeric_finish): Use record_error.
17744 * locale/programs/ld-paper.c: Don't include error.h.
17745 (paper_finish): Use record_error.
17746 * locale/programs/ld-telephone.c: Don't include error.h.
17747 (telephone_finish): Use record_error.
17748 * locale/programs/ld-time.c (time_finish): Likewise.
17749 * locale/programs/linereader.h (lr_error): Make inline func.
17750 * locale/programs/localedef.c: Define recorded_warning_count,
17751 and recorded_error_count.
17752 (main): Use record_error. Use recorded_error_count and
17753 recorded_warning_count to issue correct error returns.
17754 (add_to_readlist): Use record_error.
17755 (find_locale): Likewise.
17756 (load_locale): Likewise.
17757 * locale/programs/localedef.h: Remove be_quiet
17758 and WITH_CUR_LOCALE.
17759 * locale/programs/locarchive.c (compare_from_file): Use
17760 record_error.
17761 * locale/programs/locfile.c (write_locale_data): Use
17762 record_error.
17763 * locale/programs/repertoire.c: Dont include error.h.
17764 (repertoire_complain): Use record_error.
17765 * localedata/tst-fmon.sh: Expect failures from localedef.
17766 * localedata/tst-locale.sh: Likewise.
17767 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
17768
17769 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
17770 (REPORTS): Likewise.
17771 (check): Likewise.
17772 (i18n): Rename to...
17773 (i18n_ctype): ...this.
17774 (i18n-report): Rename to...
17775 (i18n_ctype-report): ...this.
17776 * localedata/locales/i18n_ctype: Regenerate.
17777 * localedata/locales/i18n: copy i18n_ctype.
17778
17779 2017-10-13 Joseph Myers <joseph@codesourcery.com>
17780
17781 * stdlib/strfroml.c: Include <bits/floatn.h>.
17782 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
17783 Define before include of <stdlib.h> and undefine afterwards, then
17784 define as weak alias.
17785
17786 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
17787 Undefine and restore default definition. Use
17788 libm_alias_ldouble_other.
17789
17790 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
17791
17792 [BZ #22153]
17793 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
17794 in coredumps.
17795
17796 2017-10-13 James Clarke <jrtc27@jrtc27.com>
17797
17798 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17799 Assign sym_map to be map for local symbols, as TLS relocations
17800 use sym_map to determine whether the symbol is defined and to
17801 extract the TLS information.
17802 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17803 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17804
17805 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17806
17807 [BZ #22189]
17808 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
17809 (math_force_eval): Add powerpc version.
17810
17811 [BZ #22142]
17812 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
17813 -DBL_MAX.
17814 (do_test): Likewise.
17815 * stdio-common/tst-printf.sh: Likewise.
17816 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
17817 ifdef clause in order to set the carry bit right. Replace r0 by
17818 0 without changing the behavior.
17819
17820 2017-10-13 Joseph Myers <joseph@codesourcery.com>
17821
17822 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
17823 <libm-alias-ldouble.h>.
17824 (fabsl): Define using libm_alias_ldouble.
17825 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
17826 <libm-alias-ldouble.h>.
17827 (fabsl): Define using libm_alias_ldouble.
17828
17829 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
17830 Remove conditional code.
17831
17832 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
17833 Rename to __clog10_internal_l.
17834 (__clog10_internal_l): Define aliases using
17835 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
17836 with __clog10.
17837
17838 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17839
17840 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
17841 * benchtests/sincosf-inputs: New file.
17842 * benchtests/cosf-inputs: New file.
17843 * benchtests/sinf-inputs: New file.
17844
17845 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17846
17847 * posix/tst-spawn.c (do_test): Wait for both children.
17848
17849 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
17850
17851 [BZ #22284]
17852 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
17853 tests-pie): Add tst-gmon-pie.
17854 (CFLAGS-tst-gmon-pie.c): New.
17855 (CRT-tst-gmon-pie): Likewise.
17856 (tst-gmon-pie-ENV): Likewise.
17857 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
17858 ($(objpfx)tst-gmon-pie.out): Likewise.
17859 (clean-tst-gmon-pie-data): Likewise.
17860 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
17861 * gmon/gmon.c [PIC]: Include <link.h>.
17862 [PIC] (callback): New function.
17863 (write_hist): Add an argument for load address. Subtract load
17864 address from PCs.
17865 (write_call_graph): Likewise.
17866 (write_gmon): Call __dl_iterate_phdr to get load address, pass
17867 it to write_hist and write_call_graph.
17868 * gmon/tst-gmon-pie.c: New file.
17869
17870 2017-10-11 Joseph Myers <joseph@codesourcery.com>
17871
17872 * math/Makefile (test-types-basic): New variable.
17873 (test-types): Likewise.
17874 (libm-test-support): Use $(test-types) instead of $(types).
17875 (libm-tests-base-normal): Likewise.
17876 (libm-tests-base-finite): Likewise.
17877 (libm-tests-base-inline): Likewise.
17878 (generated): Likewise.
17879 ($(objpfx)libm-test-support-$(t).c): Likewise.
17880 (libm-tests-for-type iterator): Likewise.
17881 (libm-test-support iterator): Likewise.
17882 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
17883 (ulp_idx): Use ULP_IDX.
17884 * math/test-ldouble.h: Include <float.h>.
17885 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
17886 (ULP_IDX): New macro.
17887 (ULP_I_IDX): Likewise.
17888 * math/test-double.h (ULP_IDX): Likewise.
17889 (ULP_I_IDX): Likewise.
17890 * math/test-float.h (ULP_IDX): Likewise.
17891 (ULP_I_IDX): Likewise.
17892 * math/test-float128.h (ULP_IDX): Likewise.
17893 (ULP_I_IDX): Likewise.
17894
17895 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17896
17897 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
17898 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
17899 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
17900 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
17901 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
17902 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
17903 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
17904 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
17905 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
17906 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
17907 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
17908 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
17909 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
17910 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17911 (SINGLE_THREAD_BY_GLOBAL): Define.
17912 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17913 Likewise.
17914 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17915 Likewise.
17916 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17917 Likewise.
17918 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17919 Likewise.
17920 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
17921 (SINGLE_THREAD_BY_GLOBAL): Likewise.
17922 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17923 Likewise.
17924
17925 2017-10-11 Andreas Schwab <schwab@suse.de>
17926
17927 * nis/Makefile (aux): Remove.
17928 * nscd/Makefile (aux): Add nscd_hash.
17929 (nscd-modules): Likewise.
17930 ($(objpfx)nscd): Don't depend on libnsl.
17931 * nscd/nscd_hash.c: New file.
17932 * nscd/nscd_hash.h: Likewise.
17933 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
17934 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
17935 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
17936 instead of <nis/rpcsvc/nis.h>.
17937 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
17938
17939 2017-10-11 Florian Weimer <fweimer@redhat.com>
17940
17941 [BZ #22078]
17942 Avoid large NSS buffers with many addresses, aliases.
17943 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
17944 using dynarrays and struct alloc_buffer.
17945 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
17946 (tst-nss-files-hosts-multi): Link with -ldl.
17947 * nss/tst-nss-files-hosts-multi.c: New file.
17948
17949 2017-10-11 Florian Weimer <fweimer@redhat.com>
17950
17951 [BZ #18023]
17952 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
17953 scratch_buffer. Eliminate gotos.
17954
17955 2017-10-11 Joseph Myers <joseph@codesourcery.com>
17956
17957 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
17958 libm_alias_ldouble_other.
17959 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
17960 undefine and redefine.
17961 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
17962 (exp10l): Do not define here.
17963 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
17964 (weak_alias): Undefine and redefine.
17965 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
17966 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
17967 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
17968 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
17969
17970 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
17971 [!__fma] (fma): Define using libm_alias_double.
17972 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
17973 [!__fmaf] (fmaf): Define using libm_alias_float.
17974 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
17975 (fmal): Define using libm_alias_ldouble.
17976
17977 2017-10-10 Joseph Myers <joseph@codesourcery.com>
17978
17979 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
17980 New macro.
17981 (libm_alias_double_other): Likewise.
17982 (libm_alias_double_r): Use libm_alias_double_other_r.
17983 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
17984 New macro.
17985 (libm_alias_float_other): Likewise.
17986 (libm_alias_float_r): Use libm_alias_float_other_r.
17987 * sysdeps/generic/libm-alias-float128.h
17988 (libm_alias_float128_other_r): New macro.
17989 (libm_alias_float128_other): Likewise.
17990 (libm_alias_float128_r): Use libm_alias_float128_other_r.
17991 * sysdeps/generic/libm-alias-ldouble.h
17992 (libm_alias_ldouble_other_r): New macro.
17993 (libm_alias_ldouble_other): Likewise.
17994 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
17995 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
17996 (libm_alias_double_other_r): New macro.
17997 (libm_alias_double_other): Likewise.
17998 (libm_alias_double_r): Use libm_alias_double_other_r.
17999 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
18000 (libm_alias_ldouble_other_r): New macro.
18001 (libm_alias_ldouble_other): Likewise.
18002 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
18003 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
18004 [!USE_AS_COMPAT]: Use libm_alias_double_other.
18005 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
18006 [!USE_AS_COMPAT]: Use libm_alias_float_other.
18007 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
18008 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
18009 * math/w_exp2f.c: Use libm_alias_float_other.
18010 * math/w_expf.c: Likewise.
18011 * math/w_log2f.c: Likewise.
18012 * math/w_logf.c: Likewise.
18013 * math/w_powf.c: Likewise.
18014 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
18015 [!__exp2f]: Use libm_alias_float_other.
18016 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
18017 [!__expf]: Use libm_alias_float_other.
18018 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
18019 [!__log2f]: Use libm_alias_float_other.
18020 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
18021 [!__logf]: Use libm_alias_float_other.
18022 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
18023 [!__powf]: Use libm_alias_float_other.
18024
18025 2017-10-10 Florian Weimer <fweimer@redhat.com>
18026
18027 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
18028 function.
18029 (_nss_files_gethostbyname3_r): Call it.
18030
18031 2017-10-09 Joseph Myers <joseph@codesourcery.com>
18032
18033 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
18034 error. Remove default definition of declare_mgen_alias.
18035 [!declare_mgen_alias_r]: Likewise.
18036 * sysdeps/generic/math-type-macros-double.h
18037 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
18038 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
18039 (declare_mgen_alias_r): Likewise.
18040 * sysdeps/generic/math-type-macros-float128.h
18041 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
18042 * sysdeps/generic/math-type-macros-ldouble.h
18043 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
18044 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
18045 macro.
18046 (declare_mgen_alias_r_s): Likewise.
18047 (declare_mgen_alias_r): Likewise.
18048 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
18049 (lgamma_r): Define using libm_alias_double_r.
18050 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
18051 (lgammaf_r): Define using libm_alias_float_r.
18052 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
18053 (lgammal_r): Define using libm_alias_ldouble_r.
18054 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
18055 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
18056
18057 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18058
18059 * lib/glob.c (__glob_pattern_type): Remove now-spurious
18060 extern declaration.
18061
18062 2017-10-09 Joseph Myers <joseph@codesourcery.com>
18063
18064 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
18065
18066 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
18067
18068 [BZ #21326]
18069 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
18070 [__cplusplus >= 201103] (__USE_ISOC99): Define.
18071 * math/Makefile (test-math-cxx11): New test.
18072 * math/test-math-cxx11.cc: New file.
18073
18074 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
18075
18076 * login/openpty.c (openpty): Close slave pty file descriptor on error.
18077
18078 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
18079 call to allocate the slave pty file descriptor.
18080
18081 2017-10-06 Joseph Myers <joseph@codesourcery.com>
18082
18083 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
18084 [!__fma] (fma): Define using libm_alias_double.
18085 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
18086 [!__fma] (fma): Define using libm_alias_double.
18087
18088 * sysdeps/ieee754/float128/float128_private.h: Include
18089 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
18090 (libm_alias_ldouble_r): Undefine and redefine.
18091 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
18092 <libm-alias-ldouble.h>.
18093 (asinhl): Define using libm_alias_ldouble.
18094 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
18095 <libm-alias-ldouble.h>.
18096 (atanl): Define using libm_alias_ldouble.
18097 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
18098 <libm-alias-ldouble.h>.
18099 (cbrtl): Define using libm_alias_ldouble.
18100 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
18101 <libm-alias-ldouble.h>.
18102 (ceill): Define using libm_alias_ldouble.
18103 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
18104 <libm-alias-ldouble.h>.
18105 (copysignl): Define using libm_alias_ldouble.
18106 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
18107 <libm-alias-ldouble.h>.
18108 (cosl): Define using libm_alias_ldouble.
18109 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
18110 <libm-alias-ldouble.h>.
18111 (erfl): Define using libm_alias_ldouble.
18112 (erfcl): Likewise.
18113 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
18114 <libm-alias-ldouble.h>.
18115 (expm1l): Define using libm_alias_ldouble.
18116 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
18117 <libm-alias-ldouble.h>.
18118 (fabsl): Define using libm_alias_ldouble.
18119 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
18120 <libm-alias-ldouble.h>.
18121 (floorl): Define using libm_alias_ldouble.
18122 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
18123 <libm-alias-ldouble.h>.
18124 (fmal): Define using libm_alias_ldouble.
18125 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
18126 <libm-alias-ldouble.h>.
18127 (frexpl): Define using libm_alias_ldouble.
18128 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
18129 libm_alias_ldouble.
18130 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
18131 <libm-alias-ldouble.h>.
18132 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
18133 libm_alias_ldouble.
18134 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
18135 <libm-alias-ldouble.h>.
18136 (getpayloadl): Define using libm_alias_ldouble.
18137 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
18138 <libm-alias-ldouble.h>.
18139 (llrintl): Define using libm_alias_ldouble.
18140 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
18141 <libm-alias-ldouble.h>.
18142 (llroundl): Define using libm_alias_ldouble.
18143 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
18144 <libm-alias-ldouble.h>.
18145 (logbl): Define using libm_alias_ldouble.
18146 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
18147 <libm-alias-ldouble.h>.
18148 (lrintl): Define using libm_alias_ldouble.
18149 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
18150 <libm-alias-ldouble.h>.
18151 (lroundl): Define using libm_alias_ldouble.
18152 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
18153 <libm-alias-ldouble.h>.
18154 (modfl): Define using libm_alias_ldouble.
18155 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
18156 <libm-alias-ldouble.h>.
18157 (nearbyintl): Define using libm_alias_ldouble.
18158 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
18159 <libm-alias-ldouble.h>.
18160 (nextafterl): Define using libm_alias_ldouble.
18161 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
18162 <libm-alias-ldouble.h>.
18163 (nextupl): Define using libm_alias_ldouble.
18164 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
18165 <libm-alias-ldouble.h>.
18166 (remquol): Define using libm_alias_ldouble.
18167 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
18168 <libm-alias-ldouble.h>.
18169 (rintl): Define using libm_alias_ldouble.
18170 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
18171 <libm-alias-ldouble.h>.
18172 (roundevenl): Define using libm_alias_ldouble.
18173 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
18174 <libm-alias-ldouble.h>.
18175 (roundl): Define using libm_alias_ldouble.
18176 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
18177 using libm_alias_ldouble.
18178 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
18179 <libm-alias-ldouble.h>.
18180 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
18181 Define using libm_alias_ldouble.
18182 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
18183 <libm-alias-ldouble.h>.
18184 (sincosl): Define using libm_alias_ldouble.
18185 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
18186 <libm-alias-ldouble.h>.
18187 (sinl): Define using libm_alias_ldouble.
18188 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
18189 <libm-alias-ldouble.h>.
18190 (tanhl): Define using libm_alias_ldouble.
18191 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
18192 <libm-alias-ldouble.h>.
18193 (tanl): Define using libm_alias_ldouble.
18194 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
18195 <libm-alias-ldouble.h>.
18196 (totalorderl): Define using libm_alias_ldouble.
18197 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
18198 <libm-alias-ldouble.h>.
18199 (totalordermagl): Define using libm_alias_ldouble.
18200 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
18201 <libm-alias-ldouble.h>.
18202 (truncl): Define using libm_alias_ldouble.
18203 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
18204 libm_alias_ldouble.
18205 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
18206 libm_alias_ldouble.
18207 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
18208 <libm-alias-ldouble.h>.
18209 (weak_alias): Do not undefine and redefine.
18210 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18211 (copysignl): Define with long_double_symbol only if [IS_IN
18212 (libc)].
18213 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
18214 <libm-alias-ldouble.h>.
18215 (weak_alias): Do not undefine and redefine.
18216 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18217 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
18218 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
18219 <libm-alias-ldouble.h>.
18220 (weak_alias): Do not undefine and redefine.
18221 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18222 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
18223 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
18224 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
18225 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
18226 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
18227 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
18228 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
18229 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
18230 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
18231 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
18232 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
18233 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
18234 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
18235 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
18236 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
18237 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
18238 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
18239 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
18240 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
18241 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
18242 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
18243 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
18244 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
18245 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
18246 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
18247
18248 2017-10-06 Carlos O'Donell <carlos@redhat.com>
18249
18250 [BZ #22111]
18251 * malloc/malloc.c (tcache_shutting_down): Use bool type.
18252 (tcache_thread_freeres): Set tcache_shutting_down before
18253 freeing the tcache.
18254 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
18255 * malloc/tst-malloc-tcache-leak.c: New file.
18256
18257 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18258
18259 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
18260 back to powerpc32 file.
18261 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
18262 (memrchr): Add __memrchr_power8 to ifunc list.
18263 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
18264 extra bytes for unaligned inputs.
18265
18266 2017-10-06 Joseph Myers <joseph@codesourcery.com>
18267
18268 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
18269 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
18270 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
18271 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
18272 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
18273
18274 2017-10-05 Joseph Myers <joseph@codesourcery.com>
18275
18276 * sysdeps/arm/libm-test-ulps: Update.
18277
18278 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
18279 <libm-alias-ldouble.h>.
18280 (asinhl): Define using libm_alias_ldouble.
18281 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
18282 <libm-alias-ldouble.h>.
18283 (cbrtl): Define using libm_alias_ldouble.
18284 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
18285 <libm-alias-ldouble.h>.
18286 (copysignl): Define using libm_alias_ldouble.
18287 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
18288 <libm-alias-ldouble.h>.
18289 (cosl): Define using libm_alias_ldouble.
18290 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
18291 <libm-alias-ldouble.h>.
18292 (erfl): Define using libm_alias_ldouble.
18293 (erfcl): Likewise.
18294 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
18295 <libm-alias-ldouble.h>.
18296 (fmal): Define using libm_alias_ldouble.
18297 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
18298 <libm-alias-ldouble.h>.
18299 (frexpl): Define using libm_alias_ldouble.
18300 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
18301 libm_alias_ldouble.
18302 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
18303 <libm-alias-ldouble.h>.
18304 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
18305 libm_alias_ldouble.
18306 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
18307 <libm-alias-ldouble.h>.
18308 (getpayloadl): Define using libm_alias_ldouble.
18309 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
18310 <libm-alias-ldouble.h>.
18311 (llrintl): Define using libm_alias_ldouble.
18312 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
18313 <libm-alias-ldouble.h>.
18314 (llroundl): Define using libm_alias_ldouble.
18315 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
18316 <libm-alias-ldouble.h>.
18317 (lrintl): Define using libm_alias_ldouble.
18318 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
18319 <libm-alias-ldouble.h>.
18320 (lroundl): Define using libm_alias_ldouble.
18321 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
18322 <libm-alias-ldouble.h>.
18323 (modfl): Define using libm_alias_ldouble.
18324 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
18325 <libm-alias-ldouble.h>.
18326 (nextupl): Define using libm_alias_ldouble.
18327 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
18328 <libm-alias-ldouble.h>.
18329 (remquol): Define using libm_alias_ldouble.
18330 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
18331 <libm-alias-ldouble.h>.
18332 (roundevenl): Define using libm_alias_ldouble.
18333 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
18334 <libm-alias-ldouble.h>.
18335 (roundl): Define using libm_alias_ldouble.
18336 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
18337 using libm_alias_ldouble.
18338 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
18339 <libm-alias-ldouble.h>.
18340 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
18341 <libm-alias-ldouble.h>.
18342 (setpayloadsigl): Define using libm_alias_ldouble.
18343 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
18344 <libm-alias-ldouble.h>.
18345 (sincosl): Define using libm_alias_ldouble.
18346 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
18347 <libm-alias-ldouble.h>.
18348 (sinl): Define using libm_alias_ldouble.
18349 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
18350 <libm-alias-ldouble.h>.
18351 (tanhl): Define using libm_alias_ldouble.
18352 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
18353 <libm-alias-ldouble.h>.
18354 (tanl): Define using libm_alias_ldouble.
18355 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
18356 <libm-alias-ldouble.h>.
18357 (totalorderl): Define using libm_alias_ldouble.
18358 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
18359 <libm-alias-ldouble.h>.
18360 (totalordermagl): Define using libm_alias_ldouble.
18361 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
18362 libm_alias_ldouble.
18363 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
18364 libm_alias_ldouble.
18365
18366 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
18367
18368 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
18369 memmove_falkor.
18370 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
18371 (__libc_ifunc_impl_list): Likewise.
18372 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
18373 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
18374
18375 * benchtests/bench-memmove-walk.c: New file.
18376 * benchtests/Makefile (string-benchset): Add it.
18377
18378 * benchtests/bench-memset-walk.c: New file.
18379 * benchtests/Makefile (string-benchset): Add it.
18380
18381 * benchtests/bench-memcpy-walk.c: New file.
18382 * benchtests/Makefile (string-benchset): Add it.
18383
18384 2017-10-05 Florian Weimer <fweimer@redhat.com>
18385
18386 nscd: Eliminate compilation time dependency in the build output.
18387 * nscd/nscd_stat.c (STATDATA_VERSION)
18388 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
18389 (STATDATA_VERSION_FULL): New macro definitions.
18390 (compilation): Remove.
18391 (struct statdata): Adjust version member.
18392 (send_stats): Set version from STATDATA_VERSION_FULL.
18393 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
18394
18395 2017-10-05 Joseph Myers <joseph@codesourcery.com>
18396
18397 * configure.ac (--enable-add-ons): Remove option.
18398 (machine): Do not mention add-ons in comment.
18399 (LIBC_PRECONFIGURE): Likewise.
18400 (add_ons): Remove variable and sanity checks and logic to locate
18401 add-ons.
18402 (add_ons_automatic): Remove variable.
18403 (configured_add_ons): Likewise.
18404 (add_ons_sfx): Likewise.
18405 (add_ons_pfx): Likewise.
18406 (add_on_subdirs): Likewise.
18407 (sysnames_add_ons): Likewise. Remove loop over add-ons and
18408 consideration of add-ons in Implies handling.
18409 (sysdeps_add_ons): Likewise.
18410 * configure: Regenerated.
18411 * libidn/configure.ac: Remove.
18412 * libidn/configure: Likewise.
18413 * sysdeps/unix/inet/configure.ac: New file.
18414 * sysdeps/unix/inet/configure: New generated file.
18415 * sysdeps/unix/inet/Subdirs: Add libidn.
18416 * Makeconfig (sysdeps-srcdirs): Remove variable.
18417 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
18418 ($(common-objpfx)config.status): Do not depend on add-on files.
18419 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
18420 comment.
18421 (all-subdirs): Do not include $(add-on-subdirs).
18422 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
18423 * config.make.in (add-ons): Remove variable.
18424 (add-on-subdirs): Likewise.
18425 (sysdeps-add-ons): Likewise.
18426 * manual/Makefile (add-chapters): Remove.
18427 ($(objpfx)texis): Do not depend on $(add-chapters).
18428 (nonexamples): Do not handle $(add-chapters).
18429 (examples): Do not handle $(add-ons).
18430 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
18431 libc-texinfo.sh.
18432 * manual/install.texi (Installation): Do not mention add-ons.
18433 (--enable-add-ons): Do not document configure option.
18434 * INSTALL: Regenerated.
18435 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
18436 * manual/maint.texi (Hierarchy Conventions): Do not mention
18437 add-ons.
18438 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
18439 --enable-add-ons.
18440 * scripts/gen-sorted.awk: Do not handle Subdirs files from
18441 add-ons.
18442 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
18443 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
18444
18445 2017-10-05 Andreas Schwab <schwab@suse.de>
18446
18447 [BZ #15142]
18448 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
18449 (_IO_flush_all_lockp): Always lock list_all_lock.
18450 (_IO_flush_all_linebuffered): Likewise.
18451 (_IO_unbuffer_all): Likewise.
18452
18453 2017-10-05 Florian Weimer <fweimer@redhat.com>
18454
18455 [BZ #15436]
18456 Do not flush stdio streams on abort.
18457 * stdlib/abort.c (fflush): Remove macro definition.
18458 (abort): Remove stages related to stdio flushing.
18459
18460 2017-10-05 Florian Weimer <fweimer@redhat.com>
18461
18462 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
18463
18464 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18465
18466 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18467
18468 2017-10-05 Florian Weimer <fweimer@redhat.com>
18469
18470 * support/support_format_hostent.c (support_format_hostent): Add
18471 more error information for NETDB_INTERNAL.
18472
18473 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18474
18475 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
18476 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
18477 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
18478 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
18479 AC_DEFINE if multi-arch is enabled.
18480 * sysdeps/i386/configure: Regenerated.
18481
18482 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18483
18484 * Makeconfig (+link-static-before-libc): Use
18485 $(DEFAULT-LDFLAGS-$(@F)).
18486 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
18487 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
18488 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
18489
18490 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18491
18492 * elf/Makefile (tests): Add tst-main1.
18493 (modules-names): Add tst-main1mod.
18494 ($(objpfx)tst-main1): New.
18495 (CRT-tst-main1): Likewise.
18496 (LDFLAGS-tst-main1): Likewise.
18497 (LDLIBS-tst-main1): Likewise.
18498 (tst-main1mod.so-no-z-defs): Likewise.
18499 * elf/tst-main1.c: New file.
18500 * elf/tst-main1mod.c: Likewise.
18501
18502 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18503
18504 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
18505
18506 2017-10-04 Joseph Myers <joseph@codesourcery.com>
18507
18508 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
18509 (fma): Define using libm_alias_double.
18510 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
18511 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
18512 <math_ldbl_opt.h>.
18513 (fmal): Do not define as compat symbol here.
18514 * sysdeps/alpha/fpu/s_fma.c: New file.
18515
18516 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18517
18518 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
18519
18520 2017-10-04 Joseph Myers <joseph@codesourcery.com>
18521
18522 [BZ #22229]
18523 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
18524 <math_ldbl_opt.h>
18525 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
18526 and libc.
18527 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
18528 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
18529 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
18530 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
18531 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18532 Include <math_ldbl_opt.h>
18533 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
18534 and libc.
18535 (compat_symbol): Undefine and redefine.
18536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
18537 <math_ldbl_opt.h>
18538 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
18539 (compat_symbol): Undefine and redefine.
18540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
18541 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
18542 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
18543 GLIBC_2_1 for libm.
18544 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
18545 GLIBC_2.0 copysignl symbol.
18546 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18547 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
18548
18549 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
18550
18551 2017-10-04 Florian Weimer <fweimer@redhat.com>
18552
18553 * scripts/check-local-headers.sh: Ignore nspr4 header file
18554 directory in addition to nspr.
18555
18556 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
18557
18558 [BZ #17956]
18559 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
18560 * configure: Regenerate.
18561 * crypt/Makefile (nss-cpp-flags): New variable.
18562 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
18563 (CPPFLAGS-md5-crypt.c): Use it.
18564 * scripts/check-local-headers.sh: Ignore nspr header file
18565 directory.
18566
18567 2017-10-04 Andreas Schwab <schwab@suse.de>
18568
18569 * nis/Makefile (services): Remove compat.
18570 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
18571 ($(objpfx)libnss_compat.so): Remove rule.
18572 * nis/Versions (libnss_compat): Remove.
18573 * nss/Makefile (services): Add compat.
18574 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
18575 * nss/Versions (libnss_compat): Define.
18576 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
18577 Don't include <rpc/types.h>. Replace bool_t by bool.
18578 * nss/nss_compat/compat-initgroups.c: Likewise.
18579 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
18580 instead of <rpcsrv/ypclnt.h>.
18581 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
18582 yp_get_default_domain.
18583 * nss/nss_compat/compat-pwd.c: Likewise.
18584 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
18585 yp_get_default_domain.
18586 * nss/nss_compat/nisdomain.c: New file.
18587 * nss/nss_compat/nisdomain.h: Likewise.
18588
18589 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18590
18591 [BZ #22244]
18592 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
18593 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
18594
18595 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18596
18597 [BZ #22243]
18598 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
18599 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
18600
18601 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18602
18603 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
18604 "movl main@GOTOFF(%ebx), %eax".
18605
18606 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18607
18608 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
18609 allow undefined _DYNAMIC in PIE libc.a.
18610 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
18611 Likewse.
18612
18613 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18614
18615 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
18616 check _DYNAMIC.
18617
18618 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18619
18620 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
18621 check _DYNAMIC.
18622
18623 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18624
18625 * math/test-math-iscanonical.cc (error): Replace bool with int.
18626
18627 2017-10-03 Joseph Myers <joseph@codesourcery.com>
18628
18629 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
18630 (modf): Define using libm_alias_double, only if [!__modf].
18631 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
18632 <libm-alias-double.h>.
18633 (modf): Define using libm_alias_double, only if [!__modf].
18634 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
18635 compat symbol here.
18636 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
18637 (weak_alias): Do not undefine and redefine.
18638 (strong_alias): Likewise.
18639 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
18640 (weak_alias): Likewise.
18641 (strong_alias): Likewise.
18642
18643 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
18644 (logb): Define using libm_alias_double, only if [!__logb].
18645 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
18646 <libm-alias-double.h>.
18647 (logb): Define using libm_alias_double, only if [!__logb].
18648 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
18649 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
18650 (weak_alias): Do not undefine and redefine.
18651 (strong_alias): Likewise.
18652 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
18653 (weak_alias): Likewise.
18654 (strong_alias): Likewise.
18655
18656 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18657
18658 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
18659 Check SHARED instead PIC.
18660
18661 2017-10-03 Joseph Myers <joseph@codesourcery.com>
18662
18663 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
18664 [!__fmaf] (fmaf): Define using libm_alias_float.
18665
18666 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
18667 (frexp): Define using libm_alias_double.
18668 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
18669 <libm-alias-double.h>.
18670 (frexp): Define using libm_alias_double.
18671 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
18672 compat symbol here.
18673
18674 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18675
18676 [BZ #22235]
18677 * math/math.h: Trivial fix for unbalanced parentheses in comment.
18678 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
18679 (CFLAGS-test-math-iscanonical.cc): New variable.
18680 * math/test-math-iscanonical.cc: New file.
18681 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
18682 Provide a C++ implementation based on function overloading,
18683 rather than using __MATH_TG, which uses C-only builtins.
18684 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
18685 Likewise.
18686 * sysdeps/powerpc/powerpc64le/Makefile
18687 (CFLAGS-test-math-iscanonical.cc): New variable.
18688
18689 2017-10-03 Joseph Myers <joseph@codesourcery.com>
18690
18691 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
18692 (ceil): Define using libm_alias_double.
18693 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
18694 (floor): Define using libm_alias_double.
18695 * sysdeps/ieee754/dbl-64/s_llround.c: Include
18696 <libm-alias-double.h>.
18697 (llround): Define using libm_alias_double.
18698 * sysdeps/ieee754/dbl-64/s_lround.c: Include
18699 <libm-alias-double.h>.
18700 (lround): Define using libm_alias_double.
18701 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
18702 <libm-alias-double.h>.
18703 (nearbyint): Define using libm_alias_double.
18704 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
18705 <libm-alias-double.h>.
18706 (remquo): Define using libm_alias_double.
18707 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
18708 (rint): Define using libm_alias_double.
18709 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
18710 (round): Define using libm_alias_double.
18711 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
18712 (trunc): Define using libm_alias_double.
18713 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
18714 <libm-alias-double.h>.
18715 (ceil): Define using libm_alias_double.
18716 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
18717 <libm-alias-double.h>.
18718 (floor): Define using libm_alias_double.
18719 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
18720 <libm-alias-double.h>.
18721 (llround): Define using libm_alias_double.
18722 [_LP64] (lround): Likewise.
18723 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
18724 <libm-alias-double.h>.
18725 [!_LP64] (lround): Define using libm_alias_double.
18726 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
18727 <libm-alias-double.h>.
18728 (nearbyint): Define using libm_alias_double.
18729 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
18730 <libm-alias-double.h>.
18731 (remquo): Define using libm_alias_double.
18732 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
18733 <libm-alias-double.h>.
18734 (rint): Define using libm_alias_double.
18735 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
18736 <libm-alias-double.h>.
18737 (round): Define using libm_alias_double.
18738 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
18739 <libm-alias-double.h>.
18740 (trunc): Define using libm_alias_double.
18741 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
18742 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
18743 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
18744 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
18745 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
18746 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
18747 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
18748 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
18749 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
18750
18751 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18752
18753 * math/w_remainder.c: New file.
18754 * math/w_remainderf.c: New file.
18755 * math/w_remainderl.c: New file.
18756
18757 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18758
18759 * elf/rtld.c (BOOTSTRAP_MAP): New.
18760 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
18761 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18762 Likewise.
18763 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18764 Likewise.
18765 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18766 Likewise.
18767
18768 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18769
18770 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
18771 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
18772 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
18773 rtld_hidden_data_ver): Define to empty.
18774 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
18775 __assert_perror_fail): Likewise.
18776 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18777 (__rewinddir): Likewise.
18778 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18779 (__profile_frequency): Likewise.
18780 * include/setjmp.h (__sigsetjmp): Likewise.
18781 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
18782 __libc_sigaction): Likewise.
18783 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
18784 not set hidden attribute.
18785 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
18786 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
18787 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
18788 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
18789 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
18790 __fxstatat64): Likewise.
18791 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18792 (__uname): Likewise.
18793 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18794 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
18795 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
18796 (NO_RTLD_HIDDEN): Set.
18797 * sysdeps/mach/hurd/configure: Refresh.
18798 * config.h.in: Refresh.
18799
18800 2017-10-02 Joseph Myers <joseph@codesourcery.com>
18801
18802 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
18803 (atan): Define using libm_alias_double.
18804 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
18805 (tan): Define using libm_alias_double.
18806 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
18807 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
18808
18809 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
18810 define as weak alias of __atan. Do not define any aliases if
18811 [__atan].
18812 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
18813 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
18814 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
18815 as weak alias of __tan. Do not define any aliases if [__tan].
18816 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
18817 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
18818 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
18819 __atan.
18820 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
18821 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
18822 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
18823 and define as weak alias of __atan.
18824 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
18825 __atan.
18826 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
18827 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
18828 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
18829 define as weak alias of __tan.
18830
18831 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18832
18833 * math/w_lgamma.c: New file.
18834 * math/w_lgammaf.c: New file.
18835 * math/w_lgammal.c: New file.
18836
18837 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18838
18839 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
18840 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
18841 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
18842 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
18843 * sysdeps/ieee754/flt-32/w_logf.c: New file.
18844 * sysdeps/ieee754/flt-32/w_powf.c: New file.
18845 * sysdeps/i386/fpu/w_log2f.c: New file.
18846 * sysdeps/i386/fpu/w_logf.c: New file.
18847 * sysdeps/i386/fpu/w_powf.c: New file.
18848 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
18849 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
18850 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
18851
18852 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18853 H.J. Lu <hongjiu.lu@intel.com>
18854
18855 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
18856 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
18857 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
18858 * sysdeps/ieee754/flt-32/w_expf.c: New file.
18859 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
18860 the new expf code.
18861 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
18862 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
18863 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
18864 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
18865 * sysdeps/i386/fpu/w_exp2f.c: New file.
18866 * sysdeps/i386/fpu/w_expf.c: New file.
18867 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
18868 * sysdeps/x86_64/fpu/w_expf.c: New file.
18869
18870 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18871
18872 * math/Versions (logf): New libm symbol at GLIBC_2.27.
18873 (log2f): Likewise.
18874 (powf): Likewise.
18875 * math/w_log2f.c: New file.
18876 * math/w_logf.c: New file.
18877 * math/w_powf.c: New file.
18878 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
18879 * math/w_logf_compat.c (__logf_compat): Likewise.
18880 * math/w_powf_compat.c (__powf_compat): Likewise.
18881 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
18882 * sysdeps/ia64/fpu/e_logf.S: Likewise.
18883 * sysdeps/ia64/fpu/e_powf.S: Likewise.
18884 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
18885 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18886 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18887 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18888 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18889 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18890 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18891 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18892 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18893 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18894 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18895 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18897 Likewise.
18898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18899 Likewise.
18900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18901 Likewise.
18902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18903 Likewise.
18904 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18905 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18910 Likewise.
18911 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18912 Likewise.
18913 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18914 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18915 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18916
18917 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18918
18919 * sysdeps/powerpc/powerpc64/multiarch/Makefile
18920 (sysdep_routines): Add memrchr_power8.
18921 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
18922 (memrchr): Add __memrchr_power8 to list of memrchr functions.
18923 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
18924 New file.
18925 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
18926 (memrchr): Add __memrchr_power8 to ifunc list.
18927 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
18928
18929 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18930
18931 [BZ #18822]
18932 * sysdeps/unix/sysv/linux/posix_fadvise64.c
18933 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
18934 libc_hidden_def.
18935 * sysdeps/unix/sysv/linux/posix_fallocate64.c
18936 (__posix_fallocate64_l64): Likewise.
18937
18938 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18939
18940 [BZ #18822]
18941 * sysdeps/unix/sysv/linux/sched_setaffinity.c
18942 (__sched_setaffinity_new): Add libc_hidden_proto and
18943 libc_hidden_def.
18944
18945 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18946
18947 [BZ #18822]
18948 * include/glob.h (__glob64): Add libc_hidden_proto.
18949 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
18950 libc_hidden_def.
18951
18952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18953
18954 [BZ #18822]
18955 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
18956 attribute_hidden.
18957
18958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18959
18960 [BZ #18822]
18961 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
18962
18963 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18964
18965 [BZ #18822]
18966 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
18967 libc_hidden_def.
18968
18969 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18970
18971 [BZ #18822]
18972 * csu/version.c (__libc_print_version): Add attribute_hidden.
18973
18974 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18975
18976 [BZ #18822]
18977 * include/libc-internal.h (__init_misc): Add attribute_hidden.
18978
18979 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18980
18981 [BZ #18822]
18982 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
18983
18984 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18985
18986 [BZ #18822]
18987 * nscd/nscd_helper.c (__nis_hash): New prototype.
18988
18989 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18990
18991 [BZ #18822]
18992 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
18993 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
18994 libc_hidden_def.
18995 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
18996 * termios/tcgetattr.c (__tcgetattr): Likewise.
18997
18998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18999
19000 [BZ #18822]
19001 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
19002 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
19003 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
19004 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
19005 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
19006
19007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19008
19009 [BZ #18822]
19010 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
19011
19012 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19013
19014 [BZ #18822]
19015 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
19016 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
19017
19018 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19019
19020 [BZ #18822]
19021 * intl/hash-string.h (__hash_string): Add attribute_hidden.
19022
19023 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19024
19025 [BZ #18822]
19026 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
19027 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
19028
19029 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19030
19031 [BZ #18822]
19032 * include/ifreq.h: New file.
19033 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
19034 (__ifreq): Likewise.
19035 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
19036 (__ifreq): Likewise.
19037
19038 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19039
19040 [BZ #18822]
19041 * include/idna.h: New file.
19042 * inet/getnameinfo.c: Include <idna.h> instead of
19043 <libidn/idna.h>.
19044 (__idna_to_unicode_lzlz): Removed.
19045 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
19046 <libidn/idna.h>.
19047 (__idna_to_ascii_lz): Removed.
19048 (__idna_to_unicode_lzlz): Likewise.
19049
19050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19051
19052 [BZ #18822]
19053 * include/plural-exp.h: New file.
19054 * intl/plural-exp.c: Include <plural-exp.h> instead of
19055 "plural-exp.h".
19056
19057 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19058
19059 [BZ #18822]
19060 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
19061 "getsourcefilter.h".
19062 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
19063 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
19064 "getsourcefilter.h".
19065 (__get_sol): Removed.
19066
19067 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19068
19069 [BZ #18822]
19070 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
19071 to ...
19072 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
19073
19074 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19075
19076 [BZ #18822]
19077 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
19078 attribute_hidden.
19079
19080 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19081
19082 [BZ #18822]
19083 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
19084
19085 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19086
19087 [BZ #18822]
19088 * include/search.h (__tdestroy): Add libc_hidden_proto.
19089 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
19090
19091 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19092
19093 [BZ #18822]
19094 * include/assert.h (__assert_fail_base): Add attribute_hidden.
19095
19096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19097
19098 [BZ #18822]
19099 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
19100 attribute_hidden.
19101
19102 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19103
19104 [BZ #18822]
19105 * include/signal.h (__kill): Add libc_hidden_proto.
19106 (__sigblock): Likewise.
19107 (__sigprocmask): Likewise.
19108 (__sigaltstack): Likewise.
19109 * signal/kill.c (__kill): Add libc_hidden_def.
19110 * signal/sigblock.c (__sigblock): Likewise.
19111 * signal/sigprocmask.c (__sigprocmask): Likewise.
19112 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
19113 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
19114 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
19115 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
19116 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
19117 Likewise.
19118 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
19119 Likewise.
19120 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
19121 (__sigprocmask): Likewise.
19122 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
19123 Likewise.
19124 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
19125 (__sigprocmask): Likewise.
19126 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
19127 Likewise.
19128
19129 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19130
19131 [BZ #18822]
19132 * include/string.h (__strsep): Add libc_hidden_proto.
19133 * string/strsep.c (__strsep): Add libc_hidden_def.
19134
19135 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19136
19137 [BZ #18822]
19138 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
19139 attribute_hidden.
19140 (__spawni): Likewise.
19141
19142 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19143
19144 [BZ #18822]
19145 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
19146 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
19147 libc_hidden_def.
19148
19149 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19150
19151 [BZ #18822]
19152 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
19153
19154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19155
19156 [BZ #18822]
19157 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
19158 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
19159 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
19160 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
19161 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
19162 Likewise.
19163 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
19164 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
19165
19166 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19167
19168 [BZ #18822]
19169 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
19170 (__dcigettext): Likewise.
19171
19172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19173
19174 [BZ #18822]
19175 * include/sys/sysinfo.h (__get_nprocs_conf): Add
19176 libc_hidden_proto.
19177 (__get_nprocs): Likewise.
19178 (__get_phys_pages): Likewise.
19179 (__get_avphys_pages): Likewise.
19180 (__get_child_max): Add attribute_hidden.
19181 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
19182 (__get_nprocs): Likewise.
19183 (__get_phys_pages): Likewise.
19184 (__get_avphys_pages): Likewise.
19185 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
19186 libc_hidden_def.
19187 (__get_nprocs): Likewise.
19188 (__get_phys_pages): Likewise.
19189 (__get_avphys_pages): Likewise.
19190 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
19191 libc_hidden_def.
19192 (__get_nprocs_conf): Likewise.
19193 (__get_phys_pages): Likewise.
19194 (__get_avphys_pages): Likewise.
19195
19196 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19197
19198 [BZ #18822]
19199 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
19200 attribute_hidden.
19201 (__netlink_close): Likewise.
19202 (__netlink_free_handle): Likewise.
19203 (__netlink_request): Likewise.
19204
19205 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19206
19207 [BZ #18822]
19208 * include/rpc/rpc.h (__rpc_thread_variables): Add
19209 attribute_hidden.
19210 (__rpc_thread_svc_cleanup): Likewise.
19211 (__rpc_thread_clnt_cleanup): Likewise.
19212 (__rpc_thread_key_cleanup): Likewise.
19213
19214 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19215
19216 [BZ #18822]
19217 * include/sys/uio.h (__readv): Add libc_hidden_proto.
19218 (__writev): Likewise.
19219 * misc/readv.c (__readv): Add libc_hidden_def.
19220 * misc/writev.c (__writev): Likewise.
19221 * sysdeps/posix/readv.c (__readv): Likewise.
19222 * sysdeps/posix/writev.c (__writev): Likewise.
19223 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
19224 (__readv): Likewise.
19225 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
19226 (__writev): Likewise.
19227
19228 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19229
19230 [BZ #18822]
19231 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
19232 (__regcomp): Add libc_hidden_proto.
19233 (__regexec): Likewise.
19234 (__regfree): Likewise.
19235 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
19236 (__regfree): Likewise.
19237 * posix/regexec.c (__regexec): Likewise.
19238
19239 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19240
19241 [BZ #18822]
19242 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
19243 (__getutent): Likewise.
19244 (__getutid): Likewise.
19245 (__getutline): Likewise.
19246 (__pututline): Likewise.
19247 (__getutent_r): Likewise.
19248 (__getutid_r): Likewise.
19249 (__getutline_r): Likewise.
19250 (__utmpname): Add attribute_hidden.
19251 (__setutent): Likewise.
19252 (__endutent): Likewise.
19253 * login/getutent.c (__getutent): Add libc_hidden_def.
19254 * login/getutent_r.c (__getutent_r): Likewise.
19255 (__pututline): Likewise.
19256 * login/getutid.c (__getutid): Likewise.
19257 * login/getutid_r.c (__getutid_r): Likewise.
19258 * login/getutline.c (__getutline): Likewise.
19259 * login/getutline_r.c (__getutline_r): Likewise.
19260 * login/updwtmp.c (__updwtmp): Likewise.
19261
19262 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19263
19264 [BZ #18822]
19265 * include/dirent.h (__opendir): Always add attribute_hidden.
19266 (__fdopendir): Likewise.
19267 (__closedir): Likewise.
19268 (__readdir): Likewise.
19269 (__readdir64): Add libc_hidden_proto.
19270 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
19271 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
19272 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
19273 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
19274 New alias.
19275
19276 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19277
19278 [BZ #18822]
19279 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
19280 * include/netdb.h (__gethostbyaddr_r): Likewise.
19281 (__gethostbyname_r): Likewise.
19282 (__gethostbyname2_r): Likewise.
19283 (__getnetbyaddr_r): Likewise.
19284 (__getnetbyname_r): Likewise.
19285 (__getservbyname_r): Likewise.
19286 (__getservbyport_r): Likewise.
19287 (__getprotobyname_r): Likewise.
19288 (__getprotobynumber_r): Likewise.
19289 (__getnetgrent_r): Likewise.
19290 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
19291 (__getrpcbynumber_r): Likewise.
19292 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
19293
19294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19295
19296 [BZ #18822]
19297 * include/stdio.h (__fcloseall): Add attribute_hidden.
19298 (__getline): Likewise.
19299 (__path_search): Likewise.
19300 (__gen_tempname): Likewise.
19301 (__libc_message): Likewise.
19302 (__flockfile): Likewise.
19303 (__funlockfile): Likewise.
19304 (__fxprintf): Likewise.
19305 (__fxprintf_nocancel): Likewise.
19306
19307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19308
19309 [BZ #18822]
19310 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
19311 (__sgetsgent_r): Likewise.
19312
19313 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19314
19315 [BZ #18822]
19316 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
19317 (__statfs64): Likewise.
19318 (__fstatfs64): Likewise.
19319 * include/sys/statvfs.h (__statvfs64): Likewise.
19320 (__fstatvfs64): Likewise.
19321 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
19322 (__statfs_filesize_max): Likewise.
19323 (__statfs_symlinks): Likewise.
19324 (__statfs_chown_restricted): Likewise.
19325
19326 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19327
19328 [BZ #18822]
19329 * include/time.h (__tzstring): Add attribute_hidden.
19330 (__tzfile_read): Likewise.
19331 (__tzfile_compute): Likewise.
19332 (__tzfile_default): Likewise.
19333 (__tzset_parse_tz): Likewise.
19334 (__offtime): Likewise.
19335 (__asctime_r): Likewise.
19336 (__tzset): Likewise.
19337 (__tz_convert): Likewise.
19338 (__getdate_r): Likewise.
19339 (__getclktck): Likewise.
19340
19341 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19342
19343 [BZ #18822]
19344 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
19345 (__nscd_unmap): Likewise.
19346 (__nscd_cache_search): Likewise.
19347 (__nscd_get_nl_timestamp): Likewise.
19348 (__nscd_getpwnam_r): Likewise.
19349 (__nscd_getpwuid_r): Likewise.
19350 (__nscd_getgrnam_r): Likewise.
19351 (__nscd_getgrgid_r): Likewise.
19352 (__nscd_gethostbyname_r): Likewise.
19353 (__nscd_gethostbyname2_r): Likewise.
19354 (__nscd_gethostbyaddr_r): Likewise.
19355 (__nscd_getai): Likewise.
19356 (__nscd_getgrouplist): Likewise.
19357 (__nscd_getservbyname_r): Likewise.
19358 (__nscd_getservbyport_r): Likewise.
19359 (__nscd_innetgr): Likewise.
19360 (__nscd_setnetgrent): Likewise.
19361
19362 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19363
19364 [BZ #18822]
19365 * include/gmp.h: Declare internal functions only if _ISOMAC is
19366 undefined.
19367 (__mpn_extract_double): Add attribute_hidden.
19368 (__mpn_extract_long_double): Likewise.
19369 (__mpn_extract_float128): Likewise.
19370 (__mpn_construct_float): Likewise.
19371 (__mpn_construct_double): Likewise.
19372 (__mpn_construct_long_double): Likewise.
19373 (__mpn_construct_float128): Likewise.
19374 (mpn_add_1): Likewise.
19375 (mpn_addmul_1): Likewise.
19376 (mpn_add_n): Likewise.
19377 (mpn_cmp): Likewise.
19378 (mpn_divrem): Likewise.
19379 (mpn_lshift): Likewise.
19380 (mpn_mul): Likewise.
19381 (mpn_mul_1): Likewise.
19382 (mpn_rshift): Likewise.
19383 (mpn_sub_1): Likewise.
19384 (mpn_submul_1): Likewise.
19385 (mpn_sub_n): Likewise.
19386
19387 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19388
19389 [BZ #18822]
19390 * include/wchar.h (__wcsnlen): Add attribute_hidden.
19391 (__wcscat): Likewise.
19392 (__btowc): Likewise.
19393 (__wcrtomb): Likewise.
19394 (__mbsrtowcs): Likewise.
19395 (__wcsrtombs): Likewise.
19396 (__mbsnrtowcs): Likewise.
19397 (__wcsnrtombs): Likewise.
19398 (__wcsncpy): Likewise.
19399 (__wcpncpy): Likewise.
19400 (__wmemcpy): Likewise.
19401 (__wmempcpy): Likewise.
19402 (__wmemmove): Likewise.
19403 (__wcschrnul): Likewise.
19404 (__vfwscanf): Likewise.
19405 (__vswprintf): Likewise.
19406 (__fwprintf): Likewise.
19407 (__vfwprintf): Likewise.
19408
19409 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19410
19411 [BZ #18822]
19412 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
19413 (__getgrgid_r): Likewise.
19414 (__getgrnam_r): Likewise.
19415 * include/pwd.h (__getpwuid_r): Likewise.
19416 (__getpwnam_r): Likewise.
19417 (__fgetpwent_r): Likewise.
19418 * include/shadow.h (__getspnam_r): Likewise.
19419 (__sgetspent_r): Likewise.
19420 (__fgetspent_r): Likewise.
19421
19422 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19423
19424 [BZ #18822]
19425 * include/unistd.h (__access): Add attribute_hidden.
19426 (__lseek64): Likewise.
19427 (__libc_pread64): Likewise.
19428 (__pipe2): Likewise.
19429 (__sleep): Likewise.
19430 (__chdir): Likewise.
19431 (__fchdir): Likewise.
19432 (__getcwd): Likewise.
19433 (__rmdir): Likewise.
19434 (__execvpe): Likewise.
19435 (__execve): Likewise.
19436 (__setsid): Likewise.
19437 (__getuid): Likewise.
19438 (__geteuid): Likewise.
19439 (__getgid): Likewise.
19440 (__getegid): Likewise.
19441 (__getgroups): Likewise.
19442 (__group_member): Likewise.
19443 (__ttyname_r): Likewise.
19444 (__isatty): Likewise.
19445 (__readlink): Likewise.
19446 (__unlink): Likewise.
19447 (__gethostname): Likewise.
19448 (__profil): Likewise.
19449 (__getdtablesize): Likewise.
19450 (__brk): Likewise.
19451 (__ftruncate): Likewise.
19452 (__ftruncate64): Likewise.
19453
19454 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19455
19456 [BZ #18822]
19457 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
19458 * argp/argp-fs-xinl.c: Likewise.
19459 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
19460 * argp/argp-parse.c: Include <argp.h>.
19461 * argp/argp-xinl.c: Likewise.
19462 * include/argp-fmtstream.h: New file.
19463 * include/argp.h (__argp_error): Add attribute_hidden.
19464 (__argp_failure): Likewise.
19465 (__argp_input): Likewise.
19466 (__argp_state_help): Likewise.
19467
19468 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19469
19470 [BZ #18822]
19471 * include/wchar.h (____wcstof_l_internal): New prototype.
19472 (____wcstod_l_internal): Likewise.
19473 (____wcstold_l_internal): Likewise.
19474 (____wcstol_l_internal): Likewise.
19475 (____wcstoul_l_internal): Likewise.
19476 (____wcstoll_l_internal): Likewise.
19477 (____wcstoull_l_internal): Likewise.
19478 (____wcstof128_l_internal): Likewise.
19479 * sysdeps/ieee754/float128/wcstof128.c
19480 (____wcstof128_l_internal): Removed.
19481 * sysdeps/ieee754/float128/wcstof128_l.c
19482 (____wcstof128_l_internal): Likewise.
19483 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
19484 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
19485 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
19486 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
19487 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
19488 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
19489 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
19490 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
19491 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
19492 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
19493
19494 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19495
19496 [BZ #18822]
19497 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
19498 instead of <sys/statvfs.h>.
19499 (__internal_statvfs): Removed.
19500 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
19501 instead of <sys/statvfs.h>.
19502 (__internal_statvfs64): Removed.
19503 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
19504 "internal_statvfs.h" instead of <sys/statvfs.h>.
19505 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
19506 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
19507 instead of <sys/statvfs.h>.
19508 (__internal_statvfs): Removed.
19509 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
19510 instead of <sys/statvfs.h>.
19511 (__internal_statvfs64): Removed.
19512
19513 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19514
19515 [BZ #18822]
19516 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
19517 (__gconv_close): Likewise.
19518 (__gconv): Likewise.
19519 (__gconv_find_transform): Likewise.
19520 (__gconv_lookup_cache): Likewise.
19521 (__gconv_compare_alias_cache): Likewise.
19522 (__gconv_load_cache): Likewise.
19523 (__gconv_get_path): Likewise.
19524 (__gconv_close_transform): Likewise.
19525 (__gconv_release_cache): Likewise.
19526 (__gconv_find_shlib): Likewise.
19527 (__gconv_release_shlib): Likewise.
19528 (__gconv_get_builtin_trans): Likewise.
19529 (__gconv_compare_alias): Likewise.
19530 * include/dlfcn.h (_dlerror_run): Likewise.
19531 * include/stdio.h (__fortify_fail_abort): Likewise.
19532 * include/time.h (__tz_compute): Likewise.
19533 (__strptime_internal): Likewise.
19534 * intl/gettextP.h (_nl_find_domain): Likewise.
19535 (_nl_load_domain): Likewise.
19536 (_nl_find_msg): Likewise.
19537 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
19538 (EXTRACT_PLURAL_EXPRESSION): Likewise.
19539 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
19540 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
19541 (__gai_find_request): Likewise.
19542 (__gai_remove_request): Likewise.
19543 (__gai_notify): Likewise.
19544 (__gai_notify_only): Likewise.
19545 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
19546 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
19547 (_dl_non_dynamic_init): Likewise.
19548 (_dl_aux_init): Likewise.
19549 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
19550 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
19551 Likewise.
19552 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
19553 (__wcsmbs_clone_conv): Likewise.
19554 (__wcsmbs_named_conv): Likewise.
19555
19556 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19557
19558 [BZ #18822]
19559 * include/stdlib.h (__random): Add attribute_hidden.
19560 (__random_r): Likewise.
19561 (__srandom_r): Likewise.
19562 (__initstate_r): Likewise.
19563 (__setstate_r): Likewise.
19564 (__erand48_r): Likewise.
19565 (__nrand48_r): Likewise.
19566 (__jrand48_r): Likewise.
19567 (__srand48_r): Likewise.
19568 (__seed48_r): Likewise.
19569 (__lcong48_r): Likewise.
19570 (__drand48_iterate): Likewise.
19571 (__setenv): Likewise.
19572 (__unsetenv): Likewise.
19573 (__clearenv): Likewise.
19574 (__ptsname_r): Likewise.
19575 (__posix_openpt): Likewise.
19576 (__add_to_environ): Likewise.
19577 (__realpath): Add libc_hidden_proto.
19578 (__ecvt_r): Likewise.
19579 (__fcvt_r): Likewise.
19580 (__qecvt_r): Likewise.
19581 (__qfcvt_r): Likewise.
19582 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
19583 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
19584
19585 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19586
19587 [BZ #18822]
19588 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
19589 * include/time.h (__mktime_internal): Likewise.
19590 * libio/iolibio.h (__fopen_internal): Likewise.
19591
19592 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
19593
19594 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
19595 pointer in frame.
19596 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
19597 Correct offset used to restore PIC register.
19598
19599 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
19600
19601 [BZ libc/22165]
19602 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
19603 code to load address of __getcontext_ret when generating PIC code.
19604
19605 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
19606
19607 * elf/Makefile (tests-static-internal): Add
19608 tst-tls1-static-non-pie.
19609 (LDFLAGS-tst-tls1-static-non-pie): New.
19610 * elf/tst-tls1-static-non-pie.c: New file.
19611
19612 2017-09-29 Joseph Myers <joseph@codesourcery.com>
19613
19614 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
19615 (asinh): Define using libm_alias_double.
19616 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
19617 (cbrt): Define using libm_alias_double.
19618 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
19619 <libm-alias-double.h>.
19620 (copysign): Define using libm_alias_double.
19621 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
19622 (erf): Define using libm_alias_double.
19623 (erfc): Likewise.
19624 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
19625 (expm1): Define using libm_alias_double.
19626 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
19627 (fabs): Define using libm_alias_double.
19628 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
19629 libm_alias_double.
19630 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
19631 <libm-alias-double.h>.
19632 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
19633 libm_alias_double.
19634 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
19635 <libm-alias-double.h>.
19636 (getpayload): Define using libm_alias_double.
19637 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
19638 <libm-alias-double.h>.
19639 (llrint): Define using libm_alias_double.
19640 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
19641 (lrint): Define using libm_alias_double.
19642 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
19643 <libm-alias-double.h>.
19644 (nextup): Define using libm_alias_double.
19645 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
19646 <libm-alias-double.h>.
19647 (roundeven): Define using libm_alias_double.
19648 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
19649 libm_alias_double.
19650 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
19651 <libm-alias-double.h>.
19652 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
19653 using libm_alias_double.
19654 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
19655 (cos): Define using libm_alias_double.
19656 (sin): Likewise.
19657 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
19658 <libm-alias-double.h>.
19659 (sincos): Define using libm_alias_double.
19660 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
19661 (tanh): Define using libm_alias_double.
19662 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
19663 <libm-alias-double.h>.
19664 (totalorder): Define using libm_alias_double.
19665 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
19666 <libm-alias-double.h>.
19667 (totalordermag): Define using libm_alias_double.
19668 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
19669 libm_alias_double.
19670 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
19671 libm_alias_double.
19672 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
19673 <libm-alias-double.h>.
19674 (getpayload): Define using libm_alias_double.
19675 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
19676 <libm-alias-double.h>.
19677 (roundeven): Define using libm_alias_double.
19678 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
19679 <libm-alias-double.h>.
19680 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
19681 <libm-alias-double.h>.
19682 (totalorder): Define using libm_alias_double.
19683 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
19684 <libm-alias-double.h>.
19685 (totalordermag): Define using libm_alias_double.
19686 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
19687 libc compat symbol here.
19688 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
19689 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
19690 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
19691 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
19692 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
19693 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
19694 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
19695 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
19696 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
19697 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
19698
19699 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
19700
19701 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
19702 _dl_relocate_static_pie instead of _dl_start to compute load
19703 address in static PIE. Return 0 if _DYNAMIC is undefined for
19704 static executable.
19705
19706 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
19707
19708 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
19709 _DYNAMIC is undefined for static executable.
19710
19711 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
19712
19713 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
19714
19715 2017-09-29 Joseph Myers <joseph@codesourcery.com>
19716
19717 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19718
19719 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
19720
19721 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
19722 (__ieee754_lgamma_r): Use fabs rather than __fabs.
19723 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
19724 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
19725 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
19726 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
19727 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
19728 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
19729 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
19730 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
19731 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
19732 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
19733 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
19734 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
19735 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
19736 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
19737 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
19738
19739 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
19740
19741 * math/bits/cmathcalls.h (cimag): Remove inline.
19742 (creal): Remove inline.
19743 (conj): Remove inline.
19744
19745 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
19746
19747 * math/Makefile (type-float-routines): Add e_powf_log2_data.
19748 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
19749 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
19750 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
19751 (issignalingf_inline): Likewise.
19752 (POWF_LOG2_TABLE_BITS): Likewise.
19753 (POWF_LOG2_POLY_ORDER): Likewise.
19754 (POWF_SCALE_BITS): Likewise.
19755 (POWF_SCALE): Likewise.
19756 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
19757 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
19758 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
19759
19760 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
19761
19762 * math/Makefile (type-float-routines): Add e_log2f_data.
19763 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
19764 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
19765 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
19766 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
19767 * sysdeps/i386/fpu/e_log2f_data.c: New file.
19768 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
19769 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
19770
19771 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
19772
19773 * math/Makefile (type-float-routines): Add e_logf_data.
19774 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
19775 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
19776 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
19777 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
19778 * sysdeps/i386/fpu/e_logf_data.c: New file.
19779 * sysdeps/ia64/fpu/e_logf_data.c: New file.
19780 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
19781
19782 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
19783
19784 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
19785 undefined _DYNAMIC in PIE libc.a.
19786 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
19787 Likewse.
19788
19789 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
19790
19791 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
19792 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
19793 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
19794 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
19795 (__signbit): Remove.
19796 (__signbitl): Remove.
19797 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
19798 (__signbit): Remove.
19799 (__signbitl): Remove.
19800 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
19801 (__signbit): Remove.
19802 (__signbitl): Remove.
19803 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
19804 (__signbit): Remove.
19805 (__signbitl): Remove.
19806 * sysdeps/tile/bits/mathinline.h: Delete file.
19807 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
19808 (__signbit): Remove.
19809 (__signbitl): Remove.
19810
19811 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
19812
19813 * math/math.h: Improve handling of C99 isgreater macros.
19814 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
19815 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
19816 * sysdeps/powerpc/bits/mathinline.h: Likewise.
19817 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
19818 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
19819
19820 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
19821
19822 * sysdeps/aarch64/libm-test-ulps: Update.
19823
19824 2017-09-28 Joseph Myers <joseph@codesourcery.com>
19825
19826 [BZ #22225]
19827 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
19828 math_opt_barrier on argument when doing arithmetic on it.
19829 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19830 Likewise. Use math_force_eval not math_opt_barrier after
19831 arithmetic.
19832 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
19833 math_opt_barrier on argument when doing arithmetic on it.
19834 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
19835 Likewise.
19836
19837 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
19838
19839 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
19840 libc_hidden_def.
19841 (__freeifaddrs): Likewise.
19842
19843 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19844
19845 * include/dirent.h (__dirfd): New declaration.
19846 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
19847 alias.
19848 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
19849 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
19850 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
19851 * include/unistd.h (__revoke): New declaration.
19852 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
19853 alias.
19854 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
19855 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
19856 revoke.
19857 * include/dirent.h (__seekdir): New declaration.
19858 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
19859 redefine as weak alias.
19860 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
19861 of seekdir.
19862 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
19863 and use libc_hidden_def on them.
19864 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
19865 them.
19866 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
19867 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
19868 instead of getifaddrs and freeifaddrs.
19869
19870 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
19871
19872 [BZ #18822]
19873 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
19874 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
19875 (__dso_handle): Remove declaration.
19876 * dlfcn/tstatexit.c (__dso_handle): Removed.
19877 (main): Don't check __dso_handle.
19878 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
19879 (main): Don't check __dso_handle.
19880 * include/dso_handle.h: New file.
19881 * malloc/mtrace.c: Include <dso_handle.h>.
19882 (mtrace): Pass __dso_handle directly.
19883 * nptl/pthread_atfork.c: Include <dso_handle.h>.
19884 (__dso_handle): Remove declaration.
19885 (__pthread_atfork): Pass __dso_handle directly.
19886 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
19887 (__dso_handle): Removed.
19888 * posix/wordexp-test.c: Include <dso_handle.h>.
19889 (__dso_handle): Remove declaration.
19890 (__app_register_atfork): Pass __dso_handle directly.
19891 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
19892 (__dso_handle): Remove declaration.
19893 (at_quick_exit): Pass __dso_handle directly.
19894 * stdlib/atexit.c: Include <dso_handle.h>.
19895 (__dso_handle): Remove declaration.
19896 (atexit): Pass __dso_handle directly.
19897 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
19898 (__dso_handle): Removed.
19899
19900 2017-09-26 Joseph Myers <joseph@codesourcery.com>
19901
19902 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
19903 using VDSO.
19904
19905 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
19906
19907 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
19908 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
19909 values to correct default value for given type.
19910
19911 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
19912
19913 [BZ #22101]
19914 * elf/Makefile (tests): Add tst-debug1.
19915 ($(objpfx)tst-debug1): New.
19916 ($(objpfx)tst-debug1.out): Likewise.
19917 ($(objpfx)tst-debug1mod1.so): Likewise.
19918 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
19919 with p_filesz == 0.
19920 * elf/tst-debug1.c: New file.
19921
19922 2017-09-26 Joseph Myers <joseph@codesourcery.com>
19923
19924 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
19925 Define using __ifunc.
19926
19927 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19928
19929 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
19930 exp2f() values.
19931
19932 2017-09-26 Joseph Myers <joseph@codesourcery.com>
19933
19934 [BZ #22156]
19935 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
19936
19937 2017-09-26 Florian Weimer <fweimer@redhat.com>
19938
19939 * resolv/Makefile (tests-internal): Fix typo in comment.
19940
19941 2017-09-26 Florian Weimer <fweimer@redhat.com>
19942
19943 * resolv/nss_dns/dns-host.c: Fix typo in comment.
19944
19945 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19946
19947 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
19948 Use an union instead of a max_align_t array for __space,
19949 so that __space is the same size on all platforms.
19950 * malloc/scratch_buffer_grow_preserve.c
19951 (__libc_scratch_buffer_grow_preserve): Likewise.
19952
19953 [BZ #22183]
19954 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
19955 version to 2.
19956 * posix/Makefile (routines): Add glob-lstat-compat and
19957 glob64-lstat-compat.
19958 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
19959 * posix/glob-lstat-compat.c: New file.
19960 * posix/glob64-lstat-compat.c: Likewise.
19961 * posix/tst-glob_lstat_compat.c: Likewise.
19962 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
19963 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
19964 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
19965 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
19966 Likewise.
19967 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
19968 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
19969 * posix/glob.c (glob_lstat): New function.
19970 (glob): Rename to __glob and add versioned symbol to 2.27.
19971 (glob_in_dir): Use glob_lstat.
19972 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
19973 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19974 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
19975 2.27.
19976 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
19977 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
19978 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
19979 gl_lstat on glob call.
19980 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
19981 and glob64 symbols.
19982 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19983 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19984 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19985 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19986 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19987 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19988 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19989 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19990 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
19991 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19992 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19993 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19994 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19995 Likewise.
19996 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
19997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
19998 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19999 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20000 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20001 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20002 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20003 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
20004 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
20005 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20006 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20007 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20008
20009 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
20010
20011 * configure.ac (AS): Require binutils 2.25 or later.
20012 * configure: Regenerated.
20013
20014 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
20015
20016 [BZ #22207]
20017 * stdlib/test-atexit-race-common.c (do_test): Minimize required
20018 VM size.
20019
20020 2017-09-25 DJ Delorie <dj@redhat.com>
20021
20022 [BZ #22161]
20023 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
20024 resetting timeout.
20025
20026 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
20027
20028 * sysdeps/ieee754/dbl-64/sincos32.h
20029 [SINCCOS32_H]: Remove define.
20030 [SINCOS32_H]: Define.
20031
20032 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
20033
20034 * math/Versions (expf): New libm symbol at GLIBC_2.27.
20035 (exp2f): Likewise.
20036 * math/w_exp2f.c: New file.
20037 * math/w_expf.c: New file.
20038 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
20039 * math/w_expf_compat.c (__expf_compat): Likewise.
20040 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
20041 * sysdeps/ia64/fpu/e_expf.S: Likewise.
20042 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
20043 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20044 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20045 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20046 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20047 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20048 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20049 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20050 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20051 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20052 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20053 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20055 Likewise.
20056 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20057 Likewise.
20058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20059 Likewise.
20060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20061 Likewise.
20062 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20063 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20064 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20065 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20066 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20067 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20068 Likewise.
20069 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20070 Likewise.
20071 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20072 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20073 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20074
20075 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
20076
20077 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
20078 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
20079 (roundtoint, converttoint): Likewise.
20080 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
20081 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
20082 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
20083 * sysdeps/ieee754/flt-32/math_config.h: New file.
20084 * sysdeps/ieee754/flt-32/math_errf.c: New file.
20085 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
20086 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
20087 * sysdeps/i386/fpu/math_errf.c: New file.
20088 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
20089 * sysdeps/ia64/fpu/math_errf.c: New file.
20090 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
20091 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
20092
20093 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
20094
20095 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
20096 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
20097 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
20098 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
20099 to make sure that these symbols are defined.
20100 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
20101 of <limits.h>
20102 (__need_NULL): Do not define.
20103 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
20104 alignment.
20105 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
20106 CMGROUP_MAX, cmsgcred): Do not define.
20107 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
20108 NULL.
20109 * bits/socket.h: Likewise.
20110 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
20111 __gettimeofday instead of gettimeofday.
20112 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
20113 instead of settimeofday.
20114
20115 2017-09-22 Joseph Myers <joseph@codesourcery.com>
20116
20117 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
20118 (asinhf): Define using libm_alias_float.
20119 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
20120 (atanf): Define using libm_alias_float.
20121 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
20122 (cbrtf): Define using libm_alias_float.
20123 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
20124 (ceilf): Define using libm_alias_float.
20125 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
20126 <libm-alias-float.h>.
20127 (copysignf): Define using libm_alias_float.
20128 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
20129 (cosf): Define using libm_alias_float.
20130 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
20131 (erff): Define using libm_alias_float.
20132 (erfcf): Likewise.
20133 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
20134 (expm1f): Define using libm_alias_float.
20135 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
20136 (fabsf): Define using libm_alias_float.
20137 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
20138 (floorf): Define using libm_alias_float.
20139 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
20140 (frexpf): Define using libm_alias_float.
20141 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
20142 libm_alias_float.
20143 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
20144 <libm-alias-float.h>.
20145 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
20146 libm_alias_float.
20147 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
20148 <libm-alias-float.h>.
20149 (getpayloadf): Define using libm_alias_float.
20150 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
20151 <libm-alias-float.h>.
20152 (llrintf): Define using libm_alias_float.
20153 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
20154 <libm-alias-float.h>.
20155 (llroundf): Define using libm_alias_float.
20156 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
20157 (logbf): Define using libm_alias_float.
20158 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
20159 (lrintf): Define using libm_alias_float.
20160 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
20161 (lroundf): Define using libm_alias_float.
20162 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
20163 (modff): Define using libm_alias_float.
20164 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
20165 <libm-alias-float.h>.
20166 (nearbyintf): Define using libm_alias_float.
20167 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
20168 <libm-alias-float.h>.
20169 (nextafterf): Define using libm_alias_float.
20170 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
20171 <libm-alias-float.h>.
20172 (nextupf): Define using libm_alias_float.
20173 * sysdeps/ieee754/flt-32/s_remquof.c: Include
20174 <libm-alias-float.h>.
20175 (remquof): Define using libm_alias_float.
20176 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
20177 (rintf): Define using libm_alias_float.
20178 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
20179 <libm-alias-float.h>.
20180 (roundevenf): Define using libm_alias_float.
20181 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
20182 (roundf): Define using libm_alias_float.
20183 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
20184 using libm_alias_float.
20185 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
20186 <libm-alias-float.h>.
20187 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
20188 Define using libm_alias_float.
20189 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
20190 <libm-alias-float.h>.
20191 (sincosf): Define using libm_alias_float.
20192 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
20193 (sinf): Define using libm_alias_float.
20194 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
20195 (tanf): Define using libm_alias_float.
20196 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
20197 (tanhf): Define using libm_alias_float.
20198 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
20199 <libm-alias-float.h>.
20200 (totalorderf): Define using libm_alias_float.
20201 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
20202 <libm-alias-float.h>.
20203 (totalordermagf): Define using libm_alias_float.
20204 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
20205 (truncf): Define using libm_alias_float.
20206 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
20207 libm_alias_float.
20208 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
20209 libm_alias_float.
20210
20211 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20212
20213 [BZ #22146]
20214 math/math.h: Let fpclassify use the builtin in C++ mode, even
20215 when optimazing for size.
20216
20217 2017-09-22 Joseph Myers <joseph@codesourcery.com>
20218
20219 * csu/Makefile (generated): Do not add version-info.h.
20220 (before-compile): Likewise.
20221 (all-Banner-files): Remove variable.
20222 ($(objpfx)version-info.h): Remove rule.
20223 * csu/version.c (banner): Do not include "version-info.h".
20224 * libidn/Banner: Remove.
20225 * manual/contrib.texi (Simon Josefsson): New entry.
20226
20227 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20228
20229 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
20230 Remove conditionals on LDBL_MANT_DIG.
20231 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
20232 (__ieee754_lgammal_r): Likewise.
20233
20234 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20235
20236 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
20237 _Float128 and L().
20238 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
20239 _Float128 and L(). Replace _Float128 with long double and L(x)
20240 with xL, throughout the file.
20241 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
20242 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
20243 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
20244 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
20245
20246 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20247
20248 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
20249 sysdeps/ieee754/ldbl-128ibm.
20250 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
20251 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
20252 of including it. Keep _Float128 and L() intact. These will be
20253 reviewed by a separate patch.
20254 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
20255 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
20256 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
20257 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
20258
20259 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20260
20261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
20262 (__finitef128): Define to __redirect___finitef128.
20263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
20264 (__isinff128): Define to __redirect___isinff128.
20265 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
20266 (__isnanf128): Define to __redirect___isnanf128.
20267
20268 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20269
20270 * sysdeps/powerpc/powerpc64le/Makefile
20271 (CFLAGS-tst-strtod-nan-locale.c): New variable.
20272 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
20273
20274 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
20275 Carlos O'Donell <carlos@redhat.com>
20276
20277 [BZ #22180]
20278 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
20279 * stdlib/test-dlclose-exit-race.c: New file.
20280 * stdlib/test-dlclose-exit-race-helper.c: New file.
20281 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
20282
20283 2017-09-21 Joseph Myers <joseph@codesourcery.com>
20284
20285 * crypt/Banner: Remove file.
20286 * nptl/Banner: Likewise.
20287 * resolv/Banner: Likewise.
20288 * soft-fp/Banner: Likewise.
20289 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
20290 ($(objpfx)version.d): Remove dependency on banner.h.
20291 ($(objpfx)version.os): Likewise.
20292 * nptl/version.c (banner): Do not include banner.h.
20293 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
20294 Jelinek and BIND code.
20295
20296 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
20297 Carlos O'Donell <carlos@redhat.com>
20298
20299 * support/xdlfcn.h: New file.
20300 * support/xdlfcn.c: New file.
20301 * support/Makefile (libsupport-routines): Add xdlfcn.
20302 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
20303
20304 2017-09-20 Joseph Myers <joseph@codesourcery.com>
20305
20306 [BZ #20142]
20307 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20308 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
20309 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
20310 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
20311 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
20312 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
20313 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
20314 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
20315
20316 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
20317 Ricky Zhou <rickyz@google.com>
20318 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
20319
20320 [BZ #14333]
20321 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
20322 Remove atomics.
20323 (__new_exitfn): Fail registration when we finished at_exit processing.
20324 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
20325 * stdlib/on_exit.c (__on_exit): Likewise.
20326 * stdlib/exit.c (__exit_funcs_done): New variable.
20327 (__run_exit_handlers): Use __exit_funcs_lock.
20328 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
20329 declarations.
20330 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
20331 (test-cxa_atexit-race, test-on_exit-race): New tests.
20332 * stdlib/test-atexit-race-common.c: New file.
20333 * stdlib/test-atexit-race.c: New file.
20334 * stdlib/test-at_quick_exit-race.c: New file.
20335 * stdlib/test-cxa_atexit-race.c: New file.
20336 * stdlib/test-on_exit-race.c: New file.
20337
20338 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20339
20340 * benchtests/Makefile: Add exp2f and log2f benchmarks.
20341 * benchtests/exp2f-inputs: Copy of expf-inputs.
20342 * benchtests/log2f-inputs: Copy of logf-inputs.
20343
20344 2017-09-19 Joseph Myers <joseph@codesourcery.com>
20345
20346 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
20347 Explicitly take address of first element of array arguments in
20348 call to INLINE_SYSCALL.
20349
20350 2017-09-19 Andreas Schwab <schwab@suse.de>
20351
20352 [BZ #22134]
20353 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
20354 execveat first.
20355 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
20356 unimplemented.
20357 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
20358 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
20359 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
20360 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
20361 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20362 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
20363 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20364 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
20365 * posix/Makefile (tests): Add tst-fexecve.
20366 * posix/tst-fexecve.c: New file.
20367
20368 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
20369
20370 * benchtests/Makefile: Add logf benchmark.
20371 * benchtests/logf-inputs: Add reduced trace from wrf_r.
20372
20373 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
20374
20375 * benchtests/Makefile: Add expf benchmark.
20376 * benchtests/expf-inputs: Add reduced trace from wrf_r.
20377
20378 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
20379
20380 * csu/Makefile: Add -funwind-tables to libc-start.c.
20381 * debug/Makefile: Add -funwind-tables to backtrace.c.
20382 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
20383 * sysdeps/arm/Makefile: Likewise.
20384 * sysdeps/i386/Makefile: Likewise.
20385 * sysdeps/m68k/Makefile: Likewise.
20386 * sysdeps/mips/Makefile: Likewise.
20387 * sysdeps/nios2/Makefile: Likewise.
20388 * sysdeps/sh/Makefile: Likewise.
20389 * sysdeps/sparc/Makefile: Likewise.
20390
20391 2017-09-19 Joseph Myers <joseph@codesourcery.com>
20392
20393 * benchtests/Makefile (bench-math): Add trunc and truncf.
20394 (CFLAGS-bench-trunc.c): New variable.
20395 (CFLAGS-bench-truncf.c): Likewise.
20396 * benchtests/trunc-inputs: New file.
20397 * benchtests/truncf-inputs: Likewise.
20398
20399 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20400
20401 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
20402
20403 2017-09-18 Joseph Myers <joseph@codesourcery.com>
20404
20405 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
20406 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
20407 redefine.
20408 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
20409 (exp10l): Define as weak alias.
20410 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
20411 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
20412 and redefine.
20413 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
20414 (remainderl): Define as weak alias.
20415
20416 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
20417 (fmal): Define using libm_alias_ldouble.
20418 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
20419 (acoshl): Define using libm_alias_ldouble.
20420 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
20421 (acosl): Define using libm_alias_ldouble.
20422 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
20423 (asinl): Define using libm_alias_ldouble.
20424 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
20425 (atan2l): Define using libm_alias_ldouble.
20426 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
20427 (atanhl): Define using libm_alias_ldouble.
20428 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
20429 (coshl): Define using libm_alias_ldouble.
20430 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
20431 (exp10l): Define using libm_alias_ldouble.
20432 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
20433 (exp2l): Define using libm_alias_ldouble.
20434 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
20435 (expl): Define using libm_alias_ldouble.
20436 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
20437 (fmodl): Define using libm_alias_ldouble.
20438 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
20439 (hypotl): Define using libm_alias_ldouble.
20440 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
20441 (j0l): Define using libm_alias_ldouble.
20442 (y0l): Likewise.
20443 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
20444 (j1l): Define using libm_alias_ldouble.
20445 (y1l): Likewise.
20446 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
20447 (jnl): Define using libm_alias_ldouble.
20448 (ynl): Likewise.
20449 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
20450 (log10l): Define using libm_alias_ldouble.
20451 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
20452 (log2l): Define using libm_alias_ldouble.
20453 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
20454 (logl): Define using libm_alias_ldouble.
20455 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
20456 (powl): Define using libm_alias_ldouble.
20457 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
20458 (remainderl): Define using libm_alias_ldouble.
20459 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
20460 (sinhl): Define using libm_alias_ldouble.
20461 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
20462 (sqrtl): Define using libm_alias_ldouble.
20463 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
20464 (tgammal): Define using libm_alias_ldouble.
20465 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
20466 (exp10l): Do not use long_double_symbol here.
20467 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
20468 [LIBM_SVID_COMPAT] (remainderl): Likewise.
20469 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
20470 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
20471 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
20472 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
20473 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
20474 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
20475 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
20476 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
20477 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
20478 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
20479 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
20480 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
20481 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
20482 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
20483 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
20484 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
20485 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
20486 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
20487 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
20488 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
20489
20490 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
20491
20492 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
20493 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
20494
20495 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20496
20497 * io/read.c (read): Add libc_hidden_weak.
20498 * sysdeps/mach/hurd/read.c (read): Likewise.
20499 * io/write.c (write): Likewise.
20500 * sysdeps/mach/hurd/write.c (write): Likewise.
20501 * io/pread64.c (__pread64): Likewise.
20502 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
20503 * posix/pread64.c (__pread64): Add libc_hidden_def.
20504
20505 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
20506
20507 * benchtests/scripts/compare_strings.py: New option -g.
20508 (draw_graph): Print a message that a graph is being generated.
20509 (process_results): Generate graph only if -g is passed.
20510 (main): Process option -g.
20511
20512 * benchtests/scripts/compare_strings.py (process_results):
20513 Better spacing for output.
20514
20515 * benchtests/scripts/compare_strings.py: Use argparse.
20516 * benchtests/README: Document existence of compare_strings.py.
20517
20518 2017-09-15 Joseph Myers <joseph@codesourcery.com>
20519
20520 * math/s_fma.c: Include <libm-alias-double.h>.
20521 (fma): Define using libm_alias_double.
20522 * math/s_nextafter.c: Include <libm-alias-double.h>.
20523 (nextafter): Define using libm_alias_double.
20524 * math/w_acos_compat.c: Include <libm-alias-double.h>.
20525 (acos): Define using libm_alias_double.
20526 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
20527 (aocsh): Define using libm_alias_double.
20528 * math/w_asin_compat.c: Include <libm-alias-double.h>.
20529 (asin): Define using libm_alias_double.
20530 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
20531 (atan2): Define using libm_alias_double.
20532 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
20533 (atanh): Define using libm_alias_double.
20534 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
20535 (cosh): Define using libm_alias_double.
20536 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
20537 (exp10): Define using libm_alias_double.
20538 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
20539 (exp2): Define using libm_alias_double.
20540 * math/w_exp_compat.c: Include <libm-alias-double.h>.
20541 (exp): Define using libm_alias_double.
20542 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
20543 (fmod): Define using libm_alias_double.
20544 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
20545 (hypot): Define using libm_alias_double.
20546 * math/w_j0_compat.c: Include <libm-alias-double.h>.
20547 (j0): Define using libm_alias_double.
20548 (y0): Likewise.
20549 * math/w_j1_compat.c: Include <libm-alias-double.h>.
20550 (j1): Define using libm_alias_double.
20551 (y1): Likewise.
20552 * math/w_jn_compat.c: Include <libm-alias-double.h>.
20553 (jn): Define using libm_alias_double.
20554 (yn): Likewise.
20555 * math/w_log10_compat.c: Include <libm-alias-double.h>.
20556 (log10): Define using libm_alias_double.
20557 * math/w_log2_compat.c: Include <libm-alias-double.h>.
20558 (log2): Define using libm_alias_double.
20559 * math/w_log_compat.c: Include <libm-alias-double.h>.
20560 (log): Define using libm_alias_double.
20561 * math/w_pow_compat.c: Include <libm-alias-double.h>.
20562 (pow): Define using libm_alias_double.
20563 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
20564 (remainder): Define using libm_alias_double.
20565 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
20566 (sinh): Define using libm_alias_double.
20567 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
20568 (sqrt): Define using libm_alias_double.
20569 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
20570 (tgamma): Define using libm_alias_double.
20571 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
20572 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
20573 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
20574 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
20575 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
20576 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
20577 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
20578 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
20579 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
20580 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
20581 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
20582 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
20583 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
20584 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
20585 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
20586 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
20587 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
20588 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
20589 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
20590 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
20591 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
20592 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
20593 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
20594 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
20595 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
20596
20597 * math/e_acoshl.c: Remove.
20598 * math/e_acosl.c: Likewise.
20599 * math/e_asinl.c: Likewise.
20600 * math/e_atan2l.c: Likewise.
20601 * math/e_atanhl.c: Likewise.
20602 * math/e_coshl.c: Likewise.
20603 * math/e_expl.c: Likewise.
20604 * math/e_fmodl.c: Likewise.
20605 * math/e_gammal_r.c: Likewise.
20606 * math/e_hypotl.c: Likewise.
20607 * math/e_j0l.c: Likewise.
20608 * math/e_j1l.c: Likewise.
20609 * math/e_jnl.c: Likewise.
20610 * math/e_lgammal_r.c: Likewise.
20611 * math/e_log10l.c: Likewise.
20612 * math/e_log2l.c: Likewise.
20613 * math/e_logl.c: Likewise.
20614 * math/e_powl.c: Likewise.
20615 * math/e_rem_pio2l.c: Likewise.
20616 * math/e_sinhl.c: Likewise.
20617 * math/e_sqrtf128.c: Likewise.
20618 * math/e_sqrtl.c: Likewise.
20619 * math/k_cosl.c: Likewise.
20620 * math/k_sinl.c: Likewise.
20621 * math/k_tanl.c: Likewise.
20622 * math/s_asinhl.c: Likewise.
20623 * math/s_atanl.c: Likewise.
20624 * math/s_cbrtl.c: Likewise.
20625 * math/s_erfl.c: Likewise.
20626 * math/s_expm1l.c: Likewise.
20627 * math/s_log1pl.c: Likewise.
20628 * math/s_tanhl.c: Likewise.
20629
20630 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20631
20632 [BZ #21745]
20633 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
20634 [$(subdir) = math] (sysdep_calls): New variable. Has the
20635 previous contents of sysdep_routines, but re-sorted..
20636 [$(subdir) = math] (sysdep_routines): Re-use the contents from
20637 sysdep_calls.
20638 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
20639 defined in sysdep_calls and replace by the respective m_* names.
20640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
20641 (compat_symbol): Undefine to avoid duplicated compat symbols in
20642 libc.
20643
20644 2017-09-15 Joseph Myers <joseph@codesourcery.com>
20645
20646 * math/s_fmaf.c: Include <libm-alias-float.h>.
20647 (fmaf): Define using libm_alias_float.
20648 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
20649 (acosf): Define using libm_alias_float.
20650 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
20651 (acoshf): Define using libm_alias_float.
20652 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
20653 (asinf): Define using libm_alias_float.
20654 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
20655 (atan2f): Define using libm_alias_float.
20656 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
20657 (atanhf): Define using libm_alias_float.
20658 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
20659 (coshf): Define using libm_alias_float.
20660 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
20661 (exp10f): Define using libm_alias_float.
20662 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
20663 (fmodf): Define using libm_alias_float.
20664 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
20665 (hypotf): Define using libm_alias_float.
20666 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
20667 (j0f): Define using libm_alias_float.
20668 (y0f): Likewise.
20669 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
20670 (j1f): Define using libm_alias_float.
20671 (y1f): Likewise.
20672 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
20673 (jnf): Define using libm_alias_float.
20674 (ynf): Likewise.
20675 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
20676 (log10f): Define using libm_alias_float.
20677 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
20678 (log2f): Define using libm_alias_float.
20679 * math/w_logf_compat.c: Include <libm-alias-float.h>.
20680 (logf): Define using libm_alias_float.
20681 * math/w_powf_compat.c: Include <libm-alias-float.h>.
20682 (powf): Define using libm_alias_float.
20683 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
20684 (remainderf): Define using libm_alias_float.
20685 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
20686 (sinhf): Define using libm_alias_float.
20687 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
20688 (sqrtf): Define using libm_alias_float.
20689 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
20690 (tgammaf): Define using libm_alias_float.
20691
20692 2017-09-14 Joseph Myers <joseph@codesourcery.com>
20693
20694 * include/math.h (roundeven): Change hidden_proto call to
20695 __roundeven.
20696 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
20697 alias.
20698 [NO_LONG_DOUBLE] (__j0l): New strong alias.
20699 (y0): Rename to __y0 and define as weak alias.
20700 [NO_LONG_DOUBLE] (__y0l): New strong alias.
20701 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
20702 alias.
20703 (y0f): Rename to __y0f and define as weak alias.
20704 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
20705 alias.
20706 [NO_LONG_DOUBLE] (__j1l): New strong alias.
20707 (y1): Rename to __y1 and define as weak alias.
20708 [NO_LONG_DOUBLE] (__y1l): New strong alias.
20709 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
20710 alias.
20711 (y1f): Rename to __y1f and define as weak alias.
20712 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
20713 alias.
20714 [NO_LONG_DOUBLE] (__jnl): New strong alias.
20715 (yn): Rename to __yn and define as weak alias.
20716 [NO_LONG_DOUBLE] (__ynl): New strong alias.
20717 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
20718 alias.
20719 (ynf): Rename to __ynf and define as weak alias.
20720 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
20721 (fromfp): Define as weak alias.
20722 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
20723 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
20724 (fromfpx): Define as weak alias.
20725 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
20726 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
20727 __getpayload and define as weak alias.
20728 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
20729 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
20730 __roundeven and define as weak alias.
20731 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
20732 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
20733 __setpayload.
20734 (setpayload): Define as weak alias.
20735 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
20736 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
20737 __setpayloadsig.
20738 (setpayloadsig): Define as weak alias.
20739 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
20740 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
20741 __totalorder and define as weak alias.
20742 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
20743 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
20744 to __totalordermag and define as weak alias.
20745 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
20746 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
20747 (ufromfp): Define as weak alias.
20748 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
20749 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
20750 __ufromfpx.
20751 (ufromfpx): Define as weak alias.
20752 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
20753 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
20754 Rename to __getpayload and define as weak alias.
20755 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
20756 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
20757 Rename to __roundeven and define as weak alias.
20758 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
20759 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
20760 Rename to __totalorder and define as weak alias.
20761 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
20762 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
20763 (totalordermag): Rename to __totalordermag and define as weak
20764 alias.
20765 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
20766 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
20767 macro.
20768 (__roundevenl): Likewise.
20769 (__totalorderl): Likewise.
20770 (__totalordermagl): Likewise
20771 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
20772 __fromfpf128.
20773 (fromfpf128): Define as weak alias.
20774 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
20775 __fromfpxf128.
20776 (fromfpxf128): Define as weak alias.
20777 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
20778 __setpayloadf128.
20779 (setpayloadf128): Define as weak alias.
20780 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
20781 __setpayloadsigf128.
20782 (setpayloadsigf128): Define as weak alias.
20783 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
20784 __ufromfpf128.
20785 (ufromfpf128): Define as weak alias.
20786 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
20787 __ufromfpxf128.
20788 (ufromfpxf128): Define as weak alias.
20789 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
20790 (fromfpf): Define as weak alias.
20791 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
20792 __fromfpxf.
20793 (fromfpxf): Define as weak alias.
20794 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
20795 __getpayloadf and define as weak alias.
20796 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
20797 __roundevenf and define as weak alias.
20798 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
20799 __setpayloadf.
20800 (setpayloadf): Define as weak alias.
20801 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
20802 __setpayloadsigf.
20803 (setpayloadsigf): Define as weak alias.
20804 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
20805 __totalorderf and define as weak alias.
20806 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
20807 Rename to __totalordermagf and define as weak alias.
20808 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
20809 __ufromfpf.
20810 (ufromfpf): Define as weak alias.
20811 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
20812 __ufromfpxf.
20813 (ufromfpxf): Define as weak alias.
20814 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
20815 __fromfpl.
20816 (fromfpl): Define as weak alias.
20817 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
20818 __fromfpxl.
20819 (fromfpxl): Define as weak alias.
20820 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
20821 to __getpayloadl and define as weak alias.
20822 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
20823 __roundevenl and define as weak alias.
20824 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
20825 __setpayloadl.
20826 (setpayloadl): Define as weak alias.
20827 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
20828 __setpayloadsigl.
20829 (setpayloadsigl): Define as weak alias.
20830 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
20831 to __totalorderl and define as weak alias.
20832 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
20833 Rename to __totalordermagl and define as weak alias.
20834 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
20835 __ufromfpl.
20836 (ufromfpl): Define as weak alias.
20837 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
20838 __ufromfpxl.
20839 (ufromfpxl): Define as weak alias.
20840 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
20841 __fromfpl.
20842 (fromfpl): Define as weak alias.
20843 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
20844 __fromfpxl.
20845 (fromfpxl): Define as weak alias.
20846 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
20847 Rename to __getpayloadl and define as weak alias.
20848 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
20849 to __roundevenl and define as weak alias. Call __roundeven
20850 instead of roundeven.
20851 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
20852 __setpayloadl.
20853 (setpayloadl): Define as weak alias.
20854 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
20855 __setpayloadsigl.
20856 (setpayloadsigl): Define as weak alias.
20857 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
20858 Rename to __totalorderl and define as weak alias.
20859 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
20860 Rename to __totalordermagl and define as weak alias.
20861 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
20862 __ufromfpl.
20863 (ufromfpl): Define as weak alias.
20864 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
20865 __ufromfpxl.
20866 (ufromfpxl): Define as weak alias.
20867 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
20868 __fromfpl.
20869 (fromfpl): Define as weak alias.
20870 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
20871 __fromfpxl.
20872 (fromfpxl): Define as weak alias.
20873 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
20874 __getpayloadl and define as weak alias.
20875 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
20876 __roundevenl and define as weak alias.
20877 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
20878 __setpayloadl.
20879 (setpayloadl): Define as weak alias.
20880 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
20881 __setpayloadsigl.
20882 (setpayloadsigl): Define as weak alias.
20883 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
20884 __totalorderl and define as weak alias.
20885 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
20886 Rename to __totalordermagl and define as weak alias.
20887 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
20888 __ufromfpl.
20889 (ufromfpl): Define as weak alias.
20890 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
20891 __ufromfpxl.
20892 (ufromfpxl): Define as weak alias.
20893
20894 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20895
20896 * benchtests/bench-string.h (realloc_bufs): New function.
20897 (test_init): Call it.
20898 * benchtests/bench-memset-large.c (do_test): Likewise.
20899 * benchtests/bench-memset.c (do_test): Likewise.
20900
20901 * benchtests/bench-memset-large.c: Print output in JSON
20902 format.
20903 * benchtests/bench-memset.c: Likewise.
20904
20905 2017-09-14 Mike FABIAN <mfabian@redhat.com>
20906
20907 [BZ #21084]
20908 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
20909 * iconvdata/Makefile: Add IBM858.
20910 * iconvdata/gconv-modules: Likewise.
20911 * iconvdata/tst-tables.sh: Likewise.
20912 * iconvdata/ibm858.c: New file.
20913 * localedata/charmaps/IBM858: Likewise.
20914
20915 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
20916
20917 [BZ #22023]
20918 * locales/niu_NZ (LC_TIME): copy "niu_NU".
20919 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
20920
20921 2017-09-14 Mike FABIAN <mfabian@redhat.com>
20922
20923 [BZ #22112]
20924 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
20925 and add tel_int_fmt.
20926
20927 2017-09-14 Joseph Myers <joseph@codesourcery.com>
20928
20929 * sysdeps/generic/libm-alias-float128.h: New file.
20930 * sysdeps/generic/math-type-macros-float128.h: Include
20931 <libm-alias-float128.h>.
20932 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
20933
20934 2017-09-13 Joseph Myers <joseph@codesourcery.com>
20935
20936 * sysdeps/generic/libm-alias-ldouble.h: New file.
20937 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
20938 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
20939 * sysdeps/generic/math-type-macros-ldouble.h: Include
20940 <libm-alias-ldouble.h>.
20941 [!declare_mgen_alias] (declare_mgen_alias): Define to use
20942 libm_alias_ldouble.
20943
20944 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
20945
20946 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
20947 * math/w_exp_compat.c: ... here.
20948 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
20949 * math/w_expf_compat.c: ... here.
20950 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
20951 * math/w_expl_compat.c: ... here.
20952 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
20953 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
20954 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
20955 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
20956
20957 2017-09-13 Joseph Myers <joseph@codesourcery.com>
20958
20959 * math/w_scalbln_template.c (strong_alias): Do not undefine and
20960 redefine.
20961 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
20962 macro.
20963 (ldexpl): Only define as compat symbol for libc, not libm.
20964 (scalbnl): Define as compat symbol for libc here.
20965 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
20966 define for [IS_IN (libc)].
20967 (__ldexpl_2): Remove alias.
20968 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
20969 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
20970 name in long_double_symbol call.
20971 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
20972 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
20973 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
20974 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
20975 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
20976 Remove macro.
20977 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
20978 Define as compat symbol.
20979
20980 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20981
20982 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
20983 * sysdeps/unix/sysv/linux/alpha/Makefile
20984 [$(subdir) = csu] (sysdep_routines): Remove rule.
20985
20986 2017-09-13 Joseph Myers <joseph@codesourcery.com>
20987
20988 * sysdeps/generic/libm-alias-double.h: New file.
20989 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
20990 * sysdeps/generic/math-type-macros-double.h: Include
20991 <libm-alias-double.h>.
20992 [declare_mgen_alias] (declare_mgen_alias): Define to use
20993 libm_alias_double.
20994 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
20995 (M_LIBM_NEED_COMPAT): Remove macro.
20996 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
20997 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
20998 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
20999 code.
21000 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21001 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21002 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21003 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21004 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21005 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21006 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21007 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21008 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21009 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21010 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21011 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21012 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21013 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21014 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21015 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21016 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21017 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21018 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21019 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21020 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21021 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21022 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21023 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21024 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21025 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21026 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21027 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
21028 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
21029 macro.
21030 (declare_mgen_alias): New macro.
21031 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
21032 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
21033 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
21034 (M_LIBM_NEED_COMPAT): Remove macro.
21035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
21036 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
21037 <first-versions.h>.
21038 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
21039 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
21040
21041 2017-09-12 Joseph Myers <joseph@codesourcery.com>
21042
21043 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
21044 (declare_mgen_alias_2): Remove.
21045 * sysdeps/generic/math-type-macros-double.h
21046 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
21047 Likewise.
21048 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
21049 alias.
21050 (ldexp): Define with declare_mgen_alias.
21051 (scalbn): Likewise.
21052
21053 2017-09-12 Steve Ellcey <sellcey@cavium.com>
21054
21055 * grp/initgroups.c: Include config.h.
21056 (DEFAULT_CONFIG): New macro.
21057 (internal_getgrouplist): Use DEFAULT_CONFIG.
21058 * nscd/initgrcache.c (addinitgroupsX): Likewise.
21059 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
21060 (DEFAULT_DEFCONFIG): New macro.
21061 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
21062 * nss/grp-lookup.c: Include config.h
21063 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
21064 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
21065 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
21066 * manual/nss.texi: Update default values section.
21067
21068 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
21069
21070 [BZ #21967]
21071 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
21072 New.
21073 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
21074 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
21075 Handle MathVec_Prefer_No_AVX512.
21076 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
21077 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
21078 is set.
21079
21080 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
21081
21082 * posix/sched_primax.c (__sched_get_priority_max): Add
21083 libc_hidden_def.
21084 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
21085 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
21086 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
21087 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
21088 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
21089 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
21090 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
21091 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
21092 Add aliases.
21093
21094 2017-09-11 Joseph Myers <joseph@codesourcery.com>
21095
21096 * sysdeps/generic/libm-alias-float.h: New file.
21097 * sysdeps/generic/math-type-macros-float.h: Include
21098 <libm-alias-float.h>.
21099 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
21100
21101 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
21102
21103 [BZ #22093]
21104 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
21105 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
21106 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
21107 (HWCAP_IMPORTANT): Likewise.
21108 (HWCAP_X86_64): New enum.
21109 (HWCAP_X86_AVX512_1): Updated.
21110 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
21111 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
21112 (modules-names): Add x86_64/tst-x86_64mod-1.
21113 (LDFLAGS-tst-x86_64mod-1.so): New.
21114 ($(objpfx)tst-x86_64-1): Likewise.
21115 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
21116 (tst-x86_64-1-clean): Likewise.
21117 * sysdeps/x86_64/tst-x86_64-1.c: New file.
21118 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
21119
21120 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
21121
21122 * po/sv.po: Update translations.
21123 * po/fr.po: Likewise.
21124
21125 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
21126
21127 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
21128 seconds.
21129 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
21130 seconds.
21131 * elf/rtld-Rules: Fix $(error) use.
21132
21133 2017-09-09 Mike FABIAN <mfabian@redhat.com>
21134
21135 [BZ #14925]
21136 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
21137 * locale/iso-639.def: Change “Bengali” to “Bangla”.
21138 * localedata/locales/bn_BD: “Bengali” was still used in some
21139 comments. Change it to “Bangla”.
21140
21141 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
21142
21143 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
21144
21145 2017-09-08 Steve Ellcey <sellcey@cavium.com>
21146
21147 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
21148 thunderx2t99p1 to list of cpu names.
21149 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
21150 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
21151
21152 2017-09-08 Steve Ellcey <sellcey@cavium.com>
21153
21154 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
21155 Use strcmp instead of tunable_is_name.
21156
21157 2017-09-08 Joseph Myers <joseph@codesourcery.com>
21158
21159 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
21160 (F_GET_RW_HINT): New macro.
21161 [__USE_GNU] (F_SET_RW_HINT): Likewise.
21162 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
21163 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
21164 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
21165 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
21166 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
21167 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
21168 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
21169 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
21170
21171 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
21172 (F_ADD_SEALS): New macro.
21173 [__USE_GNU] (F_GET_SEALS): Likewise.
21174 [__USE_GNU] (F_SEAL_SEAL): Likewise.
21175 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
21176 [__USE_GNU] (F_SEAL_GROW): Likewise.
21177 [__USE_GNU] (F_SEAL_WRITE): Likewise.
21178
21179 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21180
21181 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21182 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21183 * posix/glob_internal.h (__glob_pattern_type):
21184 * posix/glob.c (glob):
21185 * posix/glob_pattern_p.c (__glob_pattern_p):
21186 Use them.
21187
21188 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
21189 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
21190 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
21191 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
21192 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
21193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
21194 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
21195 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
21196 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
21197 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
21198 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
21199 * sysdeps/wordsize-64/glob.c: Likewise.
21200 * sysdeps/wordsize-64/glob64.c: Likewise.
21201 * sysdeps/wordsize-64/globfree.c: Likewise.
21202 * sysdeps/wordsize-64/globfree64.c: Likewise.
21203 * sysdeps/unix/sysv/linux/glob.c: New file.
21204 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
21205 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
21206 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
21207 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
21208 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
21209 adds !GLOB_NO_OLD_VERSION as an extra condition.
21210 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
21211 using relative path instead of absolute one.
21212 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
21213 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
21214 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
21215 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
21216 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
21217 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
21218
21219 [BZ #1062]
21220 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
21221 (glob): Use the same scratch buffer for both getlogin_r and
21222 getpwnam_r. Don’t require preallocation of the login name. This
21223 simplifies storage allocation, and corrects the handling of
21224 long login names.
21225
21226 [BZ #1062]
21227 * posix/glob.c (glob): Port recent patches to platforms
21228 lacking getpwnam_r.
21229 (glob): Fix longstanding misuse of errno after getpwnam_r, which
21230 returns an error number rather than setting errno.
21231
21232 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
21233 instead of GCC extension.
21234 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
21235 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
21236 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
21237
21238 [BZ #866]
21239 [BZ #1062]
21240 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
21241 * posix/bug-glob1.c: Remove file.
21242 * posix/tst-glob_symlinks.c: New file.
21243 * posix/glob.c (__lstat64): New macro.
21244 (is_dir): New function.
21245 (glob, glob_in_dir): Match symlinks even if they are dangling.
21246 (link_stat, link_exists_p): Remove. All uses removed.
21247
21248 [BZ #1062]
21249 [BZ #19971]
21250 * posix/glob.c (struct readdir_result): Remove skip_entry member.
21251 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21252 All uses removed.
21253
21254 [BZ #1062]
21255 CVE-2017-15671
21256 * posix/Makefile (routines): Add globfree, globfree64, and
21257 glob_pattern_p.
21258 * posix/flexmember.h: New file.
21259 * posix/glob_internal.h: Likewise.
21260 * posix/glob_pattern_p.c: Likewise.
21261 * posix/globfree.c: Likewise.
21262 * posix/globfree64.c: Likewise.
21263 * sysdeps/gnu/globfree64.c: Likewise.
21264 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
21265 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
21266 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
21267 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
21268 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
21269 * sysdeps/wordsize-64/globfree.c: Likewise.
21270 * sysdeps/wordsize-64/globfree64.c: Likewise.
21271 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
21272 [NDEBUG): Remove comments.
21273 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
21274 (dirent_type): New type. Use uint_fast8_t not
21275 uint8_t, as C99 does not require uint8_t.
21276 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
21277 (struct readdir_result): Use dirent_type. Do not define skip_entry
21278 unless it is needed; this saves a byte on platforms lacking d_ino.
21279 (readdir_result_type, readdir_result_skip_entry):
21280 New functions, replacing ...
21281 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21282 these functions, which were removed. This makes the callers
21283 easier to read. All callers changed.
21284 (D_INO_TO_RESULT): Now empty if there is no d_ino.
21285 (size_add_wrapv, glob_use_alloca): New static functions.
21286 (glob, glob_in_dir): Check for size_t overflow in several places,
21287 and fix some size_t checks that were not quite right.
21288 Remove old code using SHELL since Bash no longer
21289 uses this.
21290 (glob, prefix_array): Separate MS code better.
21291 (glob_in_dir): Remove old Amiga and VMS code.
21292 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21293 separate files.
21294 (glob_in_dir): Do not rely on undefined behavior in accessing
21295 struct members beyond their bounds. Use a flexible array member
21296 instead
21297 (link_stat): Rename from link_exists2_p and return -1/0 instead of
21298 0/1. Caller changed.
21299 (glob): Fix memory leaks.
21300 * posix/glob64 (globfree64): Move to separate file.
21301 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
21302 (globfree64): Remove hidden alias.
21303 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
21304 oldglob.
21305 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
21306 separate file.
21307 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
21308 define.
21309 Move compat code to separate file.
21310 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
21311 separate file.
21312
21313 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
21314
21315 * resolv/tst-resolv-qtypes.c (domain): Changed to
21316 "const char domain[] =".
21317
21318 2017-09-07 Joseph Myers <joseph@codesourcery.com>
21319
21320 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21321 version to 3.1.6.
21322
21323 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
21324 (TCP_MD5SIG_EXT): Likewise.
21325 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
21326 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
21327 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
21328
21329 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
21330
21331 2017-09-07 Mike FABIAN <mfabian@redhat.com>
21332
21333 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
21334
21335 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
21336
21337 [BZ #22100]
21338 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
21339
21340 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
21341
21342 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
21343 before assuming that the file is empty. Avoid testing buffer content
21344 when nread == 0.
21345
21346 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21347
21348 [BZ #18858]
21349 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
21350 Remove define.
21351 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
21352 Likewise.
21353 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
21354 Likewise.
21355 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
21356 Likewise.
21357 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
21358 Likewise.
21359 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
21360 Likewise.
21361 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
21362 Likewise.
21363
21364 2017-09-06 Florian Weimer <fweimer@redhat.com>
21365
21366 * malloc/dynarray_emplace_enlarge.c
21367 (__libc_dynarray_emplace_enlarge): Add missing else.
21368
21369 2017-09-06 Florian Weimer <fweimer@redhat.com>
21370
21371 [BZ #22096]
21372 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
21373 case of failure to obtain the global conf object.
21374
21375 2017-09-06 Florian Weimer <fweimer@redhat.com>
21376
21377 [BZ #22095]
21378 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
21379 dynarray allocation failure.
21380
21381 2017-09-06 Florian Weimer <fweimer@redhat.com>
21382
21383 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
21384 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
21385 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
21386 New functions.
21387 (response): Call them. Add 'p', '6' flag processing.
21388 (test_reverse): New function.
21389 (test_get2_any): Call it.
21390 (test_no_inet6): Add 'p' test.
21391 (test_inet6): Likewise.
21392
21393 2017-09-06 Florian Weimer <fweimer@redhat.com>
21394
21395 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
21396 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
21397 the QNAME.
21398 (test_gai): Adjust query names. Add additional tests.
21399 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
21400 test_get2. Adjust query names. Add additional tests.
21401 (test_no_inet6): New function, extracted from threadfunc.
21402 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
21403 Add additional tests.
21404
21405 2017-09-06 Mike FABIAN <mfabian@redhat.com>
21406
21407 [BZ #22070]
21408 * localedata/unicode-gen/utf8_gen.py: Set the width for
21409 characters with Prepended_Concatenation_Mark property to 1
21410 * localedata/charmaps/UTF-8: Updated using the improved script.
21411
21412 2017-09-06 Mike FABIAN <mfabian@redhat.com>
21413
21414 [BZ #21750]
21415 * localedata/unicode-gen/utf8_gen.py: Improve the script to
21416 use the range notation for all ranges of neighbouring characters
21417 with the same width.
21418
21419 2017-09-05 Joseph Myers <joseph@codesourcery.com>
21420
21421 * sysdeps/generic/math-type-macros-double.h: Include
21422 <math-svid-compat.h>.
21423 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21424 * sysdeps/generic/math-type-macros-float.h: Include
21425 <math-svid-compat.h>.
21426 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21427 * sysdeps/generic/math-type-macros-ldouble.h: Include
21428 <math-svid-compat.h>.
21429 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21430 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
21431 condition.
21432 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
21433 * math/w_acosf_compat.c: Likewise.
21434 * math/w_acosh_compat.c: Likewise.
21435 * math/w_acoshf_compat.c: Likewise.
21436 * math/w_acoshl_compat.c: Likewise.
21437 * math/w_acosl_compat.c: Likewise.
21438 * math/w_asin_compat.c: Likewise.
21439 * math/w_asinf_compat.c: Likewise.
21440 * math/w_asinl_compat.c: Likewise.
21441 * math/w_atan2_compat.c: Likewise.
21442 * math/w_atan2f_compat.c: Likewise.
21443 * math/w_atan2l_compat.c: Likewise.
21444 * math/w_atanh_compat.c: Likewise.
21445 * math/w_atanhf_compat.c: Likewise.
21446 * math/w_atanhl_compat.c: Likewise.
21447 * math/w_cosh_compat.c: Likewise.
21448 * math/w_coshf_compat.c: Likewise.
21449 * math/w_coshl_compat.c: Likewise.
21450 * math/w_exp10_compat.c: Likewise.
21451 * math/w_exp10f_compat.c: Likewise.
21452 * math/w_exp10l_compat.c: Likewise.
21453 * math/w_exp2_compat.c: Likewise.
21454 * math/w_exp2f_compat.c: Likewise.
21455 * math/w_exp2l_compat.c: Likewise.
21456 * math/w_fmod_compat.c: Likewise.
21457 * math/w_fmodf_compat.c: Likewise.
21458 * math/w_fmodl_compat.c: Likewise.
21459 * math/w_hypot_compat.c: Likewise.
21460 * math/w_hypotf_compat.c: Likewise.
21461 * math/w_hypotl_compat.c: Likewise.
21462 * math/w_j0_compat.c: Likewise.
21463 * math/w_j0f_compat.c: Likewise.
21464 * math/w_j0l_compat.c: Likewise.
21465 * math/w_j1_compat.c: Likewise.
21466 * math/w_j1f_compat.c: Likewise.
21467 * math/w_j1l_compat.c: Likewise.
21468 * math/w_jn_compat.c: Likewise.
21469 * math/w_jnf_compat.c: Likewise.
21470 * math/w_jnl_compat.c: Likewise.
21471 * math/w_lgamma_r_compat.c: Likewise.
21472 * math/w_lgammaf_r_compat.c: Likewise.
21473 * math/w_lgammal_r_compat.c: Likewise.
21474 * math/w_log10_compat.c: Likewise.
21475 * math/w_log10f_compat.c: Likewise.
21476 * math/w_log10l_compat.c: Likewise.
21477 * math/w_log2_compat.c: Likewise.
21478 * math/w_log2f_compat.c: Likewise.
21479 * math/w_log2l_compat.c: Likewise.
21480 * math/w_log_compat.c: Likewise.
21481 * math/w_logf_compat.c: Likewise.
21482 * math/w_logl_compat.c: Likewise.
21483 * math/w_pow_compat.c: Likewise.
21484 * math/w_powf_compat.c: Likewise.
21485 * math/w_powl_compat.c: Likewise.
21486 * math/w_remainder_compat.c: Likewise.
21487 * math/w_remainderf_compat.c: Likewise.
21488 * math/w_remainderl_compat.c: Likewise.
21489 * math/w_sinh_compat.c: Likewise.
21490 * math/w_sinhf_compat.c: Likewise.
21491 * math/w_sinhl_compat.c: Likewise.
21492 * math/w_sqrt_compat.c: Likewise.
21493 * math/w_sqrtf_compat.c: Likewise.
21494 * math/w_sqrtl_compat.c: Likewise.
21495 * math/w_tgamma_compat.c: Likewise.
21496 * math/w_tgammaf_compat.c: Likewise.
21497 * math/w_tgammal_compat.c: Likewise.
21498 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
21499 [LIBM_SVID_COMPAT].
21500 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
21501 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
21502 [LIBM_SVID_COMPAT].
21503 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
21504 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
21505 [LIBM_SVID_COMPAT].
21506 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
21507 * sysdeps/i386/fpu/w_sqrt.c: New file.
21508 * sysdeps/ia64/fpu/w_acos.c: Likewise.
21509 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
21510 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
21511 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
21512 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
21513 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
21514 * sysdeps/ia64/fpu/w_asin.c: Likewise.
21515 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
21516 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
21517 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
21518 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
21519 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
21520 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
21521 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
21522 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
21523 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
21524 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
21525 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
21526 * sysdeps/ia64/fpu/w_exp.c: Likewise.
21527 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
21528 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
21529 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
21530 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
21531 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
21532 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
21533 * sysdeps/ia64/fpu/w_expf.c: Likewise.
21534 * sysdeps/ia64/fpu/w_expl.c: Likewise.
21535 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
21536 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
21537 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
21538 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
21539 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
21540 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
21541 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
21542 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
21543 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
21544 * sysdeps/ia64/fpu/w_log.c: Likewise.
21545 * sysdeps/ia64/fpu/w_log10.c: Likewise.
21546 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
21547 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
21548 * sysdeps/ia64/fpu/w_log2.c: Likewise.
21549 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
21550 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
21551 * sysdeps/ia64/fpu/w_logf.c: Likewise.
21552 * sysdeps/ia64/fpu/w_logl.c: Likewise.
21553 * sysdeps/ia64/fpu/w_pow.c: Likewise.
21554 * sysdeps/ia64/fpu/w_powf.c: Likewise.
21555 * sysdeps/ia64/fpu/w_powl.c: Likewise.
21556 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
21557 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
21558 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
21559 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
21560 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
21561 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
21562 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
21563 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
21564 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
21565 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
21566 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
21567 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
21568 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
21569 [LIBM_SVID_COMPAT].
21570 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
21571 * sysdeps/ieee754/k_standard.c: Likewise.
21572 * sysdeps/ieee754/k_standardf.c: Likewise.
21573 * sysdeps/ieee754/k_standardl.c: Likewise.
21574 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
21575 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
21576 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
21577 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
21578 long_double_symbol call on [LIBM_SVID_COMPAT].
21579 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
21580 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
21581 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
21582 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
21583 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
21584 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
21585 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
21586 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
21587 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
21588 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
21589 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
21590 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
21591 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
21592 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
21593 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
21594 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
21595 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
21596 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
21597 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
21598 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
21599 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
21600 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
21601
21602 2017-09-05 Steve Ellcey <sellcey@cavium.com>
21603
21604 * include/shlib-compat.h (TEST_COMPAT): New Macro.
21605 * malloc/tst-mallocstate.c: Convert from test-skeleton
21606 to test-driver. Ifdef code using TEST_COMPAT macro.
21607 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
21608 * math/test-matherr.c: Likewise.
21609
21610 2017-09-05 Joseph Myers <joseph@codesourcery.com>
21611
21612 [BZ #22086]
21613 * debug/pcprofiledump.c (main): Use byte-swapped mask when
21614 comparing word with byte-swapped constant.
21615
21616 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
21617
21618 [BZ #20498]
21619 * locale/iso-639.def: add Miskito.
21620 * localedata/SUPPORTED: Add miq_NI/UTF-8.
21621 * localedata/locales/miq_NI: New file.
21622
21623 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
21624
21625 [BZ #18822]
21626 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
21627 (__mkdir): Likewise.
21628 * io/chmod.c (__chmod): Add libc_hidden_def.
21629 * io/mkdir.c (__mkdir): Likewise.
21630 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
21631 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
21632 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
21633 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
21634
21635 2017-09-04 Joseph Myers <joseph@codesourcery.com>
21636
21637 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21638 version to 4.13.
21639
21640 [BZ #22082]
21641 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
21642 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
21643
21644 2017-09-04 Florian Weimer <fweimer@redhat.com>
21645
21646 * math/math.h: Issue warning if log is defined.
21647
21648 2017-09-04 Joseph Myers <joseph@codesourcery.com>
21649
21650 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21651 kernel version to 4.13.
21652
21653 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
21654
21655 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
21656 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
21657 parameter.
21658 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
21659 just <bits/types.h>.
21660 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
21661 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
21662 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
21663 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
21664 * misc/preadv2.c: Include <errno.h>.
21665 * misc/preadv64v2.c: Include <errno.h>.
21666 * misc/pwritev2.c: Include <errno.h>.
21667 * misc/pwritev64v2.c: Include <errno.h>.
21668 * sysdeps/posix/preadv2.c: Include <errno.h>.
21669 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
21670 Fix <unistd.h> inclusion.
21671 * sysdeps/posix/pwritev2.c: Include <errno.h>.
21672 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
21673 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
21674 __strtoul_internal): New functions.
21675 * sysdeps/posix/pause.c: Include <sigsetops.h>.
21676 * sysdeps/posix/system.c: Include <sigsetops.h>.
21677 * sysdeps/mach/hurd/i386/Makefile
21678 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
21679 [$(subdir) = csu] (sysdep-only-routines): Likewise.
21680 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
21681 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
21682 __feraiseexcept_renamed to feraiseexcept instead of
21683 __GI_feraiseexcept.
21684 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
21685 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
21686 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
21687 RWF_NOWAIT): Define to 0 if undefined already.
21688 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
21689 boils down to 0.
21690 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
21691 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
21692
21693 2017-09-01 Joseph Myers <joseph@codesourcery.com>
21694
21695 * manual/math.texi (pow10): Do not document.
21696 (pow10f): Likewise.
21697 (pow10l): Likewise.
21698 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
21699 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
21700 * math/libm-test-exp10.inc (pow10_test): Remove.
21701 (do_test): Do not call pow10.
21702 * math/w_exp10_compat.c (pow10): Make into compat symbol.
21703 [NO_LONG_DOUBLE] (pow10l): Likewise.
21704 * math/w_exp10f_compat.c (pow10f): Likewise.
21705 * math/w_exp10l_compat.c (pow10l): Likewise.
21706 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
21707 (pow10): Make into compat symbol.
21708 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
21709 (pow10f): Make into compat symbol.
21710 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
21711 (pow10l): Make into compat symbol.
21712 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
21713 pow10.
21714 (CFLAGS-nldbl-pow10.c): Remove variable..
21715 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
21716 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
21717 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
21718 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
21719 Undefine and redefine.
21720 (pow10l): Make into compat symbol.
21721 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
21722 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
21723 * sysdeps/arm/libm-test-ulps: Likewise.
21724 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
21725 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21726 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21727 * sysdeps/microblaze/libm-test-ulps: Likewise.
21728 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
21729 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21730 * sysdeps/nios2/libm-test-ulps: Likewise.
21731 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21732 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
21733 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
21734 * sysdeps/sh/libm-test-ulps: Likewise.
21735 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
21736 * sysdeps/tile/libm-test-ulps: Likewise.
21737 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21738
21739 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
21740
21741 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
21742
21743 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
21744
21745 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
21746 "../ChangeLog.old/ChangeLog.8".
21747 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
21748 "../ChangeLog.old/ChangeLog.14".
21749
21750 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
21751
21752 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
21753 Threads Library.
21754
21755 2017-09-01 Joseph Myers <joseph@codesourcery.com>
21756
21757 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
21758
21759 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
21760
21761 * csu/version.c (banner): Remove "by Roland McGrath et al.".
21762 * nptl/Banner: Remove "by Ulrich Drepper et al.".
21763
21764 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
21765
21766 * stdlib/tst-atexit-common.c (do_test): Test support for at least
21767 32 atexit handlers.
21768
21769 2017-09-01 Zack Weinberg <zackw@panix.com>
21770
21771 * math/math.h (HUGE_VAL): Improve commentary.
21772
21773 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21774 Andreas Schwab <schwab@suse.de>
21775
21776 [BZ #21530]
21777 * include/stdio.h (__gen_tempfd): New function.
21778 * stdio-common/Makefile (routines): Add gentempfd.
21779 * stdio-common/gentempfd.c: New file.
21780 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
21781 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
21782 unnamed file first.
21783
21784 2017-09-01 Florian Weimer <fweimer@redhat.com>
21785
21786 [BZ #21915]
21787 [BZ #21922]
21788 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
21789 result to determine success or failure, not the errno value.
21790 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
21791 (tst-nss-files-hosts-erange): Link with -ldl.
21792 * nss/tst-nss-files-hosts-erange.c: New file.
21793 * nss/tst-resolv-basic.c (response): Handle nodata.example.
21794 (do_test): Add NO_DATA tests.
21795 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
21796 (do_test): Call it.
21797
21798 2017-09-01 Florian Weimer <fweimer@redhat.com>
21799
21800 [BZ #21922]
21801 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
21802 coming from gethostbyname2_r.
21803
21804 2017-09-01 Florian Weimer <fweimer@redhat.com>
21805
21806 * support/namespace.h (struct support_chroot_configuration): Add
21807 hosts, host_conf.
21808 (struct support_chroot): Add path_hosts, path_host_conf.
21809 * support/support_chroot.c (write_file): New function.
21810 (support_chroot_create): Call it to process /etc/resolv.conf,
21811 /etc/hosts, /etc/host.conf.
21812 (support_chroot_free): Update.
21813
21814 2017-09-01 Florian Weimer <fweimer@redhat.com>
21815
21816 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
21817 status indicates it is set.
21818
21819 2017-09-01 Florian Weimer <fweimer@redhat.com>
21820
21821 [BZ #20532]
21822 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
21823 function lookup failures more reliable.
21824
21825 2017-09-01 Florian Weimer <fweimer@redhat.com>
21826
21827 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
21828 (getcanonname): Likewise.
21829 (gaih_inet): Likewise.
21830
21831 2017-09-01 Florian Weimer <fweimer@redhat.com>
21832
21833 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
21834 (getcanonname): Likewise.
21835 (gaih_inet): Likewise.
21836
21837 2017-08-31 Steve Ellcey <sellcey@cavium.com>
21838 Richard Henderson <rth@twiddle.net>
21839
21840 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
21841 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
21842 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
21843 (IREG_SIZE, OREG_SIZE): New macros.
21844 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
21845 (IREG_SIZE, OREG_SIZE): New macros.
21846 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
21847 (IREG_SIZE): New macro.
21848 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
21849 (IREG_SIZE): New macro.
21850 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
21851 New includes.
21852 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
21853 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
21854 (__CONCATX): Handle exceptions correctly on large values that may
21855 set FE_INVALID.
21856 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
21857 Initialize if not already set.
21858 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
21859
21860 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21861
21862 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
21863 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
21864 Likewise.
21865 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
21866 Likewise.
21867 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
21868 Likewise.
21869 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
21870 Likewise.
21871 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
21872 Likewise.
21873 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
21874 Likewise.
21875 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
21876 Likewise.
21877 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
21878 (NO_CANCELLATION): Likewise.
21879 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
21880 Likewise.
21881 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
21882 Likewise.
21883 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
21884 Likewise.
21885 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
21886 (NO_CANCELLATION): Likewise.
21887 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
21888 (NO_CANCELLATION): Likewise.
21889 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
21890 Likewise
21891 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
21892 Likewise.
21893 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
21894 Likewise.
21895 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
21896 Likewise.
21897 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
21898 hidden prototype.
21899 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
21900 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
21901
21902 2017-08-31 Steve Ellcey <sellcey@cavium.com>
21903
21904 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
21905 in resolver call.
21906
21907 2017-08-31 Florian Weimer <fweimer@redhat.com>
21908
21909 * include/libc-symbols.h (internal_function): Remove.
21910
21911 2017-08-31 Florian Weimer <fweimer@redhat.com>
21912
21913 * stdlib/fmtmsg.c (internal_addseverity): Remove
21914 internal_function.
21915
21916 2017-08-31 Florian Weimer <fweimer@redhat.com>
21917
21918 * stdio-common/printf_fp.c (group_number): Remove
21919 internal_function.
21920 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
21921
21922 2017-08-31 Florian Weimer <fweimer@redhat.com>
21923
21924 * posix/fnmatch.c (internal_function): Remove definition.
21925 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
21926 * posix/regcomp.c (peek_token, init_word_char)
21927 (duplicate_node_closure, fetch_token, peek_token)
21928 (peek_token_bracket, build_range_exp, build_collating_symbol):
21929 Likewise.
21930 * posix/regex_internal.c (re_string_construct_common)
21931 (create_ci_newstate, create_cd_newstate, re_string_allocate)
21932 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
21933 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
21934 (re_string_translate_buffer, re_string_reconstruct)
21935 (re_string_peek_byte_case, re_string_fetch_byte_case)
21936 (re_string_destruct, re_string_context_at, re_node_set_alloc)
21937 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
21938 (re_node_set_add_intersect, re_node_set_init_union)
21939 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
21940 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
21941 (re_dfa_add_node, calc_state_hash, re_acquire_state)
21942 (re_acquire_state_context): Likewise.
21943 * posix/regex_internal.h (internal_function): Remove definition.
21944 (re_string_realloc_buffers, build_wcs_buffer)
21945 (build_wcs_upper_buffer, build_upper_buffer)
21946 (re_string_translate_buffer, re_string_context_at)
21947 (re_string_char_size_at, re_string_wchar_at)
21948 (re_string_elem_size_at): Likewise.
21949 * posix/regexec.c (match_ctx_init, match_ctx_clean)
21950 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
21951 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
21952 (re_search_internal, re_search_2_stub, re_search_stub)
21953 (re_copy_regs, prune_impossible_nodes, check_matching)
21954 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
21955 (free_fail_stack_return, sift_states_iter_mb)
21956 (sift_states_backward, build_sifted_states)
21957 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
21958 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
21959 (check_subexp_limits, sift_states_bkref, merge_state_array)
21960 (find_recover_state, transit_state, merge_state_with_log)
21961 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
21962 (transit_state_mb, transit_state_bkref, get_subexp)
21963 (get_subexp_sub, find_subexp_node, check_arrival)
21964 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
21965 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
21966 (check_node_accept_bytes, find_collation_sequence_value)
21967 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
21968 (acquire_init_state_context, check_halt_node_context)
21969 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
21970 (sub_epsilon_src_nodes): Likewise.
21971 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
21972 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
21973 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
21974 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
21975 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
21976 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
21977 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
21978 * sysdeps/posix/ttyname.c (getttyname): Likewise.
21979 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
21980 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
21981 (PREADV): Likewise.
21982 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
21983 (PREADV): Likewise.
21984 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
21985 (PWRITEV): Likewise.
21986 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
21987 (PWRITEV): Likewise.
21988 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
21989 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21990
21991 2017-08-31 Florian Weimer <fweimer@redhat.com>
21992
21993 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
21994 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
21995 Remove internal_function.
21996 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
21997 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
21998 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
21999 (__deallocate_stack, __libc_pthread_init)
22000 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
22001 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
22002 (__libc_disable_asynccancel, __librt_disable_asynccancel):
22003 Likewise.
22004 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
22005 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
22006 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
22007 Likewise.
22008 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
22009 (__pthread_mutex_unlock_usercnt): Likewise.
22010
22011 2017-08-31 Florian Weimer <fweimer@redhat.com>
22012
22013 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
22014 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
22015 (fts_safe_changedir): Remove internal_function.
22016 * io/ftw.c (internal_function): Remove definition.
22017 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
22018
22019 2017-08-31 Florian Weimer <fweimer@redhat.com>
22020
22021 * inet/deadline.c (__deadline_current_time)
22022 (__deadline_from_timeval, __deadline_to_ms): Remove
22023 internal_function.
22024 * inet/getnameinfo.c (nrl_domainname): Likewise.
22025 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
22026 * inet/inet6_option.c (add_pad): Likewise.
22027 * inet/net-internal.h (__deadline_current_time)
22028 (__deadline_from_timeval, __deadline_to_ms): Likewise.
22029 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
22030 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
22031 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
22032
22033 2017-08-31 Joseph Myers <joseph@codesourcery.com>
22034
22035 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
22036 include <bits/nan.h>.
22037 * math/Makefile (headers): Remove bits/nan.h.
22038 * bits/nan.h: Remove.
22039 * sysdeps/ieee754/bits/nan.h: Likewise.
22040 * sysdeps/mips/bits/nan.h: Likewise.
22041
22042 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
22043 not include <bits/inf.h>.
22044 * math/Makefile (headers): Remove bits/inf.h.
22045 * bits/inf.h: Remove.
22046 * sysdeps/ieee754/bits/inf.h: Likewise.
22047
22048 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
22049 bits/huge_vall.h or bits/huge_val_flt128.h.
22050 (HUGE_VAL): Define directly here.
22051 [__USE_ISOC99] (HUGE_VALF): Likewise.
22052 [__USE_ISOC99] (HUGE_VALL): Likewise.
22053 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22054 (HUGE_VAL_F128): Likewise.
22055 * math/Makefile (headers): Remove bits/huge_val.h,
22056 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
22057 * bits/huge_val.h: Remove.
22058 * bits/huge_val_flt128.h: Likewise.
22059 * bits/huge_valf.h: Likewise.
22060 * bits/huge_vall.h: Likewise.
22061 * sysdeps/ia64/bits/huge_vall.h: Likewise.
22062 * sysdeps/ieee754/bits/huge_val.h: Likewise.
22063 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
22064 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
22065 * sysdeps/sh/bits/huge_val.h: Likewise.
22066 * sysdeps/sparc/bits/huge_vall.h: Likewise.
22067 * sysdeps/x86/bits/huge_vall.h: Likewise.
22068
22069 2017-08-31 Florian Weimer <fweimer@redhat.com>
22070
22071 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
22072 internal_function.
22073 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
22074 Likewise.
22075 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
22076 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
22077 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
22078 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
22079 * elf/dl-fini.c (_dl_sort_fini): Likewise.
22080 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
22081 * elf/dl-libc.c (dlerror_run): Likewise.
22082 * elf/dl-load.c (add_name_to_object, decompose_rpath)
22083 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
22084 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
22085 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
22086 Likewise.
22087 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
22088 (_dl_higher_prime_number, _dl_strtoul): Likewise.
22089 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
22090 * elf/dl-profile.c (_dl_start_profile): Likewise.
22091 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
22092 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
22093 Likewise.
22094 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
22095 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
22096 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
22097 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
22098 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
22099 (_dl_allocate_tls_storage): Likewise.
22100 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
22101 (_dl_check_all_versions): Likewise.
22102 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
22103 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
22104 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
22105 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22106 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
22107 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
22108 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
22109 internal_function from __dl_start.
22110 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
22111 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
22112 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
22113 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
22114 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
22115 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
22116 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
22117 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
22118 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
22119 (_dl_next_ld_env_entry, _dl_important_hwcaps)
22120 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
22121 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
22122 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
22123 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
22124 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
22125 Likewise.
22126 (struct rtld_global_ro): Remove internal_function from the
22127 _dl_lookup_symbol_x member.
22128 (_dl_symbol_value): Remove. No longer defined anywhere.
22129 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
22130 internal_function.
22131 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22132 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
22133 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
22134 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
22135 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
22136 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
22137 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
22138 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
22139 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
22140 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
22141 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22142 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
22143
22144 2017-08-31 Florian Weimer <fweimer@redhat.com>
22145
22146 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
22147 Remove internal_function.
22148 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
22149 Likewise.
22150 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
22151 Likewise.
22152
22153 2017-08-31 Florian Weimer <fweimer@redhat.com>
22154
22155 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
22156 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
22157 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
22158
22159 2017-08-31 Florian Weimer <fweimer@redhat.com>
22160
22161 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
22162 (__gai_enqueue_request): Remove internal_function.
22163 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
22164 (__gai_remove_request, __gai_notify, __gai_notify_only)
22165 (__gai_sigqueue): Likewise.
22166 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
22167 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
22168 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
22169 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22170 Likewise.
22171
22172 2017-08-31 Florian Weimer <fweimer@redhat.com>
22173
22174 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
22175 * include/dirent.h (__opendirat, __getdents, __getdents64)
22176 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
22177 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
22178 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
22179 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
22180 Likewise.
22181 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
22182
22183 2017-08-31 Florian Weimer <fweimer@redhat.com>
22184
22185 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
22186 internal_function.
22187 (GETCWD_RETURN_TYPE): Likewise.
22188
22189 2017-08-31 Florian Weimer <fweimer@redhat.com>
22190
22191 * include/time.h (__tz_compute, __strptime_internal): Remove
22192 internal_function.
22193 * time/strptime_l.c (__strptime_internal): Likewise.
22194 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
22195
22196 2017-08-31 Florian Weimer <fweimer@redhat.com>
22197
22198 * iconv/gconv.c (__gconv): Remove internal_function.
22199 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
22200 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
22201 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
22202 (__gconv_release_cache): Likewise.
22203 * iconv/gconv_close.c (__gconv_close): Likewise.
22204 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
22205 (read_conf_file, __gconv_get_path): Likewise.
22206 * iconv/gconv_db.c (derivation_lookup, add_derivation)
22207 (__gconv_release_step, gen_steps, increment_counter)
22208 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
22209 (__gconv_close_transform, free_modules_db): Likewise.
22210 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
22211 Likewise.
22212 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
22213 (__gconv_find_transform, __gconv_lookup_cache)
22214 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
22215 (__gconv_close_transform, __gconv_release_cache)
22216 (__gconv_loaded_object, __gconv_release_shlib)
22217 (__gconv_compare_alias): Likewise.
22218 * iconv/gconv_open.c (__gconv_open): Likewise.
22219 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
22220 * iconv/iconvconfig.c (add_module): Likewise.
22221 * intl/dcigettext.c (plural_lookup, guess_category_value)
22222 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
22223 * intl/eval-plural.h (plural_eval): Likewise.
22224 * intl/finddomain.c (_nl_find_domain): Likewise.
22225 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
22226 (_nl_load_domain, _nl_find_msg): Likewise.
22227 (internal_function): Remove definition.
22228 * intl/loadinfo.h (internal_function): Likewise.
22229 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
22230 internal_function.
22231 * intl/localealias.c (internal_function): Remove definition.
22232 (read_alias_file): Remove internal_function.
22233 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
22234 * intl/plural-exp.h (internal_function): Remove definition.
22235 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
22236 internal_function.
22237 * intl/plural.c: Regenerate.
22238 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
22239 * locale/coll-lookup.c (__collidx_table_lookup)
22240 (__collseq_table_lookup): Likewise.
22241 * locale/coll-lookup.h (__collidx_table_lookup)
22242 (__collseq_table_lookup): Likewise.
22243 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
22244 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
22245 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
22246 (_nl_unload_locale): Likewise.
22247 * locale/localeinfo.h (struct __locale_data): Remove
22248 internal_function from cleanup member.
22249 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
22250 (_nl_remove_locale, _nl_load_locale_from_archive)
22251 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
22252 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
22253 (_nl_cleanup_time): Remove internal_function.
22254 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
22255 (_nl_parse_alt_digit): Likewise.
22256 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
22257 (_nl_select_era_entry): Likewise.
22258 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
22259 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
22260 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
22261 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
22262 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
22263
22264 2017-08-31 Florian Weimer <fweimer@redhat.com>
22265
22266 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
22267 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
22268 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
22269 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
22270 Likewise.
22271 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
22272 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
22273 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
22274 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
22275 Likewise.
22276 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
22277
22278 2017-08-31 Florian Weimer <fweimer@redhat.com>
22279
22280 * misc/getttyent.c (skip, value): Remove internal_function.
22281 * misc/syslog.c (openlog_internal): Likewise.
22282 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
22283
22284 2017-08-31 Florian Weimer <fweimer@redhat.com>
22285
22286 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
22287 (__nss_rewrite_field): Remove internal_function.
22288 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
22289 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
22290 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
22291 * nss/nsswitch.c (nss_parse_file, nss_getline)
22292 (nss_parse_service_list, nss_new_service): Likewise.
22293 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
22294 * nss/valid_field.c (__nss_valid_field): Likewise.
22295 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
22296
22297 2017-08-31 Florian Weimer <fweimer@redhat.com>
22298
22299 * malloc/arena.c (__malloc_fork_lock_parent)
22300 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
22301 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
22302 internal_function from defintions.
22303 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
22304 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
22305 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
22306 internal_function from declarations.
22307 * malloc/malloc.c (internal_function): Do not define.
22308 (mem2mem_check): Remove internal_function from declaration.
22309 (munmap_chunk, mremap_chunk): Remove internal_function.
22310 * malloc/mtrace.c (tr_where): Likewise.
22311
22312 2017-08-31 Florian Weimer <fweimer@redhat.com>
22313
22314 * include/rpc/pmap_clnt.h (__get_socket): Remove
22315 internal_function.
22316 * sunrpc/auth_des.c (synchronize): Likewise.
22317 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
22318 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
22319 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
22320 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
22321 (key_call): Likewise.
22322 * sunrpc/pm_getport.c (__get_socket): Likewise.
22323 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
22324 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
22325 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
22326 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
22327 (invalidate): Likewise.
22328 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
22329 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
22330 (set_input_fragment, get_input_bytes): Likewise.
22331
22332 2017-08-31 Florian Weimer <fweimer@redhat.com>
22333
22334 * malloc/malloc.c (_int_free): Remove locked variable and related
22335 asserts.
22336
22337 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
22338
22339 [BZ #22051]
22340 * Makerules (build-module-helper-objlist): Filter out
22341 $(elf-objpfx)sofini.os.
22342 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
22343 needed.
22344
22345 2017-08-31 Florian Weimer <fweimer@redhat.com>
22346
22347 * libio/fcloseall.c: Assume weak_alias is defined.
22348 * libio/feof.c: Likewise.
22349 * libio/fileno.c: Likewise.
22350 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
22351 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
22352 definitions.
22353 (_IO_file_open): Call __open directly.
22354 (_IO_new_file_sync): Assume ESPIPE is defined.
22355 (_IO_file_seekoff_maybe_mmap): Call __read directly.
22356 (_IO_new_file_write): Call __write directly.
22357 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
22358 * libio/ftello64.c (__ftello64): Assume EIO is defined.
22359 * libio/genops.c: Assume _LIBC is defined.
22360 (save_for_backup): Remove internal_function.
22361 * libio/getc.c: Assume weak_alias is defined.
22362 * libio/getwc.c: Likewise.
22363 * libio/iofclose.c: Assume _LIBC is defined.
22364 * libio/iofdopen.c: Likewise.
22365 (_IO_fcntl): Remove macro definition.
22366 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
22367 Call __fcntl directly.
22368 * libio/iofflush.c: Assume weak_alias is defined.
22369 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
22370 defined.
22371 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
22372 * libio/iofgets.c: Likewise.
22373 * libio/iofopen.c: Assume _LIBC is defined.
22374 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
22375 * libio/iofputs.c: Assume weak_alias is defined.
22376 * libio/iofread.c: Likewise.
22377 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
22378 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22379 * libio/ioftell.c: Assume weak_alias is defined.
22380 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
22381 * libio/iofwide.c: Assume _LIBC is defined.
22382 (_IO_fwide): Drop SHARED conditional because it is implied by
22383 SHLIB_COMPAT.
22384 * libio/iofwrite.c: Assume weak_alias is defined.
22385 * libio/iogetdelim.c: Likewise.
22386 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
22387 * libio/iogetwline.c (wmemcpy): Remove macro definition.
22388 (_IO_getwline): Call __wmemcpy directly.
22389 * libio/iopopen.c: Assume _LIBC is defined.
22390 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
22391 (_IO_close): Remove macro definitions.
22392 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
22393 _exit directly.
22394 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
22395 directly.
22396 * libio/ioputs.c: Assume weak_alias is defined.
22397 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
22398 * libio/iosetbuffer.c: Assume weak_alias is defined.
22399 * libio/iosetvbuf.c: Likewise.
22400 * libio/ioungetc.c: Likewise.
22401 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
22402 libc_hidden_def, libc_hidden_weak, NULL are defined.
22403 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
22404 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
22405 defined.
22406 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
22407 definitions.
22408 (_IO_old_file_init_internal): Drop SHARED conditional because it
22409 is implied by SHLIB_COMPAT.
22410 (_IO_old_file_fopen): Call __open directly.
22411 (_IO_old_file_sync): Assume ESPIPE is defined.
22412 (_IO_old_file_write): Call __write directly.
22413 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
22414 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
22415 Call __fcntl directly.
22416 * libio/oldiofgetpos.c: Assume weak_alias is defined.
22417 (_IO_old_fgetpos): Assume EIO is defined.
22418 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
22419 (_IO_old_fgetpos64): Assume EIO is defined.
22420 * libio/oldiofsetpos.c: Assume weak_alias is defined.
22421 (_IO_old_fsetpos): Assume EIO is defined.
22422 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
22423 (_IO_old_fsetpos64): Assume EIO is defined.
22424 * libio/oldiopopen.c: Assume _LIBC is defined.
22425 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
22426 (_IO_close): Remove macro definitions.
22427 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
22428 directly.
22429 (_IO_old_proc_close): Call __close, __waitpid directly.
22430 * libio/put.c: Assume weak_alias is defined.
22431 * libio/stdfiles.c: Assume _LIBC is defined.
22432 * libio/stdio.c: Likewise.
22433 * libio/wfileops.c: Likewise.
22434 (_IO_wfile_sync): Assume ESPIPE is defined.
22435 * libio/wgenops.c: Assume _LIBC is defined.
22436 (save_for_wbackup): Remove internal_function.
22437
22438 2017-08-31 Florian Weimer <fweimer@redhat.com>
22439
22440 * malloc/malloc.c (top_check): Change return type to void. Remove
22441 internal_function.
22442 * malloc/hooks.c (top_check): Likewise.
22443 (malloc_check, realloc_check, memalign_check): Adjust.
22444
22445 2017-08-30 Joseph Myers <joseph@codesourcery.com>
22446
22447 [BZ #21457]
22448 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
22449 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
22450 sigcontext and namespace requirements.
22451 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
22452 * sysdeps/m68k/sys/ucontext.h: Likewise.
22453 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
22454 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
22455 <bits/sigcontext.h>.
22456 (__ctx): Define earlier.
22457 (mcontext_t): Define structure contents rather than using struct
22458 sigcontext.
22459 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
22460 __glibc_reserved1 instead of __reserved.
22461 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
22462 <bits/sigcontext.h>.
22463 (__ctx): Define earlier.
22464 (mcontext_t): Define structure contents rather than using struct
22465 sigcontext.
22466 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
22467 mcontext_t instead of struct sigcontext.
22468 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
22469 <bits/sigcontext.h>.
22470 (__ctx): Define earlier.
22471 (mcontext_t): Define structure contents rather than using struct
22472 sigcontext.
22473 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
22474 <bits/sigcontext.h>.
22475 (__ctx): Define earlier.
22476 (mcontext_t): Define structure contents rather than using struct
22477 sigcontext.
22478 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
22479 mcontext_t instead of struct sigcontext.
22480 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
22481 mcontext_t instead of struct sigcontext.
22482 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
22483 <bits/sigcontext.h>.
22484 (__ctx): New macro.
22485 (struct __ia64_fpreg_mcontext): New type.
22486 (mcontext_t): Define structure contents rather than using struct
22487 sigcontext.
22488 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
22489 (uc_sigmask): Define using __ctx.
22490 (uc_stack): Likewise.
22491 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
22492 <bits/sigcontext.h>.
22493 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22494 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
22495 <bits/sigcontext.h>.
22496 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
22497 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
22498 <bits/sigcontext.h>.
22499 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
22500 <bits/sigcontext.h>.
22501 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
22502 <bits/sigcontext.h>.
22503 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
22504 <bits/sigcontext.h>.
22505 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
22506 <bits/sigcontext.h>.
22507 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
22508 <bits/sigcontext.h>.
22509 * sysdeps/unix/sysv/linux/tile/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/x86/sys/ucontext.h: Do not include
22515 <bits/sigcontext.h>. Include <bits/types.h>.
22516 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
22517 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
22518 (test-xfail-XPG42/ucontext.h/conform): Likewise.
22519 (test-xfail-UNIX98/signal.h/conform): Likewise.
22520 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
22521 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
22522 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
22523 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
22524 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
22525 (test-xfail-POSIX2008/signal.h/conform): Likewise.
22526 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
22527 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
22528 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
22529
22530 2017-08-30 Florian Weimer <fweimer@redhat.com>
22531
22532 * malloc/dynarray_emplace_enlarge.c
22533 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
22534 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
22535 * malloc/tst-dynarray.c (test_long_overflow): New function.
22536 (do_test): Call it.
22537
22538 2017-08-30 Florian Weimer <fweimer@redhat.com>
22539
22540 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
22541 (set_arena_corrupt): Remove definitions.
22542 (mtrim): Do not check for corrupt arena.
22543 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
22544 Likewise.
22545
22546 2017-08-30 Florian Weimer <fweimer@redhat.com>
22547
22548 [BZ #21754]
22549 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
22550 check_action.
22551 (ptmalloc_init): Do not set or use check_action.
22552 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
22553 call to malloc_printerr. Remove return statement.
22554 (free_check): Likewise. Remove arena unlock.
22555 (top_check): Update comment. Adjust call to malloc_printerr.
22556 Remove heap repair code.
22557 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
22558 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
22559 (sysmalloc): Adjust call to malloc_printerr.
22560 (munmap_chunk, __libc_realloc): Likewise. Remove return
22561 statement.
22562 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
22563 Remove errout label and corresponding gotos.
22564 (_int_free): Likewise. Remove arena unlock.
22565 (do_set_mallopt_check): Do not set check_action.
22566 (malloc_printerr): Adjust parameter list. Do not mark arena as
22567 corrupt.
22568 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
22569 comment.
22570 * manual/probes.texi (Memory Allocation Probes): Remove
22571 memory_mallopt_check_action.
22572
22573 2017-08-30 Steve Ellcey <sellcey@cavium.com>
22574
22575 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
22576 Use pointer to uint64_t instead of long int for sp.
22577
22578 2017-08-30 Florian Weimer <fweimer@redhat.com>
22579
22580 [BZ #21754]
22581 * malloc/malloc.c (malloc_printerr): Always terminate the process,
22582 without printing a backtrace. Do not leak any information in the
22583 error message.
22584 * manual/memory.texi (Heap Consistency Checking): Update.
22585 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
22586
22587 2017-08-30 Florian Weimer <fweimer@redhat.com>
22588
22589 Do not scale NPTL tests with available number of CPUs.
22590 * nptl/tst-cond16.c (count): Set to constant value of 8.
22591 * nptl/tst-cond18.c (count): Likewise.
22592
22593 2017-08-29 Joseph Myers <joseph@codesourcery.com>
22594
22595 [BZ #22035]
22596 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
22597 Define to take a second argument that is a macro that
22598 concatentates a suffix, not the suffix itself.
22599 (__CONCAT_d): New macro.
22600 (__CONCAT_f): Likewise.
22601 (__CONCAT_l): Likewise.
22602
22603 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
22604
22605 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
22606 by child.
22607
22608 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22609 Aurelien Jarno <aurelien@aurel32.net>
22610 Maciej W. Rozycki <macro@imgtec.com>
22611
22612 [BZ #21956]
22613 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
22614 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
22615 `mips16-syscall6' and `mips16-syscall7'.
22616 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
22617 (CFLAGS-mips16-syscall7.c): Remove.
22618 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
22619 Remove `__mips16_syscall5', `__mips16_syscall6' and
22620 `__mips16_syscall7'.
22621 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
22622 (__mips16_syscall0): Rename `__mips16_syscall_return' to
22623 `__mips_syscall_return'.
22624 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
22625 (__mips16_syscall1): Likewise.
22626 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
22627 (__mips16_syscall2): Likewise.
22628 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
22629 (__mips16_syscall3): Likewise.
22630 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
22631 (__mips16_syscall4): Likewise.
22632 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
22633 Remove.
22634 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
22635 Remove.
22636 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
22637 Remove.
22638 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
22639 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
22640 `__mips16_syscall5'. Remove prototype.
22641 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
22642 `__mips16_syscall6'. Remove prototype.
22643 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
22644 `__mips16_syscall7'. Remove prototype.
22645 (__nomips16, __mips16_syscall_return): Move to...
22646 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
22647 (__nomips16, __mips_syscall_return): ... here.
22648 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
22649 `__mips16_syscall_return' to `__mips_syscall_return'.
22650 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
22651 `internal_syscall##nr'.
22652 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
22653 `internal_syscall##nr'.
22654 (FORCE_FRAME_POINTER): Remove.
22655 (__mips_syscall5): New prototype.
22656 (internal_syscall5): Rewrite to call `__mips_syscall5'.
22657 (__mips_syscall6): New prototype.
22658 (internal_syscall6): Rewrite to call `__mips_syscall6'.
22659 (__mips_syscall7): New prototype.
22660 (internal_syscall7): Rewrite to call `__mips_syscall7'.
22661 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
22662 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
22663 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
22664 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
22665 (sysdep_routines): Add libc-do-syscall.
22666 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
22667 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
22668
22669 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22670
22671 [BZ #21672]
22672 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
22673 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
22674 (advise_stack_range): New function.
22675 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
22676 stack non required to advise_stack_range at allocatestack.c
22677
22678 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
22679
22680 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
22681
22682 2017-08-29 Florian Weimer <fweimer@redhat.com>
22683
22684 [BZ #22026]
22685 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
22686 __end_fct. Mangle __end_fct after setting it to NULL.
22687 * iconv/Makefile (tests): Add tst-gconv-init-failure.
22688 (modules-names, modules-names-tests): Add
22689 tst-gconv-init-failure-mod.
22690 (gconv-modules): New target.
22691 (tst-gconv-init-failure-mod.so): Link against libsupport.
22692 (tst-gconv-init-failure): Depend on gconv-modules,
22693 tst-gconv-init-failure-mod.so.
22694 * iconv/tst-gconv-init-failure-mod.c: New file.
22695 * iconv/tst-gconv-init-failure.c: Likewise.
22696 * iconv/test-gconv-modules: Likewise.
22697
22698 2017-08-29 Florian Weimer <fweimer@redhat.com>
22699
22700 [BZ #22025]
22701 * iconv/gconv_db.c (free_derivation): Remove redundant
22702 parentheses.
22703 (gen_steps): Unconditionally mangle __btowc_fct after
22704 initialization.
22705 (increment_counter): Likewise. Do not call init_fct for internal
22706 modules.
22707
22708 2017-08-29 Joseph Myers <joseph@codesourcery.com>
22709
22710 [BZ #22028]
22711 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
22712 (_MSUF_): Remove macro.
22713 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
22714 Likewise.
22715 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
22716 (__REDIRFROM_X): New macro.
22717 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
22718 Likewise.
22719 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
22720 (__REDIRTO_X): Likewise.
22721 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
22722 arguments.
22723 (__MATH_REDIRCALL_2): Likewise.
22724 (__MATH_REDIRCALL_INTERNAL): Likewise.
22725 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
22726 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
22727 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
22728 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
22729 * math/test-finite-macros.c: New file.
22730 * math/Makefile (tests): Add test-finite-macros.
22731 (CFLAGS-test-finite-macros.c): New variable.
22732
22733 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
22734 Jeff Law <law@redhat.com>
22735
22736 [BZ #22025]
22737 Mangle NULL pointers in iconv/gconv.
22738 * iconv/gconv_cache.c (find_module): Demangle init_fct before
22739 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
22740 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
22741 is non-NULL before demangling the end_fct. Check for NULL
22742 end_fct after demangling.
22743 (__gconv_release_step): Demangle the end_fct before checking
22744 it for NULL. Remove assert on __shlibc_handle != NULL.
22745 (gen_steps): Don't check btowc_fct for NULL before mangling.
22746 Demangle init_fct before checking for NULL.
22747 (increment_counter): Likewise.
22748 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
22749 end_fct for NULL before mangling.
22750 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
22751 for NULL.
22752
22753 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
22754
22755 [BZ #21971]
22756 * locale/iso-639.def: add Morisyen.
22757
22758 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
22759
22760 [BZ #21930]
22761 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
22762 (iszero): New C++ implementation that does not use
22763 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
22764 signaling nans are enabled, since __builtin_types_compatible_p
22765 is a C-only feature.
22766 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
22767 defined, include ieee754_float128.h for access to the union and
22768 member ieee854_float128.ieee.
22769 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
22770 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
22771 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
22772 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
22773 options of test-math-zero on powerpc64le.
22774
22775 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
22776
22777 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
22778 Change double to float.
22779
22780 2017-08-28 Joseph Myers <joseph@codesourcery.com>
22781
22782 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
22783 unconditional.
22784 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
22785 conditional code; define contents only for [LIBM_SVID_COMPAT].
22786
22787 2017-08-28 Florian Weimer <fweimer@redhat.com>
22788
22789 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
22790 (abi-lp64_be-options): Remove.
22791 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
22792 (abi-hard-options): Likewise.
22793 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
22794 (abi-o32_hard-options, abi-o32_soft_2008-options)
22795 (abi-o32_hard_2008-options, abi-n32_soft-options)
22796 (abi-n32_hard-options, abi-n32_soft_2008-options)
22797 (abi-n32_hard_2008-options, abi-n64_soft-options)
22798 (abi-n64_hard-options, abi-n64_soft_2008-options)
22799 (abi-n64_hard_2008-options): Likewise.
22800 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
22801 (abi-64-v1-options, abi-64-v2-options): Likewise.
22802 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
22803 (abi-64-options): Likewise.
22804 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
22805 (abi-64-options): Likewise.
22806 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
22807 (abi-64-options): Likewise.
22808 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
22809 (abi-64-options, abi-x32-options): Likewise.
22810
22811 2017-08-28 Florian Weimer <fweimer@redhat.com>
22812
22813 Store supported list of SYS_* system calls in the source tree.
22814 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
22815 (bits/syscall.h): Generate from list file.
22816 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
22817 [$(subdir) = misc] (tests): Add tst-syscall-list.
22818 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
22819 [$(subdir) = misc] (tst-syscall-list-macros.list)
22820 [$(subdir) = misc] (tst-syscall-list-nr.list)
22821 (tst-syscall-list-sys.list): Helper targets for new
22822 tst-syscall-list test.
22823 [$(subdir) = misc] (tst-syscall-list.out): Run test script
22824 tst-syscall-list.sh.
22825 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
22826 target. Do not include bits/syscall.d.
22827 [$(subdir) = misc] (generated): Do not update.
22828 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
22829 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
22830 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
22831 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
22832
22833 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
22834
22835 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
22836 (tst-cxa_atexit, tst-on_exit): Likewise.
22837 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
22838 tst-cxa_atexit, and tst-on_exit.
22839 * stdlib/tst-atexit-common.c: New file.
22840 * stdlib/tst-atexit.c: New file.
22841 * stdlib/tst-at_quick_exit.c: New file.
22842 * stdlib/tst-cxa_atexit.c: New file.
22843 * stdlib/tst-on_exit.c: New file.
22844
22845 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22846
22847 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
22848 * mach/stack_chk_fail_local.c: New file.
22849 * hurd/stack_chk_fail_local.c: New file.
22850 * mach/Machrules ($(interface-library)-routines): Add
22851 stack_chk_fail_local.
22852 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
22853 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
22854 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
22855 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
22856 * hurd/Makefile (CFLAGS-hurdstartup.o,
22857 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
22858
22859 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
22860
22861 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
22862 (index_cpu_*, index_arch_*): Removed.
22863
22864 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
22865
22866 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
22867 Use uint64_t instead of unsigned long.
22868
22869 2017-08-25 Joseph Myers <joseph@codesourcery.com>
22870
22871 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
22872 [__HAVE_DISTINCT_FLOAT128].
22873
22874 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
22875 of <bits/math-finite.h>.
22876 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
22877 inclusion of <bits/math-finite.h>.
22878 * math/bits/math-finite.h (__REDIRTO_X): Do not define
22879 conditionally on [__MATH_DECLARING_LDOUBLE && defined
22880 __NO_LONG_DOUBLE_MATH].
22881 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
22882 (__MATH_REDIRCALL_2): Likewise.
22883 (__MATH_REDIRCALL_INTERNAL): Likewise.
22884 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
22885 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
22886 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
22887
22888 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
22889 Remove file.
22890 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
22891 Likewise.
22892 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
22893 Likewise.
22894 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
22895 Likewise.
22896 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
22897 Likewise.
22898 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
22899 Likewise.
22900 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
22901 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
22902 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
22903 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
22904 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
22905 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
22906 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
22907 w_sqrtf_compat-ppc32.
22908
22909 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
22910
22911 * math/math.h [defined __cplusplus] (issignaling): In the long
22912 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
22913 is not defined. Call __issignaling, otherwise.
22914
22915 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22916
22917 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
22918 syscall definitions and replace __builtin_expect with __glibc_likely.
22919 * sysdeps/unix/syscall-template.S: Update comment about cancellable
22920 syscall.
22921 (SYSCALL_CANCELLABLE): Removedefinition
22922 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
22923 definition.
22924 (PSEUDO_END): Likewise.
22925 [IS_IN (libpthread)] (CENABLE): Likewise.
22926 [IS_IN (libpthread)] (CDISABLE): Likewise.
22927 [IS_IN (libc)] (CENABLE): Likewise.
22928 [IS_IN (libc)] (CENABLE): Likewise.
22929 [IS_IN (librt)] (CDISABLE): Likewise.
22930 [IS_IN (librt)] (CDISABLE): Likewise.
22931 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22932 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
22933 definition.
22934 (PSEUDO_END): Likewise.
22935 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
22936 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
22937 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
22938 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
22939 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
22940 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
22941 (CENABLE): Likewise.
22942 (CDISABLE): Likewise.
22943 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22944 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
22945 defintion.
22946 (PSEUDO_END): Likewise.
22947 [IS_IN (libpthread)] (CENABLE): Likewise.
22948 [IS_IN (libpthread)] (CDISABLE): Likewise.
22949 [IS_IN (libc)] (CENABLE): Likewise.
22950 [IS_IN (libc)] (CENABLE): Likewise.
22951 [IS_IN (librt)] (CDISABLE): Likewise.
22952 [IS_IN (librt)] (CDISABLE): Likewise.
22953 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22954 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
22955 definition.
22956 (PSEUDO_END): Likewise.
22957 [IS_IN (libpthread)] (CENABLE): Likewise.
22958 [IS_IN (libpthread)] (CDISABLE): Likewise.
22959 [IS_IN (libc)] (CENABLE): Likewise.
22960 [IS_IN (libc)] (CENABLE): Likewise.
22961 [IS_IN (librt)] (CDISABLE): Likewise.
22962 [IS_IN (librt)] (CDISABLE): Likewise.
22963 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22964 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
22965 definition.
22966 (PSEUDO_END): Likewise.
22967 [IS_IN (libpthread)] (CENABLE): Likewise.
22968 [IS_IN (libpthread)] (CDISABLE): Likewise.
22969 [IS_IN (libc)] (CENABLE): Likewise.
22970 [IS_IN (libc)] (CENABLE): Likewise.
22971 [IS_IN (librt)] (CDISABLE): Likewise.
22972 [IS_IN (librt)] (CDISABLE): Likewise.
22973 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22974 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
22975 definition.
22976 (PSEUDO_END): Likewise.
22977 [IS_IN (libpthread)] (CENABLE): Likewise.
22978 [IS_IN (libpthread)] (CDISABLE): Likewise.
22979 [IS_IN (libc)] (CENABLE): Likewise.
22980 [IS_IN (libc)] (CENABLE): Likewise.
22981 [IS_IN (librt)] (CDISABLE): Likewise.
22982 [IS_IN (librt)] (CDISABLE): Likewise.
22983 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22984 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
22985 definition.
22986 (PSEUDO_END): Likewise.
22987 [IS_IN (libpthread)] (CENABLE): Likewise.
22988 [IS_IN (libpthread)] (CDISABLE): Likewise.
22989 [IS_IN (libc)] (CENABLE): Likewise.
22990 [IS_IN (libc)] (CENABLE): Likewise.
22991 [IS_IN (librt)] (CDISABLE): Likewise.
22992 [IS_IN (librt)] (CDISABLE): Likewise.
22993 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22994 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
22995 definition.
22996 (PSEUDO_END): Likewise.
22997 [IS_IN (libpthread)] (CENABLE): Likewise.
22998 [IS_IN (libpthread)] (CDISABLE): Likewise.
22999 [IS_IN (libc)] (CENABLE): Likewise.
23000 [IS_IN (libc)] (CENABLE): Likewise.
23001 [IS_IN (librt)] (CDISABLE): Likewise.
23002 [IS_IN (librt)] (CDISABLE): Likewise.
23003 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23004 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
23005 Remove definition.
23006 (PSEUDO_END): Likewise.
23007 [IS_IN (libpthread)] (CENABLE): Likewise.
23008 [IS_IN (libpthread)] (CDISABLE): Likewise.
23009 [IS_IN (libc)] (CENABLE): Likewise.
23010 [IS_IN (libc)] (CENABLE): Likewise.
23011 [IS_IN (librt)] (CDISABLE): Likewise.
23012 [IS_IN (librt)] (CDISABLE): Likewise.
23013 (SINGLE_THREAD_P): Likewise.
23014 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
23015 definition.
23016 (PSEUDO_END): Likewise.
23017 [IS_IN (libpthread)] (CENABLE): Likewise.
23018 [IS_IN (libpthread)] (CDISABLE): Likewise.
23019 [IS_IN (libc)] (CENABLE): Likewise.
23020 [IS_IN (libc)] (CENABLE): Likewise.
23021 [IS_IN (librt)] (CDISABLE): Likewise.
23022 [IS_IN (librt)] (CDISABLE): Likewise.
23023 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23024 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
23025 definition.
23026 (PSEUDO_END): Likewise.
23027 [IS_IN (libpthread)] (CENABLE): Likewise.
23028 [IS_IN (libpthread)] (CDISABLE): Likewise.
23029 [IS_IN (libc)] (CENABLE): Likewise.
23030 [IS_IN (libc)] (CENABLE): Likewise.
23031 [IS_IN (librt)] (CDISABLE): Likewise.
23032 [IS_IN (librt)] (CDISABLE): Likewise.
23033 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23034 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
23035 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23036 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
23037 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
23038 definition.
23039 (PSEUDO_END): Likewise.
23040 [IS_IN (libpthread)] (CENABLE): Likewise.
23041 [IS_IN (libpthread)] (CDISABLE): Likewise.
23042 [IS_IN (libc)] (CENABLE): Likewise.
23043 [IS_IN (libc)] (CENABLE): Likewise.
23044 [IS_IN (librt)] (CDISABLE): Likewise.
23045 [IS_IN (librt)] (CDISABLE): Likewise.
23046 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23047 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
23048 definition.
23049 (PSEUDO_END): Likewise.
23050 [IS_IN (libpthread)] (CENABLE): Likewise.
23051 [IS_IN (libpthread)] (CDISABLE): Likewise.
23052 [IS_IN (libc)] (CENABLE): Likewise.
23053 [IS_IN (libc)] (CENABLE): Likewise.
23054 [IS_IN (librt)] (CDISABLE): Likewise.
23055 [IS_IN (librt)] (CDISABLE): Likewise.
23056 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23057 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
23058 definition.
23059 (PSEUDO_END): Likewise.
23060 [IS_IN (libpthread)] (CENABLE): Likewise.
23061 [IS_IN (libpthread)] (CDISABLE): Likewise.
23062 [IS_IN (libc)] (CENABLE): Likewise.
23063 [IS_IN (libc)] (CENABLE): Likewise.
23064 [IS_IN (librt)] (CDISABLE): Likewise.
23065 [IS_IN (librt)] (CDISABLE): Likewise.
23066 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23067 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
23068 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23069 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
23070 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
23071 definition.
23072 (PSEUDO_END): Likewise.
23073 [IS_IN (libpthread)] (CENABLE): Likewise.
23074 [IS_IN (libpthread)] (CDISABLE): Likewise.
23075 [IS_IN (libc)] (CENABLE): Likewise.
23076 [IS_IN (libc)] (CENABLE): Likewise.
23077 [IS_IN (librt)] (CDISABLE): Likewise.
23078 [IS_IN (librt)] (CDISABLE): Likewise.
23079 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23080 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
23081 definition.
23082 (PSEUDO_END): Likewise.
23083 [IS_IN (libpthread)] (CENABLE): Likewise.
23084 [IS_IN (libpthread)] (CDISABLE): Likewise.
23085 [IS_IN (libc)] (CENABLE): Likewise.
23086 [IS_IN (libc)] (CENABLE): Likewise.
23087 [IS_IN (librt)] (CDISABLE): Likewise.
23088 [IS_IN (librt)] (CDISABLE): Likewise.
23089 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23090
23091 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
23092
23093 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
23094
23095 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
23096
23097 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23098
23099 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
23100
23101 [BZ #21982]
23102 * string/stratcliff.c (do_test): Declare size, nchars, inner,
23103 middle and outer with size_t instead of int. Repleace %d and
23104 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
23105 "MAX (outer, nchars - 64)" to support unsigned outer and
23106 nchars. Also exit loop when outer == 0.
23107
23108 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23109
23110 * include/fcntl.h (__fcntl_nocancel): Remove definition.
23111 * include/signal.h (__sigsuspend_nocancel): Likewise.
23112 * include/time.h (__nanosleep_nocancel): Likewise.
23113 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
23114 * login/utmp_file.c: Include non cancellable syscall header.
23115 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
23116 prototype.
23117
23118 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
23119
23120 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
23121 .byte sequences with AVX512F instructions.
23122 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
23123 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
23124 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
23125 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
23126 Likewise.
23127 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23128 Likewise.
23129
23130 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
23131 Steve Ellcey <sellcey@cavium.com>
23132
23133 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
23134 Use PTR_REG macro in cmp instruction.
23135
23136 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23137
23138 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
23139 Change the return type of the ifunc resolver to match the return
23140 type of the target function.
23141
23142 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23143
23144 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
23145 (preadv64): Likewise.
23146 (pwrite64(: Likewise.
23147 (pwritev64): Likewise.
23148
23149 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23150 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
23151 (LOAD_ARGS_0): Likewise.
23152 (LOAD_ARGS_1): Likewise.
23153 (LOAD_ARGS_2): Likewise.
23154 (LOAD_ARGS_3): Likewise.
23155 (LOAD_ARGS_4): Likewise.
23156 (LOAD_ARGS_5): Likewise.
23157 (LOAD_ARGS_6): Likewise.
23158 (LOAD_REGS_0): Likewise.
23159 (LOAD_REGS_1): Likewise.
23160 (LOAD_REGS_2): Likewise.
23161 (LOAD_REGS_3): Likewise.
23162 (LOAD_REGS_4): Likewise.
23163 (LOAD_REGS_5): Likewise.
23164 (LOAD_REGS_6): Likewise.
23165 (ASM_ARGS_0): Likewise.
23166 (ASM_ARGS_1): Likewise.
23167 (ASM_ARGS_2): Likewise.
23168 (ASM_ARGS_3): Likewise.
23169 (ASM_ARGS_4): Likewise.
23170 (ASM_ARGS_5): Likewise.
23171 (ASM_ARGS_6): Likewise.
23172 (LOAD_ARGS_TYPES_1): Likewise.
23173 (LOAD_ARGS_TYPES_2): Likewise.
23174 (LOAD_ARGS_TYPES_3): Likewise.
23175 (LOAD_ARGS_TYPES_4): Likewise.
23176 (LOAD_ARGS_TYPES_5): Likewise.
23177 (LOAD_ARGS_TYPES_6): Likewise.
23178 (LOAD_REGS_TYPES_1): Likewise.
23179 (LOAD_REGS_TYPES_2): Likewise.
23180 (LOAD_REGS_TYPES_3): Likewise.
23181 (LOAD_REGS_TYPES_4): Likewise.
23182 (LOAD_REGS_TYPES_5): Likewise.
23183 (LOAD_REGS_TYPES_6): Likewise.
23184 (TYPEFY): New define.
23185 (ARGIFY): Likewise.
23186 (internal_syscall0): Likewise.
23187 (internal_syscall1): Likewise.
23188 (internal_syscall2): Likewise.
23189 (internal_syscall3): Likewise.
23190 (internal_syscall4): Likewise.
23191 (internal_syscall5): Likewise.
23192 (internal_syscall6): Likewise.
23193 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
23194 (INTERNAL_SYSCALL_NCS): Remove define.
23195 (internal_syscall1): Add define.
23196
23197 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23198
23199 * math/w_remainder_compat.c: Remove duplicate inclusion of
23200 math-svid-compat.h.
23201 * math/w_remainderf_compat.c: Likewise.
23202 * math/w_remainderl_compat.c: Likewise.
23203
23204 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23205
23206 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23207
23208 2017-08-22 Joseph Myers <joseph@codesourcery.com>
23209
23210 [BZ #21684]
23211 * math/tgmath.h (__floating_type): Simplify definitions.
23212 (__real_integer_type): New macro.
23213 (__complex_integer_type): Likewise.
23214 (__expr_is_real): Likewise.
23215 (__tgmath_real_type_sub): Update comment to describe handling of
23216 complex types.
23217 (__tgmath_complex_type_sub): New macro.
23218 (__tgmath_complex_type): Likewise.
23219 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23220 (__TGMATH_CF128): Use __expr_is_real.
23221 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
23222 __expr_is_real.
23223 (__TGMATH_BINARY_REAL_IMAG): Likewise.
23224 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
23225 * math/gen-tgmath-tests.py (Type.create_type): Create complex
23226 integer types.
23227
23228 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23229
23230 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
23231 macro.
23232 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
23233 alias.
23234 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
23235 Likewise.
23236
23237 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
23238 nanosleep_not_cancel with __nanosleep_nocancel.
23239 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
23240 (__nanosleep_nocancel): New macro.
23241 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
23242 function.
23243 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
23244 macro.
23245 (__nanosleep_nocancel): New prototype.
23246
23247 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
23248 pause_not_cancel with __pause_nocancel.
23249 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
23250 (__pause_nocancel): New macro.
23251 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
23252 macro.
23253 (__pause_nocancel): New prototype.
23254 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
23255
23256 2017-08-22 Martin Sebor <msebor@redhat.com>
23257
23258 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
23259 to return a pointer to the same type as the target function.
23260
23261 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
23262
23263 [BZ #18822]
23264 [BZ #21986]
23265 * include/printf.h (__printf_fphex): Add attribute_hidden.
23266 (__guess_grouping): New prototype.
23267 * stdio-common/printf_fp.c (__guess_grouping): Removed.
23268 * stdio-common/reg-printf.c (__register_printf_specifier): Add
23269 libc_hidden_proto and libc_hidden_def.
23270 * stdlib/strfmon_l.c (__guess_grouping): Removed.
23271 (__vstrfmon_l): Remove the third argument passed to
23272 __guess_grouping.
23273
23274 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23275
23276 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
23277 definition for issignaling that does not rely on __MATH_TG,
23278 since __MATH_TG uses __builtin_types_compatible_p, which is only
23279 available in C mode.
23280 (CFLAGS-test-math-issignaling.cc): New variable.
23281 * math/Makefile [CXX] (tests): Add test-math-issignaling.
23282 * math/test-math-issignaling.cc: New test for C++ implementation
23283 of type-generic issignaling.
23284 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
23285 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
23286 options of test-math-issignaling on powerpc64le.
23287
23288 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
23289
23290 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23291 building libc.a.
23292 (hidden_proto): Likewise.
23293 (hidden_tls_proto): Likewise.
23294 (__hidden_proto): Likewise.
23295
23296 2017-08-22 Florian Weimer <fweimer@redhat.com>
23297
23298 math: Statically link tests of internal functionality.
23299 * math/Makefile (tests): Remove atest-exp, atest-sincos,
23300 atest-exp2.
23301 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
23302 (gmp-objs): Remove assignment.
23303 (atest-exp, atest-sincos, atest-exp2): Remove targets.
23304
23305 2017-08-22 Joseph Myers <joseph@codesourcery.com>
23306
23307 [BZ #21987]
23308 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
23309 and copy to ...
23310 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
23311 ... here.
23312 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
23313 ... and here.
23314
23315 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
23316 variable definitions above inclusion of ../Rules.
23317
23318 2017-08-21 Joseph Myers <joseph@codesourcery.com>
23319
23320 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
23321 case calling __builtin_unreachable.
23322
23323 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23324
23325 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
23326 __waitpid_nocancel.
23327 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
23328 (__waitpid_nocancel): New macro.
23329 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
23330 macro.
23331 (__waitpid_nocancel): Replace macro with a function.
23332 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
23333 function.
23334
23335 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
23336 __fcntl_nocancel.
23337 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
23338 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
23339
23340 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
23341 __writev_nocancel_nostatus.
23342 (write_call_graph): Likewise.
23343 (write_bb_counts): Likewise.
23344 * resolv/herror.c (herror): Likewise.
23345 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
23346 macro.
23347 (__writev_nocancel_nostatus): New macro.
23348 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
23349 Remove macro.
23350 (__writev_nocancel_nostatus): New function.
23351
23352 2017-08-21 Joseph Myers <joseph@codesourcery.com>
23353
23354 Revert:
23355 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23356
23357 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23358 building libc.a.
23359 (hidden_proto): Likewise.
23360 (hidden_tls_proto): Likewise.
23361 (__hidden_proto): Likewise.
23362
23363 [BZ #21973]
23364 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
23365 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
23366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
23367 Likewise.
23368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
23369 Likewise.
23370 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
23371 Likewise.
23372 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
23373 Likewise.
23374 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
23375 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
23376 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
23377 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
23378 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
23379 GLIBC_2.0 sqrtl symbol.
23380
23381 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
23382 [__USE_MISC] (_LIB_VERSION): Likewise.
23383 [__USE_MISC] (struct exception): Likewise.
23384 [__USE_MISC] (matherr): Likewise.
23385 [__USE_MISC] (DOMAIN): Likewise.
23386 [__USE_MISC] (SING): Likewise.
23387 [__USE_MISC] (OVERFLOW): Likewise.
23388 [__USE_MISC] (UNDERFLOW): Likewise.
23389 [__USE_MISC] (TLOSS): Likewise.
23390 [__USE_MISC] (PLOSS): Likewise.
23391 [__USE_MISC] (HUGE): Likewise.
23392 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
23393 * math/math-svid-compat.h: New file.
23394 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
23395 and matherrl.
23396 * include/math.h [!_ISOMAC] (__matherr): Remove.
23397 * manual/arith.texi (FP Exceptions): Do not document matherr.
23398 * math/Makefile (tests): Change test-matherr to test-matherr-3.
23399 (tests-internal): New variable.
23400 (install-lib): Do not add libieee.a.
23401 (non-lib.a): Likewise.
23402 (extra-objs): Do not add libieee.a and ieee-math.o.
23403 (CPPFLAGS-s_lib_version.c): Remove variable.
23404 ($(objpfx)libieee.a): Remove rule.
23405 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
23406 * math/ieee-math.c: Remove.
23407 * math/libm-test-support.c (matherr): Remove.
23408 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
23409 and license notices. Include <math-svid-compat.h> and
23410 <shlib-compat.h>.
23411 (matherr): Undefine as macro. Use compat_symbol_reference.
23412 (_LIB_VERSION): Likewise.
23413 * math/test-matherr-2.c: New file.
23414 * math/test-matherr-3.c: Likewise.
23415 * sysdeps/generic/math_private.h (__kernel_standard): Remove
23416 declaration.
23417 (__kernel_standard_f): Likewise.
23418 (__kernel_standard_l): Likewise.
23419 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
23420 <math_private.h>. Include <math-svid-compat.h>.
23421 (_LIB_VERSION): Undefine as macro.
23422 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
23423 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
23424 [LIBM_SVID_COMPAT], use compat_symbol.
23425 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
23426 <math_private.h>. Include <math-svid-compat.h>.
23427 (matherr): Undefine as macro.
23428 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
23429 compat_symbol.
23430 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
23431 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
23432 compat_symbol_reference.
23433 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
23434 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
23435 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
23436 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
23437 (MATHERR_D): Remove declaration.
23438 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
23439 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
23440 [LIBM_BUILD] (pmatherrf): Likewise.
23441 [LIBM_BUILD] (pmatherr): Likewise.
23442 [LIBM_BUILD] (pmatherrl): Likewise.
23443 (DOMAIN): Likewise.
23444 (SING): Likewise.
23445 (OVERFLOW): Likewise.
23446 (UNDERFLOW): Likewise.
23447 (TLOSS): Likewise.
23448 (PLOSS): Likewise.
23449 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
23450 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
23451 compat_symbol.
23452 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
23453 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
23454 compat_symbol.
23455 * math/lgamma-compat.h: Include <math-svid-compat.h>.
23456 * math/w_acos_compat.c: Likewise.
23457 * math/w_acosf_compat.c: Likewise.
23458 * math/w_acosh_compat.c: Likewise.
23459 * math/w_acoshf_compat.c: Likewise.
23460 * math/w_acoshl_compat.c: Likewise.
23461 * math/w_acosl_compat.c: Likewise.
23462 * math/w_asin_compat.c: Likewise.
23463 * math/w_asinf_compat.c: Likewise.
23464 * math/w_asinl_compat.c: Likewise.
23465 * math/w_atan2_compat.c: Likewise.
23466 * math/w_atan2f_compat.c: Likewise.
23467 * math/w_atan2l_compat.c: Likewise.
23468 * math/w_atanh_compat.c: Likewise.
23469 * math/w_atanhf_compat.c: Likewise.
23470 * math/w_atanhl_compat.c: Likewise.
23471 * math/w_cosh_compat.c: Likewise.
23472 * math/w_coshf_compat.c: Likewise.
23473 * math/w_coshl_compat.c: Likewise.
23474 * math/w_exp10_compat.c: Likewise.
23475 * math/w_exp10f_compat.c: Likewise.
23476 * math/w_exp10l_compat.c: Likewise.
23477 * math/w_exp2_compat.c: Likewise.
23478 * math/w_exp2f_compat.c: Likewise.
23479 * math/w_exp2l_compat.c: Likewise.
23480 * math/w_fmod_compat.c: Likewise.
23481 * math/w_fmodf_compat.c: Likewise.
23482 * math/w_fmodl_compat.c: Likewise.
23483 * math/w_hypot_compat.c: Likewise.
23484 * math/w_hypotf_compat.c: Likewise.
23485 * math/w_hypotl_compat.c: Likewise.
23486 * math/w_j0_compat.c: Likewise.
23487 * math/w_j0f_compat.c: Likewise.
23488 * math/w_j0l_compat.c: Likewise.
23489 * math/w_j1_compat.c: Likewise.
23490 * math/w_j1f_compat.c: Likewise.
23491 * math/w_j1l_compat.c: Likewise.
23492 * math/w_jn_compat.c: Likewise.
23493 * math/w_jnf_compat.c: Likewise.
23494 * math/w_jnl_compat.c: Likewise.
23495 * math/w_lgamma_main.c: Likewise.
23496 * math/w_lgamma_r_compat.c: Likewise.
23497 * math/w_lgammaf_main.c: Likewise.
23498 * math/w_lgammaf_r_compat.c: Likewise.
23499 * math/w_lgammal_main.c: Likewise.
23500 * math/w_lgammal_r_compat.c: Likewise.
23501 * math/w_log10_compat.c: Likewise.
23502 * math/w_log10f_compat.c: Likewise.
23503 * math/w_log10l_compat.c: Likewise.
23504 * math/w_log2_compat.c: Likewise.
23505 * math/w_log2f_compat.c: Likewise.
23506 * math/w_log2l_compat.c: Likewise.
23507 * math/w_log_compat.c: Likewise.
23508 * math/w_logf_compat.c: Likewise.
23509 * math/w_logl_compat.c: Likewise.
23510 * math/w_pow_compat.c: Likewise.
23511 * math/w_powf_compat.c: Likewise.
23512 * math/w_powl_compat.c: Likewise.
23513 * math/w_remainder_compat.c: Likewise.
23514 * math/w_remainderf_compat.c: Likewise.
23515 * math/w_remainderl_compat.c: Likewise.
23516 * math/w_scalb_compat.c: Likewise.
23517 * math/w_scalbf_compat.c: Likewise.
23518 * math/w_scalbl_compat.c: Likewise.
23519 * math/w_sinh_compat.c: Likewise.
23520 * math/w_sinhf_compat.c: Likewise.
23521 * math/w_sinhl_compat.c: Likewise.
23522 * math/w_sqrt_compat.c: Likewise.
23523 * math/w_sqrtf_compat.c: Likewise.
23524 * math/w_sqrtl_compat.c: Likewise.
23525 * math/w_tgamma_compat.c: Likewise.
23526 * math/w_tgammaf_compat.c: Likewise.
23527 * math/w_tgammal_compat.c: Likewise.
23528 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
23529 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
23530 * sysdeps/ieee754/k_standard.c: Likewise.
23531 * sysdeps/ieee754/k_standardf.c: Likewise.
23532 * sysdeps/ieee754/k_standardl.c: Likewise.
23533 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
23534 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
23535 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
23536 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
23537 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
23538 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
23539 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
23540 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
23541 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
23542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
23543 Likewise.
23544 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
23545 Likewise.
23546 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
23547 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
23548 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
23549 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
23550
23551 2017-08-21 Florian Weimer <fweimer@redhat.com>
23552
23553 [BZ #21864]
23554 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
23555 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
23556 Move before inclusion of ../Rules.
23557
23558 2017-08-21 Florian Weimer <fweimer@redhat.com>
23559
23560 [BZ #21972]
23561 * assert/assert.h (assert): Use static_cast (bool) for C++.
23562 Use the ternary operator in the warning branch for GNU C.
23563 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
23564 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
23565 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
23566 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
23567 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
23568
23569 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23570
23571 [BZ #18822]
23572 * sysdeps/unix/sysv/linux/x86_64/init-first.c
23573 (__syscall_clock_gettime): Add attribute_hidden.
23574 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
23575 (__start_context): Likewise.
23576
23577 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23578
23579 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23580 building libc.a.
23581 (hidden_proto): Likewise.
23582 (hidden_tls_proto): Likewise.
23583 (__hidden_proto): Likewise.
23584
23585 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23586
23587 * include/libc-symbols.h (attribute_hidden): Enable hidden
23588 visibility in libc.a compiled with PIE.
23589
23590 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23591
23592 [BZ #18822]
23593 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
23594 Add attribute_hidden.
23595
23596 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23597
23598 [BZ #21864]
23599 * Makerules (all-nonlib): Add $(others-extras).
23600 * catgets/Makefile (others-extras): New.
23601 * elf/Makefile (others-extras): Likewise.
23602 * nss/Makefile (others-extras): Likewise.
23603
23604 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23605
23606 [BZ #18822]
23607 * csu/libc-start.c (__libc_multiple_libcs): Removed.
23608 * elf/dl-open.c: Include <libc-internal.h>.
23609 (__libc_multiple_libcs): Removed.
23610 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
23611 <hp-timing.h>.
23612 * include/libc-internal.h (__libc_multiple_libcs): New.
23613 * misc/sbrk.c: Include <libc-internal.h>.
23614 (__libc_multiple_libcs): Removed.
23615
23616 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23617
23618 [BZ #18822]
23619 * grp/initgroups.c (__nss_group_database): Removed.
23620 (__nss_initgroups_database): Likewise.
23621 * nscd/gai.c (__nss_hosts_database): Likewise.
23622 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
23623 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
23624 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
23625 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
23626 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
23627 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
23628 attribute_hidden.
23629 * nss/nsswitch.c (__nss_database_custom): Define only if
23630 USE_NSCD is defined.
23631 (__nss_configure_lookup): Use __nss_database_custom only if
23632 USE_NSCD is defined.
23633 * nss/nsswitch.h (__nss_database_custom): Declare only if
23634 USE_NSCD is defined. Add attribute_hidden.
23635 (__nss_setent): Add attribute_hidden.
23636 (__nss_endent): Likewise.
23637 (__nss_getent_r): Likewise.
23638 (__nss_getent): Likewise.
23639 (DEFINE_DATABASE): Declare __nss_##arg##_database.
23640
23641 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23642
23643 [BZ #18822]
23644 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
23645 libc_hidden_proto and libc_hidden_def.
23646
23647 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23648
23649 [BZ #18822]
23650 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
23651 Add libc_hidden_proto.
23652 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
23653 Add libc_hidden_def.
23654
23655 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23656
23657 [BZ #21974]
23658 * gmon/Makefile (routines): Remove bb_init_func and
23659 bb_exit_func.
23660 (elide-routines.os): Removed.
23661 * gmon/bb_exit_func.c: Likewise.
23662 * gmon/bb_init_func.c: Likewise.
23663 * include/sys/gmon.h (__bb): Likewise.
23664 (__bb_init_func): Likewise.
23665 (__bb_exit_func): Likewise.
23666 * sysdeps/alpha/bb_init_func.S: Likewise.
23667
23668 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23669
23670 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
23671 * include/setjmp.h (____longjmp_chk): Here. Add
23672 attribute_hidden.
23673
23674 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
23675
23676 [BZ #18822]
23677 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
23678 attribute_hidden.
23679 (__strspn_sse2): Likewise.
23680
23681 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23682
23683 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
23684 (close_not_cancel_no_status): Likewise.
23685 (__close_nocancel): New macro.
23686 (__close_nocancel_nostatus): Likewise.
23687 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
23688 macro.
23689 (close_not_cancel): Likewise.
23690 (close_not_cancel_no_status): Likewise.
23691 (__close_nocancel): New prototype.
23692 (__close_nocancel_nostatus): New function.
23693 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
23694 * catgets/open_catalog.c (__open_catalog): Replace
23695 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
23696 * gmon/gmon.c (write_gmon): Likewise.
23697 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
23698 * intl/loadmsgcat.c (close): Likewise.
23699 * io/ftw.c (open_dir_stream): Likewise.
23700 (ftw_startup): Likewise.
23701 * libio/fileops.c (_IO_file_open): Likewise.
23702 (_IO_file_close_mmap): Likewise.
23703 (_IO_file_close): Likewise.
23704 * libio/iopopen.c (_IO_dup2): Likewise.
23705 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
23706 * locale/loadlocale.c (_nl_load_locale): Likewise.
23707 * login/utmp_file.c (pututline_file): Likewise.
23708 (endutent_file): Likewise.
23709 * misc/daemon.c (daemon): Likewise.
23710 * nscd/nscd_getai.c (__nscd_getai): Likewise.
23711 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
23712 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
23713 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
23714 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
23715 * nscd/nscd_helper.c (open_socket): Likewise.
23716 (__nscd_open_socket): Likewise.
23717 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
23718 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
23719 (__nscd_innetgr): Likewise.
23720 * nss/nss_db/db-open.c (internal_setent): Likewise.
23721 * resolv/res-close.c (__res_iclose): Likewise.
23722 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
23723 * sysdeps/posix/closedir.c (__closedir): Likewise.
23724 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
23725 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
23726 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
23727 (opendir_tail): Likewise.
23728 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23729 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
23730 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
23731 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
23732 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23733 (gethostid): Likewise.
23734 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23735 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23736 Likewise.
23737 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
23738 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
23739 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23740 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23741 Likewise.
23742 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
23743 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
23744 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23745 Likewise.
23746 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
23747 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23748 Likewise.
23749 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23750 Likewise.
23751 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
23752 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23753 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23754 __close_nocancel.
23755
23756 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
23757 (openat_not_cancel_3): Likewise.
23758 (openat64_not_cancel_3): Likewise).
23759 (openat_not_cancel_3): Likewise).
23760 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
23761 macro.
23762 (openat_not_cancel_3): Likewise.
23763 (openat64_not_cancel): Likewise.
23764 (openat64_not_cancel_3): Likewise.
23765 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
23766 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
23767 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
23768 __open{64}_nocancel.
23769 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
23770 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
23771 * sysdeps/posix/opendir.c (__opendirat): Likewise.
23772
23773 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
23774
23775 [BZ #18822]
23776 * include/argz.h (__argz_create_sep): New function prototype.
23777 (__argz_append): Likewise.
23778 (__argz_add): Likewise.
23779 (__argz_add_sep): Likewise.
23780 (__argz_delete): Likewise.
23781 (__argz_insert): Likewise.
23782 (__argz_replace): Likewise.
23783 * string/argz.h (__argz_create_sep): Removed.
23784 (__argz_append): Likewise.
23785 (__argz_add): Likewise.
23786 (__argz_add_sep): Likewise.
23787 (__argz_delete): Likewise.
23788 (__argz_insert): Likewise.
23789 (__argz_replace): Likewise.
23790
23791 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
23792
23793 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
23794 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
23795 (GNU_PROPERTY_STACK_SIZE): Likewie.
23796 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
23797 (GNU_PROPERTY_LOPROC): Likewise.
23798 (GNU_PROPERTY_HIPROC): Likewise.
23799 (GNU_PROPERTY_LOUSER): Likewise.
23800 (GNU_PROPERTY_HIUSER): Likewise.
23801 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
23802 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
23803 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
23804 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
23805 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
23806 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
23807 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
23808 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
23809 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
23810 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
23811 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
23812 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
23813 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
23814 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
23815 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
23816 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
23817 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
23818 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
23819 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
23820 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
23821 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
23822 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
23823 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
23824
23825 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23826
23827 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
23828 in C++ mode.
23829
23830 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23831
23832 [BZ #21930]
23833 * math/math.h (isinf): Check if in C or C++ mode before using
23834 __builtin_types_compatible_p, since this is a C mode feature.
23835
23836 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23837
23838 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
23839 (__write_nocancel): New macro.
23840 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
23841 Rewrite as a function prototype.
23842 (write_not_cancel): Remove macro.
23843 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
23844 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
23845 (write_gmon): Likewise.
23846 * libio/fileops.c (_IO_new_file_write): Likewise.
23847 * login/utmp_file.c (pututline_file): Likewise.
23848 (updwtmp_file): Likewise.
23849 * stdio-common/psiginfo.c (psiginfo): Likewise.
23850 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23851 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23852 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23853 Likewise.
23854 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23855 Likewise.
23856
23857 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
23858 (__read_nocancel): New macro.
23859 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23860 __read_nocancel.
23861 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
23862 macro.
23863 (__read_nocancel): New prototype.
23864 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
23865 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
23866 with __read_nocancel.
23867 * intl/loadmsgcat.c (read): Likewise.
23868 * libio/fileops.c (_IO_file_read): Likewise.
23869 * locale/loadlocale.c (_nl_load_locale): Likewise.
23870 * login/utmp_file.c (getutent_r_file): Likewise.
23871 (internal_getut_r): Likewise.
23872 (getutline_r_file): Likewise.
23873 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
23874 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
23875 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23876 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23877 Likewise.
23878 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
23879 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23880 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23881 Likewise.
23882 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23883 Likewise.
23884 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23885 Likewise.
23886 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23887 Likewise.
23888 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23889
23890 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
23891
23892 [BZ #21966]
23893 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
23894 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
23895 usable.
23896
23897 2017-08-17 DJ Delorie <dj@redhat.com>
23898
23899 * bug17079.c: Update to new test harness.
23900 * test-digits-dots.c: Likewise.
23901 * test-netdb.c: Likewise.
23902 * tst-field.c: Likewise.
23903 * tst-nss-getpwent.c: Likewise.
23904 * tst-nss-static.c: Likewise.
23905 * tst-nss-test1.c: Likewise.
23906 * tst-nss-test2.c: Likewise.
23907 * tst-nss-test3.c: Likewise.
23908 * tst-nss-test4.c: Likewise.
23909 * tst-nss-test5.c: Likewise.
23910
23911 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23912
23913 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
23914 (open_not_cancel_2): Likewise.
23915 (open_nocancel): New macro.
23916 (open64_nocancel): Likewise.
23917 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
23918 (open_not_cancel_2): Likewise.
23919 (__open_nocancel): New prototype.
23920 (__open64_nocancel): Likewise.
23921 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23922 __open_nocancel.
23923 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
23924 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
23925 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
23926 with __open_nocancel.
23927 * csu/check_fds.c (check_one_fd): Likewise.
23928 * gmon/gmon.c (write_gmon): Likewise.
23929 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
23930 * intl/loadmsgcat.c (open): Likewise.
23931 * libio/fileops.c (_IO_file_open): Likewise.
23932 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
23933 * locale/loadlocale.c (_nl_load_locale): Likewise.
23934 * login/utmp_file.c (setutent_file): Likewise.
23935 * misc/daemon.c (daemon): Likewise.
23936 * nss/nss_db/db-open.c (internal_setent): Likewise.
23937 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
23938 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
23939 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
23940 (__opendir): Likewise.
23941 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23942 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
23943 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23944 (gethostid): Likewise.
23945 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23946 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23947 Likewise.
23948 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
23949 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
23950 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23951 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23952 Likewise.
23953 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23954 Likewise.
23955 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23956 Likewise.
23957 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
23958 Likewise.
23959 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23960 Likewise.
23961 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23962 Likewise.
23963 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
23964 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23965
23966 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
23967
23968 * benchtests/bench-skeleton.c (main): Add support for
23969 latency benchmarking.
23970 * benchtests/scripts/bench.py: Add support for latency benchmarking.
23971
23972 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
23973
23974 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
23975 the startup object.
23976
23977 2017-08-17 Florian Weimer <fweimer@redhat.com>
23978
23979 * include/sys/socket.h (__opensock): Remove internal_function.
23980 * socket/opensock.c (__opensock): Likewise.
23981 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
23982
23983 2017-08-16 Joseph Myers <joseph@codesourcery.com>
23984
23985 [BZ #21944]
23986 * signal/bits/types/__sigval_t.h: New file.
23987 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
23988 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
23989 and define sigval_t using __sigval_t.
23990 * include/bits/types/__sigval_t.h: New file.
23991 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
23992 instead of <bits/types/__sigval_t.h>.
23993 (struct sigevent): Use __sigval_t instead of sigval_t.
23994 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
23995 instead of <bits/types/__sigval_t.h>.
23996 (siginfo_t): Use __sigval_t instead of sigval_t.
23997 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
23998 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
23999 (struct sigevent): Use __sigval_t instead of sigval_t.
24000 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
24001 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
24002 (siginfo_t): Use __sigval_t instead of sigval_t.
24003 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
24004
24005 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
24006
24007 * NEWS: Remove "[Add new features here]" for 2.27.
24008
24009 2017-08-16 Joseph Myers <joseph@codesourcery.com>
24010
24011 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
24012 libc.so.
24013
24014 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
24015
24016 * NEWS: Mention x86-64 FMA optimization.
24017
24018 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
24019
24020 [BZ #21912]
24021 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24022 Add e_expf-fma.
24023 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
24024 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
24025 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
24026
24027 2017-08-16 Andreas Schwab <schwab@suse.de>
24028
24029 [BZ #16750]
24030 CVE-2009-5064
24031 * elf/ldd.bash.in: Never run file directly.
24032
24033 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
24034
24035 [BZ #21955]
24036 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
24037 (L(SP_INF_0)): Likewise.
24038
24039 2017-08-15 Florian Weimer <fweimer@redhat.com>
24040
24041 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
24042 run-built-tests.
24043
24044 2017-08-15 Florian Weimer <fweimer@redhat.com>
24045
24046 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
24047 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
24048 BROKEN_THREAD_SIGNALS code.
24049 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
24050 request_list): Remove caller_pid member used for
24051 BROKEN_THREAD_SIGNALS.
24052 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
24053 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
24054 Remove BROKEN_THREAD_SIGNALS support.
24055 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
24056 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
24057
24058 2017-08-15 Florian Weimer <fweimer@redhat.com>
24059
24060 * gmon/Makefile (tests): Add tst-gmon.
24061 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
24062 Set.
24063 (tests-special): Add tst-gmon-prof.out.
24064 (tst-gmon.out): Depend on clean-tst-gmon-data.
24065 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
24066 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
24067 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
24068 startup object.
24069 * aclocal.m4 (GPROF): Set and substitute.
24070 * config.amke.in (GPROF): Set.
24071 * configure: Regenerate.
24072
24073 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
24074
24075 * elf/elf.h A (NT_PPC_TAR): New macro.
24076 (NT_PPC_PPR): Likewise.
24077 (NT_PPC_DSCR): Likewise.
24078 (NT_PPC_EBB): Likewise.
24079 (NT_PPC_PMU): Likewise.
24080 (NT_PPC_TM_CGPR): Likewise.
24081 (NT_PPC_TM_CFPR): Likewise.
24082 (NT_PPC_TM_CVMX): Likewise.
24083 (NT_PPC_TM_CVSX): Likewise.
24084 (NT_PPC_TM_SPR): Likewise.
24085 (NT_PPC_TM_CTAR): Likewise.
24086 (NT_PPC_TM_CPPR): Likewise.
24087 (NT_PPC_TM_CDSCR): Likewise.
24088
24089 2017-08-15 Florian Weimer <fweimer@redhat.com>
24090
24091 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
24092 regparm (2) instead of internal_function.
24093 (_MCOUNT_DECL): Adjust.
24094
24095 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
24096
24097 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
24098 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
24099
24100 2017-08-14 Joseph Myers <joseph@codesourcery.com>
24101
24102 * conform/data/sys/wait.h-data (si_value): Do not expect for
24103 XPG42.
24104
24105 2017-08-14 Florian Weimer <fweimer@redhat.com>
24106
24107 [BZ #21962]
24108 NSS: Create stubs for accidentally exported lookup functions.
24109 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
24110 Remove declaration.
24111 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
24112 (ether_hostton): Call __nss_ethers_lookup2 instead.
24113 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
24114 (ether_ntohost): Call __nss_ethers_lookup2 instead.
24115 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
24116 (setup): Call __nss_netgroup_lookup2 instead.
24117 * nss/Makefile (routines): Add compat-lookup.
24118 * nss/Versions (GLIBC_2.27): Add symbol version.
24119 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
24120 (DB_COMPAT_FCT): Remove.
24121 * nss/compat-lookup.c: New file.
24122 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
24123 from databases.def.
24124 * nss/service-lookup.c (NO_COMPAT): Remove definition.
24125 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
24126 (netname2user): Call __nss_publickey_lookup2 instead.
24127 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
24128 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
24129 instead.
24130
24131 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24132 Sergei Trofimovich <slyfox@inbox.ru>
24133
24134 [BZ #21908]
24135 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
24136 Rename to MMAP2_PAGE_UNIT.
24137 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
24138 __OFF_T_MATCHES_OFF64_T is not defined.
24139 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
24140 uint64_t.
24141 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
24142 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
24143
24144 2017-08-14 Florian Weimer <fweimer@redhat.com>
24145
24146 i386: Do not set internal_function.
24147 * config.h.in (USE_REGPARMS, internal_function): Remove.
24148 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
24149 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
24150
24151 2017-08-14 Florian Weimer <fweimer@redhat.com>
24152
24153 * elf/dl-init.c (_dl_init): Remove internal_function.
24154 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
24155 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
24156
24157 2017-08-14 Florian Weimer <fweimer@redhat.com>
24158
24159 * elf/rtld.c (_dl_start): Remove internal_function.
24160 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
24161 _dl_start.
24162
24163 2017-08-14 Florian Weimer <fweimer@redhat.com>
24164
24165 * elf/dl-fini.c (_dl_fini): Remove internal_function
24166 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
24167
24168 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
24169
24170 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
24171 (bit_cpu_SHSTK): Likewise.
24172 (index_cpu_IBT): Likewise.
24173 (index_cpu_SHSTK): Likewise.
24174 (reg_IBT): Likewise.
24175 (reg_SHSTK): Likewise.
24176 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24177 Handle index_cpu_IBT and index_cpu_SHSTK.
24178
24179 2017-08-14 Mike FABIAN <mfabian@redhat.com>
24180
24181 [BZ #19982]
24182 * po/fr.po: Fix spelling mistake.
24183
24184 2017-08-13 Florian Weimer <fweimer@redhat.com>
24185
24186 * elf/dl-addr.c (_dl_addr): Remove internal_function.
24187 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
24188 (_dl_catch_error, _dl_receive_error): Likewise.
24189 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
24190 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
24191 (_dl_deallocate_tls): Likewise.
24192 * include/dlfcn.h (_dl_addr): Likewise.
24193 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
24194 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
24195 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
24196 Likewise.
24197
24198 2017-08-13 Florian Weimer <fweimer@redhat.com>
24199
24200 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
24201 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
24202 internal_function.
24203 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
24204
24205 2017-08-13 Florian Weimer <fweimer@redhat.com>
24206
24207 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
24208 internal_function.
24209 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
24210 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
24211 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
24212 internal_function from _dl_make_stack_executable_hook member.
24213 (_dl_make_stack_executable): Remove internal_function.
24214 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
24215 Likewise.
24216 * sysdeps/unix/sysv/linux/dl-execstack.c
24217 (_dl_make_stack_executable): Likewise.
24218
24219 2017-08-13 Florian Weimer <fweimer@redhat.com>
24220
24221 * sysdeps/unix/sysv/linux/netlinkaccess.h
24222 (__netlink_assert_response): Remove internal_function.
24223 * sysdeps/unix/sysv/linux/netlink_assert_response.c
24224 (__netlink_assert_response): Likewise.
24225
24226 2017-08-13 Florian Weimer <fweimer@redhat.com>
24227
24228 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
24229 internal_function.
24230 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
24231
24232 2017-08-13 Florian Weimer <fweimer@redhat.com>
24233
24234 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
24235 internal_function.
24236 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
24237 * inet/netgroup.h (__internal_setnetgrent)
24238 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
24239 * inet/getnetgrent_r.c (__internal_setnetgrent)
24240 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
24241 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
24242 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
24243 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
24244 * nss/nsswitch.h (db_lookup_function): Likewise.
24245
24246 2017-08-13 Florian Weimer <fweimer@redhat.com>
24247
24248 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
24249 Remove internal_function.
24250 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
24251 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
24252 message argument on the stack.
24253 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
24254 Likeweise.
24255
24256 2017-08-12 Mike FABIAN <mfabian@redhat.com>
24257
24258 Adapt test case data to the changes in the thousands
24259 separators.
24260
24261 [BZ #20756]
24262 * localedata/tst-langinfo.sh: Adapt test case data.
24263 * stdlib/tst-strfmon_l.c: Likewise.
24264 * stdlib/tst-strtod4.c: Likewise.
24265 * stdlib/tst-strtod5i.c: Likewise.
24266
24267 2017-08-11 Florian Weimer <fweimer@redhat.com>
24268
24269 [BZ #21242]
24270 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
24271 Suppress pedantic warning resulting from statement expression.
24272 (__ASSERT_FUNCTION): Add missing __extension__.
24273
24274 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
24275
24276 * benchtests/bench-memmove-large.c: Print output in JSON
24277 format.
24278 * benchtests/bench-memmove.c: Likewise.
24279
24280 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
24281 * benchtests/bench-memchr.c (do_one_test): Likewise.
24282 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
24283 * benchtests/bench-memcpy.c (do_one_test): Likewise.
24284 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
24285 * benchtests/bench-memmove.c (do_one_test): Likewise.
24286 * benchtests/bench-memset-large.c (do_one_test): Likewise.
24287 * benchtests/bench-memset.c (do_one_test): Likewise.
24288 * benchtests/bench-string.h (test_init): Remove memsets.
24289
24290 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
24291
24292 * manual/lang.texi
24293 (Computing the Width of an Integer Data Type): Rename section to
24294 "Width of an Integer Type". Remove inaccurate statement regarding
24295 lack of C language facilities for determining width of integer
24296 types, and reorder content to improve flow and context of
24297 discussion.
24298
24299 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
24300
24301 * lang.texi (va_copy): Change standard from ISO to C99.
24302 (__va_copy): Add standard and header annotation.
24303 Update description for clarity of origins and current use.
24304
24305 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
24306
24307 [BZ #21941]
24308 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
24309 xssqrtqp requires operands to be in Vector Registers
24310 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
24311 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
24312 (__ieee754_sqrtf128): Likewise.
24313
24314 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
24315
24316 * sysdeps/aarch64/memcmp.S (memcmp):
24317 Rewrite of optimized memcmp.
24318
24319 2017-08-10 Florian Weimer <fweimer@redhat.com>
24320
24321 Introduce ld.so exceptions.
24322 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
24323 (_dl_exception_create, _dl_exception_create_format)
24324 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
24325 (_dl_catch_exception): Declare.
24326 (_dl_catch_error): Update comment.
24327 * elf/dl-error-skeleton.c (struct catch): Replace objname,
24328 errstring, malloced members with exception member.
24329 (_dl_out_of_memory): Remove.
24330 (fatal_error): New function, extracted from _dl_signal_error.
24331 (_dl_signal_exception, _dl_signal_cexception): New functions.
24332 (_dl_signal_error): Call _dl_exception_create to allocate an
24333 exception object.
24334 (_dl_catch_exception): New function, based on _dl_catch_error.
24335 (_dl_catch_error): Implement using _dl_catch_exception.
24336 * elf/dl-exception.c: New file.
24337 * elf/Makefile (dl-routines): Add dl-exception.
24338 (elide-routines.os): Likewise.
24339 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
24340 _dl_exception_create_format, _dl_exception_free.
24341 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
24342 _dl_signal_exception.
24343 * elf/dl-lookup.c (make_string): Remove.
24344 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
24345 _dl_signal_cexception, _dl_exception_free.
24346 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
24347 _dl_signal_exception.
24348 * elf/dl-sym.c (do_sym): Likewise.
24349 * elf/dl-version.c (make_string): Remove.
24350 (match_symbol): Use _dl_exception_create_format,
24351 _dl_signal_cexception, _dl_exception_free.
24352 (_dl_check_map_versions): Likewise.
24353 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
24354 _dl_catch_exception.
24355 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
24356 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
24357 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
24358 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
24359 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
24360 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
24361 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
24362 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
24363 Likewise.
24364 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
24365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
24366 (ld.so): Likewise.
24367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
24368 (ld.so): Likewise.
24369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
24370 Likewise.
24371 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
24372 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
24373 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
24374 Likewise.
24375 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
24376 Likewise.
24377 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
24378
24379 2017-08-10 Florian Weimer <fweimer@redhat.com>
24380
24381 * inet/net-internal.h (__inet6_scopeid_pton): Remove
24382 attribute_hidden, internal_function.
24383 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
24384 internal_function.
24385
24386 2017-08-10 Florian Weimer <fweimer@redhat.com>
24387
24388 * malloc/malloc.c (get_max_fast): Reimplement as an inline
24389 function which calls __builtin_unreachable.
24390
24391 2017-08-10 Mike FABIAN <mfabian@redhat.com>
24392
24393 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
24394 Indian monetary formatting
24395 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
24396 test cases.
24397
24398 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
24399
24400 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
24401 Fix typo in comment.
24402
24403 [BZ #21928]
24404 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
24405 PTRACE_SEIZE_DEVEL): Remove.
24406 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
24407 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24408 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24409 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24410 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24411
24412 2017-08-09 Joseph Myers <joseph@codesourcery.com>
24413
24414 * posix/bits/types.h (__qaddr_t): Remove.
24415
24416 [BZ #21457]
24417 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
24418 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24419 __glibc_reserved1.
24420 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
24421 (ucontext_t): Use __ctx with uc_flags.
24422 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
24423 (__ctxt): Likewise.
24424 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24425 __glibc_reserved1.
24426 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
24427 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24428 __glibc_reserved1.
24429 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
24430 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24431 __glibc_reserved1.
24432 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
24433 macro.
24434 (ucontext_t): Use __ctx with uc_flags.
24435 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
24436 (ucontext_t): Use __ctx with uc_flags.
24437 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
24438 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
24439 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
24440 (ucontext_t): Use __ctx with uc_flags.
24441 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
24442 undefine further down.
24443 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24444 __glibc_reserved1.
24445 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
24446 undefine further down.
24447 (ucontext_t): Use __ctx with uc_flags.
24448 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
24449 undefine further down.
24450 (ucontext_t): Use __ctx with uc_flags.
24451 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
24452 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
24453 Rename uc_pad to __glibc_reserved1.
24454 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
24455 undefine further down.
24456 (ucontext_t): Use __ctx with uc_flags.
24457 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
24458 further down.
24459 (ucontext_t): Use __ctx with uc_flags.
24460 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
24461 __ctx with uc_flags.
24462 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
24463 (ucontext_t): Use __ctx with uc_flags.
24464 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
24465 __ctx with uc_flags.
24466
24467 2017-08-09 Florian Weimer <fweimer@redhat.com>
24468
24469 [BZ #21932]
24470 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
24471 before early return.
24472
24473 2017-08-09 Andreas Schwab <schwab@suse.de>
24474
24475 [BZ #21041]
24476 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
24477 renamed alias.
24478
24479 [BZ #21041]
24480 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
24481 tst-compat-forwarder.
24482 (modules-names): Add tst-compat-forwarder-mod.
24483 ($(objpfx)tst-compat-forwarder): Depend on
24484 $(objpfx)tst-compat-forwarder-mod.so.
24485 * nptl/tst-compat-forwarder.c: New file.
24486 * nptl/tst-compat-forwarder-mod.c: New file.
24487
24488 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
24489
24490 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
24491 comments.
24492
24493 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
24494 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24495 memcpy_falkor.
24496 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
24497 Bump.
24498 (__libc_ifunc_impl_list): Add __memcpy_falkor.
24499 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
24500 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
24501 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
24502 Add falkor.
24503 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
24504 New macro.
24505
24506 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24507
24508 [BZ #759]
24509 * manual/setjmp.texi (getcontex): Document uc_stack value
24510 compatibility differences.
24511
24512 2017-08-08 Joseph Myers <joseph@codesourcery.com>
24513
24514 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
24515 (old_malloc_hook): Likewise.
24516 (old_memalign_hook): Likewise.
24517 (old_realloc_hook): Likewise.
24518 (struct hdr): Likewise.
24519 (flood): Likewise.
24520 (freehook): Likewise.
24521 (mallochook): Likewise.
24522 (memalignhook): Likewise.
24523 (reallochook): Likewise.
24524 (mprobe): Likewise.
24525 * malloc/mtrace.c (mallwatch): Likewise.
24526 (tr_old_free_hook): Likewise.
24527 (tr_old_malloc_hook): Likewise.
24528 (tr_old_realloc_hook): Likewise.
24529 (tr_old_memalign_hook): Likewise.
24530 (tr_where): Likewise.
24531 (lock_and_info): Likewise.
24532 (tr_freehook): Likewise.
24533 (tr_mallochook): Likewise.
24534 (tr_reallochook): Likewise.
24535 (tr_memalignhook): Likewise.
24536 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
24537 * misc/mmap.c (__mmap): Likewise.
24538 * misc/mmap64.c (__mmap64): Likewise.
24539 * misc/mprotect.c (__mprotect): Likewise.
24540 * misc/msync.c (msync): Likewise.
24541 * misc/munmap.c (__munmap): Likewise.
24542 * posix/posix_madvise.c (posix_madvise): Likewise.
24543 * socket/send.c (__send): Likewise.
24544 * socket/sendto.c (__sendto): Likewise.
24545 * socket/setsockopt.c (__setsockopt): Likewise.
24546 * string/memcmp.c (__ptr_t): Remove macro.
24547 (MEMCMP): Use void * instead of ptr_t.
24548 * string/memrchr.c (__ptr_t): Remove macro.
24549 (__memrchr): Use void * instead of ptr_t.
24550 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
24551 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
24552 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
24553 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
24554 * sysdeps/mach/msync.c (msync): Likewise.
24555 * sysdeps/mach/munmap.c (__munmap): Likewise.
24556 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
24557 Likewise.
24558 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
24559 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
24560 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
24561 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
24562 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
24563 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
24564 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
24565 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
24566 Likewise.
24567 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
24568 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
24569 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
24570 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
24571 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
24572 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
24573 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
24574 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
24575 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
24576 Likewise.
24577 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
24578 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
24579 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
24580 (MEMCMP): Use void * instead of ptr_t.
24581 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
24582 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
24583
24584 2017-08-08 Florian Weimer <fweimer@redhat.com>
24585
24586 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
24587 return statement.
24588
24589 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
24590
24591 [BZ #21913]
24592 * csu/libc-tls.c: Include <startup.h> first.
24593 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
24594 * elf/dl-tunables.c: Include <startup.h> first.
24595 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
24596 * sysdeps/generic/startup.h: New file.
24597 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
24598 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
24599 (I386_USE_SYSENTER): New. Defined to 0.
24600
24601 2017-08-08 Andreas Schwab <schwab@suse.de>
24602
24603 [BZ #21041]
24604 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
24605 * nptl/pt-system.c (system): Likewise.
24606
24607 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24608
24609 [BZ #21780]
24610 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
24611 EOPNOTSUPP.
24612 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
24613 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
24614 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
24615 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
24616 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
24617 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
24618 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
24619
24620 2017-08-07 Joseph Myers <joseph@codesourcery.com>
24621
24622 [BZ #21899]
24623 * bits/sigaction.h (struct sigaction): Define sa_handler and
24624 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
24625 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24626 [__USE_XOPEN_EXTENDED].
24627 (SA_RESTART): Likewise.
24628 (SA_NODEFER): Likewise.
24629 (SA_RESETHAND): Likewise.
24630 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
24631 (struct sigaction): Define sa_handler and sa_sigaction using union
24632 also for [__USE_XOPEN_EXTENDED].
24633 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24634 [__USE_XOPEN_EXTENDED].
24635 (SA_RESTART): Likewise.
24636 (SA_NODEFER): Likewise.
24637 (SA_RESETHAND): Likewise.
24638 * sysdeps/unix/sysv/linux/bits/sigaction.h
24639 (struct sigaction): Define sa_handler and sa_sigaction using union
24640 also for [__USE_XOPEN_EXTENDED].
24641 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24642 [__USE_XOPEN_EXTENDED].
24643 (SA_RESTART): Likewise.
24644 (SA_NODEFER): Likewise.
24645 (SA_RESETHAND): Likewise.
24646 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
24647 (struct sigaction): Define sa_handler and sa_sigaction using union
24648 also for [__USE_XOPEN_EXTENDED].
24649 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24650 [__USE_XOPEN_EXTENDED].
24651 (SA_RESTART): Likewise.
24652 (SA_NODEFER): Likewise.
24653 (SA_RESETHAND): Likewise.
24654 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
24655 (struct sigaction): Define sa_handler and sa_sigaction using union
24656 also for [__USE_XOPEN_EXTENDED].
24657 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24658 [__USE_XOPEN_EXTENDED].
24659 (SA_RESTART): Likewise.
24660 (SA_NODEFER): Likewise.
24661 (SA_RESETHAND): Likewise.
24662 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
24663 (struct sigaction): Define sa_handler and sa_sigaction using union
24664 also for [__USE_XOPEN_EXTENDED].
24665 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24666 [__USE_XOPEN_EXTENDED].
24667 (SA_RESTART): Likewise.
24668 (SA_NODEFER): Likewise.
24669 (SA_RESETHAND): Likewise.
24670 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
24671 (struct sigaction): Define sa_handler and sa_sigaction using union
24672 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/sparc/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. Define directly rather than as alias.
24685 (SA_RESETHAND): Likewise.
24686 (SA_INTERRUPT): Define only for [__USE_MISC].
24687 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
24688 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
24689 [__USE_MISC].
24690 (SA_STACK): Define only for [__USE_MISC].
24691 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
24692 (struct sigaction): Define sa_handler and sa_sigaction using union
24693 also for [__USE_XOPEN_EXTENDED].
24694 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24695 [__USE_XOPEN_EXTENDED].
24696 (SA_RESTART): Likewise.
24697 (SA_NODEFER): Likewise.
24698 (SA_RESETHAND): Likewise.
24699 (SA_NOPTRACE): Define only for [__USE_MISC].
24700
24701 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
24702 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
24703 (struct catalog_info): Likewise.
24704 * inet/htontest.c (lo): Likewise.
24705 (foo): Likewise.
24706 * inet/inet_lnaof.c (inet_lnaof): Likewise.
24707 * inet/inet_net.c (inet_network): Likewise.
24708 * inet/inet_netof.c (inet_netof): Likewise.
24709 * inet/rcmd.c (__ivaliduser): Likewise.
24710 (iruserok): Likewise.
24711 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
24712 * locale/programs/locale-spec.c (locale_special): Likewise.
24713 * nis/nis_findserv.c (struct findserv_req): Likewise.
24714 (__nis_findfastest_with_timeout): Likewise.
24715 * nss/test-netdb.c (test_network): Likewise.
24716 * resolv/inet_neta.c (inet_neta): Likewise.
24717 * resolv/ns_date.c (ns_datetosecs): Likewise.
24718 (SECS_PER_DAY): Likewise.
24719 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
24720 Likewise.
24721 * resolv/res_comp.c (__putlong): Likewise.
24722 (__putshort): Likewise.
24723 (_getlong): Likewise.
24724 (_getshort): Likewise.
24725 * resolv/res_debug.c (p_time): Likewise.
24726 (precsize_ntoa): Likewise.
24727 (precsize_aton): Likewise.
24728 (latlon2ul): Likewise.
24729 (loc_aton): Likewise.
24730 (loc_ntoa): Likewise.
24731 * resolv/res_hconf.c (struct netaddr): Likewise.
24732 (_res_hconf_reorder_addrs): Likewise.
24733 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
24734 (clnttcp_control): Likewise.
24735 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
24736 (clntudp_control): Likewise.
24737 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
24738 (clntunix_control): Likewise.
24739 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
24740 * sunrpc/rpc/auth.h (union des_block): Likewise.
24741 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
24742 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
24743 (xdrrec_create): Likewise.
24744 (xdrrec_endofrecord): Likewise.
24745 (flush_out): Likewise.
24746 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
24747 (xdrstdio_putlong): Likewise.
24748 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
24749 Likewise.
24750
24751 * misc/sys/cdefs.h (__long_double_t): Remove.
24752 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
24753 instead of __long_double_t,
24754 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
24755
24756 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
24757
24758 * benchtests/scripts/compare_strings.py: Avoid display error when
24759 running on a text terminal.
24760
24761 * benchtests/scripts/compare_strings.py (main): Add an
24762 optional -base option.
24763 (process_results): New argument base_func.
24764
24765 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
24766 hardcoding memcpy.
24767 * benchtests/bench-memcpy-large.c (test_name): Likewise.
24768 * benchtests/bench-memcpy-random.c (test_name): Likewise.
24769
24770 2017-08-07 Andreas Schwab <schwab@suse.de>
24771
24772 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
24773 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
24774 * intl/Makefile ($(objpfx)tst-gettext.out)
24775 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
24776 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
24777 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
24778 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
24779 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
24780 * posix/Makefile ($(objpfx)globtest.out)
24781 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
24782 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
24783 ($(objpfx)tst-printf.out): Likewise.
24784 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
24785 ($(objpfx)tst-setcontext3.out): Likewise.
24786
24787 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
24788
24789 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24790 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
24791 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
24792 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
24793 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
24794 and mptan-fma.
24795 (CFLAGS-doasin-fma.c): New.
24796 (CFLAGS-dosincos-fma.c): Likewise.
24797 (CFLAGS-e_asin-fma.c): Likewise.
24798 (CFLAGS-e_atan2-fma.c): Likewise.
24799 (CFLAGS-e_exp-fma.c): Likewise.
24800 (CFLAGS-e_log-fma.c): Likewise.
24801 (CFLAGS-e_pow-fma.c): Likewise.
24802 (CFLAGS-halfulp-fma.c): Likewise.
24803 (CFLAGS-mpa-fma.c): Likewise.
24804 (CFLAGS-mpatan-fma.c): Likewise.
24805 (CFLAGS-mpatan2-fma.c): Likewise.
24806 (CFLAGS-mpexp-fma.c): Likewise.
24807 (CFLAGS-mplog-fma.c): Likewise.
24808 (CFLAGS-mpsqrt-fma.c): Likewise.
24809 (CFLAGS-mptan-fma.c): Likewise.
24810 (CFLAGS-s_atan-fma.c): Likewise.
24811 (CFLAGS-sincos32-fma.c): Likewise.
24812 (CFLAGS-slowexp-fma.c): Likewise.
24813 (CFLAGS-slowpow-fma.c): Likewise.
24814 (CFLAGS-s_sin-fma.c): Likewise.
24815 (CFLAGS-s_tan-fma.c): Likewise.
24816 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
24817 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
24818 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
24819 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
24820 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
24821 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
24822 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
24823 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
24824 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
24825 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
24826 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
24827 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
24828 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
24829 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
24830 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
24831 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
24832 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
24833 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
24834 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
24835 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
24836 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
24837 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24838 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
24839 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
24840 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
24841 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
24842 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
24843 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
24844 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
24845 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
24846 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
24847
24848 2017-08-04 Joseph Myers <joseph@codesourcery.com>
24849
24850 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
24851 (min_of_type_f): New macro.
24852 (min_of_type_): Likewise.
24853 (min_of_type_l): Likewise.
24854 (min_of_type_f128): Likewise.
24855 (min_of_type): Define using __MATH_TG and taking an expression
24856 argument.
24857 (math_check_force_underflow): Pass expression instead of type to
24858 min_of_type.
24859 (math_check_force_underflow_nonneg): Likewise.
24860
24861 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
24862
24863 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
24864 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
24865 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
24866
24867 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
24868
24869 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24870 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
24871 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
24872 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
24873 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
24874 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
24875 memcpy_chk-nonshared, mempcpy_chk-nonshared,
24876 memmove_chk-nonshared and memset_chk-nonshared
24877 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
24878 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
24879 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
24880 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
24881 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
24882 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
24883 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
24884 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
24885 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
24886 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
24887 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
24888 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
24889 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
24890 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
24891 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
24892 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
24893 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
24894 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
24895 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
24896 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
24897 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
24898 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
24899 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
24900 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
24901 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
24902 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
24903 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
24904 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
24905 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
24906 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
24907 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
24908 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
24909 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
24910 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
24911 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
24912 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
24913 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
24914 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
24915 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
24916 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
24917 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
24918 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
24919 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
24920 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
24921 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
24922 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
24923 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
24924 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
24925 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
24926 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
24927 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
24928 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
24929 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
24930 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
24931 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
24932 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
24933 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
24934 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
24935 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
24936 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
24937 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
24938 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
24939 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
24940 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
24941 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
24942 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
24943 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
24944 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
24945 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
24946 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
24947 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
24948 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24949 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24950 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24951 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24952 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24953 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24954 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24955 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24956 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24957 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24958 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24959 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24960 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24961 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
24962 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
24963 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
24964 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
24965 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24966 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24967 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24968 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24969 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24970 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
24971 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
24972 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
24973 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
24974 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
24975 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24976 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
24977 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24978 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24979 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24980 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24981 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24982 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24983 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24984 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24985
24986 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
24987
24988 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
24989 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
24990 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
24991 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
24992 svml_d_log2_core-sse2, svml_d_log4_core-sse,
24993 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
24994 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
24995 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
24996 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
24997 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
24998 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
24999 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
25000 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
25001 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
25002 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
25003 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
25004 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
25005 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
25006 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
25007 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
25008 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
25009 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
25010 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
25011 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
25012 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
25013 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
25014 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
25015 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
25016 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
25017 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
25018 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
25019 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
25020 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
25021 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
25022 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
25023 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
25024 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
25025 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
25026 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
25027 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
25028 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
25029 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
25030 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
25031 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
25032 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
25033 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
25034 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
25035 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
25036 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
25037 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
25038 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
25039 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
25040 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
25041 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
25042 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
25043 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
25044 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
25045 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
25046 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
25047 ...
25048 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
25049 Don't include <sysdep.h> nor <init-arch.h>.
25050 (_ZGVbN2v_cos): Removed.
25051 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
25052 ...
25053 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
25054 Don't include <sysdep.h> nor <init-arch.h>.
25055 (_ZGVdN4v_cos): Removed.
25056 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
25057 ...
25058 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
25059 Don't include <sysdep.h> nor <init-arch.h>.
25060 (_ZGVeN8v_cos): Removed.
25061 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
25062 ...
25063 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
25064 Don't include <sysdep.h> nor <init-arch.h>.
25065 (_ZGVbN2v_exp): Removed.
25066 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
25067 ...
25068 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
25069 Don't include <sysdep.h> nor <init-arch.h>.
25070 (_ZGVdN4v_exp): Removed.
25071 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
25072 ...
25073 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
25074 Don't include <sysdep.h> nor <init-arch.h>.
25075 (_ZGVeN8v_exp): Removed.
25076 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
25077 ...
25078 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
25079 Don't include <sysdep.h> nor <init-arch.h>.
25080 (_ZGVbN2v_log): Removed.
25081 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
25082 ...
25083 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
25084 Don't include <sysdep.h> nor <init-arch.h>.
25085 (_ZGVdN4v_log): Removed.
25086 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
25087 ...
25088 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
25089 Don't include <sysdep.h> nor <init-arch.h>.
25090 (_ZGVeN8v_log): Removed.
25091 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
25092 ...
25093 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
25094 Don't include <sysdep.h> nor <init-arch.h>.
25095 (_ZGVbN2vv_pow): Removed.
25096 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
25097 ...
25098 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
25099 Don't include <sysdep.h> nor <init-arch.h>.
25100 (_ZGVdN4vv_pow): Removed.
25101 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
25102 ...
25103 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
25104 Don't include <sysdep.h> nor <init-arch.h>.
25105 (_ZGVeN8vv_pow): Removed.
25106 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
25107 ...
25108 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
25109 Don't include <sysdep.h> nor <init-arch.h>.
25110 (_ZGVbN2v_sin): Removed.
25111 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
25112 ...
25113 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
25114 Don't include <sysdep.h> nor <init-arch.h>.
25115 (_ZGVbN4v_sin): Removed.
25116 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
25117 ...
25118 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
25119 Don't include <sysdep.h> nor <init-arch.h>.
25120 (_ZGVbN8v_sin): Removed.
25121 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
25122 ...
25123 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
25124 Don't include <sysdep.h> nor <init-arch.h>.
25125 (_ZGVbN2vvv_sincos): Removed.
25126 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
25127 ...
25128 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
25129 Don't include <sysdep.h> nor <init-arch.h>.
25130 (_ZGVdN4vvv_sincos): Removed.
25131 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
25132 ...
25133 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
25134 Don't include <sysdep.h> nor <init-arch.h>.
25135 (_ZGVeN8vvv_sincos): Removed.
25136 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
25137 ...
25138 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
25139 Don't include <sysdep.h> nor <init-arch.h>.
25140 (_ZGVeN16v_cosf): Removed.
25141 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
25142 ...
25143 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
25144 Don't include <sysdep.h> nor <init-arch.h>.
25145 (_ZGVbN4v_cosf): Removed.
25146 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
25147 ...
25148 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
25149 Don't include <sysdep.h> nor <init-arch.h>.
25150 (_ZGVdN8v_cosf): Removed.
25151 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
25152 ...
25153 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
25154 Don't include <sysdep.h> nor <init-arch.h>.
25155 (_ZGVeN16v_expf): Removed.
25156 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
25157 ...
25158 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
25159 Don't include <sysdep.h> nor <init-arch.h>.
25160 (_ZGVbN4v_expf): Removed.
25161 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
25162 ...
25163 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
25164 Don't include <sysdep.h> nor <init-arch.h>.
25165 (_ZGVdN8v_expf): Removed.
25166 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
25167 ...
25168 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
25169 Don't include <sysdep.h> nor <init-arch.h>.
25170 (_ZGVeN16v_logf): Removed.
25171 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
25172 ...
25173 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
25174 Don't include <sysdep.h> nor <init-arch.h>.
25175 (_ZGVbN4v_logf): Removed.
25176 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
25177 ...
25178 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
25179 Don't include <sysdep.h> nor <init-arch.h>.
25180 (_ZGVdN8v_logf): Removed.
25181 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
25182 ...
25183 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
25184 Don't include <sysdep.h> nor <init-arch.h>.
25185 (_ZGVeN16vv_powf): Removed.
25186 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
25187 ...
25188 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
25189 Don't include <sysdep.h> nor <init-arch.h>.
25190 (_ZGVbN4vv_powf): Removed.
25191 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
25192 ...
25193 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
25194 Don't include <sysdep.h> nor <init-arch.h>.
25195 (_ZGVdN8vv_powf): Removed.
25196 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
25197 ...
25198 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
25199 Don't include <sysdep.h> nor <init-arch.h>.
25200 (_ZGVeN16vvv_sincosf): Removed.
25201 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
25202 ...
25203 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
25204 Don't include <sysdep.h> nor <init-arch.h>.
25205 (_ZGVbN4vvv_sincosf): Removed.
25206 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
25207 ...
25208 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
25209 Don't include <sysdep.h> nor <init-arch.h>.
25210 (_ZGVdN8vvv_sincosf): Removed.
25211 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
25212 ...
25213 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
25214 Don't include <sysdep.h> nor <init-arch.h>.
25215 (_ZGVeN16v_sinf): Removed.
25216 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
25217 ...
25218 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
25219 Don't include <sysdep.h> nor <init-arch.h>.
25220 (_ZGVbN4v_sinf): Removed.
25221 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
25222 ...
25223 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
25224 Don't include <sysdep.h> nor <init-arch.h>.
25225 (_ZGVdN8v_sinf): Removed.
25226
25227 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25228
25229 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25230 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
25231 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
25232 s_rint-sse4_1 and s_rintf-sse4_1.
25233 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
25234 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
25235 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
25236 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
25237 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
25238 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
25239 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
25240 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
25241 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
25242 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
25243 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
25244 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25245 (__ceil): Removed.
25246 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
25247 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
25248 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25249 (__ceilf): Removed.
25250 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
25251 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
25252 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25253 (__floor): Removed.
25254 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
25255 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
25256 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25257 (__floorf): Removed.
25258 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
25259 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
25260 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25261 (__nearbyint): Removed.
25262 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
25263 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
25264 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25265 (__nearbyintf): Removed.
25266 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
25267 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
25268 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25269 (__rint): Removed.
25270 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
25271 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
25272 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25273 (__rintf): Removed.
25274
25275 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25276
25277 * sysdeps/i386/start.S (_start): Check Check PIC instead of
25278 SHARED. Avoid dynamic relocation against main in static PIE.
25279
25280 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25281
25282 [BZ #21815]
25283 * elf/Makefile (CFLAGS-tst-prelink.c): New.
25284 (LDFLAGS-tst-prelink): Likewise.
25285
25286 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25287
25288 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
25289 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
25290 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
25291 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
25292 (INTERNAL_SYSCALL_NCS): Likewise.
25293 (LOADARGS_1): Likewise.
25294 (LOADARGS_5): Likewise.
25295 (RESTOREARGS_1): Likewise.
25296 (RESTOREARGS_5): Likewise.
25297
25298 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25299
25300 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
25301 (MEMPCPY_SYMBOL): Likewise.
25302 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
25303 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
25304 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
25305 in libc.a.
25306 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
25307 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
25308 Likewise.
25309 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
25310 (__hidden_ver1): Don't use in libc.a.
25311 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
25312 (__mempcpy): Don't create a weak alias in libc.a.
25313 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
25314 libc.a.
25315 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
25316 (__hidden_ver1): Don't use in libc.a.
25317
25318 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25319
25320 * config.make.in (have-insert): New.
25321 * configure.ac (libc_cv_insert): New. Set to yes if linker
25322 supports INSERT in linker script.
25323 (AC_SUBST(libc_cv_insert): New.
25324 * configure: Regenerated.
25325 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
25326 if $(have-insert) == yes.
25327
25328 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25329
25330 * elf/Makefile (tests): Add vismain only if
25331 $(have-protected-data) == yes.
25332 (tests-pie): Likewise.
25333
25334 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25335
25336 [BZ #21871]
25337 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
25338 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
25339
25340 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25341
25342 [BZ #21790]
25343 * sysdeps/i386/i586/memset.S
25344 (__memset_zero_constant_len_parameter): Removed.
25345 * sysdeps/i386/i686/memset.S
25346 (__memset_zero_constant_len_parameter): Likewise.
25347 * sysdeps/i386/i686/multiarch/memset_chk.S
25348 (__memset_zero_constant_len_parameter): Likewise.
25349 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
25350 Likewise.
25351
25352 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
25353
25354 * stdlib/getentropy.c (getentropy): Change return type to int.
25355
25356 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
25357
25358 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
25359
25360 2017-08-03 Joseph Myers <joseph@codesourcery.com>
25361
25362 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
25363 u_intN_t.
25364 * math/s_nexttowardf.c (__nexttowardf): Likewise.
25365 * sysdeps/generic/math_private.h (ieee_double_shape_type):
25366 Likewise.
25367 (ieee_float_shape_type): Likewise.
25368 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
25369 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
25370 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
25371 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25372 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25373 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
25374 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
25375 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
25376 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
25377 Likewise.
25378 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
25379 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25380 (__ieee754_yn): Likewise.
25381 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
25382 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
25383 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
25384 Likewise.
25385 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25386 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
25387 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
25388 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
25389 (__erfc): Likewise.
25390 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
25391 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
25392 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
25393 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
25394 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
25395 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
25396 Likewise.
25397 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25398 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
25399 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25400 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
25401 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
25402 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
25403 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
25404 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
25405 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
25406 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
25407 (__issignaling): Likewise.
25408 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
25409 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
25410 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25411 Likewise.
25412 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25413 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
25414 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
25415 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
25416 Likewise.
25417 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
25418 Likewise.
25419 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
25420 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
25421 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
25422 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
25423 (__erfcf): Likewise.
25424 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
25425 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25426 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
25427 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
25428 Likewise.
25429 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
25430 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
25431 Likewise.
25432 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25433 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
25434 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25435 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
25436 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
25437 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
25438 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
25439 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
25440 Likewise.
25441 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
25442 Likewise.
25443 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
25444 Likewise.
25445 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
25446 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25447 Likewise.
25448 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
25449 Likewise.
25450 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25451 (__ieee754_ynl): Likewise.
25452 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
25453 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
25454 Likewise.
25455 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
25456 Likewise.
25457 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
25458 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
25459 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
25460 Likewise.
25461 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
25462 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
25463 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
25464 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
25465 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
25466 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25467 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
25468 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
25469 Likewise.
25470 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
25471 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
25472 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
25473 Likewise.
25474 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
25475 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
25476 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25477 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
25478 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
25479 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
25480 Likewise.
25481 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
25482 Likewise.
25483 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
25484 Likewise.
25485 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
25486 Likewise.
25487 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
25488 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
25489 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25490 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
25491 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
25492 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
25493 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
25494 Likewise.
25495 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25496 Likewise.
25497 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
25498 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
25499 Likewise.
25500 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
25501 (__ieee754_remainderl): Likewise.
25502 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
25503 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25504 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
25505 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
25506 Likewise.
25507 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
25508 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25509 Likewise.
25510 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
25511 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
25512 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25513 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25514 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
25515 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25516 Likewise.
25517 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
25518 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
25519 (__ieee754_y0l): Likewise.
25520 (pzero): Likewise.
25521 (qzero): Likewise.
25522 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
25523 (__ieee754_y1l): Likewise.
25524 (pone): Likewise.
25525 (qone): Likewise.
25526 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25527 (__ieee754_ynl): Likewise.
25528 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
25529 (__ieee754_lgammal_r): Likewise.
25530 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
25531 Likewise.
25532 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25533 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
25534 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25535 (__erfcl): Likewise.
25536 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
25537 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
25538 Likewise.
25539 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
25540 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
25541 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25542 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
25543 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
25544 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
25545 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25546 Likewise.
25547 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
25548 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
25549 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
25550 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
25551 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25552 Likewise.
25553 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
25554 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
25555 Likewise.
25556 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
25557 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
25558 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
25559 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
25560 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
25561
25562 2017-08-03 Florian Weimer <fweimer@redhat.com>
25563
25564 [BZ #21885]
25565 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
25566 on memory allocation failure.
25567
25568 2017-08-03 Alan Modra <amodra@gmail.com>
25569
25570 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
25571 tst-tlsopt-powerpc.c with function name change and no test harness.
25572 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
25573 Call tls_get_addr_opt_test.
25574 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
25575 (modules-names): Add mod-tlsopt-powerpc.
25576 (mod-tlsopt-powerpc.so-no-z-defs): Define.
25577 (tst-tlsopt-powerpc): Depend on .so.
25578 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
25579 define. Expand use in TLS_GD and TLS_LD.
25580
25581 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
25582
25583 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
25584 function.
25585 * sysdeps/posix/shm_open.c: Include <pthread.h>.
25586
25587 2017-08-02 Joseph Myers <joseph@codesourcery.com>
25588
25589 [BZ #21686]
25590 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
25591 comparing size with that of double.
25592 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25593 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25594 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
25595 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25596 (__TGMATH_BINARY_REAL_IMAG): Likewise.
25597 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
25598 unsigned __int128 types.
25599
25600 2017-08-02 Steve Ellcey <sellcey@cavium.com>
25601
25602 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
25603 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
25604 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
25605 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
25606 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
25607
25608 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
25609
25610 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
25611
25612 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
25613
25614 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
25615 of SHARED.
25616 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
25617 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
25618 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
25619 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
25620 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
25621 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
25622 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
25623
25624 2017-08-02 Joseph Myers <joseph@codesourcery.com>
25625
25626 [BZ #21685]
25627 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
25628 bit-field expressions passed to sizeof or typeof.
25629 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25630 (__TGMATH_F128): Likewise.
25631 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25632 (__TGMATH_CF128): Likewise.
25633 (__TGMATH_UNARY_REAL_ONLY): Likewise.
25634 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25635 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
25636 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
25637 (__TGMATH_BINARY_REAL_ONLY): Likewise.
25638 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25639 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25640 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
25641 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25642 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
25643 (__TGMATH_UNARY_REAL_IMAG): Likewise.
25644 (__TGMATH_UNARY_IMAG): Likewise.
25645 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
25646 (__TGMATH_BINARY_REAL_IMAG): Likewise.
25647 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
25648 type.
25649 (define_vars_for_type): Handle bit_field type specially.
25650 (Tests.__init__): Declare structure with bit-field element.
25651
25652 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
25653
25654 [BZ #21791]
25655 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
25656 (MEMCPY_CHK): Define only if SHARED is defined.
25657 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
25658 Likewise.
25659 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
25660 Likewise.
25661
25662 See ChangeLog.18 for earlier changes.