]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add build-many-glibcs.py support for building more GCC libraries.
[thirdparty/glibc.git] / ChangeLog
1 2018-09-11 Joseph Myers <joseph@codesourcery.com>
2
3 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
4 argument.
5 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6 build, but not for second build if --full-gcc. Use
7 --enable-languages=all for second build if --full-gcc.
8 (get_parser): Add --full-gcc option.
9 (main): Update call to Context.
10
11 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
12
13 [BZ #10797]
14 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
15 Single Quotation Mark).
16 (thousands_sep): Likewise.
17 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
18 * localedata/locales/it_IT (thousands_sep): Use ".".
19 (grouping): Use "3;3".
20
21 2018-09-10 Joseph Myers <joseph@codesourcery.com>
22
23 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24 x86_64 and i686 configs using --enable-obsolete-rpc
25 --enable-obsolete-nsl.
26
27 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
28
29 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
30
31 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
32
33 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
34 Increment size of new_argv by one.
35
36 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
37
38 [BZ #17426]
39 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
40 * localedata/locales/ar_IN (d_fmt): Likewise.
41 * localedata/locales/bhb_IN (d_fmt): Likewise.
42 * localedata/locales/bho_IN (d_fmt): Likewise.
43 * localedata/locales/bn_BD (d_fmt): Likewise.
44 * localedata/locales/bn_IN (d_fmt): Likewise.
45 * localedata/locales/doi_IN (d_fmt): Likewise.
46 * localedata/locales/gu_IN (d_fmt): Likewise.
47 * localedata/locales/hi_IN (d_fmt): Likewise.
48 * localedata/locales/hne_IN (d_fmt): Likewise.
49 * localedata/locales/kn_IN (d_fmt): Likewise.
50 * localedata/locales/mag_IN (d_fmt): Likewise.
51 * localedata/locales/mai_IN (d_fmt): Likewise.
52 * localedata/locales/mjw_IN (d_fmt): Likewise.
53 * localedata/locales/ml_IN (d_fmt): Likewise.
54 * localedata/locales/mni_IN (d_fmt): Likewise.
55 * localedata/locales/mr_IN (d_fmt): Likewise.
56 * localedata/locales/pa_IN (d_fmt): Likewise.
57 * localedata/locales/raj_IN (d_fmt): Likewise.
58 * localedata/locales/sat_IN (d_fmt): Likewise.
59 * localedata/locales/sd_IN (d_fmt): Likewise.
60 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
61 * localedata/locales/ta_IN (d_fmt): Likewise.
62 * localedata/locales/ta_LK (d_fmt): Likewise.
63 * localedata/locales/tcy_IN (d_fmt): Likewise.
64 * localedata/locales/ur_IN (d_fmt): Likewise.
65
66 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
67 * localedata/locales/ks_IN (d_fmt): Likewise.
68 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
69
70 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
71 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
72 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
73 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
74
75 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
76
77 * NEWS: Mention exp and exp2 improvements.
78 * math/Makefile (libm-support): Remove t_exp.
79 (type-double-routines): Add math_err and e_exp_data.
80 * sysdeps/aarch64/libm-test-ulps: Update.
81 * sysdeps/arm/libm-test-ulps: Update.
82 * sysdeps/i386/fpu/e_exp_data.c: New file.
83 * sysdeps/i386/fpu/math_err.c: New file.
84 * sysdeps/i386/fpu/t_exp.c: Remove.
85 * sysdeps/ia64/fpu/e_exp_data.c: New file.
86 * sysdeps/ia64/fpu/math_err.c: New file.
87 * sysdeps/ia64/fpu/t_exp.c: Remove.
88 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
89 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
90 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
91 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
92 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
93 * sysdeps/ieee754/dbl-64/math_config.h: New file.
94 * sysdeps/ieee754/dbl-64/math_err.c: New file.
95 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
96 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
97 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
98 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
99 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
100 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
101 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
102 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
103 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
104
105 2018-09-05 Joseph Myers <joseph@codesourcery.com>
106
107 * sysdeps/alpha/fpu/math_private.h: Remove.
108
109 * sysdeps/generic/math_private.h
110 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
111 Move this inline function ....
112 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
113 * include/math.h [!_ISOMAC]: To here....
114
115 2018-09-04 Joseph Myers <joseph@codesourcery.com>
116
117 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
118 code ....
119 [!FE_HAVE_ROUNDING_MODES]: And this code ....
120 * include/fenv.h [!_ISOMAC]: ... to here.
121 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
122 (feraiseexcept): Likewise.
123 * math/fromfp.h: Do not include <fenv_private.h>.
124 * math/s_cexp_template.c: Likewise.
125 * math/s_csin_template.c: Likewise.
126 * math/s_csinh_template.c: Likewise.
127 * math/s_ctan_template.c: Likewise.
128 * math/s_ctanh_template.c: Likewise.
129 * math/s_iseqsig_template.c: Likewise.
130 * math/w_acos_compat.c: Likewise.
131 * math/w_acosf_compat.c: Likewise.
132 * math/w_acosl_compat.c: Likewise.
133 * math/w_asin_compat.c: Likewise.
134 * math/w_asinf_compat.c: Likewise.
135 * math/w_asinl_compat.c: Likewise.
136 * math/w_j0_compat.c: Likewise.
137 * math/w_j0f_compat.c: Likewise.
138 * math/w_j0l_compat.c: Likewise.
139 * math/w_j1_compat.c: Likewise.
140 * math/w_j1f_compat.c: Likewise.
141 * math/w_j1l_compat.c: Likewise.
142 * math/w_jn_compat.c: Likewise.
143 * math/w_jnf_compat.c: Likewise.
144 * math/w_log10_compat.c: Likewise.
145 * math/w_log10f_compat.c: Likewise.
146 * math/w_log10l_compat.c: Likewise.
147 * math/w_log2_compat.c: Likewise.
148 * math/w_log2f_compat.c: Likewise.
149 * math/w_log2l_compat.c: Likewise.
150 * math/w_log_compat.c: Likewise.
151 * math/w_logf_compat.c: Likewise.
152 * math/w_logl_compat.c: Likewise.
153 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
154 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
155 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
156 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
157 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
158 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
159 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
160 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
161 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
162 * sysdeps/ieee754/k_standardl.c: Likewise.
163 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
164 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
165 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
166 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
167 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
168 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
169 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
170 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
171 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
172 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
173 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
174 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
175 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
176 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
177 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
178 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
179 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
180 * math/w_ilogb_template.c: Include <fenv.h> instead of
181 <fenv_private.h>.
182 * math/w_llogb_template.c: Likewise.
183 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
184 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
185
186 2018-09-03 Joseph Myers <joseph@codesourcery.com>
187
188 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
189 * math/fromfp.h: Include <fenv_private.h>.
190 * math/math-narrow.h: Likewise.
191 * math/s_cexp_template.c: Likewise.
192 * math/s_csin_template.c: Likewise.
193 * math/s_csinh_template.c: Likewise.
194 * math/s_ctan_template.c: Likewise.
195 * math/s_ctanh_template.c: Likewise.
196 * math/s_iseqsig_template.c: Likewise.
197 * math/w_acos_compat.c: Likewise.
198 * math/w_acosf_compat.c: Likewise.
199 * math/w_acosl_compat.c: Likewise.
200 * math/w_asin_compat.c: Likewise.
201 * math/w_asinf_compat.c: Likewise.
202 * math/w_asinl_compat.c: Likewise.
203 * math/w_ilogb_template.c: Likewise.
204 * math/w_j0_compat.c: Likewise.
205 * math/w_j0f_compat.c: Likewise.
206 * math/w_j0l_compat.c: Likewise.
207 * math/w_j1_compat.c: Likewise.
208 * math/w_j1f_compat.c: Likewise.
209 * math/w_j1l_compat.c: Likewise.
210 * math/w_jn_compat.c: Likewise.
211 * math/w_jnf_compat.c: Likewise.
212 * math/w_llogb_template.c: Likewise.
213 * math/w_log10_compat.c: Likewise.
214 * math/w_log10f_compat.c: Likewise.
215 * math/w_log10l_compat.c: Likewise.
216 * math/w_log2_compat.c: Likewise.
217 * math/w_log2f_compat.c: Likewise.
218 * math/w_log2l_compat.c: Likewise.
219 * math/w_log_compat.c: Likewise.
220 * math/w_logf_compat.c: Likewise.
221 * math/w_logl_compat.c: Likewise.
222 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
223 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
224 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
225 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
226 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
227 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
228 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
229 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
230 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
231 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
232 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
233 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
234 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
235 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
236 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
237 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
238 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
239 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
240 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
241 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
242 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
243 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
244 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
245 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
246 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
247 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
248 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
249 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
250 * sysdeps/ieee754/float128/float128_private.h: Likewise.
251 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
252 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
253 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
254 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
255 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
256 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
257 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
258 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
259 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
260 * sysdeps/ieee754/k_standardl.c: Likewise.
261 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
262 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
263 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
264 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
265 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
266 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
267 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
268 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
269 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
270 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
271 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
272 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
273 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
274 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
275 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
276 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
277 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
278 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
279 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
280 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
281 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
282 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
283 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
284 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
285 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
286 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
287 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
288 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
289 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
290 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
291 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
292 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
293 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
294 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
295 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
296 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
297 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
298 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
299 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
300 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
301 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
302 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
303 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
304 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
305 * sysdeps/riscv/rvd/s_finite.c: Likewise.
306 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
307 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
308 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
309 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
310 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
311 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
312 * sysdeps/riscv/rvf/fegetround.c: Likewise.
313 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
314 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
315 * sysdeps/riscv/rvf/fesetround.c: Likewise.
316 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
317 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
318 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
319 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
320 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
321 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
322 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
323 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
324 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
325 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
326 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
327 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
328 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
329 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
330 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
331 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
332
333 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
334
335 [BZ #20271]
336 * include/stdio.h (__libc_fatal): Mention newline in comment.
337 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
338 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
339 * nscd/initgrcache.c (addinitgroupsX): Likewise.
340 * nss/nsswitch.c (__nss_next2): Likewise.
341 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
342 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
343 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
344 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
345 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
346 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
347 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
348 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
349 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
350 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
351 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
352 * sysdeps/unix/sysv/linux/netlink_assert_response.c
353 (__netlink_assert_response): Likewise.
354
355 2018-08-31 Joseph Myers <joseph@codesourcery.com>
356
357 * conform/glibcconform.py: New file.
358 * conform/list-header-symbols.py: Likewise.
359 * conform/list-header-symbols.pl: Remove.
360 * conform/Makefile (tests-special): Only add linknamespace tests
361 if [PYTHON].
362 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
363
364 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
365
366 [BZ #23597]
367 * support/Makefile (libsupport-routines): Add
368 support_copy_file_range and xcopy_file_range.
369 * support/support.h: Include <sys/types.h>.
370 (support_copy_file_range): New prototype.
371 * support/support_copy_file_range.c: New file. Copied and
372 modified from io/copy_file_range-compat.c.
373 * support/test-container.c (copy_one_file): Call xcopy_file_rang
374 instead of copy_file_range.
375 * support/xcopy_file_range.c: New file.
376 * support/xunistd.h (xcopy_file_range): New prototype.
377
378 2018-08-30 Carlos O'Donell <carlos@redhat.com>
379
380 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
381 xpthread_create and xpthread_join.
382
383 2018-08-30 Florian Weimer <fweimer@redhat.com>
384
385 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
386
387 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
388
389 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
390 if malloc fails.
391
392 2018-08-29 Joseph Myers <joseph@codesourcery.com>
393
394 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
395 and minus_oflow as non-finite.
396
397 2018-08-28 Joseph Myers <joseph@codesourcery.com>
398
399 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
400 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
401 moved to fenv_private.h except for ...
402 (TOINT_INTRINSICS): Kept in math_private.h.
403 (roundtoint): Likewise.
404 (converttoint): Likewise.
405 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
406 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
407 * sysdeps/arm/math_private.h: Remove.
408 * sysdeps/generic/fenv_private.h: New file. Contents moved from
409 ....
410 * sysdeps/generic/math_private.h: ... this file. Include
411 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
412 Include <fenv_private.h>. Remove functions and macros moved to
413 fenv_private.h.
414 * sysdeps/i386/fpu/math_private.h: Remove.
415 * sysdeps/mips/math_private.h: Move to ....
416 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
417 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
418 [__mips_hard_float] conditional. Include next <fenv_private.h>.
419 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
420 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
421 * sysdeps/powerpc/fpu/math_private.h: Do not include
422 <fenv_private.h>.
423 * sysdeps/riscv/rvf/math_private.h: Move to ....
424 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
425 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
426 <fenv_private.h>.
427 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
428 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
429 * sysdeps/sparc/fpu/math_private.h: Remove.
430 * sysdeps/i386/fpu/fenv_private.h: Move to ....
431 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
432 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
433 <fenv_private.h>.
434 * sysdeps/x86_64/fpu/math_private.h: Do not include
435 <sysdeps/i386/fpu/fenv_private.h>.
436
437 2018-08-28 Florian Weimer <fweimer@redhat.com>
438
439 [BZ #23578]
440 * posix/tst-regcomp-truncated.c: New file.
441 * posix/Makefile (tests): Add it.
442 (tst-regcomp-truncated.out): Depend on generated locales.
443
444 2018-08-28 Florian Weimer <fweimer@redhat.com>
445
446 * support/test-container.c (main): Treat unshare failure with
447 EPERM as an unsupported test.
448
449 2018-08-28 Florian Weimer <fweimer@redhat.com>
450
451 [BZ #23520]
452 nscd: Fix use-after-free in addgetnetgrentX and its callers.
453 * nscd/netgroupcache.c
454 (addgetnetgrentX): Add tofreep parameter. Do not free
455 heap-allocated buffer.
456 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
457 (addgetnetgrentX_ignore): New function.
458 (addgetnetgrent): Call it.
459 (readdgetnetgrent): Likewise.
460
461 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
462
463 * string/memmem.c: Use memcmp for first match.
464
465 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
466
467 [BZ #17426]
468 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
469
470 2018-08-27 DJ Delorie <dj@redhat.com>
471
472 * support/Makefile (others): Don't list programs explicitly as a
473 dependency of "others".
474
475 2018-08-27 Joseph Myers <joseph@codesourcery.com>
476
477 * sysdeps/generic/math-tests-trap-force.h: New file.
478 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
479 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
480 * sysdeps/powerpc/math-tests.h: Remove file.
481 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
482
483 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
484 Torvald Riegel <triegel@redhat.com>
485
486 [BZ #23538]
487 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
488 Update r to include the set wake-request flag if waiters are
489 remaining after spinning.
490
491 2018-08-27 Joseph Myers <joseph@codesourcery.com>
492
493 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
494
495 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
496
497 [BZ #23578]
498 regex: fix uninitialized memory access
499 I introduced this bug into gnulib in commit
500 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
501 eventually it was merged into glibc. The bug was found by
502 project-repo <bugs@feusi.co> and reported here:
503 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
504 Diagnosis and draft fix reported by Assaf Gordon here:
505 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
506 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
507 * posix/regex_internal.c (build_wcs_upper_buffer):
508 Fix bug when mbrtowc returns 0.
509
510 2018-08-24 Carlos O'Donell <carlos@redhat.com>
511
512 * po/be.po: Update translation.
513
514 2018-08-24 DJ Delorie <dj@delorie.com>
515
516 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
517 $(libunwind).
518
519 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
520
521 [BZ #23400]
522 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
523 create temporary files in source tree.
524
525 2018-08-24 Joseph Myers <joseph@codesourcery.com>
526
527 * sysdeps/generic/math-tests-trap.h: New file.
528 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
529 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
530 * sysdeps/aarch64/math-tests.h: Remove file.
531 * sysdeps/arm/math-tests.h: Likewise.
532 * sysdeps/riscv/math-tests.h: Likewise.
533 * sysdeps/aarch64/math-tests-trap.h: New file.
534 * sysdeps/arm/math-tests-trap.h: Likewise.
535 * sysdeps/riscv/math-tests-trap.h: Likewise.
536
537 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
538
539 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
540 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
541 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
542 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
543 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
544 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
545 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
546 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
547 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
548 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
549 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
550 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
551 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
552 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
553 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
554 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
555 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
556 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
557
558 2018-08-23 Joseph Myers <joseph@codesourcery.com>
559
560 * sysdeps/generic/math-tests-exceptions.h: New file.
561 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
562 (EXCEPTION_TESTS_float): Do not define here.
563 (EXCEPTION_TESTS_double): Likewise.
564 (EXCEPTION_TESTS_long_double): Likewise.
565 (EXCEPTION_TESTS_float128): Likewise.
566 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
567 Likewise.
568 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
569 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
570 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
571 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
572 * sysdeps/mips/math-tests.h: Likewise.
573 * sysdeps/nios2/math-tests.h: Likewise.
574 * sysdeps/riscv/math-tests.h [!__riscv_flen]
575 (EXCEPTION_TESTS_float): Do not define here.
576 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
577 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
578 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
579
580 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
581
582 * NEWS: Move optimized sinf entry to 2.29.
583
584 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
585
586 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
587
588 2018-08-22 DJ Delorie <dj@redhat.com>
589
590 * Makefile (testroot.pristine): New rules to initialize the
591 test-in-container "testroot".
592 * Makerules (all-testsuite): Add tests-container.
593 * Rules (tests-expected): Add tests-container.
594 (binaries-all-tests): Likewise.
595 (tests-container): New, run these tests in the testroot container.
596 * support/Makefile (others): Add *-container, support_paths.c,
597 xmkdirp, and links-dso-program.
598 * support/links-dso-program-c.c: New.
599 * support/links-dso-program.cc: New.
600 * support/test-container.c: New.
601 * support/shell-container.c: New.
602 * support/echo-container.c: New.
603 * support/true-container.c: New.
604 * support/xmkdirp.c: New.
605 * support/xsymlink.c: New.
606 * support/support_paths.c: New.
607 * support/support.h: Add support paths prototypes.
608 * support/xunistd.h: Add xmkdirp () and xsymlink ().
609
610 * nss/tst-nss-test3.c: Convert to test-in-container.
611 * nss/tst-nss-test3.root/: New.
612
613 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
614
615 regex: port Gnulib code to z/OS POSIX environment
616 Problem reported by Arnold Robbins in:
617 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
618 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
619 Undef.
620
621 2018-08-22 Joseph Myers <joseph@codesourcery.com>
622
623 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
624 (ROUNDING_TESTS_double): Remove.
625 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
626 (ROUNDING_TESTS_double): Remove.
627 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
628 (ROUNDING_TESTS_double): Remove.
629 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
630 (ROUNDING_TESTS_float): Remove.
631 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
632 (ROUNDING_TESTS_float): Remove.
633 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
634 (ROUNDING_TESTS_float): Remove.
635 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
636 !TEST_MATHVEC here.
637 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
638 (IF_ROUND_INIT_FE_UPWARD): Likewise.
639
640 * sysdeps/generic/math-tests-rounding.h: New file.
641 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
642 (ROUNDING_TESTS_float): Do not define here.
643 (ROUNDING_TESTS_double): Likewise.
644 (ROUNDING_TESTS_long_double): Likewise.
645 (ROUNDING_TESTS_float128): Likewise.
646 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
647 (ROUNDING_TESTS_double): Undefine before defining.
648 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
649 (ROUNDING_TESTS_double): Undefine before defining.
650 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
651 (ROUNDING_TESTS_double): Undefine before defining.
652 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
653 (ROUNDING_TESTS_float): Undefine before defining.
654 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
655 (ROUNDING_TESTS_float): Undefine before defining.
656 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
657 (ROUNDING_TESTS_float): Undefine before defining.
658 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
659 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
660 not define here.
661 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
662 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
663 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
664 * sysdeps/riscv/math-tests.h [!__riscv_flen]
665 (ROUNDING_TESTS_float): Do not define here.
666 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
667 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
668 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
669 (ROUNDING_TESTS_float): Likewise.
670 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
671 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
672 * sysdeps/mips/math-tests.h [__mips_soft_float]
673 (ROUNDING_TESTS_float): Likewise.
674 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
675 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
676 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
677 (ROUNDING_TESTS_double): Likewise.
678 (ROUNDING_TESTS_long_double): Likewise.
679
680 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
681
682 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
683 (PF_XDP): New macro.
684 (AF_XDP): New macro.
685 (SOL_XDP): New macro.
686
687 2018-08-21 Joseph Myers <joseph@codesourcery.com>
688
689 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
690 (TCP_INQ): Likewise.
691 (TCP_CM_INQ): Likewise.
692 (TCP_REPAIR_ON): Likewise.
693 (TCP_REPAIR_OFF): Likewise.
694 (TCP_REPAIR_OFF_NO_WP): Likewise.
695 (struct tcp_zerocopy_receive): New type.
696
697 2018-08-21 Florian Weimer <fweimer@redhat.com>
698
699 * support/support.h (support_descriptor_supports_holes): Declare.
700 * support/Makefile (libsupport-routines): Add
701 support_descriptor_supports_holes.
702 * support/support_descriptor_supports_holes.c: New file.
703 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
704 and stop testing if holes are not supported.
705 * io/test-lfs.c (do_prepare): Likewise.
706 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
707 Likewise.
708 * timezone/tst-tzset.c (create_tz_file): Likewise.
709 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
710 variable.
711 (do_prepare): Set it.
712 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
713
714 2018-08-21 Florian Weimer <fweimer@redhat.com>
715
716 [BZ #17248]
717 * Makeconfig (+cflags): Do not sort (and deduplicate).
718
719 2018-08-21 Florian Weimer <fweimer@redhat.com>
720
721 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
722 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
723
724 2018-08-20 Florian Weimer <fweimer@redhat.com>
725
726 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
727 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
728
729 2018-08-20 Joseph Myers <joseph@codesourcery.com>
730
731 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
732 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
733 and ssi_arch members.
734
735 * elf/elf.c (NT_VMCOREDD): New macro.
736 (AT_MINSIGSTKSZ): Likewise.
737
738 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
739
740 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
741 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
742 s_cosf-ppc64 and s_cosf-power8.
743 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
744 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
745 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
746 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
753 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
754 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
755
756 2018-08-17 Florian Weimer <fweimer@redhat.com>
757
758 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
759
760 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
761
762 * malloc/malloc.c (_int_malloc): Additional binning code checks.
763
764 2018-08-16 Florian Weimer <fweimer@redhat.com>
765
766 * configure.ac: Add --with-nonshared-cflags option.
767 * config.make.in (extra-nonshared-cflags): Set variable.
768 * Makeconfig (CFLAGS-.oS): Use it.
769 * manual/install.texi (Configuring and compiling): Document
770 --with-nonshared-cflags.
771 * configure: Regenerate.
772 * INSTALL: Likewise.
773
774 2018-08-16 Florian Weimer <fweimer@redhat.com>
775
776 * Makeconfig (ASFLAGS): Always append required assembler flags.
777
778 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
779
780 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
781 (malloc_consolidate): Likewise.
782
783 2018-08-16 Pochang Chen <johnchen902@gmail.com>
784
785 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
786
787 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
788
789 * benchtests/bench-strlen.c (do_test): Allocate buffers before
790 every strlen call.
791
792 * benchtests/bench-strlen.c: Print performance numbers in json.
793
794 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
795
796 * sysdeps/powerpc/powerpc64/multiarch/Makefile
797 (sysdep_routines): Build strcmp-power9 and strncmp-power9
798 only for little endian.
799 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
800 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
801 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
802 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
803 Add check for little endian.
804 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
805 (__strcmp_power9): Add check for little endian.
806 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
807 Add check for little endian.
808 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
809 (__strncmp_power9): Add check for little endian.
810 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
811 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
812 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
813 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
814 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
815
816 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
817
818 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
819 [!STRLEN](STRLEN): Set to __strlen.
820 * sysdeps/aarch64/multiarch/strlen.c: New file.
821 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
822 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
823 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
824 (__libc_ifunc_impl_list): Add strlen.
825 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
826 strlen_generic and strlen_asimd.
827
828 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
829
830 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
831 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
832 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
833
834 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
835
836 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
837
838 2018-08-14 Florian Weimer <fweimer@redhat.com>
839
840 [BZ #23519]
841 * include/stdio.h (__vfxprintf): Declare.
842 * stdio-common/fxprintf.c (__vfxprintf): New function.
843 (__fxprintf): Call it.
844 * misc/err.c (convert_and_print): Remove function.
845 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
846 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
847 * misc/Makefile (tests): Add tst-warn-wide.
848 * misc/tst-warn-wide.c: New file.
849
850 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
851 Szabolcs Nagy <szabolcs.nagy@arm.com>
852
853 * NEWS: Mention sinf, cosf, sincosf.
854 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
855 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
856 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
857 constants rather than including generic sincosf.h.
858 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
859 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
860 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
861 (reduced_cos): Remove.
862 (sinf_poly): New function.
863 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
864
865 2018-08-14 Florian Weimer <fweimer@redhat.com>
866
867 [BZ #23521]
868 [BZ #23522]
869 * nss/nss_files/files-alias.c (get_next_alias): During :include:
870 processing, bail out if no room, and close the stream before
871 returning ERANGE.
872 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
873 (tst-nss-files-alias-leak): Link with libdl.
874 (tst-nss-files-alias-leak.out): Depend on nss_files.
875
876 * nss/tst-nss-files-alias-leak.c: New file.
877
878 2018-08-14 Florian Weimer <fweimer@redhat.com>
879
880 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
881 server_user, stat_user.
882
883 2018-08-13 Joseph Myers <joseph@codesourcery.com>
884
885 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
886 version to 4.18.
887 (io_pgetevents): New syscall.
888 (rseq): Likewise.
889
890 * manual/install.texi (Configuring and compiling): Do not list
891 tools used for testing pretty printers here.
892 (Tools for Compilation): List Python, PExpect and GDB here.
893 Update descriptions of uses of Perl and Python.
894 * INSTALL: Regenerate.
895
896 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
897 version to 4.18.
898
899 2018-08-13 Florian Weimer <fweimer@redhat.com>
900
901 * misc/error.c (error): Add missing va_end call.
902 (error_at_line): Likewise.
903
904 2018-08-13 Florian Weimer <fweimer@redhat.com>
905
906 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
907
908 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
909
910 * benchtests/scripts/benchout.schema.json (properties): Add
911 new properties.
912
913 * benchtests/bench-skeleton.c (main): Add duration and
914 iterations attributes.
915
916 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
917
918 regex: Gnulib unibyte RRI uses bytes not chars
919 Adjust the non-glibc code to agree with what Gawk needs for
920 rational range interpretation (RRI) for regular expression ranges.
921 In unibyte locales, Gawk wants ranges to use the underlying byte
922 rather than the character code point. This change does not affect
923 glibc proper.
924 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
925 In unibyte locales, use the byte value rather than
926 running it through btowc.
927
928 2018-08-10 Joseph Myers <joseph@codesourcery.com>
929
930 * sysdeps/generic/math-tests-snan.h: New file.
931 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
932 (SNAN_TESTS_float): Do not define here.
933 (SNAN_TESTS_double): Likewise.
934 (SNAN_TESTS_long_double): Likewise.
935 (SNAN_TESTS_float128): Likewise.
936 * sysdeps/i386/fpu/math-tests-snan.h: New file.
937 * sysdeps/i386/fpu/math-tests.h: Remove file.
938 * sysdeps/ia64/math-tests-snan.h: New file.
939 * sysdeps/ia64/math-tests.h: Remove file.
940 * sysdeps/x86/math-tests.h: Likewise.
941 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
942
943 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
944 Szabolcs Nagy <szabolcs.nagy@arm.com>
945
946 * math/Makefile: Add s_sincosf_data.c.
947 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
948 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
949 (sincosf_poly): Likewise.
950 (reduce_small): Likewise.
951 (reduce_large): Likewise.
952 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
953 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
954 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
955 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
956
957 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
958 Szabolcs Nagy <szabolcs.nagy@arm.com>
959
960 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
961 (converttoint): Use lround.
962 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
963 document the semantics when TOINT_INTRINSICS is set.
964 (converttoint): Likewise.
965 (TOINT_RINT): Remove.
966 (TOINT_SHIFT): Remove.
967 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
968 path.
969
970 2018-08-10 Florian Weimer <fweimer@redhat.com>
971
972 [BZ #23497]
973 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
974 function.
975 (__old_getdents64): Use getdents64. Convert entries without
976 moving them.
977 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
978 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
979 tst-readdir64-compat.
980
981 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
982
983 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
984 Fix unwind.
985
986 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
987
988 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
989 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
990 code to s390x-mcount.h and #include it.
991 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
992 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
993 (__fentry__): Add.
994
995 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
996
997 * stdlib/Versions: Remove __fentry__.
998 * sysdeps/i386/Versions: Add __fentry__.
999 * sysdeps/x86_64/Versions: Add __fentry__.
1000
1001 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1002
1003 * sysdeps/s390/Makefile: Register the new tests.
1004 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
1005 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
1006 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
1007 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
1008 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
1009 * sysdeps/s390/tst-dl-runtime.c: New file.
1010
1011 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1012
1013 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
1014 Do not clobber R0.
1015
1016 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1017
1018 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
1019 Do not clobber R0.
1020
1021 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1022
1023 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
1024 Do not clobber R0.
1025
1026 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1027
1028 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1029 Do not clobber R0.
1030
1031 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1032
1033 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
1034 Use symbolic offsets for stack variables.
1035
1036 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1037
1038 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
1039 Use symbolic offsets for stack variables.
1040
1041 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1042
1043 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
1044 Use symbolic offsets for stack variables.
1045
1046 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
1047
1048 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
1049 Use symbolic offsets for stack variables.
1050
1051 2018-08-09 Joseph Myers <joseph@codesourcery.com>
1052
1053 * math/gen-libm-test.py: New file.
1054 * math/gen-libm-test.pl: Remove.
1055 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
1056 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
1057 gen-libm-test.pl.
1058 ($(libm-test-c-noauto-obj)): Likewise.
1059 ($(libm-test-c-auto-obj)): Likewise.
1060 ($(libm-test-c-narrow-obj)): Likewise.
1061 (regen-ulps): Likewise.
1062 * math/README.libm-test: Update references to gen-libm-test.pl.
1063 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
1064 referencing gen-libm-test.pl.
1065 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
1066 * math/libm-test-support.c: Likewise.
1067 * math/libm-test-support.h: Likewise.
1068 * sysdeps/generic/libm-test-ulps: Likewise.
1069
1070 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
1071
1072 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
1073 Fix value.
1074
1075 2018-08-08 Joseph Myers <joseph@codesourcery.com>
1076
1077 * math/libm-test-nextdown.inc (do_test): Move comment to ....
1078 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
1079
1080 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1081
1082 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
1083 symbols.
1084 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
1085 __pthread_setspecific): Add hidden proto.
1086 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
1087 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
1088
1089 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
1090
1091 * benchtests/bench-string.h (buf1_size, buf2_size): New
1092 variables.
1093 (init_sizes): New function.
1094 (test_init): Use it.
1095 (alloc_buf, exit_error): New functions.
1096 (alloc_bufs): Use ALLOC_BUF.
1097 (realloc_bufs): Remove.
1098 * benchtests/bench-memcmp.c (do_test): Adjust.
1099 * benchtests/bench-memset-large.c (do_test): Likewise.
1100 * benchtests/bench-memset-walk.c (do_test): Likewise.
1101 * benchtests/bench-memset.c (do_test): Likewise.
1102 * benchtests/bench-strncmp.c (do_test): Likewise.
1103
1104 2018-08-06 Andreas Schwab <schwab@suse.de>
1105
1106 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
1107 of CONST_THREAD_AREA.
1108
1109 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
1110
1111 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
1112 (STATE_SAVE_MASK): Likewise.
1113 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
1114 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
1115 (STATE_SAVE_MASK): Likewise.
1116 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
1117 instead of <cpu-features.h>.
1118
1119 2018-08-03 DJ Delorie <dj@redhat.com>
1120
1121 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
1122 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
1123
1124 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1125
1126 2018-08-03 Joseph Myers <joseph@codesourcery.com>
1127
1128 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
1129 after TEST_* calls.
1130 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
1131 * math/libm-test-logb.inc (logb_test_data): Likewise.
1132
1133 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
1134
1135 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
1136 * string/strstr.c (AVAILABLE): Likewise.
1137
1138 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
1139
1140 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
1141 <init-arch.h>.
1142 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
1143 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
1144 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
1145
1146 2018-08-03 Carlos O'Donell <carlos@redhat.com>
1147
1148 * po/be.po: Update translation.
1149
1150 * po/be.po: Update translation.
1151
1152 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
1153
1154 * sysdeps/x86/cpu-features-offsets.sym
1155 (rtld_global_ro_offsetof): Removed.
1156 (CPU_FEATURES_SIZE): Likewise.
1157 (CPUID_OFFSET): Likewise.
1158 (CPUID_SIZE): Likewise.
1159 (CPUID_EAX_OFFSET): Likewise.
1160 (CPUID_EBX_OFFSET): Likewise.
1161 (CPUID_ECX_OFFSET): Likewise.
1162 (CPUID_EDX_OFFSET): Likewise.
1163 (FAMILY_OFFSET): Likewise.
1164 (MODEL_OFFSET): Likewise.
1165 (FEATURE_OFFSET): Likewise.
1166 (FEATURE_SIZ): Likewise.
1167 (COMMON_CPUID_INDEX_1): Likewise.
1168 (COMMON_CPUID_INDEX_7): Likewise.
1169 (FEATURE_INDEX_1): Likewise.
1170 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
1171
1172 2018-08-02 Carlos O'Donell <carlos@redhat.com>
1173
1174 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
1175 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
1176 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
1177 (install-locales): Depend on install-locale-archive.
1178 (install-locale-archive): Define.
1179 (install-locale-files): Define.
1180 (build-one-locale): Define macro.
1181 * manual/install.texi (Running make install): Document.
1182 * manual/INSTALL: Regenerate.
1183
1184 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
1185
1186 * benchtests/scripts/compare_strings.py: Import traceback.
1187 (parse_file): Pretty-print error.
1188
1189 * NEWS: Mention the change.
1190 * elf/dl-tunables.list: Rename tune namespace to cpu.
1191 * sysdeps/powerpc/dl-tunables.list: Likewise.
1192 * sysdeps/x86/dl-tunables.list: Likewise.
1193 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
1194 cpu.name.
1195 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
1196 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
1197 * manual/README.tunables: Likewise.
1198 * manual/tunables.texi: Likewise.
1199 * sysdeps/powerpc/cpu-features.c: Likewise.
1200 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
1201 (init_cpu_features): Likewise.
1202 * sysdeps/x86/cpu-features.c: Likewise.
1203 * sysdeps/x86/cpu-features.h: Likewise.
1204 * sysdeps/x86/cpu-tunables.c: Likewise.
1205 * sysdeps/x86_64/Makefile: Likewise.
1206 * sysdeps/x86/dl-cet.c: Likewise.
1207
1208 2018-08-02 Joseph Myers <joseph@codesourcery.com>
1209
1210 [BZ #23479]
1211 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
1212 [__mips_hard_float].
1213 (FE_UNDERFLOW): Likewise.
1214 (FE_OVERFLOW): Likewise.
1215 (FE_DIVBYZERO): Likewise.
1216 (FE_INVALID): Likewise.
1217 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
1218 (FE_TOWARDZERO): Define only if [__mips_hard_float].
1219 (FE_UPWARD): Likewise.
1220 (FE_DOWNWARD): Likewise.
1221 (__FE_UNDEFINED): Define if [!__mips_hard_float]
1222 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
1223 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
1224 [__mips_hard_float].
1225 (FP_ROUNDMODE): Likewise.
1226 (FP_RND_NEAREST): Likewise.
1227 (FP_RND_ZERO): Likewise.
1228 (FP_RND_PINF): Likewise.
1229 (FP_RND_MINF): Likewise.
1230 (FP_EX_INVALID): Likewise.
1231 (FP_EX_OVERFLOW): Likewise.
1232 (FP_EX_UNDERFLOW): Likewise.
1233 (FP_EX_DIVZERO): Likewise.
1234 (FP_EX_INEXACT): Likewise.
1235 (FP_INIT_ROUNDMODE): Likewise.
1236 * sysdeps/mips/nofpu/fesetenv.c: New file.
1237 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
1238
1239 2018-08-01 Joseph Myers <joseph@codesourcery.com>
1240
1241 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
1242 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
1243 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
1244 conditional on [FE_UPWARD].
1245
1246 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
1247
1248 regex: fix memory leak in Gnulib
1249 Problem and fix reported by Assaf Gordon in:
1250 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
1251 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
1252 range_ends members too, as they are defined in 'struct
1253 re_charset_t' even if not _LIBC. This affects only Gnulib.
1254
1255 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
1256
1257 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
1258 ...
1259 (get_common_indices): This.
1260 (init_cpu_features): Updated.
1261
1262 2018-08-01 Joseph Myers <joseph@codesourcery.com>
1263
1264 * sysdeps/generic/math-tests-snan-payload.h: New file.
1265 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
1266 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
1267 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
1268 * sysdeps/generic/math-tests.h: Include
1269 <math-tests-snan-payload.h>.
1270 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
1271 * sysdeps/hppa/math-tests.h: Remove file.
1272 * sysdeps/mips/math-tests.h [!__mips_nan2008]
1273 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
1274 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
1275 Likewise.
1276
1277 * sysdeps/generic/math-tests-snan-cast.h: New file.
1278 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
1279 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
1280 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
1281 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
1282
1283 2018-08-01 Carlos O'Donel <carlos@redhat.com>
1284
1285 * version.h (RELEASE): Set to "development".
1286 (VERSION): Set to "2.28.9000".
1287 * NEWS (2.29): New section.
1288
1289 * version.h (RELEASE): Set to "stable".
1290 (VERSION): Set to "2.28".
1291 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
1292 * NEWS: Add the list of bugs fixed in 2.28.
1293
1294 * po/ca.po: Update to latest version.
1295 * po/cs.po: Likewise
1296 * po/da.po: Likewise
1297 * po/el.po: Likewise
1298 * po/eo.po: Likewise
1299 * po/es.po: Likewise
1300 * po/fi.po: Likewise
1301 * po/fr.po: Likewise
1302 * po/gl.po: Likewise
1303 * po/hu.po: Likewise
1304 * po/ia.po: Likewise
1305 * po/id.po: Likewise
1306 * po/it.po: Likewise
1307 * po/ja.po: Likewise
1308 * po/ko.po: Likewise
1309 * po/lt.po: Likewise
1310 * po/nb.po: Likewise
1311 * po/nl.po: Likewise
1312 * po/pt_BR.po: Likewise
1313 * po/ru.po: Likewise
1314 * po/rw.po: Likewise
1315 * po/sk.po: Likewise
1316 * po/sl.po: Likewise
1317 * po/tr.po: Likewise
1318 * po/zh_CN.po: Likewise
1319 * po/zh_TW.po: Likewise
1320
1321 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
1322
1323 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
1324 initialization...
1325 (init): ... before initializing libpthread.
1326
1327 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
1328 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
1329 (__mach_setup_tls): ... new function.
1330 (mach_setup_tls): New alias.
1331 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
1332 __mach_setup_thread.
1333 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
1334 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
1335 * mach/Versions [libc] (mach_setup_tls): Add symbol.
1336 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
1337
1338 2018-07-31 Carlos O'Donell <carlos@redhat.com>
1339
1340 * manual/install.texi: Update versions.
1341 * INSTALL: Regenerate.
1342
1343 * manual/contrib.texi (Contributors): Update contributions.
1344
1345 2018-07-31 Carlos O'Donell <carlos@redhat.com>
1346
1347 * po/be.po: Update translations.
1348
1349 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1350
1351 * sysdeps/sh/libm-test-ulps: Update.
1352
1353 2018-07-30 Carlos O'Donell <carlos@redhat.com>
1354
1355 * po/bg.po: Update translations.
1356 * po/de.po: Likewise.
1357 * po/hr.po: Likewise.
1358 * po/pt_BR.po: Likewise.
1359 * po/sv.po: Likewise.
1360 * po/vi.po: Likewise.
1361
1362 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
1363
1364 [BZ #23467]
1365 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
1366 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
1367 (CFLAGS-tst-cet-property-1.o): New.
1368 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
1369 ($(objpfx)tst-cet-property-2): Likewise.
1370 ($(objpfx)tst-cet-property-2.out): Likewise.
1371 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
1372 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
1373 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
1374 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
1375 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
1376
1377 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
1378
1379 [BZ #23458]
1380 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
1381
1382 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1383
1384 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
1385 __sbrk): Do not set attribute_hidden.
1386 * sysdeps/mach/hurd/not-errno.h: New file.
1387 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
1388 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
1389
1390 2018-07-27 Carlos O'Donell <carlos@redhat.com>
1391
1392 * po/uk.po: Update translations.
1393 * po/cs.po: Likewise.
1394 * po/pl.po: Likewise.
1395
1396 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
1397
1398 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
1399 parse beyond the note end.
1400
1401 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1402
1403 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
1404 kernel does not support OFD locks.
1405 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
1406
1407 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
1408
1409 * sysdeps/mach/hurd/Versions (libc): Make __access and
1410 __access_noerrno external so they can override the ld symbols.
1411 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
1412 __writev, __open64, __access_noerrno extern so they can be overrided.
1413 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
1414 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
1415
1416 2018-07-26 Carlos O'Donell <carlos@redhat.com>
1417
1418 * po/libc.pot: Regenerate.
1419
1420 2018-07-26 Joseph Myers <joseph@codesourcery.com>
1421
1422 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1423
1424 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
1425
1426 [BZ #23459]
1427 * sysdeps/x86/cpu-features.c (get_extended_indices): New
1428 function.
1429 (init_cpu_features): Call get_extended_indices for both Intel
1430 and AMD CPUs.
1431 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
1432 Remove "for AMD" comment.
1433
1434 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
1435
1436 [BZ # 23456]
1437 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
1438 COMMON_CPUID_INDEX_80000001.
1439
1440 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
1441
1442 * string/tst-xbzero-opt.c (use_test_buffer): New function.
1443 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
1444
1445 2018-07-26 Florian Weimer <fweimer@redhat.com>
1446
1447 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
1448 aliases for symbols not in the implementation namespace.
1449
1450 2018-07-25 Carlos O'Donell <carlos@redhat.com>
1451
1452 [BZ #23393]
1453 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
1454 lowercase in LATIN script.
1455 * localedata/Makefile (test-input): Add en_US.UTF-8.
1456 * localedata/en_US.UTF-8.in: New file.
1457 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
1458 and restore old tests.
1459 * posix/tst-regexloc.c (do_test): Add back range expression test.
1460
1461 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1462
1463 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
1464
1465 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1466
1467 * nptl/threads.h: Move to ...
1468 * sysdeps/nptl/threads.h: ... here.
1469 * sysdeps/hurd/stdc-predef.h: New file.
1470
1471 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1472
1473 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
1474 tst-cet-setcontext-1 if CET is enabled.
1475 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
1476 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
1477
1478 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1479
1480 * include/threads.h: Move to ...
1481 * sysdeps/nptl/threads.h: ... here.
1482 * sysdeps/htl/threads.h: New file.
1483 * conform/Makefile (linknamespace-libs-ISO11): Use
1484 static-thread-library instead of linking libpthread.
1485 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
1486
1487 2018-07-25 Florian Weimer <fweimer@redhat.com>
1488
1489 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
1490 nanoseconds into seconds.
1491 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
1492 (do_test): Likewise.
1493 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
1494 (do_test): Likewise. Avoid nanosecond overflow and spurious
1495 timeouts due to system load.
1496 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
1497 (child_wait): Increment it.
1498 (do_test): Wait as long as necessary until all expected threads
1499 have arrived.
1500
1501 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
1502 H.J. Lu <hongjiu.lu@intel.com>
1503
1504 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
1505 __ssp.
1506 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
1507 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
1508 (__push___start_context): New.
1509 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
1510 <asm/prctl.h>.
1511 (__getcontext): Record the current shadow stack base. Save the
1512 caller's shadow stack pointer and base.
1513 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
1514 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
1515 (__push___start_context): New prototype.
1516 (__makecontext): Call __push___start_context to allocate a new
1517 shadow stack, push __start_context onto the new stack as well
1518 as the new shadow stack.
1519 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
1520 <asm/prctl.h>.
1521 (__setcontext): Restore the target shadow stack.
1522 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
1523 <asm/prctl.h>.
1524 (__swapcontext): Record the current shadow stack base. Save
1525 the caller's shadow stack pointer and base. Restore the target
1526 shadow stack.
1527 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
1528 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
1529 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
1530
1531 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1532
1533 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
1534 tst-setcontext8 and tst-setcontext9.
1535 * stdlib/tst-setcontext6.c: New file.
1536 * stdlib/tst-setcontext7.c: Likewise.
1537 * stdlib/tst-setcontext8.c: Likewise.
1538 * stdlib/tst-setcontext9.c: Likewise.
1539
1540 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1541
1542 * stdlib/Makefile ((tests): Add tst-setcontext5.
1543 * stdlib/tst-setcontext5.c: New file.
1544
1545 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1546
1547 * stdlib/Makefile (tests): Add tst-setcontext4.
1548 * stdlib/tst-setcontext4.c: New file.
1549
1550 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1551
1552 * stdlib/Makefile (tests): Add tst-swapcontext1.
1553 * stdlib/tst-swapcontext1.c: New test.
1554
1555 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1556
1557 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
1558 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
1559 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
1560 and tst-cet-legacy-4c.
1561 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
1562 and tst-cet-legacy-mod-4.
1563 (CFLAGS-tst-cet-legacy-2.c): New.
1564 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
1565 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
1566 (CFLAGS-tst-cet-legacy-3.c): Likewise.
1567 (CFLAGS-tst-cet-legacy-4.c): Likewise.
1568 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
1569 ($(objpfx)tst-cet-legacy-1): Likewise.
1570 ($(objpfx)tst-cet-legacy-2): Likewise.
1571 ($(objpfx)tst-cet-legacy-2.out): Likewise.
1572 ($(objpfx)tst-cet-legacy-2a): Likewise.
1573 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
1574 ($(objpfx)tst-cet-legacy-4): Likewise.
1575 ($(objpfx)tst-cet-legacy-4.out): Likewise.
1576 ($(objpfx)tst-cet-legacy-4a): Likewise.
1577 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
1578 (tst-cet-legacy-4a-ENV): Likewise.
1579 ($(objpfx)tst-cet-legacy-4b): Likewise.
1580 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
1581 (tst-cet-legacy-4b-ENV): Likewise.
1582 ($(objpfx)tst-cet-legacy-4c): Likewise.
1583 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
1584 (tst-cet-legacy-4c-ENV): Likewise.
1585 * sysdeps/x86/tst-cet-legacy-1.c: New file.
1586 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
1587 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
1588 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
1589 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
1590 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
1591 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
1592 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
1593 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
1594 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
1595 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
1596
1597 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
1598
1599 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
1600 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
1601 with ssp_base.
1602 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
1603 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
1604 with ssp_base.
1605
1606 2018-07-25 Andreas Schwab <schwab@suse.de>
1607
1608 [BZ #23442]
1609 * locale/weightwc.h (findidx): Handle the case where usrc is a
1610 prefix of cp but one character too short.
1611
1612 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1613
1614 * NEWS: Add ISO C threads addition.
1615
1616 2018-07-24 Florian Weimer <fweimer@redhat.com>
1617
1618 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
1619 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
1620 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
1621 4.13.
1622
1623 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1624
1625 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
1626 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
1627 <sys/prctl.h> and <asm/prctl.h>.
1628 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
1629 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
1630 and <asm/prctl.h>.
1631 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
1632 ARCH_CET_LEGACY_BITMAP.
1633 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
1634 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
1635 * sysdeps/x86/libc-start.c: Include <startup.h>.
1636
1637 2018-07-24 Florian Weimer <fweimer@redhat.com>
1638
1639 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
1640 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
1641
1642 2018-07-24 Rical Jasan <rj@2c3t.io>
1643 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1644 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
1645
1646 [BZ #14092]
1647 * manual/debug.texi: Update adjacent chapter name.
1648 * manual/probes.texi: Likewise.
1649 * manual/threads.texi (ISO C Threads): New section.
1650 (POSIX Threads): Convert to a section.
1651
1652 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1653 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
1654
1655 [BZ# 14092]
1656 * nptl/Makefile (tests): Add new test files.
1657 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
1658 * nptl/tst-cnd-basic.c: Likewise.
1659 * nptl/tst-cnd-broadcast.c: Likewise.
1660 * nptl/tst-cnd-timedwait.c: Likewise.
1661 * nptl/tst-mtx-basic.c: Likewise.
1662 * nptl/tst-mtx-recursive.c: Likewise.
1663 * nptl/tst-mtx-timedlock.c: Likewise.
1664 * nptl/tst-mtx-trylock.c: Likewise.
1665 * nptl/tst-thrd-basic.c: Likewise.
1666 * nptl/tst-thrd-detach.c: Likewise.
1667 * nptl/tst-thrd-sleep.c: Likewise.
1668 * nptl/tst-tss-basic.c: Likewise.
1669
1670 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1671
1672 [BZ #14092]
1673 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
1674 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
1675 symbols.
1676 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1677 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
1678 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1679 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1680 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1681 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1682 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1683 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1684 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1685 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1686 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1687 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1689 Likewise.
1690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1691 Likewise.
1692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1693 Likewise.
1694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1695 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
1696 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1697 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1698 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1699 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1700 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1701 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1702 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1703 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
1704 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
1705 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
1706 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
1707 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
1708 Likewise.
1709 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
1710 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
1711 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
1712 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
1713 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
1714 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
1715 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
1716 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
1717 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
1718 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
1719 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
1720 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
1721 ikewise.
1722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
1723 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
1724 Likewise.
1725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
1726 Likewise.
1727 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
1728 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
1729 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
1730 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
1731 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
1732 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
1733 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
1734 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
1735
1736 [BZ #14092]
1737 * conform/data/threads.h-data (thread_local): New macro.
1738 (TSS_DTOR_ITERATIONS): Likewise.
1739 (tss_t): New type.
1740 (tss_dtor_t): Likewise.
1741 (tss_create): New function.
1742 (tss_get): Likewise.
1743 (tss_set): Likewise.
1744 (tss_delete): Likewise.
1745 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
1746 tss_get, and tss_set objects.
1747 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
1748 * nptl/tss_create.c: New file.
1749 * nptl/tss_delete.c: Likewise.
1750 * nptl/tss_get.c: Likewise.
1751 * nptl/tss_set.c: Likewise.
1752 * sysdeps/nptl/threads.h (thread_local): New define.
1753 (TSS_DTOR_ITERATIONS): Likewise.
1754 (tss_t): New typedef.
1755 (tss_dtor_t): Likewise.
1756 (tss_create): New prototype.
1757 (tss_get): Likewise.
1758 (tss_set): Likewise.
1759 (tss_delete): Likewise.
1760
1761 [BZ #14092]
1762 * conform/data/threads.h-data (cnd_t): New type.
1763 (cnd_init): New function.
1764 (cnd_signal): Likewise.
1765 (cnd_broadcast): Likewise.
1766 (cnd_wait): Likewise.
1767 (cnd_timedwait): Likewise.
1768 (cnd_destroy): Likewise.
1769 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
1770 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
1771 object.
1772 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
1773 * nptl/cnd_broadcast.c: New file.
1774 * nptl/cnd_destroy.c: Likewise.
1775 * nptl/cnd_init.c: Likewise.
1776 * nptl/cnd_signal.c: Likewise.
1777 * nptl/cnd_timedwait.c: Likewise.
1778 * nptl/cnd_wait.c: Likewise.
1779 * sysdeps/nptl/threads.h (cnd_t): New type.
1780 (cnd_init): New prototype.
1781 (cnd_signa): Likewise.
1782 (cnd_broadcast): Likewise.
1783 (cnd_wait): Likewise.
1784 (cnd_timedwait): Likewise.
1785 (cnd_destroy): Likewise.
1786
1787 [BZ #14092]
1788 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
1789 (once_flag): New type.
1790 (call_once): New function.
1791 * nptl/Makefile (libpthread-routines): Add call_once object.
1792 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
1793 * nptl/call_once.c: New file.
1794 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
1795 (once_flag): New type.
1796 (call_once): New prototype.
1797
1798 [BZ #14092]
1799 * conform/data/threads.h-data (mtx_plain): New constant.
1800 (mtx_recursive): Likewise.
1801 (mtx_timed): Likewise.
1802 (mtx_t): New type.
1803 (mtx_init): New function.
1804 (mtx_lock): Likewise.
1805 (mtx_timedlock): Likewise.
1806 (mtx_trylock): Likewise.
1807 (mtx_unlock): Likewise.
1808 (mtx_destroy): Likewise.
1809 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
1810 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
1811 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
1812 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
1813 * nptl/mtx_destroy.c: New file.
1814 * nptl/mtx_init.c: Likewise.
1815 * nptl/mtx_lock.c: Likewise.
1816 * nptl/mtx_timedlock.c: Likewise.
1817 * nptl/mtx_trylock.c: Likewise.
1818 * nptl/mtx_unlock.c: Likewise.
1819 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
1820 (mtx_recursive): Likewise.
1821 (mtx_timed): Likewise.
1822 (mtx_t): New type.
1823 (mtx_init): New prototype.
1824 (mtx_lock): Likewise.
1825 (mtx_timedlock): Likewise.
1826 (mtx_trylock): Likewise.
1827 (mtx_unlock): Likewise.
1828 (mtx_destroy): Likewise.
1829
1830 [BZ #14092]
1831 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
1832 (linknamespace-libs-ISO11): Add libpthread.a.
1833 * conform/data/threads.h-data: New file: add C11 thrd_* types and
1834 functions.
1835 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
1836 * nptl/Makefile (headers): Add threads.h.
1837 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
1838 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
1839 thrd_yield.
1840 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
1841 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
1842 thrd_join, thrd_sleep, and thrd_yield symbols.
1843 * nptl/descr.h (struct pthread): Add c11 field.
1844 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
1845 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
1846 routine with expected function prototype.
1847 (__pthread_create_2_1): Add C11 threads check based on attribute
1848 value.
1849 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
1850 * nptl/thrd_create.c: New file.
1851 * nptl/thrd_current.c: Likewise.
1852 * nptl/thrd_detach.c: Likewise.
1853 * nptl/thrd_equal.c: Likewise.
1854 * nptl/thrd_exit.c: Likewise.
1855 * nptl/thrd_join.c: Likewise.
1856 * nptl/thrd_priv.h: Likewise.
1857 * nptl/thrd_sleep.c: Likewise.
1858 * nptl/thrd_yield.c: Likewise.
1859 * include/threads.h: Likewise.
1860
1861 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1862
1863 * bits/indirect-return.h: New file.
1864 * misc/sys/cdefs.h (__glibc_has_attribute): New.
1865 * sysdeps/x86/bits/indirect-return.h: Likewise.
1866 * stdlib/Makefile (headers): Add bits/indirect-return.h.
1867 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
1868 (swapcontext): Add __INDIRECT_RETURN.
1869 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
1870 (prepare_test_buffer): Use it.
1871
1872 2018-07-24 Andreas Schwab <schwab@suse.de>
1873
1874 [BZ #23448]
1875 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
1876 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
1877
1878 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1879
1880 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
1881 Redefine if shadow stack is enabled.
1882 (SYSCALL_ERROR_LABEL): Likewise.
1883 (__vfork): Pop shadow stack and jump back to to caller directly
1884 when shadow stack is in use.
1885 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
1886 Redefine if shadow stack is enabled.
1887 (SYSCALL_ERROR_LABEL): Likewise.
1888 (__vfork): Pop shadow stack and jump back to to caller directly
1889 when shadow stack is in use.
1890
1891 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
1892
1893 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
1894 enabled.
1895 (foo): Likewise.
1896 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
1897 (foo): Likewise.
1898
1899 2018-07-20 Joseph Myers <joseph@codesourcery.com>
1900
1901 * scripts/build-many-glibcs.py (Context.checkout): Default
1902 binutils version to 2.31 branch.
1903
1904 2018-07-20 Zong Li <zong@andestech.com>
1905
1906 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
1907 URL of gcc's tarball.
1908
1909 2018-07-20 Florian Weimer <fweimer@redhat.com>
1910
1911 [BZ #23396]
1912 * posix/regcomp.c (build_equiv_class): When comparing weights, do
1913 not compare an extra byte after the end of the weights.
1914
1915 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
1916
1917 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
1918 to 1.
1919 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
1920 hidden prototypes.
1921 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
1922 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
1923 * scripts/check-execstack.awk: Consider `xfail' variable containing a
1924 list of libraries whose stack executability is expected.
1925 * elf/Makefile ($(objpfx)check-execstack.out): Pass
1926 $(check-execstack-xfail) to check-execstack.awk through `xfail'
1927 variable.
1928 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
1929 libc.so libpthread.so.
1930
1931 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
1932
1933 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
1934 SOCK_NONBLOCK.
1935 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
1936 and SOCK_NONBLOCK.
1937 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
1938 implement __pipe2.
1939 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
1940
1941 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1942
1943 * benchtests/scripts/compare_bench.py (__main__): use the argparse
1944 library to improve command line parsing.
1945 (__main__): make schema file as optional parameter (--schema),
1946 defaulting to benchtests/scripts/benchout.schema.json.
1947 (main): move out of the parsing stuff to __main_  and leave it
1948 only as caller of main comparison functions.
1949
1950 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
1951
1952 * NEWS: Add a note for Intel CET status.
1953 * manual/install.texi: Likewise.
1954 * INSTALL: Regenerated.
1955
1956 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
1957
1958 [BZ #23140]
1959 * localedata/locales/oc_FR (mon): Rename to...
1960 (alt_mon): This, then update October (typo fix).
1961 (mon): New content (genitive case, month names preceded by
1962 "de" or "d’").
1963
1964 [BZ #23422]
1965 * localedata/locales/oc_FR (abday): Update all items.
1966 (day): Update Wednesday and Saturday (typo fixes).
1967 (abmon): Update all items, except May.
1968 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
1969 (LC_IDENTIFICATION): Bump the revision number and date.
1970 Keep the "category" entries in alphabetic order.
1971 (LC_ADDRESS): Remove no longer needed comment.
1972 (LC_COLLATE): Use “copy "ca_ES"”.
1973 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
1974 "name_mrs".
1975
1976 2018-07-18 Joseph Myers <joseph@codesourcery.com>
1977
1978 * grp/tst_fgetgrent.c: Include <unistd.h>.
1979 (main): Use mkstemp instead of tmpnam.
1980 * io/test-utime.c (main): Likewise.
1981 * posix/annexc.c (macrofile): Change to modifiable array.
1982 (main): Remove macrofile here.
1983 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
1984 macrofile here.
1985 (check_header): Do not remove macrofile here.
1986 * posix/bug-getopt1.c: Include <stdlib.h>.
1987 (do_test): Use mkstemp instead of tmpnam.
1988 * posix/bug-getopt2.c: Include <stdlib.h>.
1989 (do_test): Use mkstemp instead of tmpnam.
1990 * posix/bug-getopt3.c: Include <stdlib.h>.
1991 (do_test): Use mkstemp instead of tmpnam.
1992 * posix/bug-getopt4.c: Include <stdlib.h>.
1993 (do_test): Use mkstemp instead of tmpnam.
1994 * posix/bug-getopt5.c: Include <stdlib.h>.
1995 (do_test): Use mkstemp instead of tmpnam.
1996 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
1997 (main): Use mkstemp instead of tmpnam.
1998 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
1999 (main): Use mkstemp instead of tmpnam.
2000 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
2001 (main): use mkstemp instead of tmpnam.
2002 * stdlib/isomac.c (macrofile): Change to modifiable array.
2003 (main): Remove macrofile here.
2004 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
2005 macrofile here.
2006 (check_header): Do not remove macrofile here.
2007
2008 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 * manual/tunables.texi: Document glibc.tune.x86_ibt and
2011 glibc.tune.x86_shstk.
2012
2013 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2014
2015 * NEWS: Mention --enable-cet.
2016 * manual/install.texi: Document --enable-cet.
2017 * INSTALL: Regenerated.
2018
2019 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2020
2021 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
2022 Add _CET_NOTRACK before indirect jump to jump table.
2023
2024 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2025
2026 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
2027 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2028 to jump table.
2029
2030 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2031
2032 * sysdeps/i386/i686/multiarch/strcat-sse2.S
2033 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2034 to jump table.
2035
2036 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2037
2038 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
2039 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2040 to jump table.
2041
2042 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2043
2044 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
2045 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2046 to jump table.
2047
2048 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2049
2050 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
2051 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2052 to jump table.
2053 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
2054
2055 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2056
2057 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
2058 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2059 to jump table.
2060
2061 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2062
2063 * sysdeps/i386/i686/multiarch/memset-sse2.S
2064 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2065 to jump table.
2066
2067 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2068
2069 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
2070 indirect jump to jump table.
2071
2072 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2073
2074 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
2075 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2076 to jump table.
2077 (MEMCPY): Likewise.
2078
2079 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2080
2081 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
2082 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2083 to jump table.
2084 (MEMCPY): Likewise.
2085
2086 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2087
2088 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
2089 _CET_NOTRACK before indirect jump to jump table.
2090
2091 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2092
2093 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
2094 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
2095 to jump table.
2096
2097 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
2098
2099 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
2100 indirect jump to jump table.
2101
2102 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
2103
2104 [BZ #22241]
2105 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
2106 (LOCALES): Likewise.
2107 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
2108 * localedata/locales/sah_RU: New file.
2109 * localedata/sah_RU.UTF-8.in: New file.
2110
2111 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2112
2113 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
2114 "sysdep.h".
2115 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
2116 _CET_ENDBR to indirect jump targets and adjust jump destination
2117 for _CET_ENDBR.
2118 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
2119 "sysdep.h".
2120 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
2121 _CET_ENDBR to indirect jump targets and adjust jump destination
2122 for _CET_ENDBR.
2123 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
2124 "sysdep.h".
2125 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
2126 _CET_ENDBR to indirect jump targets and adjust jump destination
2127 for _CET_ENDBR.
2128
2129 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2130
2131 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
2132 _CET_ENDBR.
2133
2134 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2135
2136 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
2137 _CET_ENDBR.
2138 (_dl_tlsdesc_undefweak): Likewise.
2139 (_dl_tlsdesc_dynamic): Likewise.
2140 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
2141 (_dl_tlsdesc_resolve_rel): Likewise.
2142 (_dl_tlsdesc_resolve_rela): Likewise.
2143 (_dl_tlsdesc_resolve_hold): Likewise.
2144 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
2145 (_dl_tlsdesc_undefweak): Likewise.
2146 (_dl_tlsdesc_dynamic): Likewise.
2147 (_dl_tlsdesc_resolve_rela): Likewise.
2148 (_dl_tlsdesc_resolve_hold): Likewise.
2149
2150 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2151
2152 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
2153 (_fini): Likewise.
2154 * sysdeps/x86_64/crti.S (_init): Likewise.
2155 (_fini): Likewise.
2156
2157 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
2158
2159 [BZ #23140]
2160 * localedata/locales/os_RU (mon): Rename to...
2161 (alt_mon): This.
2162 (mon): Import from CLDR (genitive case).
2163
2164 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
2165
2166 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
2167 cet-tunables.h> when CET is enabled.
2168
2169 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
2170
2171 [BZ #21598]
2172 * configure.ac: Add --enable-cet.
2173 * configure: Regenerated.
2174 * elf/Makefille (all-built-dso): Add a comment.
2175 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
2176 Include <dl-prop.h>.
2177 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
2178 segment.
2179 * elf/dl-open.c: Include <dl-prop.h>.
2180 (dl_open_worker): Call _dl_open_check.
2181 * elf/rtld.c: Include <dl-prop.h>.
2182 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
2183 _rtld_main_check.
2184 * sysdeps/generic/dl-prop.h: New file.
2185 * sysdeps/i386/dl-cet.c: Likewise.
2186 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
2187 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
2188 * sysdeps/x86/cet-tunables.h: Likewise.
2189 * sysdeps/x86/check-cet.awk: Likewise.
2190 * sysdeps/x86/configure: Likewise.
2191 * sysdeps/x86/configure.ac: Likewise.
2192 * sysdeps/x86/dl-cet.c: Likewise.
2193 * sysdeps/x86/dl-procruntime.c: Likewise.
2194 * sysdeps/x86/dl-prop.h: Likewise.
2195 * sysdeps/x86/libc-start.h: Likewise.
2196 * sysdeps/x86/link_map.h: Likewise.
2197 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
2198 _CET_ENDBR.
2199 (_dl_runtime_profile): Likewise.
2200 (_dl_runtime_resolve_shstk): New.
2201 (_dl_runtime_profile_shstk): Likewise.
2202 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
2203 if CET is enabled.
2204 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
2205 (CFLAGS-.os): Likewise.
2206 (CFLAGS-.op): Likewise.
2207 (CFLAGS-.oS): Likewise.
2208 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
2209 is enabled.
2210 (tests-special): Add $(objpfx)check-cet.out.
2211 (cet-built-dso): New.
2212 (+$(cet-built-dso:=.note)): Likewise.
2213 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
2214 ($(objpfx)check-cet.out): New.
2215 (generated): Add check-cet.out.
2216 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
2217 <cet-tunables.h>.
2218 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
2219 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
2220 (init_cpu_features): Call get_cet_status to check CET status
2221 and update dl_x86_feature_1 with CET status. Call
2222 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
2223 (set_x86_shstk). Disable and lock CET in libc.a.
2224 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
2225 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
2226 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
2227 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
2228 (_CET_ENDBR): Define if not defined.
2229 (ENTRY): Add _CET_ENDBR.
2230 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
2231 x86_shstk.
2232 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
2233 _CET_ENDBR.
2234 (_dl_runtime_profile): Likewise.
2235
2236 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
2237
2238 [BZ #21895]
2239 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
2240 restore r2 on longjmp.
2241 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
2242 test list.
2243 Added rules to build test tst-setjmp-bug21895-static.
2244 Added module setjmp-bug21895 and rules to build a shared object from it.
2245 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
2246 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
2247
2248 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
2249
2250 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
2251 * benchtests/bench-strstr.c: Likewise.
2252 * string/memmem.c (FASTSEARCH): Define.
2253 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
2254 Add support for FASTSEARCH.
2255 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
2256 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
2257 (FASTSEARCH): Define.
2258 * string/test-strcasestr.c: Rename __strnlen to strnlen.
2259 * string/test-strstr.c: Likewise.
2260
2261 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
2262
2263 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
2264 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
2265
2266 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2267 H.J. Lu <hongjiu.lu@intel.com>
2268
2269 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
2270 (__longjmp): Restore shadow stack pointer if shadow stack is
2271 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
2272 isn't defined for __longjmp_cancel.
2273 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
2274 (_setjmp): Save shadow stack pointer if shadow stack is enabled
2275 and SHADOW_STACK_POINTER_OFFSET is defined.
2276 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
2277 (setjmp): Save shadow stack pointer if shadow stack is enabled
2278 and SHADOW_STACK_POINTER_OFFSET is defined.
2279 * sysdeps/i386/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 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
2283 <jmp_buf-ssp.h>.
2284 (____longjmp_chk): Restore shadow stack pointer if shadow stack
2285 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2286 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
2287 Remove jmp_buf-ssp.sym.
2288 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2289 <jmp_buf-ssp.h>.
2290 (____longjmp_chk): Restore shadow stack pointer if shadow stack
2291 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2292 * sysdeps/x86/Makefile (gen-as-const-headers): Add
2293 jmp_buf-ssp.sym.
2294 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
2295 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
2296 (__longjmp): Restore shadow stack pointer if shadow stack is
2297 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
2298 isn't defined for __longjmp_cancel.
2299 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
2300 (__sigsetjmp): Save shadow stack pointer if shadow stack is
2301 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
2302
2303 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
2304
2305 [BZ #22563]
2306 * nptl/pthread_create.c: Include <tls-setup.h>.
2307 (__pthread_create_2_1): Call tls_setup_tcbhead.
2308 * sysdeps/generic/tls-setup.h: New file.
2309 * sysdeps/x86/nptl/tls-setup.h: Likewise.
2310 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
2311 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
2312 Likewise.
2313 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
2314 to feature_1.
2315 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
2316 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
2317 (X86_FEATURE_1_SHSTK): Likewise.
2318 (CET_ENABLED): Likewise.
2319 (IBT_ENABLED): Likewise.
2320 (SHSTK_ENABLED): Likewise.
2321
2322 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
2323
2324 [BZ #23208]
2325 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
2326 (LOCALES): Likewise.
2327 * localedata/dsb_DE.UTF-8.in: New file.
2328 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
2329
2330 2018-07-12 Florian Weimer <fweimer@redhat.com>
2331
2332 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
2333 __mprotect, not mprotect.
2334
2335 2018-07-11 Florian Weimer <fweimer@redhat.com>
2336
2337 * io/Makefile (headers): Add bits/statx.h.
2338
2339 2018-07-10 Mike FABIAN <mfabian@redhat.com>
2340
2341 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
2342 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
2343 and headers.
2344 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
2345 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
2346 for utf8_gen.py
2347
2348 2018-07-10 Florian Weimer <fweimer@redhat.com>
2349
2350 * io/Makefile (routines): Add statx.
2351 (tests-internal): Add tst-statx.
2352 * io/Versions (GLIBC_2.28): Export statx.
2353 * io/bits/statx.h: New file.
2354 * io/sys/stat.h [__USE_GNU]: Include it.
2355 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
2356 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
2357 Define.
2358 * io/statx.c: New file.
2359 * io/statx_generic.: Likewise.
2360 * io/tst-statx.: Likewise.
2361 * include/bits/statx.h: Likewise.
2362 * sysdeps/unix/sysv/linux/kernel-features.h
2363 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
2364 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2365 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
2366 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
2367 Undefine.
2368 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2369 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
2370 * sysdeps/unix/sysv/linux/statx.c: New file.
2371 * manual/filesys.texi: Note that statx is undocumented.
2372 * sysdeps/**/libc*.abilist: Update.
2373
2374 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2375
2376 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
2377 a kernel issue which lead to test failure in some cases.
2378
2379 2018-07-10 Florian Weimer <fweimer@redhat.com>
2380
2381 [BZ #23036]
2382 * posix/regexec.c (check_node_accept_bytes): When comparing
2383 weights, do not compare an extra byte after the end of the
2384 weights.
2385
2386 2018-07-10 Florian Weimer <fweimer@redhat.com>
2387
2388 * libio/readline.c: Fix copyright year.
2389 * libio/tst-readline.c Likewise.
2390 * nss/tst-nss-files-hosts-getent.c: Likewise.
2391
2392 2018-07-06 Florian Weimer <fweimer@redhat.com>
2393
2394 [BZ #18991]
2395 * nss/nss_files/files-XXX.c (internal_getent): Use
2396 __libc_readline_unlocked. Seek back to the start of the line if
2397 parsing failes with ERANGE.
2398 (get_contents_ret, get_contents): Remove.
2399 * nss/tst-nss-files-hosts-getent.c: New file.
2400 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
2401 (tst-nss-files-hosts-getent): Link with -ldl.
2402
2403 2018-07-06 Florian Weimer <fweimer@redhat.com>
2404
2405 * include/stdio.h (__libc_readline_unlocked): Declare.
2406 (__ftello64, __fseeko64): Declare aliases.
2407 * libio/readline.c: New file.
2408 * libio/tst-readline.c: Likewise.
2409 (routines): Add readline.
2410 (tests-internal): Add tst-readlime.
2411 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
2412 __libc_readline_unlocked.
2413 * libio/fseeko.c (__fseeko): Rename from fseeko.
2414 (fseeko): Add alias.
2415 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
2416 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
2417 (fseeko64): Add alias.
2418 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
2419 * libio/ftello64.c (__ftello64): Rename from ftello64.
2420 (ftello64): Add alias.
2421
2422 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
2423
2424 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
2425 HWCAP_ATOMICS.
2426
2427 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
2428
2429 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
2430 Use dl_hwcap without masking.
2431 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
2432 Remove HWCAP_CPUID.
2433
2434 2018-07-06 Florian Weimer <fweimer@redhat.com>
2435
2436 * conform/conformtest.pl (checknamespace): Escape literal braces
2437 in regular expressions.
2438
2439 2018-07-06 Amit Pawar <amit.pawar@amd.com>
2440
2441 * sysdeps/x86/cpu-features.c (get_common_indeces):
2442 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
2443 * sysdeps/x86/cpu-features.c (init_cpu_features):
2444 AVX_Fast_Unaligned_Load is disabled for Excavator core.
2445
2446 2018-07-05 Florian Weimer <fweimer@redhat.com>
2447
2448 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
2449 protector.
2450 (CFLAGS-elf-init.oS): Likewise.
2451
2452 2018-07-05 Florian Weimer <fweimer@redhat.com>
2453 Carlos O'Donell <carlos@redhat.com>
2454
2455 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
2456 $(no-stack-protector). stack_chk_fail_local.c can be compiled
2457 with stack protector enabled because there is no risk of infinite
2458 recursion.
2459
2460 2018-07-05 Maciej W. Rozycki <macro@mips.com>
2461
2462 [BZ #19818]
2463 [BZ #23307]
2464 * libc-abis (ABSOLUTE): New ABI.
2465 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
2466 * NEWS: Mention the new ABI.
2467
2468 2018-07-05 Florian Weimer <fweimer@redhat.com>
2469
2470 [BZ # 17662]
2471 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
2472 (RENAME_WHITEOUT): Define.
2473 [__USE_GNU] (renameat2): Declare.
2474 * stdio-common/Makefile (routines): Add renameat2.
2475 (tests): Add tst-renameat2.
2476 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
2477 * stdio-common/renameat2.c: New file.
2478 * stdio-common/tst-renameat2.c: Likewise.
2479 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
2480 * manual/filesys.texi (Temporary Files): Note that renameat2 is
2481 undocumented.
2482 * sysdeps/unix/sysv/linux/kernel-features.h
2483 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
2484 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2485 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
2486 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2487 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
2488 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2489 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
2490 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2491 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
2492 * include/stdio.h (__renameat): Add alias for renameat.
2493 * stdio-common/renameat.c (__renameat): Rename from renameat.
2494 Add hidden definition and alias.
2495 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
2496 * sysdeps/mach/hurd/renameat.c: Likewise.
2497 * sysdeps/**/libc*.abilist: Add renameat2.
2498
2499 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2500
2501 * posix/bug-regex33.c: Fix build after regex sync.
2502
2503 2018-07-04 Carlos O'Donell <carlos@redhat.com>
2504
2505 [BZ #23164]
2506 * localedata/tst-langinfo-setlocale.c: New file.
2507 * localedata/tst-langinfo-setlocale-static.c: New file.
2508 * localedata/tst-langinfo-newlocale.c: New file.
2509 * localedata/tst-langinfo-newlocale-static.c: New file.
2510 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
2511 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
2512 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
2513 (tests-static): Remove tst-langinfo-static. Add
2514 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
2515 (tests-special): Remove $(objpfx)tst-langinfo.out,
2516 $(objpfx)tst-langinfo-static.out. Add
2517 $(objpfx)tst-langinfo-setlocale.out,
2518 $(objpfx)tst-langinfo-newlocale.out,
2519 $(objpfx)tst-langinfo-setlocale-static.out,
2520 $(objpfx)tst-langinfo-newlocale-static.out.
2521 ($(objpfx)tst-langinfo.out): Remove.
2522 ($(objpfx)tst-langinfo-static.out): Remove.
2523 ($(objpfx)tst-langinfo-newlocale.out): New target.
2524 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
2525 (test-xfail-tst-langinfo-newlocale-static): Add.
2526 ($(objpfx)tst-langinfo-setlocale.out): New target.
2527 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
2528 * localedata/tst-langinfo.c: Call test_locale.
2529 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
2530 data.
2531
2532 2018-07-04 Florian Weimer <fweimer@redhat.com>
2533
2534 testrun.sh: Implement --tool=strace, --tool=valgrind
2535 * Makefile (testrun-script): Define variable.
2536 (testrun.sh): Use variable.
2537 * manual/install.texi (Tools for Compilation): make 4.0 or later
2538 is required.
2539 * configure.ac: Check for make 4.0 or later.
2540 * INSTALL: Regenerate.
2541 * configure: Likewise.
2542
2543 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2544
2545 [BZ #23233]
2546 [BZ #21163]
2547 [BZ #18986]
2548 [BZ #13762]
2549 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
2550 * posix/PCRE.tests: Remove invalid test.
2551 * posix/bug-regex28.c: Fix expected values for used syntax.
2552 * posix/bug-regex37.c: New file.
2553 * posix/bug-regex38.c: Likewise.
2554 * posix/regcomp.c: Sync with gnulib.
2555 * posix/regex.c: Likewise.
2556 * posix/regex.h: Likewise.
2557 * posix/regex_internal.c: Likewise.
2558 * posix/regex_internal.h: Likewise.
2559 * posix/regexec.c: Likewise.
2560
2561 2018-06-26 Mike FABIAN <mfabian@redhat.com>
2562
2563 [BZ #23308]
2564 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
2565 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
2566 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
2567 * localedata/unicode-gen/PropList.txt: likewise.
2568 * localedata/unicode-gen/UnicodeData.txt: likewise.
2569 * localedata/charmaps/UTF-8: Regenerate.
2570 * localedata/locales/i18n_ctype: likewise.
2571 * localedata/locales/tr_TR: likewise.
2572 * localedata/locales/translit_circle: likewise.
2573 * localedata/locales/translit_cjk_compat: likewise.
2574 * localedata/locales/translit_combining: likewise.
2575 * localedata/locales/translit_compat: likewise.
2576 * localedata/locales/translit_font: likewise.
2577 * localedata/locales/translit_fraction: likewise.
2578
2579 2018-07-03 Florian Weimer <fweimer@redhat.com>
2580
2581 [BZ #23363]
2582 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
2583 * stdio-common/tst-printf.sh: Adjust expected output.
2584 * LICENSES: Update.
2585
2586 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2587
2588 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
2589 symbol.
2590
2591 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2592
2593 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
2594 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
2595 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
2596 * stdio-common/tst-printfsz-islongdouble.c: New file.
2597 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
2598 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
2599 [subdir == stdio-common] (routines): Add ieee128-printf_size.
2600 [subdir == stdio-common] (tests-internal): Add
2601 test-printf-size-ieee128, and test-printf-size-ibm128.
2602 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
2603 (CFLAGS-test-printf-size-ibm128.c): New variables.
2604 [subdir == stdio-common] (tests-special): Add
2605 $(objpfx)test-printf-size-ieee128.out and
2606 $(objpfx)test-printf-size-ibm128.out.
2607 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
2608 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
2609 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
2610 __printf_sizeieee128.
2611 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
2612 New file.
2613 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
2614 Likewise.
2615 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
2616 Likewise.
2617
2618 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
2619
2620 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
2621 (exp2f_inline): Likewise.
2622 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
2623 (__math_uflowf): Likewise.
2624 (__math_may_uflowf): Likewise.
2625 (__math_divzerof): Likewise.
2626 (__math_invalidf): Likewise.
2627 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
2628 (__math_oflowf): Likewise.
2629 (__math_uflowf): Likewise.
2630 (__math_may_uflowf): Likewise.
2631 (__math_divzerof): Likewise.
2632 (__math_invalidf): Likewise.
2633
2634 2018-06-29 DJ Delorie <dj@redhat.com>
2635 Carlos O'Donell <carlos@redhat.com>
2636
2637 [BZ #23329]
2638 * include/libc-symbols.h: Comment the freeres framework.
2639 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
2640 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
2641 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
2642 * dlfcn/dlerror.c: Include libc-symbols.h
2643 (__dlerror_main_freeres): New function.
2644 * dlfcn/dlfreeres.c: New file.
2645 * dlfcn/sdlfreeres.c: New file.
2646 * include/dlfcn.h: Declare __dlerror_main_freeres.
2647 * malloc/set-freeres.c: Declare __libdl_freeres, and
2648 __libpthread_freeres.
2649 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
2650 the releavant libraries are loaded.
2651 * malloc/thread-freeres.c: Add comments.
2652 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
2653 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
2654 * nptl/allocatestack.c (__nptl_free_stacks): New function.
2655 (__free_stacks): Rename to...
2656 (free_stacks): ...this. Mark static.
2657 (queue_stack): Call free_stacks.
2658 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
2659 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
2660 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2661 ptr_freeres element from struct.
2662 (pthread_functions): Remove .ptr_freeres from struct initializer.
2663 [SHARED] (nptl_freeres): Remove.
2664 * nptl/nptlfreeres.c: New file.
2665 * nptl/pthreadP.h
2666 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
2667 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
2668 attribute_hidden.
2669 (__free_stacks): Rename to...
2670 (__nptl_stacks_freeres): ...this.
2671 (__shm_directory_freeres): Declare.
2672 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
2673 (__nptl_unwind_freeres): ...this.
2674 * resolv/res-close.c: Add comment.
2675 * resolv/resolv_conf.c: Include libc-symbols.h.
2676 * string/strerror_l.c: Include libc-symbols.h.
2677 * sunrpc/rpc_thread.c: Include libc-symbols.h.
2678 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
2679 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
2680 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
2681
2682 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2683
2684 * stdlib/tst-strfmon_l.c: Add tests for long double.
2685
2686 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
2687
2688 [BZ #23208]
2689 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
2690 * localedata/locales/dsb_DE: New file.
2691
2692 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
2693
2694 [BZ #23140]
2695 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
2696 genitive case).
2697 (alt_mon): New entry, import from CLDR (nominative case).
2698
2699 2018-06-29 Sylvain Lesage <severo@rednegra.net>
2700
2701 [BZ #22996]
2702 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
2703
2704 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
2705
2706 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
2707 Use vector registers.
2708
2709 * sysdeps/aarch64/multiarch/memmove_falkor.S
2710 (__memcpy_falkor): Use vector registers.
2711
2712 2018-06-29 Martin Sebor <msebor@redhat.com>
2713
2714 * manual/stdio.texi (Customizing Printf): Mention interaction
2715 with GCC built-ins.
2716
2717 2018-06-29 Maciej W. Rozycki <macro@mips.com>
2718
2719 [BZ #23307]
2720 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
2721 `st_value' is 0 if `st_shndx' is SHN_ABS.
2722 * elf/tst-absolute-zero.c: New file.
2723 * elf/tst-absolute-zero-lib.c: New file.
2724 * elf/tst-absolute-zero-lib.lds: New file.
2725 * elf/Makefile (tests): Add `tst-absolute-zero'.
2726 (modules-names): Add `tst-absolute-zero-lib'.
2727 (LDLIBS-tst-absolute-zero-lib.so): New variable.
2728 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
2729 ($(objpfx)tst-absolute-zero: New dependency.
2730
2731 2018-06-29 Zack Weinberg <zackw@panix.com>
2732
2733 * configure.ac: New command-line option --disable-crypt.
2734 Force --disable-nss-crypt when --disable-crypt is given, with a
2735 warning if it was explicitly enabled.
2736 * configure: Regenerate.
2737 * config.make.in: New boolean substitution variable $(build-crypt).
2738 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
2739 when $(build-crypt).
2740 * manual/install.texi: Document --disable-crypt.
2741 * INSTALL: Regenerate.
2742
2743 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
2744 which is never set.
2745 * conform/Makefile: Only include libcrypt.a in
2746 linknamespace-libs-xsi and linknamespace-libs-XPG4
2747 when $(build-crypt).
2748 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
2749 USE_CRYPT to 1 when $(build-crypt).
2750 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
2751 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
2752 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
2753
2754 2018-06-29 Zack Weinberg <zackw@panix.com>
2755
2756 * crypt/crypt.h, posix/unistd.h: Update comments and
2757 prototypes for crypt and crypt_r.
2758
2759 * manual/crypt.texi (Cryptographic Functions): New initial
2760 exposition.
2761 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
2762 (Unpredictable Bytes): Improve initial exposition. Clarify error
2763 behavior of getentropy and getrandom.
2764 * manual/examples/genpass.c: Generate a salt using getentropy
2765 instead of the current time. Use hash $5$ (SHA-2-256).
2766 * manual/examples/testpass.c: Demonstrate validation against
2767 hashes generated with three different one-way functions.
2768
2769 * manual/intro.texi: crypt.texi does not need an overview
2770 anymore.
2771
2772 * manual/nss.texi, manual/memory.texi, manual/socket.texi
2773 * manual/terminal.texi: Consistently refer to "passphrases"
2774 * instead of "passwords", and to the "user database" instead
2775 * of the "password database".
2776 * manual/users.texi: Similarly. Add notes about how actual
2777 passphrase hashes are now stored in the shadow database.
2778 Remove 20-year-old junk todo note.
2779
2780 2018-06-29 Zack Weinberg <zackw@panix.com>
2781
2782 * manual/crypt.texi: Use a normal top-level @node declaration.
2783 Move most of the introductory text to the 'crypt' section.
2784 Move the example programs below the @deftypefun for 'crypt_r'.
2785 Move the 'getpass' section...
2786 * manual/terminal.texi: ...here.
2787
2788 2018-06-29 Zack Weinberg <zackw@panix.com>
2789 Florian Weimer <fweimer@redhat.com>
2790
2791 * posix/unistd.h: Do not declare encrypt.
2792 (_XOPEN_CRYPT): Remove macro definition.
2793 (crypt): Declare only for _USE_MISC.
2794 * stdlib/stdlib.h: Do not declare setkey.
2795 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
2796 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
2797
2798 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
2799 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
2800 into compat symbols. Don't define initial_perm if it's not
2801 going to be used.
2802 * crypt/cert.c: Link explicitly with the expected versions for
2803 setkey and encrypt. If they are not available at all, mark
2804 the test as unsupported.
2805
2806 * sunrpc/des_crypt.c: Unconditionally block linkage with
2807 cbc_crypt and ecb_crypt for new binaries.
2808 * sunrpc/des_soft.c: Unconditionally block linkage with
2809 des_setparity for new binaries.
2810
2811 * manual/crypt.texi: Remove the entire "DES Encryption"
2812 section. Also remove the paragraph talking about FIPS 140-2
2813 from the introduction.
2814 * manual/string.texi (strfry, memfrob): Revise. Recommend use
2815 of libgcrypt for "real" encryption, not DES.
2816 * manual/conf.texi (Constants for Sysconf): Mention that
2817 _XOPEN_CRYPT is no longer impelemented.
2818
2819 * conform/data/unistd.h-data: Remove crypt function declaration.
2820
2821 2018-06-29 Florian Weimer <fweimer@redhat.com>
2822
2823 [BZ #23351]
2824 * malloc/hooks.c: Update comments on restoring of dumped heaps.
2825 (disallow_malloc_check): Remove variable.
2826 (__malloc_check_init): Adjust.
2827 (malloc_set_state): Update comment.
2828 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
2829 declarations.
2830
2831 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
2832
2833 [BZ #23140]
2834 * localedata/locales/ast_ES (mon): Rename to...
2835 (alt_mon): This.
2836 (mon): Import from CLDR (genitive case).
2837
2838 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
2839 Jakub Sitnicki <jkbs@redhat.com>
2840
2841 [BZ #21812]
2842 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
2843 on NLM_F_DUMP_INTR.
2844
2845 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
2846
2847 * manual/llio.texi: Remove spurious space.
2848
2849 2018-06-28 Florian Weimer <fweimer@redhat.com>
2850
2851 [BZ #23349]
2852 * time/bits/types/struct_timespec.h: Change header inclusion guard to
2853 _STRUCT_TIMESPEC.
2854
2855 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2856
2857 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
2858 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
2859 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
2860 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
2861 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
2862 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
2863 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
2864
2865 2018-06-27 Maciej W. Rozycki <macro@mips.com>
2866
2867 [BZ #23266]
2868 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
2869 Copy and null-terminate entries that are not terminated, in
2870 addition to empty ones.
2871
2872 2018-06-27 Florian Weimer <fweimer@redhat.com>
2873
2874 [BZ #18023]
2875 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
2876 (extend_alloca_account): Remove.
2877 * manual/stdio.texi (Variable Arguments Output): Update comment.
2878
2879 2018-06-27 Joseph Myers <joseph@codesourcery.com>
2880
2881 * nptl/sockperf.c: Remove file.
2882
2883 2018-06-27 Florian Weimer <fweimer@redhat.com>
2884
2885 [BZ #18023]
2886 * elf/dl-deps.c (_dl_map_object_deps): Use struct
2887 scratch_buffer instead of extend_alloca.
2888
2889 2018-06-27 Florian Weimer <fweimer@redhat.com>
2890
2891 [BZ #18023]
2892 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
2893 scratch_buffer instead of extend_alloca. Update comments.
2894
2895 2018-06-27 Florian Weimer <fweimer@redhat.com>
2896
2897 [BZ #18023]
2898 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
2899 instead of extend_alloca.
2900
2901 2018-06-26 Joseph Myers <joseph@codesourcery.com>
2902
2903 [BZ #13888]
2904 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
2905 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
2906 /tmp.
2907 * scripts/test-installation.pl: Put temporary files in build
2908 directory, not /tmp.
2909 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
2910 (CFLAGS-bug4.c): Likewise.
2911 (CFLAGS-bug5.c): Likewise.
2912 (CFLAGS-test-fseek.c): Likewise.
2913 (CFLAGS-test-popen.c): Likewise.
2914 (CFLAGS-test_rdwr.c): Likewise.
2915 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
2916 /tmp.
2917 * stdio-common/bug4.c (main): Likewise.
2918 * stdio-common/bug5.c (main): Likewise.
2919 * stdio-common/test-fseek.c (TESTFILE): Likewise.
2920 * stdio-common/test-popen.c (do_test): Likewise.
2921 * stdio-common/test_rdwr.c (main): Likewise.
2922
2923 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
2924
2925 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
2926 (sem_open): Set sem.newsem.pad to zero for valgrind.
2927
2928 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2929
2930 [BZ #20251]
2931 * NEWS: Mention fcntl64 addition.
2932 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
2933 * login/utmp_file.c: Likewise.
2934 * sysdeps/posix/fdopendir.c: Likewise.
2935 * sysdeps/posix/opendir.c: Likewise.
2936 * sysdeps/unix/pt-fcntl.c: Likewise.
2937 * include/fcntl.h (__libc_fcntl64, __fcntl64,
2938 __fcntl64_nocancel_adjusted): New prototype.
2939 (__fcntl_nocancel_adjusted): Remove prototype.
2940 * io/Makefile (routines): Add fcntl64.
2941 (CFLAGS-fcntl64.c): New rule.
2942 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
2943 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
2944 * io/fcntl.h (fcntl64): Add prototype and redirect if
2945 __USE_FILE_OFFSET64 is defined.
2946 * io/fcntl64.c: New file.
2947 * manual/llio.text: Add a note for which commands fcntl acts a
2948 cancellation point.
2949 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
2950 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
2951 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
2952 New symbols.
2953 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
2954 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
2955 non-LFS case.
2956 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
2957 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
2958 to __fcntl64_nocancel.
2959 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
2960 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
2961 to __fcntl64_nocancel.
2962 * sysdeps/generic/not-cancel.h: Likewise.
2963 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
2964 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
2965 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
2966 (fcntl64): New symbol.
2967 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2968 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2969 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
2972 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
2973 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2974 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2975 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2976 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2977 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
2978 fcntl64): Likewise.
2979 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2980 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
2981 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2982 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2983 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2984 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2985 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2986 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2987 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2989 Likewise.
2990 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2991 Likewise.
2992 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2993 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2994 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2995
2996 2018-06-26 Florian Weimer <fweimer@redhat.com>
2997
2998 Run thread shutdown functions in an explicit order.
2999 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
3000 definition.
3001 (__libc_thread_freeres): Call thread shutdown functions
3002 explicitly.
3003 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
3004 * include/string.h (__strerror_thread_freeres): Declare.
3005 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
3006 arena_thread_freeres. No longer static. Remove thread shutdown
3007 hook registration.
3008 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
3009 Declare.
3010 * resolv/res-close.c (__res_thread_freeres): Renamed from
3011 res_thread_freeres. No longer static. Remove thread shutdown
3012 hook registration.
3013 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
3014 * resolv/resolv_conf.c (freeres): Remove incorrect section
3015 attribute and use libc_freeres_fn.
3016 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
3017 strerror_thread_freeres. No longer static. Remove thread
3018 shutdown hook registration.
3019 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
3020 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
3021 shutdown hook registration.
3022 * Makerules (shlib.lds): Do not provide section boundary symbols
3023 for __libc_thread_subfreeres.
3024 * manual/memory.texi (Basic Allocation): Update comment.
3025
3026 2018-06-26 Florian Weimer <fweimer@redhat.com>
3027
3028 Remove always-defined _RPC_THREAD_SAFE_ macro.
3029 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
3030 Do not define _RPC_THREAD_SAFE_.
3031 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
3032 conditional.
3033 * sunrpc/clnt_perr.c: Likewise.
3034 * sunrpc/clnt_raw.c: Likewise.
3035 * sunrpc/clnt_simp.c: Likewise.
3036 * sunrpc/key_call.c: Likewise.
3037 * sunrpc/rpc_common.c: Likewise.
3038 * sunrpc/rpc_main.c: Likewise.
3039 * sunrpc/rpc_thread.c: Likewise.
3040 * sunrpc/svc.c: Likewise.
3041 * sunrpc/svc_raw.c: Likewise.
3042 * sunrpc/svc_simple.c: Likewise.
3043 * sumrpc/svcauth_des.c: Likewise.
3044
3045 2018-06-26 Florian Weimer <fweimer@redhat.com>
3046
3047 * libio/Makefile (tests-internal): Add tst-vtables,
3048 tst-vtables-interposed.
3049 * libio/tst-vtables.c: New file.
3050 * libio/tst-vtables-common.c: Likewise.
3051 * libio/tst-vtables-interposed.c: Likewise.
3052
3053 2018-06-26 Florian Weimer <fweimer@redhat.com>
3054
3055 * support/support_test_main.c (support_test_main): Only call
3056 setvbuf if not disables.
3057 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
3058 * support/test-driver.h (struct test_config): Add no_setvbuf member.
3059
3060 2018-06-26 Florian Weimer <fweimer@redhat.com>
3061
3062 [BZ #23313]
3063 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
3064
3065 2018-06-25 Florian Weimer <fweimer@redhat.com>
3066
3067 [BZ #18023]
3068 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
3069 Use struct scratch_buffer instead of extend_alloca.
3070
3071 2018-06-25 Florian Weimer <fweimer@redhat.com>
3072
3073 [BZ #18023]
3074 * nss/getent.c (initgroups_keys): Use dynarray instead of
3075 extend_alloca.
3076
3077 2018-06-25 Florian Weimer <fweimer@redhat.com>
3078
3079 [BZ #18023]
3080 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
3081 Use struct scratch_buffer instead of extend_alloca.
3082
3083 2018-06-25 Florian Weimer <fweimer@redhat.com>
3084
3085 [BZ #18023]
3086 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
3087 back to malloc directly, without stack allocations.
3088
3089 2018-06-25 Florian Weimer <fweimer@redhat.com>
3090
3091 [BZ #18023]
3092 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
3093 of extend_alloca.
3094
3095 2018-06-25 Florian Weimer <fweimer@redhat.com>
3096
3097 [BZ #18023]
3098 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
3099 of extend_alloca.
3100 * nscd/hstcache.c (addhstbyX): Likewise.
3101 * nscd/pwdcache.c (addpwbyX): Likewise.
3102 * nscd/servicescache.c (addservbyX): Likewise.
3103
3104 2018-06-25 Florian Weimer <fweimer@redhat.com>
3105
3106 [BZ #18023]
3107 * nscd/connections.c (read_cmdline): New function.
3108 (restart): Use it. Update comment.
3109
3110 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
3111
3112 [BZ #23140]
3113 * localedata/locales/csb_PL (mon): Rename to...
3114 (alt_mon): This.
3115 (abmon): Rename to...
3116 (ab_alt_mon): This.
3117 (mon): Add with proper genitive forms, copy from Wikipedia.
3118 (abmon): Likewise.
3119
3120 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
3121
3122 [BZ #19485]
3123 * localedata/locales/csb_PL (mon): Fix typos:
3124 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
3125 (yesstr): Add, value is "jo".
3126 (nostr): Add, value is "nié".
3127
3128 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3129
3130 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
3131 all log1p and significand functions on m680x0.
3132 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
3133 of s_significand.c..
3134 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
3135 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
3136 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
3137 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
3138 s_log1p.c and include it..
3139
3140 2018-06-21 Vincent Chen <vincentc@andestech.com>
3141
3142 * elf/elf.h (R_NDS32_NONE): New define.
3143 (R_NDS32_32_RELA): Likewise.
3144 (R_NDS32_COPY): Likewise.
3145 (R_NDS32_GLOB_DAT): Likewise.
3146 (R_NDS32_JUMP_SLOT): Likewise.
3147 (R_NDS32_RELATIVE): Likewise.
3148 (R_NDS32_TLS_TPOFF): Likewise.
3149 (R_NDS32_TLS_DESC): Likewise.
3150
3151 2018-06-21 Mark Wielaard <mark@klomp.org>
3152
3153 * elf/elf.h (R_BPF_MAP_FD): Removed.
3154 (R_BPF_64_64, R_BPF_64_32): New.
3155
3156 2018-06-21 Florian Weimer <fweimer@redhat.com>
3157
3158 [BZ #23253]
3159 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
3160 Renamed from libc_feholdsetround_ctx.
3161 (default_libc_feresetround_ctx): Renamed from
3162 libc_feresetround_ctx.
3163 (default_libc_feholdsetround_noex_ctx): Renamed from
3164 libc_feholdsetround_noex_ctx.
3165 (default_libc_feresetround_noex_ctx): Renamed from
3166 libc_feresetround_noex_ctx.
3167 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
3168 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
3169 forwardning to the old implementations under the new names.
3170 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
3171 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
3172 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
3173 (libc_feresetround_ctx): Forward to default implements for i386
3174 and MATH_SET_BOTH_ROUNDING_MODES.
3175 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
3176 Add -DMATH_SET_BOTH_ROUNDING_MODES.
3177
3178 2018-06-20 Joseph Myers <joseph@codesourcery.com>
3179
3180 * string/tst-cmp.c: Include <libc-diag.h>.
3181 (strncmp_max): Disable -Wstringop-overflow= around call to
3182 strncmp.
3183 (strncasecmp_max): Disable -Wstringop-overflow= around call to
3184 strncasecmp.
3185
3186 * string/bug-strpbrk1.c: Include <libc-diag.h>.
3187 (main): Disable -Wunused-value around call to strpbrk.
3188 * string/bug-strspn1.c: Include <libc-diag.h>.
3189 (main): Disable -Wunused-value around call to strspn.
3190
3191 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3192 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3193
3194 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
3195 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
3196
3197 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3198
3199 * math/Makefile (libm-calls): Move s_significandF to...
3200 (gen-libm-calls): ... here.
3201 * math/s_significand_template.c: New file.
3202 * math/s_significand.c: Removed.
3203 * math/s_significandf.c: Removed.
3204 * math/s_significandl.c: Removed.
3205 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
3206 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
3207
3208 * math/e_exp2_template.c (declare_mgen_finite_alias,
3209 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
3210 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
3211 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
3212
3213 2018-06-20 Florian Weimer <fweimer@redhat.com>
3214
3215 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
3216
3217 2018-06-19 Joseph Myers <joseph@codesourcery.com>
3218
3219 [BZ #23280]
3220 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
3221 floating-point number to strtod functions rather than possibly
3222 negating result of those functions.
3223 * stdio-common/tst-scanf-round.c: New file.
3224 * stdio-common/Makefile (tests): Add tst-scanf-round.
3225 ($(objpfx)tst-scanf-round): Depend on $(libm).
3226
3227 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
3228
3229 * sysdeps/mach/hurd/localplt.data: Move to...
3230 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
3231 R_386_GLOB_DAT like on Linux i386.
3232
3233 2018-06-18 Joseph Myers <joseph@codesourcery.com>
3234
3235 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
3236 (SHM_STAT_ANY): New macro.
3237 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
3238 (SHM_STAT_ANY): Likewise.
3239 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
3240 (SHM_STAT_ANY): Likewise.
3241 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
3242 (SHM_STAT_ANY): Likewise.
3243 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
3244 (SHM_STAT_ANY): Likewise.
3245 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
3246 (SHM_STAT_ANY): Likewise.
3247 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
3248 (SHM_STAT_ANY): Likewise.
3249 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
3250 (SHM_STAT_ANY): Likewise.
3251 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
3252 (SHM_STAT_ANY): Likewise.
3253 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
3254 (SHM_STAT_ANY): Likewise.
3255 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
3256 (SHM_STAT_ANY): Likewise.
3257 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
3258 (SHM_STAT_ANY): Likewise.
3259
3260 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
3261 (SEM_STAT_ANY): New macro.
3262 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
3263 (SEM_STAT_ANY): Likewise.
3264 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
3265 (SEM_STAT_ANY): Likewise.
3266 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
3267 (SEM_STAT_ANY): Likewise.
3268 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
3269 (SEM_STAT_ANY): Likewise.
3270 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
3271 (SEM_STAT_ANY): Likewise.
3272 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
3273 (SEM_STAT_ANY): Likewise.
3274 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
3275 (SEM_STAT_ANY): Likewise.
3276 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
3277 (SEM_STAT_ANY): Likewise.
3278 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
3279 (SEM_STAT_ANY): Likewise.
3280
3281 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
3282 (MSG_STAT_ANY): New macro.
3283 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
3284 (MSG_STAT_ANY): Likewise.
3285 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
3286 (MSG_STAT_ANY): Likewise.
3287 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
3288 (MSG_STAT_ANY): Likewise.
3289 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
3290 (MSG_STAT_ANY): Likewise.
3291 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
3292 (MSG_STAT_ANY): Likewise.
3293 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
3294 (MSG_STAT_ANY): Likewise.
3295 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
3296 (MSG_STAT_ANY): Likewise.
3297 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
3298 (MSG_STAT_ANY): Likewise.
3299 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
3300 (MSG_STAT_ANY): Likewise.
3301
3302 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3303 (MAP_TYPE): Change value to 0x2b.
3304
3305 2018-06-18 Florian Weimer <fweimer@redhat.com>
3306
3307 [BZ #15722]
3308 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
3309 socket with SOCK_CLOEXEC.
3310
3311 2018-06-18 Joseph Myers <joseph@codesourcery.com>
3312
3313 [BZ #23303]
3314 * sysdeps/powerpc/powerpc64/le/Makefile
3315 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
3316 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
3317 (gnulib-tests): Also add $(f128-loader-link) for
3318 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
3319
3320 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
3321
3322 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
3323 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
3324 of sendfile.
3325 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
3326 (sendfile64): New strong alias.
3327 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
3328 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
3329 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
3330 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
3331 attribute.
3332 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
3333 ___pthread_get_cleanup_stack.
3334 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
3335 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
3336 * mach/shortcut.awk: Make syscall stubs include
3337 <mach-shortcuts-hidden.h> and add hidden definition.
3338 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
3339 (__mach_msg): Add hidden prototype.
3340 * mach/msg.c: Include <mach.h>.
3341 (__mach_msg): Add hidden definition.
3342 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
3343 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
3344 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
3345 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
3346 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
3347 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
3348 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
3349 prototype and definition.
3350 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
3351 hidden target for _hurd_self_sigstate.
3352
3353 2018-06-15 Joseph Myers <joseph@codesourcery.com>
3354
3355 [BZ #23007]
3356 * stdlib/tst-strtod-nan-sign-main.c: New file.
3357 * stdlib/tst-strtod-nan-sign.c: Likewise.
3358 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
3359 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
3360 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
3361 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
3362 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
3363
3364 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
3365
3366 [BZ #23007]
3367 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
3368 appropriate sign.
3369
3370 2018-06-14 Florian Weimer <fweimer@redhat.com>
3371
3372 [BZ #23290]
3373 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
3374 that the result stays within the ISO-8859-1 range.
3375 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
3376 characters are defined in IBM273.
3377
3378 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
3379
3380 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
3381 __mach_task_self): Remove attribute_hidden.
3382
3383 2018-06-14 Joseph Myers <joseph@codesourcery.com>
3384
3385 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
3386 ignore -Wrestrict for one test.
3387
3388 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
3389 Szabolcs Nagy <szabolcs.nagy@arm.com>
3390
3391 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
3392
3393 2018-06-14 Florian Weimer <fweimer@redhat.com>
3394
3395 * scripts/update-abilist.sh: Accept empty list of files to patch.
3396
3397 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
3398
3399 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
3400 test-xfail-check-abi-libmachuser): Add.
3401 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
3402 __libc_read and __libc_write to __read and __write.
3403 * sysdeps/hurd/include/hurd/port.h: New file.
3404 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
3405 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
3406 __thread_switch, __evc_wait): Move declarations to...
3407 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
3408 attribute_hidden.
3409 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
3410 use PLT to call _hurd_self_sigstate.
3411
3412 2018-06-13 Joseph Myers <joseph@codesourcery.com>
3413
3414 [BZ #23279]
3415 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
3416 MAX_EXP as overflowing.
3417 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
3418 overflow flag.
3419 (round_str): Output also whether result overflows in each rounding
3420 mode.
3421 * stdlib/tst-strtod-round-data: Add more tests.
3422 * stdlib/tst-strtod-round-data.h: Regenerated.
3423 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
3424 (TEST): Handle extra arguments for overflow flags.
3425 (struct test_overflow): New type.
3426 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
3427 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
3428 (test_in_one_mode): Take argument with overflow information.
3429 (do_test): Update calls to test_in_one_mode.
3430
3431 2018-06-12 Carlos O'Donell <carlos@redhat.com>
3432
3433 * elf/dl-load (_dl_dst_substitute): Correct comment.
3434 (_dl_dst_count): Likewise.
3435
3436 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
3437 lll_futex_timed_wait.
3438
3439 2018-06-12 Joseph Myers <joseph@codesourcery.com>
3440
3441 [BZ #23277]
3442 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
3443 attribute.
3444 * math/test-nan-const.c: New file.
3445 * math/Makefile (tests): Add test-nan-const.
3446 (CFLAGS-test-nan-const.c): New variable.
3447
3448 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
3449
3450 * benchtests/scripts/compare_strings.py (process_results): Add
3451 funcs argument. Compare only functions which are selected.
3452 (main): Check if base function is among selected functions.
3453 Pass selected functions to process_results.
3454 (__main__): Add -f/--functions argument.
3455
3456 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
3457 Hongbo Zhang <hongbo.zhang@linaro.org>
3458
3459 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
3460 __memcpy_falkor for phecda core.
3461 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
3462 __memmove_falkor for phecda core.
3463 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
3464 __memset_falkor for phecda core.
3465 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
3466 for phecda core.
3467 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
3468 macro to identify phecda core.
3469
3470 2018-06-12 Carlos O'Donell <carlos@redhat.com>
3471 Andreas Schwab <schwab@suse.de>
3472 Dmitry V. Levin <ldv@altlinux.org>
3473 Florian Weimer <fweimer@redhat.com>
3474
3475 [BZ #23102]
3476 [BZ #21942]
3477 [BZ #18018]
3478 [BZ #23259]
3479 CVE-2011-0536
3480 * elf/dl-dst.h: Remove DL_DST_COUNT.
3481 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
3482 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
3483 (is_dst): Comment. Support ELF gABI.
3484 (_dl_dst_count): Comment. Simplify and count DSTs.
3485 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
3486 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
3487 locals.
3488
3489 2018-06-12 Zack Weinberg <zackw@panix.com>
3490
3491 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
3492 * sysdeps/unix/sysv/linux/dl-sysdep.c
3493 Include not-cancel.h. Use __close_nocancel instead of __close,
3494 __open64_nocancel instead of __open, __read_nocancel instead of
3495 __libc_read, and __write_nocancel instead of __libc_write.
3496
3497 * csu/check_fds.c (check_one_fd)
3498 * sysdeps/posix/fdopendir.c (__fdopendir)
3499 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
3500 instead of __fcntl and/or __libc_fcntl.
3501
3502 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
3503 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
3504 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
3505 Use __open64_nocancel instead of __open_nocancel.
3506
3507 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
3508 hidden_proto declarations to the end and issue them if either
3509 IS_IN(libc) or IS_IN(rtld).
3510 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
3511 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
3512 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
3513 read_nocancel, waitpid_nocancel, write_nocancel.
3514
3515 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
3516 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
3517 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
3518
3519 * nptl/pt-fcntl.c: New file.
3520 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
3521 (libpthread-routines): Add pt-fcntl.
3522 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
3523 (__libc_fcntl): Remove attribute_hidden.
3524 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
3525 __fcntl_nocancel_adjusted, not fcntl_common.
3526 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
3527 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
3528 to fcntl_nocancel.c.
3529 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
3530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
3531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3532 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
3533
3534 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
3535 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
3536 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
3537 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
3538 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
3539 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
3540 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
3541 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
3542 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
3543 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
3544 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
3545 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
3546 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
3547 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
3548 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
3549 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
3550 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
3551 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
3552 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
3553 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
3554
3555 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
3556 libpthread-routines.
3557 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
3558 defines nothing.
3559
3560 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
3561 __libc_read, and __write instead of __libc_write. Define
3562 __open64 in addition to __open.
3563
3564 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
3565
3566 [BZ #23250]
3567 [BZ #10686]
3568 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
3569 to _private_tm[3] and add __glibc_reserved2.
3570 Add _Static_assert of offset of __private_ss == 0x30.
3571 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
3572 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
3573
3574 2018-06-12 Florian Weimer <fweimer@redhat.com>
3575
3576 x86: Make strncmp usable from rtld.
3577 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
3578 __strncmp_ia32 if in libc (and not in rtld).
3579 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
3580 strncmp if not in libc (and not to __strncmp_sse2).
3581
3582 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
3583
3584 [BZ #23140]
3585 * localedata/locales/gd_GB (mon): Rename to...
3586 (alt_mon): This.
3587 (mon): Import from CLDR (genitive case).
3588 * localedata/locales/hsb_DE (mon): Rename to...
3589 (alt_mon): This.
3590 (mon): Import from CLDR (genitive case).
3591 * localedata/locales/wa_BE (mon): Rename to...
3592 (alt_mon): This.
3593 (mon): Add, fill with the proper genitive forms, but CLDR data
3594 is incomplete; completed according to the comments in this file.
3595 (d_t_fmt): Do not use "di" before the month name, no longer needed.
3596
3597 * localedata/locales/wa_BE (country_name): Reword
3598 "Beljike" -> "Beldjike".
3599
3600 2018-06-11 Joseph Myers <joseph@codesourcery.com>
3601
3602 [BZ #23272]
3603 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
3604 cases of non-finite arguments.
3605 * math/libm-test-fma.inc (fma_test_data): Add more tests.
3606
3607 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
3608
3609 [BZ #23174]
3610 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
3611
3612 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3613
3614 [BZ #23264]
3615 * include/unistd.h (__execvpex): New prototype.
3616 * posix/Makefile (tests): Add tst-spawn4.
3617 (tests-internal): Add tst-spawn4-compat.
3618 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
3619 * posix/tst-spawn4-compat.c: New file.
3620 * posix/tst-spawn4.c: Likewise.
3621 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
3622 binaries as shell scripts.
3623 * sysdeps/posix/spawni.c (__spawni): Likewise.
3624
3625 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
3626
3627 [BZ #23145]
3628 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
3629 ($(all-built-dso:=.dynsym): New target.
3630 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
3631 ($(objpfx)check-initfini.out): New target.
3632 (generated): Add check-initfini.out.
3633 * scripts/check-initfini.awk: New file.
3634 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
3635 (_fini): Likewise.
3636 * sysdeps/alpha/crti.S (_init): Mark as hidden.
3637 (_fini): Likewise.
3638 * sysdeps/arm/crti.S (_init): Mark as hidden.
3639 (_fini): Likewise.
3640 * sysdeps/hppa/crti.S (_init): Mark as hidden.
3641 (_fini): Likewise.
3642 * sysdeps/i386/crti.S (_init): Mark as hidden.
3643 (_fini): Likewise.
3644 * sysdeps/ia64/crti.S (_init): Mark as hidden.
3645 (_fini): Likewise.
3646 * sysdeps/m68k/crti.S (_init): Mark as hidden.
3647 (_fini): Likewise.
3648 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
3649 (_fini): Likewise.
3650 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
3651 (_fini): Likewise.
3652 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
3653 (_fini): Likewise.
3654 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
3655 (_fini): Likewise.
3656 * sysdeps/nios2/crti.S (_init): Mark as hidden.
3657 (_fini): Likewise.
3658 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
3659 (_fini): Likewise.
3660 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
3661 (_fini): Likewise.
3662 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
3663 (_fini): Likewise.
3664 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
3665 (_fini): Likewise.
3666 * sysdeps/sh/crti.S (_init): Mark as hidden.
3667 (_fini): Likewise.
3668 * sysdeps/sparc/crti.S (_init): Mark as hidden.
3669 (_fini): Likewise.
3670 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
3671 (_fini): Likewise.
3672
3673 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3674
3675 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
3676 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
3677 and TF redirection to KFtype and KF only when the default
3678 long double type is not the IEEE 128-bit floating point type.
3679
3680 2018-06-05 Joseph Myers <joseph@codesourcery.com>
3681
3682 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
3683 macro.
3684 (HWCAP_USCAT): Likewise.
3685 (HWCAP_ILRCPC): Likewise.
3686 (HWCAP_FLAGM): Likewise.
3687 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3688 Increase to 28.
3689 (_dl_aarch64_cap_flags): Add new flag names.
3690
3691 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
3692 (MAP_FIXED_NOREPLACE): New macro.
3693 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
3694 (MAP_FIXED_NOREPLACE): Likewise.
3695 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
3696 (MAP_FIXED_NOREPLACE): Likewise.
3697 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
3698 (MAP_FIXED_NOREPLACE): Likewise.
3699 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
3700 (MAP_FIXED_NOREPLACE): Likewise.
3701 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
3702 (MAP_FIXED_NOREPLACE): Likewise.
3703 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
3704 (MAP_FIXED_NOREPLACE): Likewise.
3705 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
3706 (MAP_FIXED_NOREPLACE): Likewise.
3707 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
3708 (MAP_FIXED_NOREPLACE): Likewise.
3709 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
3710 (MAP_FIXED_NOREPLACE): Likewise.
3711 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
3712 (MAP_FIXED_NOREPLACE): Likewise.
3713 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
3714 (MAP_FIXED_NOREPLACE): Likewise.
3715 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
3716 (MAP_FIXED_NOREPLACE): Likewise.
3717 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
3718 (MAP_FIXED_NOREPLACE): Likewise.
3719 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
3720 (MAP_FIXED_NOREPLACE): Likewise.
3721
3722 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
3723 version to 4.17.
3724
3725 2018-06-04 Joseph Myers <joseph@codesourcery.com>
3726
3727 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3728 version to 4.17
3729
3730 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
3731
3732 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
3733 int.
3734 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
3735
3736 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3737
3738 * benchtests/scripts/compare_string.py: (process_results) Catch
3739 exception in non-existent base_func and catch exception in
3740 non-existent attribute.
3741 (parse_file) Catch exception if input file does not exist.
3742
3743 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3744
3745 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
3746 options to avoid diff calculation and omit header, respectively.
3747 (main): process --no-diff and --no-header
3748
3749 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3750 H.J. Lu <hongjiu.lu@intel.com>
3751
3752 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3753 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
3754 wcsncmp-sse2.
3755 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
3756 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
3757 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
3758 and __wcsncmp_sse2.
3759 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
3760 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3761 AVX unaligned load is fast and vzeroupper is preferred.
3762 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
3763 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
3764 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
3765 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
3766 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
3767 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
3768 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
3769 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
3770 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
3771 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
3772 is undefined.
3773
3774 2018-06-01 Florian Weimer <fweimer@redhat.com>
3775
3776 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
3777 configuring with --disable-multi-arch, building with
3778 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
3779 Haswell-era CPU.
3780
3781 2018-06-01 Florian Weimer <fweimer@redhat.com>
3782
3783 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
3784 results from building with “-march=x86-64 -mtune=generic
3785 -mfpmath=sse” and running on a Haswell-era CPU.
3786
3787 2018-06-01 Joseph Myers <joseph@codesourcery.com>
3788
3789 [BZ #18473]
3790 * soft-fp/sqrttf2.c: Remove file.
3791 * soft-fp/sqrtdf2.c: Move to ....
3792 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
3793 <shlib-compat.h>.
3794 (__sqrtdf2): Make conditional on
3795 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
3796 symbol.
3797 * soft-fp/sqrtsf2.c: Move to ....
3798 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
3799 <shlib-compat.h>.
3800 (__sqrtsf2): Make conditional on
3801 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
3802 symbol.
3803 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
3804 (gcc-double-routines): Remove sqrtdf2.
3805 (gcc-quad-routines): Remove sqrttf2.
3806 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
3807 Do not filter out sqrtsf2 and sqrtdf2.
3808 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
3809 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
3810
3811 2018-06-01 Florian Weimer <fweimer@redhat.com>
3812
3813 * sysdeps/generic/libcidn.abilist: Remove file.
3814
3815 2018-06-01 Florian Weimer <fweimer@redhat.com>
3816
3817 [BZ #23236]
3818 * libio/strfile.h (struct _IO_str_fields): Rename members to
3819 discourage their use and add comment.
3820 (_IO_STR_DYNAMIC): Remove unused macro.
3821 * libio/strops.c (_IO_str_init_static_internal): Do not use
3822 callback pointers. Call malloc and free.
3823 (_IO_str_overflow): Do not use callback pointers. Call malloc
3824 and free.
3825 (enlarge_userbuf): Likewise.
3826 (_IO_str_finish): Call free.
3827 * libio/wstrops.c (_IO_wstr_init_static): Initialize
3828 _allocate_buffer_unused.
3829 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
3830 and free.
3831 (enlarge_userbuf): Likewise.
3832 (_IO_wstr_finish): Call free.
3833 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
3834 _allocate_buffer_unused, _free_buffer_unused.
3835 * libio/memstream.c (__open_memstream): Likewise.
3836 * libio/vasprintf.c (_IO_vasprintf): Likewise.
3837 * libio/wmemstream.c (open_wmemstream): Likewise.
3838
3839 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
3840
3841 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
3842 AMD Ryzen 7 1800X.
3843
3844 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
3845
3846 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
3847 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
3848 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
3849 New file.
3850 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
3851 Likewise.
3852 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
3853
3854 2018-05-29 Florian Weimer <fweimer@redhat.com>
3855
3856 * support/Makefile (libsupport-routines): Add
3857 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
3858 xpthread_barrierattr_setpshared.
3859 * support/xpthread_barrierattr_destroy.c: New file.
3860 * support/xpthread_barrierattr_init.c: Likewise.
3861 * support/xpthread_barrierattr_setpshared.c: Likewise.
3862
3863 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
3864
3865 [BZ #23206]
3866 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
3867 _r_debug and update DT_DEBUG for debugger.
3868
3869 2018-05-29 Florian Weimer <fweimer@redhat.com>
3870
3871 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
3872 (tst-strtod5i.out): Likewise.
3873
3874 2018-05-25 Joseph Myers <joseph@codesourcery.com>
3875
3876 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
3877 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
3878 (sparc64-quad-routines): New variable. Moved from ....
3879 [$(subdir) = soft-fp] (sysdep_routines): Add
3880 $(sparc64-quad-routines). Moved from ....
3881 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
3882 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
3883 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
3884 moved from ....
3885 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
3886 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
3887 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
3888 * sysdeps/sparc/sparc64/qp_add.c: ... here.
3889 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
3890 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
3891 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
3892 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
3893 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
3894 * sysdeps/sparc/sparc64/qp_div.c: ... here.
3895 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
3896 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
3897 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
3898 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
3899 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
3900 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
3901 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
3902 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
3903 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
3904 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
3905 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
3906 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
3907 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
3908 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
3909 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
3910 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
3911 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
3912 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
3913 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
3914 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
3915 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
3916 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
3917 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
3918 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
3919 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
3920 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
3921 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
3922 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
3923 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
3924 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
3925 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
3926 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
3927 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
3928 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
3929 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
3930 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
3931 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
3932 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
3933 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
3934 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
3935 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
3936 * sysdeps/sparc/sparc64/qp_util.c: ... here.
3937 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
3938 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
3939 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
3940 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
3941 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
3942 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
3943
3944 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
3945 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
3946 (sparc32-quad-routines): New variable. Moved from ....
3947 [$(subdir) = soft-fp] (sysdep_routines): Add
3948 $(sparc32-quad-routines). Moved from ....
3949 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
3950 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
3951 moved from ....
3952 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
3953 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
3954 * sysdeps/sparc/sparc32/q_add.c: ... here.
3955 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
3956 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
3957 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
3958 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
3959 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
3960 * sysdeps/sparc/sparc32/q_div.c: ... here.
3961 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
3962 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
3963 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
3964 * sysdeps/sparc/sparc32/q_feq.c: ... here.
3965 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
3966 * sysdeps/sparc/sparc32/q_fge.c: ... here.
3967 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
3968 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
3969 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
3970 * sysdeps/sparc/sparc32/q_fle.c: ... here.
3971 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
3972 * sysdeps/sparc/sparc32/q_flt.c: ... here.
3973 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
3974 * sysdeps/sparc/sparc32/q_fne.c: ... here.
3975 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
3976 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
3977 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
3978 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
3979 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
3980 * sysdeps/sparc/sparc32/q_mul.c: ... here.
3981 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
3982 * sysdeps/sparc/sparc32/q_neg.c: ... here.
3983 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
3984 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
3985 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
3986 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
3987 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
3988 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
3989 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
3990 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
3991 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
3992 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
3993 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
3994 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
3995 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
3996 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
3997 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
3998 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
3999 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
4000 * sysdeps/sparc/sparc32/q_sub.c: ... here.
4001 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
4002 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
4003 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
4004 * sysdeps/sparc/sparc32/q_util.c: ... here.
4005 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
4006 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
4007 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
4008 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
4009
4010 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4011 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4012
4013 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
4014 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
4015 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
4016 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
4017
4018 2018-05-24 Joseph Myers <joseph@codesourcery.com>
4019
4020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
4021 powerpc/soft-fp.
4022 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
4023 Likewise.
4024 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
4025 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
4026
4027 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4028
4029 [BZ #23171]
4030 * math/math.h [C++] (iseqsig): Fix parameter type for the long
4031 double version.
4032
4033 2018-05-23 Joseph Myers <joseph@codesourcery.com>
4034
4035 * sysdeps/sh/Implies: Remove sh/soft-fp.
4036 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
4037 * sysdeps/sh/sfp-machine.h: ... here.
4038
4039 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
4040
4041 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4042 (__mempcpy_erms): Skip zero length.
4043 (__memmove_erms): Likewise.
4044 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4045 (__memset_erms): Likewise.
4046
4047 2018-05-23 Joseph Myers <joseph@codesourcery.com>
4048
4049 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
4050 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
4051 Add functions moved from ....
4052 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
4053 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
4054 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
4055 from ....
4056 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
4057 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
4058 * sysdeps/alpha/e_sqrtl.c: ... here.
4059 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
4060 * sysdeps/alpha/local-soft-fp.h: ... here.
4061 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
4062 * sysdeps/alpha/ots_add.c: ... here.
4063 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
4064 * sysdeps/alpha/ots_cmp.c: ... here.
4065 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
4066 * sysdeps/alpha/ots_cmpe.c: ... here.
4067 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
4068 * sysdeps/alpha/ots_cvtqux.c: ... here.
4069 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
4070 * sysdeps/alpha/ots_cvtqx.c: ... here.
4071 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
4072 * sysdeps/alpha/ots_cvttx.c: ... here.
4073 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
4074 * sysdeps/alpha/ots_cvtxq.c: ... here.
4075 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
4076 * sysdeps/alpha/ots_cvtxt.c: ... here.
4077 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
4078 * sysdeps/alpha/ots_div.c: ... here.
4079 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
4080 * sysdeps/alpha/ots_mul.c: ... here.
4081 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
4082 * sysdeps/alpha/ots_nintxq.c: ... here.
4083 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
4084 * sysdeps/alpha/ots_sub.c: ... here.
4085 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
4086 * sysdeps/alpha/sfp-machine.h: ... here.
4087
4088 2018-05-23 Florian Weimer <fweimer@redhat.com>
4089
4090 [BZ #19728]
4091 [BZ #19729]
4092 [BZ #22247]
4093 CVE-2016-6261
4094 CVE-2016-6263
4095 CVE-2017-14062
4096 Switch to extern IDNA implementation (libidn2).
4097 * libidn: Remove subdirectory.
4098 * LICENSES: Do not mention licensing conditions for the removed
4099 libidn code.
4100 * config.h.in (HAVE_LIBIDN): Remove.
4101 * include/dlfcn.h (__libc_dlopen): Update comment.
4102 * include/idna.h: Remove file.
4103 * inet/Makefile (routines): Add idna.
4104 (tests-static, tests-internal): Add tst-idna_name_classify.
4105 (LOCALES): Generate locales for tests.
4106 (tst-idna_name_classify.out): Depend on generated locales.
4107 * inet/idna_name_classify.c: New file.
4108 * inet/tst-idna_name_classify.c: Likewise.
4109 * inet/net-internal.h (__idna_to_dns_encoding)
4110 (__idna_from_dns_encoding): Declare.
4111 * inet/net-internal.h (enum idna_name_classification): Define.
4112 (__idna_name_classify): Declare.
4113 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
4114 __idna_from_dns_encoding.
4115 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
4116 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
4117 name as a fallback in case of encoding errors.
4118 (getnameinfo): Use DEPRECATED_NI_IDN.
4119 * inet/idna.c: New file.
4120 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
4121 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
4122 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
4123 (modules-names): Add tst-no-libidn2.
4124 (extra-test-objs): Add tst-no-libidn2.os.
4125 (LDFLAGS-tst-no-libidn2.so): Set soname.
4126 (LOCALES): Set, and generate locales.
4127 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
4128 (tst-resolv-ai_idn-latin1): Likewise.
4129 (tst-resolv-ai_idn-nolibidn2): Likewise.
4130 (tst-resolv-ai_idn.out): Depend on locales.
4131 (tst-resolv-ai_idn-latin1.out): Depend on locales.
4132 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
4133 tst-no-libidn2.so.
4134 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
4135 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
4136 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
4137 * resolv/tst-resolv-ai_idn.c: New file.
4138 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
4139 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
4140 * resolv/tst-no-libidn2.c: Likewise.
4141 * support/support_format_addrinfo.c (format_ai_flags): Do not
4142 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
4143 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
4144 (gaih_inet): Call __idna_to_dns_encoding and
4145 __idna_from_dns_encoding, and use the original (punycode) name if
4146 __idna_from_dns_encoding fails due to an encoding error.
4147 (getaddrinfo): Use DEPRECATED_AI_IDN.
4148 * sysdeps/unix/inet/Subdirs (libidn): Remove.
4149 * sysdeps/unix/inet/configure: Remove file.
4150 * sysdeps/unix/inet/configure.ac: Likewise.
4151
4152 2018-05-23 Florian Weimer <fweimer@redhat.com>
4153
4154 Implement allocate_once.
4155 * include/allocate_once.h: New file.
4156 * misc/allocate_once.c: Likewise.
4157 * misc/tst-allocate_once.c: Likewise.
4158 * misc/Makefile (routines): Add allocate_once.
4159 (tests-internal): Add tst-allocate_once.
4160 (generated): Add tst-allocate_once.mtrace,
4161 tst-allocate_once-mem.out.
4162 (tests-special): Add tst-allocate_once-mem.out.
4163 (tst-allocate_once-ENV): Set MALLOC_TRACE.
4164 (tst-allocate_once-mem.out): Call mtrace.
4165 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
4166
4167 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
4168
4169 [BZ #23196]
4170 * string/test-memcpy.c (do_test1): New function.
4171 (test_main): Call it.
4172
4173 2018-05-23 Andreas Schwab <schwab@suse.de>
4174
4175 [BZ #23196]
4176 CVE-2018-11237
4177 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
4178 (L(preloop_large)): Save initial destination pointer in %r11 and
4179 use it instead of %rax after the loop.
4180 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
4181
4182 2018-05-22 Joseph Myers <joseph@codesourcery.com>
4183
4184 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
4185 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
4186 -I../soft-fp. Moved from ....
4187 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
4188 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
4189 * sysdeps/aarch64/e_sqrtl.c: ... here.
4190 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
4191 * sysdeps/aarch64/sfp-machine.h: ... here.
4192
4193 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
4194 -Wmaybe-uninitialized around access to fq[0].
4195 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
4196 Likewise.
4197
4198 [BZ #18471]
4199 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
4200 aliases for non-libc case of versioned symbols.
4201 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
4202 (llseek): Define as compat symbol if
4203 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
4204 with link warning.
4205 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
4206 Make into a compat symbol, disabled for minimum symbol version
4207 GLIBC_2.28 and later.
4208 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
4209
4210 2018-05-22 Florian Weimer <fweimer@redhat.com>
4211
4212 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
4213 not add -mpreferred-stack-boundary=4.
4214 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
4215 (stack-align-test-flags): Likewise.
4216 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
4217 Likewise.
4218 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
4219 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
4220 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
4221 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
4222 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
4223 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
4224 (CFLAGS-tst-align2.c): Likewise.
4225
4226 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
4227
4228 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
4229 (index_arch_Prefer_FSRM): Likewise.
4230 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4231 Also check Prefer_FSRM.
4232 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
4233 Also return OPTIMIZE (erms) for Prefer_FSRM.
4234
4235 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
4236
4237 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
4238 (index_cpu_FSRM): Likewise.
4239 (reg_FSRM): Likewise.
4240
4241 2018-05-18 Joseph Myers <joseph@codesourcery.com>
4242
4243 * math/gen-tgmath-tests.py: Import sys.
4244 (Tests.__init__): Initialize macros_seen.
4245 (Tests.add_tests): Add macro to macros_seen. Only generate tests
4246 if requested to do so for this macro.
4247 (Tests.add_all_tests): Take argument for macro for which to
4248 generate tests.
4249 (Tests.check_macro_list): New function.
4250 (main): Handle check-list argument and argument specifying macro
4251 for which to generate tests.
4252 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
4253 [PYTHON] (tgmath3-macro-tests): Likewise.
4254 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
4255 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
4256 not test-tgmath3.c.
4257 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
4258 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
4259 to CFLAGS.
4260 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
4261 [PYTHON] ($(foreach
4262 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
4263 rule.
4264 [PYTHON] (tests-special): Add
4265 $(objpfx)test-tgmath3-macro-list.out.
4266 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
4267
4268 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
4269 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
4270 later.
4271
4272 [BZ #22639]
4273 * time/tzset.c (SECSPERDAY): Cast to time_t.
4274 * time/tst-y2039.c: New file.
4275 * time/Makefile (tests): Add tst-y2039.
4276
4277 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4278
4279 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
4280 (PREFETCH_ONE_SET): Remove duplicate line.
4281
4282 2018-05-17 Florian Weimer <fweimer@redhat.com>
4283
4284 * sysdeps/generic/math-type-macros-double.h: Include
4285 <math-nan-payload-double.h> after <libm-alias-double.h>.
4286 * sysdeps/generic/math-type-macros-float.h: Include
4287 <math-nan-payload-float.h> after <libm-alias-float.h>.
4288 * sysdeps/generic/math-type-macros-float128.h: Include
4289 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
4290 * sysdeps/generic/math-type-macros-ldouble.h: Include
4291 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
4292
4293 2018-05-17 Andreas Schwab <schwab@suse.de>
4294
4295 * resolv/res_send.c (__res_context_send): Don't set errno when
4296 returing error after malloc failure.
4297
4298 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
4299
4300 * nptl/allocatestack.c (allocate_stack): Remove the
4301 !__ASSUME_PRIVATE_FUTEX paths.
4302 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
4303 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
4304 Likewise.
4305 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
4306 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4307 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4308 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
4309 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
4310 !__ASSUME_PRIVATE_FUTEX path.
4311 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
4312 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
4313 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
4314 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
4315 !__ASSUME_PRIVATE_FUTEX macros.
4316 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4317 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
4318 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4319 * sysdeps/unix/sysv/linux/kernel-features.h
4320 (__ASSUME_PRIVATE_FUTEX): Removed.
4321
4322 2018-05-17 Joseph Myers <joseph@codesourcery.com>
4323
4324 * math/Makefile (libm-narrow-fns): Add div.
4325 (libm-test-funcs-narrow): Likewise.
4326 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
4327 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
4328 * math/gen-auto-libm-tests.c (test_functions): Add div.
4329 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
4330 (NARROW_DIV_ROUND_TO_ODD): Likewise.
4331 (NARROW_DIV_TRIVIAL): Likewise.
4332 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
4333 macro.
4334 (__ddivl): Likewise.
4335 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
4336 ddiv.
4337 (CFLAGS-nldbl-ddiv.c): New variable.
4338 (CFLAGS-nldbl-fdiv.c): Likewise.
4339 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
4340 __nldbl_ddivl.
4341 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
4342 prototype.
4343 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
4344 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
4345 * math/auto-libm-test-in: Add tests of div.
4346 * math/auto-libm-test-out-narrow-div: New generated file.
4347 * math/libm-test-narrow-div.inc: New file.
4348 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
4349 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
4350 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
4351 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
4352 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
4353 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
4354 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
4355 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
4356 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
4357 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
4358 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
4359 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
4360 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
4361 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
4362 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
4363 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4364 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
4365 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4366 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4367 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4368 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4369 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4370 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4371 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4372 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4373 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4374 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4375 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4376 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4377 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4378 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4379 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
4381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
4382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
4383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
4384 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
4385 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4386 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4387 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4388 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4389 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4390 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4391 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4392
4393 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4394
4395 [BZ #23178]
4396 * nscd/nscd-client.h (sendfileall): Remove prototype.
4397 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
4398 (handle_request): Use writeall instead of sendfileall.
4399 * nscd/aicache.c (addhstaiX): Likewise.
4400 * nscd/grpcache.c (cache_addgr): Likewise.
4401 * nscd/hstcache.c (cache_addhst): Likewise.
4402 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4403 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
4404 * nscd/pwdcache.c (cache_addpw): Likewise.
4405 * nscd/servicescache.c (cache_addserv): Likewise.
4406 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
4407 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
4408 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
4409 Remove define.
4410
4411 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
4412
4413 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
4414 Include <string/strncat.c>.
4415 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
4416 alias.
4417 (__GI___strncat): New hidden alias.
4418
4419 2018-05-16 Joseph Myers <joseph@codesourcery.com>
4420
4421 * sysdeps/mips/mips32/libm-test-ulps: Update.
4422 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4423
4424 2018-05-16 Florian Weimer <fweimer@redhat.com>
4425
4426 * support/Makefile (libsupport-routines): Add support_quote_blob,
4427 support_test_compare_blob.
4428 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
4429 * support/check.h (TEST_COMPARE_BLOB): Define.
4430 (support_test_compare_blob): Declare.
4431 * support/support.h (support_quote_blob): Declare.
4432 * support/support_quote_blob.c: New file.
4433 * support/support_test_compare_blob.c: Likewise.
4434 * support/tst-support_quote_blob.c: Likewise.
4435 * support/tst-test_compare_blob.c: Likewise.
4436
4437 2018-05-16 Florian Weimer <fweimer@redhat.com>
4438
4439 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
4440 of <strtod_nan_double.h>.
4441 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
4442 instead of SET_MANTISSA.
4443 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
4444 of include <strtod_nan_float.h>.
4445 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
4446 instead of <strtod_nan_ldouble.h>.
4447 * stdlib/strtod_nan_double.h: Move to ...
4448 * sysdeps/generic/math-nan-payload-double.h: ... here.
4449 (FLOAT): Remove definition.
4450 (SET_MANTISSA): Rename to ...
4451 (SET_NAN_PAYLOAD): ... this.
4452 * stdlib/strtod_nan_float.h: Move to ...
4453 * sysdeps/generic/math-nan-payload-float.h: ... here.
4454 (FLOAT): Remove definition.
4455 (SET_MANTISSA): Rename to ...
4456 (SET_NAN_PAYLOAD): ... this.
4457 * sysdeps/generic/math-type-macros-double.h: Include
4458 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
4459 instead of <math-svid-compat.h>.
4460 * sysdeps/generic/math-type-macros-float.h: Include
4461 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
4462 instead of <math-svid-compat.h>.
4463 * sysdeps/generic/math-type-macros-float128.h: Include
4464 <math-nan-payload-float128.h>.
4465 * sysdeps/generic/math-type-macros-ldouble.h: Include
4466 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
4467 instead of <math-svid-compat.h>.
4468 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
4469 check for definition.
4470 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
4471 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
4472 Include <ieee754_float128.h>.
4473 (FLOAT): Remove definition.
4474 (SET_MANTISSA): Rename to ...
4475 (SET_NAN_PAYLOAD): ... this.
4476 * sysdeps/ieee754/float128/strtof128_nan.c: Include
4477 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
4478 Do not include <float128_private.h>.
4479 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
4480 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
4481 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
4482 (FLOAT): Remove definition.
4483 (SET_MANTISSA): Rename to ...
4484 (SET_NAN_PAYLOAD): ... this.
4485 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
4486 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
4487 (FLOAT): Remove definition.
4488 (SET_MANTISSA): Rename to ...
4489 (SET_NAN_PAYLOAD): ... this.
4490 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
4491 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
4492 (FLOAT): Remove definition.
4493 (SET_MANTISSA): Rename to ...
4494 (SET_NAN_PAYLOAD): ... this.
4495 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
4496 of "../stdlib/strtod_nan_double.h".
4497 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
4498 of "../stdlib/strtod_nan_float.h".
4499 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
4500 instead of "../stdlib/strtod_nan_ldouble.h".
4501 * manual/arith.texi (Parsing of Floats): Adjust comment.
4502
4503 2018-05-16 Joseph Myers <joseph@codesourcery.com>
4504
4505 * math/Makefile (libm-narrow-fns): Add mul.
4506 (libm-test-funcs-narrow): Likewise.
4507 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
4508 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
4509 * math/gen-auto-libm-tests.c (test_functions): Add mul.
4510 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
4511 (NARROW_MUL_ROUND_TO_ODD): Likewise.
4512 (NARROW_MUL_TRIVIAL): Likewise.
4513 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
4514 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
4515 macro.
4516 (__dmull): Likewise.
4517 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
4518 dmul.
4519 (CFLAGS-nldbl-dmul.c): New variable.
4520 (CFLAGS-nldbl-fmul.c): Likewise.
4521 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
4522 __nldbl_dmull.
4523 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
4524 prototype.
4525 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
4526 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
4527 * math/auto-libm-test-in: Add tests of mul.
4528 * math/auto-libm-test-out-narrow-mul: New generated file.
4529 * math/libm-test-narrow-mul.inc: New file.
4530 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
4531 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
4532 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
4533 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
4534 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
4535 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
4536 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
4537 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
4538 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
4539 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
4540 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
4541 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
4542 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
4543 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
4544 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
4545 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4546 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
4547 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4548 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4549 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4550 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4551 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4552 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4553 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4554 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
4555 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
4556 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
4557 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
4558 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
4559 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
4560 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
4561 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
4562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
4563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
4564 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
4565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
4566 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
4567 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
4568 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
4569 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
4570 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
4571 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
4572 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
4573 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
4574
4575 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
4576
4577 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4578 with *%eax in call.
4579
4580 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
4581
4582 * sysdeps/i386/ldsodefs.h: Removed.
4583 * sysdeps/x86_64/ldsodefs.h: Moved to ...
4584 * sysdeps/x86/ldsodefs.h: This.
4585 (La_i86_regs): New.
4586 (La_i86_retval): Likewise.
4587 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
4588 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
4589
4590 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
4591
4592 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
4593 unnecessary testl.
4594
4595 2018-05-13 Alan Modra <amodra@gmail.com>
4596
4597 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
4598 R_PARISC_TLS_DTPOFF32 reloc addend.
4599
4600 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4601
4602 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
4603 * math/math.h: Restrict the prototype definition for the functions
4604 issignaling(_Float128) and iszero(_Float128); and template
4605 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
4606 __HAVE_FLOAT128_UNLIKE_LDBL.
4607 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
4608 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
4609 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
4610 __f128() constants; define the type _Float128 as long double;
4611 and reuse long double in __CFLOAT128.
4612
4613 2018-05-11 Joseph Myers <joseph@codesourcery.com>
4614
4615 * sysdeps/generic/math_private.h: Do not include
4616 <math-barriers.h>.
4617 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
4618 <math_private.h>.
4619 * math/fromfp.h: Include <math-barriers.h>.
4620 * math/math-narrow.h: Likewise.
4621 * math/s_nextafter.c: Likewise.
4622 * math/s_nexttowardf.c: Likewise.
4623 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
4624 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
4625 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
4626 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
4627 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4628 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4629 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4630 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4631 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4632 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4633 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4634 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
4635 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4636 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4637 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
4638 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
4639 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4640 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4641 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4642 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4643 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
4644 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4645 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4646 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4647 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4648 * sysdeps/ieee754/k_standardl.c: Likewise.
4649 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4650 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4651 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
4652 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4653 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4654 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4655 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4656 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4657 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4658 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4659 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4660 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4661 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4662 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4663 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4664 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
4665 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
4666 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
4667 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4668 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4669 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
4670 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
4671
4672 2018-05-11 Florian Weimer <fweimer@redhat.com>
4673
4674 Use 64-bit epoch values in the time zone file parser.
4675 * include/time.h (internal_time_t): Define.
4676 (__tzfile_compute): Use it.
4677 * time/tzfile.c (struct leap): Use internal_time_t for epoch
4678 member.
4679 (transitions): Switch to internal_time_t.
4680 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
4681 types.
4682 (__tzfile_compute): Use internal_time_t for timer argument. Check
4683 for truncation before calling __offtime.
4684
4685 2018-05-11 Florian Weimer <fweimer@redhat.com>
4686
4687 [BZ #23166]
4688 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
4689 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
4690 Likewise.
4691 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
4692 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
4693 export without --enable-obsolete-rpc.
4694 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
4695 symbol. This should not have been exported, ever.
4696
4697 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
4698
4699 [BZ #23152]
4700 * localedata/locales/gd_GB (abmon): Fix typo in May:
4701 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
4702
4703 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
4704
4705 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
4706 Use multiple registers to copy data in loop tail.
4707
4708 * sysdeps/aarch64/multiarch/memmove_falkor.S
4709 (__memmove_falkor): Use multiple registers to move data in
4710 loop tail.
4711
4712 2018-05-10 Joseph Myers <joseph@codesourcery.com>
4713
4714 * math/math-underflow.h: New file.
4715 * sysdeps/generic/math_private.h: Do not include <float.h>.
4716 (fabs_tg): Remove macro. Moved to math-underflow.h.
4717 (min_of_type_f): Likewise.
4718 (min_of_type_): Likewise.
4719 (min_of_type_l): Likewise.
4720 (min_of_type_f128): Likewise.
4721 (min_of_type): Likewise.
4722 (math_check_force_underflow): Likewise.
4723 (math_check_force_underflow_nonneg): Likewise.
4724 (math_check_force_underflow_complex): Likewise.
4725 * math/e_exp2_template.c: Include <math-underflow.h>.
4726 * math/k_casinh_template.c: Likewise.
4727 * math/s_catan_template.c: Likewise.
4728 * math/s_catanh_template.c: Likewise.
4729 * math/s_ccosh_template.c: Likewise.
4730 * math/s_cexp_template.c: Likewise.
4731 * math/s_clog10_template.c: Likewise.
4732 * math/s_clog_template.c: Likewise.
4733 * math/s_csin_template.c: Likewise.
4734 * math/s_csinh_template.c: Likewise.
4735 * math/s_csqrt_template.c: Likewise.
4736 * math/s_ctan_template.c: Likewise.
4737 * math/s_ctanh_template.c: Likewise.
4738 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
4739 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
4740 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4741 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4742 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
4743 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4744 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4745 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4746 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4747 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
4748 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4749 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4750 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
4751 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
4752 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4753 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4754 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4755 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4756 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4757 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
4758 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4759 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4760 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4761 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4762 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4763 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4764 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
4765 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4766 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4767 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
4768 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
4769 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4770 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4771 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
4772 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4773 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4774 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
4775 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4776 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4777 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
4778 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
4779 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
4780 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4781 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4782 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4783 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4784 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4785 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4786 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4787 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4788 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
4789 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
4790 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
4791 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4792 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4793 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
4794 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
4795 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
4796 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4797 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4798 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4799 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
4800 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4801 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4802 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4803 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4804 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
4805 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
4806 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4807 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
4808 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4809 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
4810 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
4811 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
4812 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4813 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4814 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4815 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
4816 * sysdeps/x86/fpu/powl_helper.c: Likewise.
4817 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
4818 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
4819 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
4820 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
4821 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
4822
4823 2018-05-09 Joseph Myers <joseph@codesourcery.com>
4824
4825 * sysdeps/generic/math-barriers.h: New file.
4826 * sysdeps/generic/math_private.h [!math_opt_barrier]
4827 (math_opt_barrier): Move to math-barriers.h.
4828 [!math_opt_barrier] (math_force_eval): Likewise.
4829 * sysdeps/aarch64/fpu/math-barriers.h: New file.
4830 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
4831 math-barriers.h.
4832 (math_force_eval): Likewise.
4833 * sysdeps/alpha/fpu/math-barriers.h: New file.
4834 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
4835 math-barriers.h.
4836 (math_force_eval): Likewise.
4837 * sysdeps/x86/fpu/math-barriers.h: New file.
4838 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
4839 math-barriers.h.
4840 (math_force_eval): Likewise.
4841 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
4842 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
4843 multiple-include guard for rename.
4844 * sysdeps/powerpc/fpu/math-barriers.h: New file.
4845 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
4846 math-barriers.h.
4847 (math_force_eval): Likewise.
4848
4849 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
4850
4851 [BZ #22786]
4852 CVE-2018-11236
4853 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
4854 computation.
4855 * stdlib/Makefile (test-bz22786): New test.
4856 * stdlib/test-bz22786.c: New test.
4857
4858 2018-05-09 Joseph Myers <joseph@codesourcery.com>
4859
4860 * include/math-narrow-eval.h: New file. Contents moved from ....
4861 * sysdeps/generic/math_private.h: ... here.
4862 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
4863 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
4864 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
4865 * stdlib/strtod_l.c: Likewise.
4866 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
4867 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
4868 * sysdeps/i386/fpu/s_fdim.c: Likewise.
4869 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
4870 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4871 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
4872 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4873 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
4874 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
4875 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
4876 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4877 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
4878 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4879 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4880 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4881 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
4882 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
4883 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
4884 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4885 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4886 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4887 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
4888 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
4889 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4890 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
4891 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4892 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4893 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4894 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4895
4896 2018-05-08 Andreas Schwab <schwab@suse.de>
4897
4898 * sysdeps/nptl/internaltypes.h: Fix comment.
4899
4900 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
4901
4902 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4903 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
4904 hidden.
4905
4906 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
4907
4908 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
4909 of I into loop header.
4910 * benchtests/bench-memmove-walk.c
4911 (test_main): Likewise.
4912
4913 2018-05-07 Alexandre Oliva <oliva@gnu.org>
4914
4915 Revert:
4916 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
4917 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
4918
4919 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4920
4921 [BZ #20419]
4922 * elf/dl-load.c (open_verify): Fix stack overflow.
4923 * elf/Makefile (tst-big-note): New test.
4924 * elf/tst-big-note-lib.S: New.
4925 * elf/tst-big-note.c: New.
4926
4927 2018-05-04 Joseph Myers <joseph@codesourcery.com>
4928
4929 * scripts/abilist.awk: Ignore absolute symbols.
4930 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
4931 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
4932 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
4933 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
4934 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
4935 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
4936 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
4937 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
4938 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
4939 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
4940 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
4941 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
4942 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
4943 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
4944 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
4945 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
4946 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
4947 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
4948 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
4949 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
4950 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
4951 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
4952 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
4953 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
4954 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
4955 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
4956 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
4957 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
4958 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4959 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
4960 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
4961 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
4962 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
4963 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
4964 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
4965 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
4966 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
4967 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
4968 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
4969 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
4970 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
4971 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4972 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
4973 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
4974 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
4975 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
4976 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
4977 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
4978 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
4979 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
4980 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
4981 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
4982 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
4983 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
4984 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4985 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
4986 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
4987 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
4988 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
4989 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
4990 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
4991 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
4992 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
4993 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
4994 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
4995 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
4996 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
4997 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4998 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
4999 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
5000 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5001 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
5002 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
5003 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
5004 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
5005 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
5006 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
5007 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
5008 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
5009 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
5010 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5011 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
5012 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
5013 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5014 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
5015 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
5016 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
5017 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
5018 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
5019 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
5020 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
5021 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
5022 Likewise.
5023 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
5024 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5025 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
5026 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
5027 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5028 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
5029 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
5030 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
5031 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
5032 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
5033 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
5034 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
5035 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
5036 Likewise.
5037 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
5038 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5039 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
5040 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
5041 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5042 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
5043 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
5044 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
5045 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
5046 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
5047 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
5048 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
5049 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
5050 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
5051 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5052 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
5053 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
5054 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5055 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
5056 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
5057 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
5058 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
5059 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
5060 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
5061 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5062 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
5063 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
5064 Likewise.
5065 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
5066 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
5067 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
5068 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
5069 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5070 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
5071 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
5072 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
5073 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
5074 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
5075 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
5076 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
5077 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
5078 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
5079 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
5080 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
5081 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
5082 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
5083 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
5084 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
5085 Likewise.
5086 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
5087 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
5088 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
5089 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5090 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
5091 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
5092 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
5093 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
5094 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
5095 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
5096 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5097 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
5098 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
5099 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5100 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
5101 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
5102 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
5103 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
5104 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5105 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
5106 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
5107 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
5108 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
5109 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
5110 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
5111 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
5112 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
5113 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
5114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
5115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
5116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
5117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
5118 Likewise.
5119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
5120 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
5121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
5122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
5123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
5124 Likewise.
5125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
5126 Likewise.
5127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
5128 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
5129 Likewise.
5130 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
5131 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5132 Likewise.
5133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
5134 Likewise.
5135 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
5136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
5137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
5138 Likewise.
5139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
5140 Likewise.
5141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
5142 Likewise.
5143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
5144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
5145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
5147 Likewise.
5148 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
5149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
5150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
5151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
5152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
5153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
5154 Likewise.
5155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
5156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
5157 Likewise.
5158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
5159 Likewise.
5160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
5161 Likewise.
5162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
5163 Likewise.
5164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
5165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
5166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
5167 Likewise.
5168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
5169 Likewise.
5170 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
5171 Likewise.
5172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
5173 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
5174 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
5175 Likewise.
5176 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
5177 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5178 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
5179 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
5180 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
5181 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
5182 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
5183 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
5184 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
5185 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
5186 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
5187 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
5188 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
5189 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
5190 Likewise.
5191 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5192 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
5193 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
5194 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
5195 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
5196 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
5197 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
5198 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
5199 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
5200 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
5201 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
5202 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
5203 Likewise.
5204 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5205 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
5206 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
5207 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
5208 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
5209 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
5210 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
5211 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
5212 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
5213 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
5214 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
5215 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
5216 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
5217 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5218 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
5219 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
5220 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
5221 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
5222 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
5223 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
5224 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
5225 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
5226 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
5227 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
5228 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
5229 Likewise.
5230 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
5231 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5232 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
5233 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
5234 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
5235 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
5236 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
5237 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
5238 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
5239 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
5240 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
5241 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
5242 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
5243 Likewise.
5244 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
5245 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5246 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
5247 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
5248 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
5249 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
5250 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
5251 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
5252 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
5253 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
5254 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
5255 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
5256 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
5257 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
5258 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5259 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
5260 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
5261 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
5262 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
5263 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
5264 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
5265 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
5266 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
5267 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
5268 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
5269 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
5270 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
5271 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
5272 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5273 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
5274 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
5275 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
5276 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
5277 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
5278 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
5279 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
5280 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
5281 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
5282
5283 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
5284
5285 [BZ #23137]
5286 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
5287 Use atomic_load_acquire to load __tid.
5288
5289 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
5290
5291 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
5292 Restore the pointer into %rdx, after syscall and use %rdx,
5293 instead of %rsi, to restore context.
5294
5295 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
5296
5297 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
5298 Pop the pointer into %rdx after syscall and use %rdx, instead
5299 of %rsi, to restore context.
5300
5301 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
5302
5303 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
5304 handlers after setjmp.
5305 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
5306 defined.
5307 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
5308 <libc-pointer-arith.h>.
5309 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
5310 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
5311 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
5312 _JUMP_BUF_SIGSET_BITS_PER_WORD.
5313 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
5314 * sysdeps/x86/__longjmp_cancel.S: New file.
5315 * sysdeps/x86/longjmp.c: Likewise.
5316 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
5317
5318 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5319
5320 * NEWS: Add ustat.h deprecation entry.
5321 * bits/ustat.h: Remove file.
5322 * misc/sys/ustat.h: Likewise.
5323 * misc/ustat.h: Likewise.
5324 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
5325 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
5326 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
5327 compatibility mode.
5328 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
5329 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
5330 generic Linux implementation.
5331
5332 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5333
5334 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
5335 * math/w_expl_compat.c: Likewise.
5336 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
5337
5338 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
5339
5340 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
5341
5342 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5343
5344 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
5345 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
5346 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
5347 Remove.
5348 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
5349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
5350 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
5351 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
5352 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
5353 and SYSCALL_LL64.
5354
5355 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5356
5357 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
5358
5359 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
5360 * math/w_asin_template.c: Likewise.
5361 * math/w_atanh_template.c: Likewise.
5362
5363 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5364
5365 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
5366 to powerpc/powerpc64/be for big-endian.
5367 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
5368 little-endian.
5369
5370 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
5371 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
5372 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
5373 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
5374 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
5375 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
5376 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
5377 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
5378 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
5379 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
5380 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
5381 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
5382 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
5383 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
5384 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
5385 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
5386 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
5387 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
5388 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
5389 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
5390 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
5391 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
5392 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
5393 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
5394 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
5395 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
5396 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
5397 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
5398 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
5399 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
5400 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
5401 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
5402
5403 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
5404 adjusted to imply powerpc64 and older processors on powerpc64/be.
5405 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
5406 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
5407 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
5408 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
5409 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
5410 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
5411 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
5412 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
5413 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
5414 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
5415 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
5416 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
5417 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
5418 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
5419 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
5420 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
5421 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
5422 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
5423 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
5424 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
5425 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
5426 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
5427 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
5428 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
5429 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
5430 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
5431 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
5432 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
5433 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
5434 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
5435 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
5436
5437 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
5438 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
5439 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
5440 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
5441
5442 * sysdeps/powerpc/powerpc64/be/Implies: New file.
5443 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
5444 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
5445 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
5446
5447 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
5448 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
5449 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
5450 * sysdeps/powerpc/powerpc64le/configure: Likewise.
5451 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
5452 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
5453 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
5454 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
5455 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
5456 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
5457 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
5458
5459 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
5460 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
5461 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
5462 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
5463 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
5464 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
5465 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
5466 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
5467 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
5468 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
5469 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
5470
5471 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
5472 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
5473 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
5474 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
5475 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
5476 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
5477 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
5478 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
5479 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
5480 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
5481 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
5482 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
5483
5484 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
5485 and adjusted to imply olders processors.
5486 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
5487 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
5488 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
5489 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
5490 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
5491 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
5492 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
5493 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
5494 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
5495 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
5496 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
5497
5498 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
5499 powerpc64/le.
5500 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
5501 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
5502
5503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
5504 powerpc64le.
5505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
5506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
5507
5508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
5509 powerpc64/be.
5510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
5511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
5512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
5513
5514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
5515 powerpc64 and adjusted.
5516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
5517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
5518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
5519 Likewise.
5520
5521 2018-04-27 Joseph Myers <joseph@codesourcery.com>
5522
5523 * sysdeps/tile: Remove.
5524 * sysdeps/unix/sysv/linux/tile: Likewise.
5525 * README (tilegx-*-linux-gnu): Remove from list of supported
5526 configurations.
5527 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
5528 contribution of support for generic Linux kernel syscall
5529 interface.
5530 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
5531 tilegx configurations.
5532 (Config.install_linux_headers): Do not handle tile.
5533 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
5534 in comment.
5535 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
5536 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
5537 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
5538 conditional undefine and redefine.
5539 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
5540 in comment.
5541 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
5542 conditional undefine and redefine.
5543
5544 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
5545
5546 * signal/tst-sigaction.c: New file to test BZ #23069.
5547 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
5548
5549 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5550
5551 [BZ #22766]
5552 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
5553 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
5554 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
5555 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
5556
5557 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5558
5559 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
5560 _DIRENT_MATCHES_DIRENT64 is not defined.
5561 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
5562 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
5563 is defined.
5564 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
5565 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
5566
5567 2018-04-25 Joseph Myers <joseph@codesourcery.com>
5568
5569 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
5570 version to GCC 8 branch.
5571
5572 2018-04-24 Joseph Myers <joseph@codesourcery.com>
5573
5574 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
5575 (check_no_hidden): Use type of original function when declaring
5576 alias.
5577
5578 * sysdeps/unix/sysv/linux/sys/ptrace.h
5579 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
5580 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
5581 (struct __ptrace_seccomp_metadata): New type.
5582 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5583 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5584 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
5585 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5586 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
5587 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5588 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5589 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5590 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
5591 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5592 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
5593 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5594 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
5595 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5596 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
5597 (PTRACE_SECCOMP_GET_METADATA): Likewise.
5598
5599 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5600
5601 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
5602 defined.
5603 * dirent/versionsort.c (versionsort): Likewise.
5604 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
5605 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
5606 * dirent/versionsort64.c (versionsort64): Likewise.
5607 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
5608 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
5609 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
5610 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
5611 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
5612 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
5613 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
5614 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
5615 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
5616 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
5617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
5618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
5619 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
5620 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
5621
5622 2018-04-23 Joseph Myers <joseph@codesourcery.com>
5623
5624 * elf/elf.h (NT_PPC_PKEY): New macro.
5625
5626 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
5627
5628 [BZ #23094]
5629 * localedata/locales/hr_HR: fix thousands_sep and
5630 mon_thousands_sep
5631
5632 2018-04-20 Joseph Myers <joseph@codesourcery.com>
5633
5634 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
5635 (XTABS): Define to TAB3.
5636
5637 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5638
5639 * sysdeps/hppa/fpu/libm-test-ulps: Update.
5640
5641 * dirent/scandir-tail-common.c: New file.
5642 * dirent/scandir-tail.c: Use scandir-tail-common.c.
5643 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
5644 * dirent/scandir.c: Use scandir-tail-common.c.
5645 * dirent/scandirat.c: Likewise.
5646 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
5647 * dirent/scandir64.c (scandir64): Always build and alias to scandir
5648 if _DIRENT_MATCHES_DIRENT64 is defined.
5649 * dirent/scandirat64.c (scandirat64): Likewise.
5650 * include/dirent.h (__scandir_tail): Only define iff
5651 _DIRENT_MATCHES_DIRENT64 is not defined.
5652 (__scandir64_tail): Define regardless.
5653 (__scandirat, scandirat64): Remove libc_hidden_proto.
5654 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
5655 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
5656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
5657 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
5658 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
5659 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
5660 * sysdeps/unix/sysv/linux/scandir64.c: New file.
5661
5662 2018-04-20 Joseph Myers <joseph@codesourcery.com>
5663
5664 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
5665 New macro.
5666 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5667 Increase to 24.
5668 (_dl_aarch64_cap_flags): Add asimdfhm.
5669
5670 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
5671
5672 * sysdeps/nios2/libm-test-ulps: Update.
5673
5674 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5675
5676 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
5677 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
5678
5679 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
5680 requirements.
5681 (_DIRENT_MATCHES_DIRENT64): Undef
5682 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
5683 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
5684 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
5685 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
5686 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
5687 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
5688 use getdents64 syscalls as base.
5689 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
5690 symbol if required.
5691 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
5692 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
5693 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
5694 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
5695 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
5696 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
5697 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
5698 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
5699 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5700 (__get_clockfreq_via_proc_openprom): Use __getdents64.
5701 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
5702
5703 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
5704
5705 * scripts/test_printers_common.py (init_test): Disable lock elision.
5706
5707 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
5708
5709 * math/test-tgmath.c (count_double, count_float,
5710 count_ldouble, count_cdouble, count_cfloat,
5711 count_cldouble): Use volatile int.
5712
5713 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5714
5715 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5716 (conformtest-xfail-conds): Add i386-gnu.
5717 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
5718 i386-gnu.
5719 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
5720 ipc_perm.cuid, ipc_perm.cgid): Likewise.
5721 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
5722 msqid_ds.msg_lrpid): Likewise.
5723 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
5724 Likewise.
5725 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
5726 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
5727 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
5728 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
5729 unsigned int.
5730 (struct statvfs64): Likewise.
5731 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
5732 Likewise.
5733 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
5734 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
5735 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
5736 instead of wait_queue.
5737 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
5738 instead of vm_area_struct.
5739 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
5740 struct sched_param definition to it.
5741 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5742 * bits/types/struct_sched_param.h: New file.
5743 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
5744 <bits/types/struct_sched_param.h> instead of <sched.h>.
5745 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
5746 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
5747 generic version but include <bits/pthreadtypes.h> to make struct
5748 sigevent's sigev_notify_attributes field a pthread_attr_t*.
5749 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
5750 non-compliant.
5751 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
5752 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
5753 [__USE_XOPEN] (OFDEL): New macro.
5754 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
5755 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
5756 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
5757 prototypes.
5758 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
5759 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
5760 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
5761 non-compliant.
5762 * sysdeps/i386/sys/ucontext.h: Likewise.
5763 * sysdeps/m68k/sys/ucontext.h: Likewise.
5764 * sysdeps/mips/sys/ucontext.h: Likewise.
5765 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
5766 * sysdeps/mach/hurd/i386/Makefile
5767 (test-xfail-POSIX/fcntl.h/conform): Add.
5768 (test-xfail-POSIX/signal.h/conform): Add.
5769 (test-xfail-POSIX/semaphore.h/conform): Add.
5770 (test-xfail-POSIX/regex.h/conform): Add.
5771 (test-xfail-POSIX/aio.h/conform): Add.
5772 (test-xfail-POSIX/mqueue.h/conform): Add.
5773 (test-xfail-POSIX/sys/types.h/conform): Add.
5774 (test-xfail-UNIX98/fcntl.h/conform): Add.
5775 (test-xfail-UNIX98/netdb.h/conform): Add.
5776 (test-xfail-UNIX98/signal.h/conform): Add.
5777 (test-xfail-UNIX98/semaphore.h/conform): Add.
5778 (test-xfail-UNIX98/regex.h/conform): Add.
5779 (test-xfail-UNIX98/aio.h/conform): Add.
5780 (test-xfail-UNIX98/ftw.h/conform): Add.
5781 (test-xfail-UNIX98/mqueue.h/conform): Add.
5782 (test-xfail-UNIX98/netinet/in.h/conform): Add.
5783 (test-xfail-UNIX98/sys/wait.h/conform): Add.
5784 (test-xfail-UNIX98/sys/sem.h/conform): Add.
5785 (test-xfail-UNIX98/sys/uio.h/conform): Add.
5786 (test-xfail-UNIX98/sys/socket.h/conform): Add.
5787 (test-xfail-UNIX98/sys/types.h/conform): Add.
5788 (test-xfail-UNIX98/stdlib.h/conform): Add.
5789 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
5790 (test-xfail-POSIX2008/fcntl.h/conform): Add.
5791 (test-xfail-POSIX2008/netdb.h/conform): Add.
5792 (test-xfail-POSIX2008/signal.h/conform): Add.
5793 (test-xfail-POSIX2008/semaphore.h/conform): Add.
5794 (test-xfail-POSIX2008/regex.h/conform): Add.
5795 (test-xfail-POSIX2008/aio.h/conform): Add.
5796 (test-xfail-POSIX2008/mqueue.h/conform): Add.
5797 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
5798 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
5799 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
5800 (test-xfail-POSIX2008/sys/types.h/conform): Add.
5801 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
5802 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
5803 (test-xfail-XOPEN2K/netdb.h/conform): Add.
5804 (test-xfail-XOPEN2K/signal.h/conform): Add.
5805 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
5806 (test-xfail-XOPEN2K/regex.h/conform): Add.
5807 (test-xfail-XOPEN2K/aio.h/conform): Add.
5808 (test-xfail-XOPEN2K/ftw.h/conform): Add.
5809 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
5810 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
5811 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
5812 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
5813 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
5814 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
5815 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
5816 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
5817 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
5818 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
5819 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
5820 (test-xfail-XOPEN2K8/signal.h/conform): Add.
5821 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
5822 (test-xfail-XOPEN2K8/regex.h/conform): Add.
5823 (test-xfail-XOPEN2K8/aio.h/conform): Add.
5824 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
5825 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
5826 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
5827 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
5828 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
5829 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
5830 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
5831 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
5832 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
5833 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
5834 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
5835 i386-gnu.
5836 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
5837 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
5838
5839 2018-04-18 Joseph Myers <joseph@codesourcery.com>
5840
5841 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
5842 --enable-obsolete for powerpc-linux-gnuspe.
5843
5844 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5845
5846 * conform/data/sys/un.h-data: Allow sun_ prefix.
5847 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
5848 prototypes.
5849 * sysdeps/mach/include/mach.h: Likewise.
5850 * sysdeps/mach/include/mach/mig_support.h: Likewise.
5851 * sysdeps/mach/include/mach_error.h: Likewise.
5852
5853 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5854
5855 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
5856 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
5857 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
5858 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
5859
5860 2018-04-16 Andreas Schwab <schwab@suse.de>
5861
5862 [BZ #19527]
5863 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
5864
5865 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
5866
5867 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
5868 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
5869
5870 2018-04-12 DJ Delorie <dj@redhat.com>
5871
5872 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5873 version to 4.16.
5874
5875 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
5876
5877 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
5878 (struct kernel_sigaction): Use the same definition on 31bit as is used
5879 on 64bit.
5880
5881 2018-04-09 Florian Weimer <fweimer@redhat.com>
5882
5883 [BZ #23037]
5884 * resolv/res_send.c (send_dg): Use designated initializers instead
5885 of assignment to zero-initialize other fields of struct mmsghdr.
5886
5887 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5888
5889 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
5890 __READDIR_ALIAS): Undefine after usage.
5891 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
5892 __READDIR_R_ALIAS): Likewise.
5893 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
5894 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
5895 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
5896 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
5897 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
5898 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
5899 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
5900 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
5901 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
5902 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
5903 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
5904 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
5905 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
5906 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
5907 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
5908 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
5909 * sysdeps/unix/sysv/linux/readdir.c: New file.
5910 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
5911 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
5912 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
5913
5914 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
5915
5916 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
5917
5918 * manual/charset.texi (Converting a Character): Fix typo.
5919
5920 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5921
5922 * sysdeps/sparc/fpu/libm-test-ulps: Update.
5923
5924 * sysdeps/arm/libm-test-ulps: Update.
5925
5926 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
5927 as base implementation.
5928 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5929 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5930 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5931 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5932 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5933 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
5934 remove unrequired definitions and update comments.
5935 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
5936 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
5937 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
5938 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
5939 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
5940 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
5941 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5942 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
5943 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
5944 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
5945 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
5946 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
5947 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
5948 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
5949 and RESET_SA_RESTORER hooks.
5950
5951 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
5952
5953 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5954
5955 2018-04-05 Florian Weimer <fweimer@redhat.com>
5956
5957 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
5958 integer overflow, memory leak on error, and indeterminate errno
5959 value. Add a null wide character to terminate the result string.
5960 * manual/charset.texi (Converting a Character): Mention embedded
5961 null bytes in the mbrtowc input string. Explain what happens in
5962 the -2 result case. Do not claim that mbrtowc is simple or
5963 obvious to use. Adjust the description of the code example. Use
5964 @code, not @var, for concrete variables.
5965
5966 2018-04-05 Florian Weimer <fweimer@redhat.com>
5967
5968 * manual/examples/mbstouwcs.c: New file.
5969 * manual/charset.texi (Converting a Character): Include it.
5970
5971 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5972
5973 * include/dirent.h (dirfd): Add hidden proto.
5974 * dirent/dirfd.c (dirfd): Add hidden def.
5975 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
5976 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
5977
5978 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5979
5980 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
5981 sin, cos and sincos to 1 ULP.
5982
5983 2018-04-04 Maciej W. Rozycki <macro@mips.com>
5984
5985 [BZ #19818]
5986 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
5987 symbols.
5988 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
5989 * elf/tst-absolute-sym.c: New file.
5990 * elf/tst-absolute-sym-lib.c: New file.
5991 * elf/tst-absolute-sym-lib.lds: New file.
5992 * elf/Makefile (tests): Add `tst-absolute-sym'.
5993 (modules-names): Add `tst-absolute-sym-lib'.
5994 (LDLIBS-tst-absolute-sym-lib.so): New variable.
5995 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
5996 ($(objpfx)tst-absolute-sym): New dependency.
5997
5998 [BZ #19818]
5999 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
6000 parameter.
6001 (SYMBOL_ADDRESS): New macro.
6002 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
6003 SYMBOL_ADDRESS for symbol address calculation.
6004 * elf/dl-runtime.c (_dl_fixup): Likewise.
6005 (_dl_profile_fixup): Likewise.
6006 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
6007 * elf/rtld.c (dl_main): Likewise.
6008 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
6009 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
6010 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
6011 (elf_machine_rela): Likewise.
6012 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
6013 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
6014 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6015 (elf_machine_rela): Likewise.
6016 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
6017 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
6018 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
6019 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
6020 Likewise.
6021 (elf_machine_reloc): Likewise.
6022 (elf_machine_got_rel): Likewise.
6023 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6024 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
6025 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
6026 Likewise.
6027 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6028 Likewise.
6029 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
6030 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
6031 Likewise.
6032 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
6033 Likewise.
6034 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
6035 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
6036 Likewise.
6037 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
6038 Likewise.
6039 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
6040 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6041
6042 2018-04-04 Zack Weinberg <zackw@panix.com>
6043
6044 * sysdeps/generic/internal-signals.h: Include signal.h,
6045 sigsetops.h, and stdbool.h.
6046 (__libc_signal_block_all): Actually block all signals.
6047 (__libc_signal_block_app): Likewise.
6048 (__libc_signal_restore_set): Actually restore the signal mask.
6049
6050 2018-04-04 Florian Weimer <fweimer@redhat.com>
6051
6052 inet: Actually build and run tst-deadline.
6053 * inet/Makefile (tests-internal): Add tst-deadline and do not
6054 overwrite the variable.
6055 (tests-static-internal): Remove variable.
6056
6057 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
6058
6059 [BZ #22947]
6060 * bits/uio-ext.h (RWF_APPEND): New.
6061 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
6062 * manual/llio.texi: Document RWF_APPEND.
6063 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
6064 (RWF_SUPPORTED): Add RWF_APPEND.
6065
6066 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6067
6068 [BZ #22391]
6069 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
6070 check for internal nptl signals.
6071 * nptl/sigaction.c (__sigaction): Likewise.
6072 * signal/sigaddset.c (sigaddset): Likewise.
6073 * signal/sigdelset.c (sigdelset): Likewise.
6074 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
6075 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
6076 value.
6077 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
6078 to filter out internal nptl signals.
6079 * signal/tst-sigset.c (do_test): Check ech signal indidually and
6080 also check realtime signals using standard macros.
6081 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
6082 __is_internal_signal, __libc_signal_block_all,
6083 __libc_signal_block_app, __libc_signal_restore_set): New functions.
6084 * sysdeps/nptl/sigfillset.c: Remove file.
6085 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
6086 Change return to bool.
6087 (__clear_internal_signals): Remove SIGTIMER clean since it is
6088 equal to SIGCANEL on Linux.
6089 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
6090 signal set was constructed using standard functions.
6091
6092 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6093
6094 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
6095 ifname is too long.
6096 * hurd/hurdsig.c (interrupted_reply_port_location): Use
6097 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
6098 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
6099 hidden def.
6100 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
6101 * signal/sigaddset.c: Include <sigsetopts.h>.
6102 * signal/sigdelset.c: Likewise.
6103
6104 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6105
6106 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
6107 (__cos): Likewise.
6108 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
6109 logic as sin and cos.
6110
6111 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6112
6113 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
6114 inputs. Return correct sign.
6115 (do_sincos): Remove small input check before do_sin, let do_sin set
6116 the sign.
6117 (__sin): Likewise.
6118 (__cos): Likewise.
6119
6120 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6121
6122 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
6123 (do_cos_slow): Likewise.
6124 (do_sin_slow): Likewise.
6125 (reduce_and_compute): Likewise.
6126 (slow): Likewise.
6127 (slow1): Likewise.
6128 (slow2): Likewise.
6129 (sloww): Likewise.
6130 (sloww1): Likewise.
6131 (sloww2): Likewise.
6132 (bslow): Likewise.
6133 (bslow1): Likewise.
6134 (bslow2): Likewise.
6135 (cslow2): Likewise.
6136
6137 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6138
6139 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
6140 (do_cos): Remove corp parameter and calculations.
6141 (do_sin): Likewise.
6142 (do_sincos): Remove cor variable.
6143 (__sin): Use do_sincos for huge inputs.
6144 (__cos): Likewise.
6145 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6146 (reduce_and_compute_sincos): Remove unused function.
6147
6148 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6149
6150 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
6151 reduce_sincos, improve accuracy to 136 bits.
6152 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
6153 (__sin): Use improved reduction and simplified do_sincos calculation.
6154 (__cos): Likewise.
6155 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6156
6157 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6158
6159 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
6160 (do_sincos_2): Likewise.
6161 (__sin): Remove middle range reduction case.
6162 (__cos): Likewise.
6163 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
6164 reduction case.
6165
6166 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
6167
6168 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
6169 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
6170 inputs.
6171 (__cos): Likewise.
6172 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
6173
6174 2018-04-03 Joseph Myers <joseph@codesourcery.com>
6175
6176 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6177 version to 4.16
6178
6179 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6180
6181 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
6182 Remove definitions.
6183 (opendir_oflags): Use O_DIRECTORY regardless.
6184 (__opendir, __opendirat): Remove need_isdir_precheck usage.
6185 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
6186
6187 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6188
6189 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
6190 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
6191 macros.
6192 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
6193 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
6194 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
6195 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
6196 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
6197 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
6198
6199 * htl/Makefile: Bump licence to LGPL 2.1+.
6200 * htl/alloca_cutoff.c: Likewise.
6201 * htl/cthreads-compat.c: Likewise.
6202 * htl/lockfile.c: Likewise.
6203 * htl/pt-alloc.c: Likewise.
6204 * htl/pt-cancel.c: Likewise.
6205 * htl/pt-cleanup.c: Likewise.
6206 * htl/pt-create.c: Likewise.
6207 * htl/pt-dealloc.c: Likewise.
6208 * htl/pt-detach.c: Likewise.
6209 * htl/pt-exit.c: Likewise.
6210 * htl/pt-getattr.c: Likewise.
6211 * htl/pt-initialize.c: Likewise.
6212 * htl/pt-internal.h: Likewise.
6213 * htl/pt-join.c: Likewise.
6214 * htl/pt-self.c: Likewise.
6215 * htl/pt-setcancelstate.c: Likewise.
6216 * htl/pt-setcanceltype.c: Likewise.
6217 * htl/pt-sigmask.c: Likewise.
6218 * htl/pt-spin-inlines.c: Likewise.
6219 * htl/pt-testcancel.c: Likewise.
6220 * htl/pt-yield.c: Likewise.
6221 * htl/tests/test-1.c: Likewise.
6222 * htl/tests/test-10.c: Likewise.
6223 * htl/tests/test-11.c: Likewise.
6224 * htl/tests/test-12.c: Likewise.
6225 * htl/tests/test-13.c: Likewise.
6226 * htl/tests/test-14.c: Likewise.
6227 * htl/tests/test-15.c: Likewise.
6228 * htl/tests/test-16.c: Likewise.
6229 * htl/tests/test-17.c: Likewise.
6230 * htl/tests/test-2.c: Likewise.
6231 * htl/tests/test-3.c: Likewise.
6232 * htl/tests/test-4.c: Likewise.
6233 * htl/tests/test-5.c: Likewise.
6234 * htl/tests/test-6.c: Likewise.
6235 * htl/tests/test-7.c: Likewise.
6236 * htl/tests/test-8.c: Likewise.
6237 * htl/tests/test-9.c: Likewise.
6238 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
6239 * sysdeps/htl/bits/cancelation.h: Likewise.
6240 * sysdeps/htl/bits/pthread-np.h: Likewise.
6241 * sysdeps/htl/bits/pthread.h: Likewise.
6242 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
6243 * sysdeps/htl/bits/semaphore.h: Likewise.
6244 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
6245 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
6246 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
6247 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
6248 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
6249 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
6250 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
6251 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
6252 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
6253 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
6254 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
6255 * sysdeps/htl/old_pt-atfork.c: Likewise.
6256 * sysdeps/htl/pt-atfork.c: Likewise.
6257 * sysdeps/htl/pt-attr-destroy.c: Likewise.
6258 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
6259 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
6260 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
6261 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
6262 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
6263 * sysdeps/htl/pt-attr-getscope.c: Likewise.
6264 * sysdeps/htl/pt-attr-getstack.c: Likewise.
6265 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
6266 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
6267 * sysdeps/htl/pt-attr-init.c: Likewise.
6268 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
6269 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
6270 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
6271 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
6272 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
6273 * sysdeps/htl/pt-attr-setscope.c: Likewise.
6274 * sysdeps/htl/pt-attr-setstack.c: Likewise.
6275 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
6276 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
6277 * sysdeps/htl/pt-attr.c: Likewise.
6278 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
6279 * sysdeps/htl/pt-barrier-init.c: Likewise.
6280 * sysdeps/htl/pt-barrier-wait.c: Likewise.
6281 * sysdeps/htl/pt-barrier.c: Likewise.
6282 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
6283 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
6284 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
6285 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
6286 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
6287 * sysdeps/htl/pt-cond-destroy.c: Likewise.
6288 * sysdeps/htl/pt-cond-init.c: Likewise.
6289 * sysdeps/htl/pt-cond-signal.c: Likewise.
6290 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
6291 * sysdeps/htl/pt-cond-wait.c: Likewise.
6292 * sysdeps/htl/pt-cond.c: Likewise.
6293 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
6294 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
6295 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
6296 * sysdeps/htl/pt-condattr-init.c: Likewise.
6297 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
6298 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
6299 * sysdeps/htl/pt-destroy-specific.c: Likewise.
6300 * sysdeps/htl/pt-equal.c: Likewise.
6301 * sysdeps/htl/pt-getconcurrency.c: Likewise.
6302 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
6303 * sysdeps/htl/pt-getschedparam.c: Likewise.
6304 * sysdeps/htl/pt-getspecific.c: Likewise.
6305 * sysdeps/htl/pt-init-specific.c: Likewise.
6306 * sysdeps/htl/pt-key-create.c: Likewise.
6307 * sysdeps/htl/pt-key-delete.c: Likewise.
6308 * sysdeps/htl/pt-key.h: Likewise.
6309 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
6310 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
6311 * sysdeps/htl/pt-mutex-init.c: Likewise.
6312 * sysdeps/htl/pt-mutex-lock.c: Likewise.
6313 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
6314 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
6315 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
6316 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
6317 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
6318 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
6319 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
6320 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
6321 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
6322 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
6323 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
6324 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
6325 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
6326 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
6327 * sysdeps/htl/pt-mutexattr.c: Likewise.
6328 * sysdeps/htl/pt-once.c: Likewise.
6329 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
6330 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
6331 * sysdeps/htl/pt-rwlock-init.c: Likewise.
6332 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
6333 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
6334 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
6335 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
6336 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
6337 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
6338 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
6339 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
6340 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
6341 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
6342 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
6343 * sysdeps/htl/pt-setconcurrency.c: Likewise.
6344 * sysdeps/htl/pt-setschedparam.c: Likewise.
6345 * sysdeps/htl/pt-setschedprio.c: Likewise.
6346 * sysdeps/htl/pt-setspecific.c: Likewise.
6347 * sysdeps/htl/pt-spin.c: Likewise.
6348 * sysdeps/htl/pt-startup.c: Likewise.
6349 * sysdeps/htl/pthread.h: Likewise.
6350 * sysdeps/htl/sem-close.c: Likewise.
6351 * sysdeps/htl/sem-destroy.c: Likewise.
6352 * sysdeps/htl/sem-getvalue.c: Likewise.
6353 * sysdeps/htl/sem-init.c: Likewise.
6354 * sysdeps/htl/sem-open.c: Likewise.
6355 * sysdeps/htl/sem-post.c: Likewise.
6356 * sysdeps/htl/sem-timedwait.c: Likewise.
6357 * sysdeps/htl/sem-trywait.c: Likewise.
6358 * sysdeps/htl/sem-unlink.c: Likewise.
6359 * sysdeps/htl/sem-wait.c: Likewise.
6360 * sysdeps/hurd/htl/pt-kill.c: Likewise.
6361 * sysdeps/i386/htl/pt-machdep.h: Likewise.
6362 * sysdeps/mach/htl/pt-block.c: Likewise.
6363 * sysdeps/mach/htl/pt-spin.c: Likewise.
6364 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
6365 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
6366 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
6367 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
6368 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
6369 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
6370 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
6371 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
6372 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
6373 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
6374 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
6375 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
6376 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
6377 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
6378 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
6379 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
6380 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
6381 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
6382 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
6383 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
6384 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
6385 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
6386 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
6387 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
6388 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
6389 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
6390 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
6391 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
6392 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
6393 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
6394 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
6395 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
6396 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
6397 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
6398 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
6399 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
6400 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
6401 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
6402 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
6403 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
6404 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
6405 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
6406 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
6407
6408 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
6409 * README: Remove the mention of out-of-tree patches needed for
6410 GNU/Hurd.
6411
6412 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
6413 (UTIME_NOW, UTIME_OMIT): Define macros.
6414
6415 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
6416 instead of pthread_detach.
6417 (__cthread_fork): Call __pthread_create instead of pthread_create.
6418 (__cthread_keycreate): Call __pthread_key_create instead of
6419 pthread_key_create.
6420 (__cthread_getspecific): Call __pthread_getspecific instead of
6421 pthread_getspecific.
6422 (__cthread_setspecific): Call __pthread_setspecific instead of
6423 pthread_setspecific.
6424 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
6425 __pthread_mutex_unlock instead of pthread_mutex_lock and
6426 pthread_mutex_unlock.
6427 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
6428 ___pthread_get_cleanup_stack.
6429 (__pthread_get_cleanup_stack): New strong alias.
6430 * htl/pt-create.c: Include <pthreadP.h>.
6431 (entry_point): Call __pthread_exit instead of pthread_exit.
6432 (pthread_create): Rename to __pthread_create.
6433 (pthread_create): New strong alias.
6434 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
6435 (pthread_detach): New strong alias.
6436 (__pthread_detach): Call __pthread_cond_broadcast instead of
6437 pthread_cond_broadcast.
6438 * htl/pt-exit.c: Include <pthreadP.h>.
6439 (__pthread_exit): Call __pthread_setcancelstate and
6440 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
6441 __pthread_get_cleanup_stack.
6442 * htl/pt-testcancel.c: Include <pthreadP.h>.
6443 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
6444 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
6445 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
6446 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
6447 pthread_attr_getstacksize.
6448 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
6449 Rename to __pthread_attr_getstackaddr.
6450 (pthread_attr_getstackaddr): New strong alias.
6451 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
6452 Rename to __pthread_attr_getstacksize.
6453 (pthread_attr_getstacksize): New strong alias.
6454 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
6455 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
6456 (pthread_attr_setstack): New strong alias.
6457 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
6458 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
6459 pthread_attr_getstacksize, pthread_attr_setstacksize and
6460 pthread_attr_setstackaddr.
6461 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
6462 Rename to __pthread_attr_setstackaddr.
6463 (pthread_attr_setstackaddr): New strong alias.
6464 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
6465 Rename to __pthread_attr_setstacksize.
6466 (pthread_attr_setstacksize): New strong alias.
6467 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
6468 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
6469 pthread_exit.
6470 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
6471 (__pthread_key_create): New hidden def.
6472 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
6473 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
6474 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
6475 __pthread_exit, __pthread_key_create, __pthread_getspecific,
6476 __pthread_setspecific, __pthread_setcancelstate,
6477 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
6478 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
6479 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
6480 declarations.
6481 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
6482 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
6483 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
6484 (pthread_attr_setstackaddr): New strong alias.
6485 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
6486 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
6487 (pthread_attr_setstacksize): New strong alias.
6488 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
6489 (call_exit): Call __pthread_exit instead of pthread_exit.
6490 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
6491 (_pthread_mutex_init): New hidden definition.
6492 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
6493 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
6494 instead of pthread_attr_init and pthread_attr_setstack.
6495
6496 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
6497 __vm_deallocate instead of vm_allocate and vm_deallocate.
6498 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
6499 setenv.
6500 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
6501 of geteuid.
6502 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
6503 strdup.
6504 * hurd/siginfo.c: Include <libioP.h>.
6505 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
6506 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
6507 munmap.
6508 * mach/devstream.c: Include <libioP.h>.
6509 (dealloc_ref): Call __mach_port_deallocate instead of
6510 mach_port_deallocate.
6511 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
6512 Call __mach_port_deallocate instead of mach_port_deallocate.
6513 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
6514 pathconf.
6515 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
6516 munmap.
6517 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
6518 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
6519 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
6520 of munmap.
6521 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
6522 of close.
6523 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
6524 instead of sysconf.
6525 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
6526 __clock_gettime instead of clock_gettime.
6527 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
6528 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
6529 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
6530 * sysdeps/unix/bsd/stty.c (stty): Likewise.
6531 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
6532 tcgetattr.
6533 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
6534 __clock_gettime and __nanosleep instead of clock_gettime and
6535 nanosleep.
6536 * hurd/catch-signal.c (hurd_catch_signal): Rename to
6537 __hurd_catch_signal.
6538 (hurd_catch_signal): New strong alias.
6539 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
6540 __hurd_catch_signal instead of hurd_catch_signal.
6541 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
6542 * hurd/hurdexec.c (_hurd_init): Add hidden def.
6543 * hurd/hurdinit.c (_hurd_init): Add hidden def.
6544 * hurd/hurdsig.c: Include <mach/mig_support.h>.
6545 (_hurd_thread_sigstate): Add hidden def.
6546 (_hurd_internal_post_signal): Use __mutex_unlock instead of
6547 mutex_unlock.
6548 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
6549 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
6550 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
6551 __hurd_file_name_path_lookup.
6552 (hurd_file_name_path_lookup): New strong alias.
6553 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
6554 hurd_file_name_path_lookup.
6555 * mach/errstring.c (mach_error_type): Add hidden def.
6556 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
6557 * mach/mutex-init.c (__mutex_init): Add hidden def.
6558 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
6559 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
6560 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
6561 * sysdeps/mach/hurd/getcwd.c
6562 (_hurd_canonicalize_directory_name_internal): Rename to
6563 __hurd_canonicalize_directory_name_internal.
6564 (_hurd_canonicalize_directory_name_internal): New strong alias.
6565 (__canonicalize_directory_name_internal, __getcwd): Call
6566 __hurd_canonicalize_directory_name_internal instead of
6567 _hurd_canonicalize_directory_name_internal.
6568 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
6569 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
6570 hidden defs.
6571 * sysdeps/hurd/include/hurd.h: New file.
6572 * sysdeps/hurd/include/hurd/fd.h: New file.
6573 * sysdeps/hurd/include/hurd/signal.h: New file.
6574 * sysdeps/mach/include/lock-intern.h: New file.
6575 * sysdeps/mach/include/mach.h: New file.
6576 * sysdeps/mach/include/mach/mig_support.h: New file.
6577 * sysdeps/mach/include/mach_error.h: New file.
6578 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
6579 prototype.
6580 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
6581 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
6582 _HEADER_H_HIDDEN_DEF macro.
6583 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
6584 _hurd_fd_error_signal): Add hidden prototype.
6585 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
6586 hidden def.
6587 * libio/iolibio.h (_IO_puts): New hidden prototype.
6588 * libio/ioputs.c (_IO_puts): New hidden def.
6589 * sysdeps/mach/hurd/localplt.data: New file.
6590
6591 2018-04-02 Agustina Arzille <avarzille@riseup.net>
6592 Amos Jeffries <squid3@treenet.co.nz>
6593 David Michael <fedora.dm0@gmail.com>
6594 Marco Gerards <marco@gnu.org>
6595 Marcus Brinkmann <marcus@gnu.org>
6596 Neal H. Walfield <neal@gnu.org>
6597 Pino Toscano <toscano.pino@tiscali.it>
6598 Richard Braun <rbraun@sceen.net>
6599 Roland McGrath <roland@gnu.org>
6600 Samuel Thibault <samuel.thibault@ens-lyon.org>
6601 Thomas DiModica <ricinwich@yahoo.com>
6602 Thomas Schwinge <tschwinge@gnu.org>
6603
6604 * htl: New directory.
6605 * sysdeps/htl: New directory.
6606 * sysdeps/hurd/htl: New directory.
6607 * sysdeps/i386/htl: New directory.
6608 * sysdeps/mach/htl: New directory.
6609 * sysdeps/mach/hurd/htl: New directory.
6610 * sysdeps/mach/hurd/i386/htl: New directory.
6611 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
6612 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
6613 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
6614
6615 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
6616
6617 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
6618 signals in thread created for runing timers.
6619
6620 2018-04-01 Florian Weimer <fweimer@redhat.com>
6621
6622 * support/support_format_addrinfo.c (support_format_addrinfo):
6623 Include unknown error number in formatted result.
6624
6625 2018-03-29 Florian Weimer <fweimer@redhat.com>
6626
6627 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
6628 capture SIGBUS.
6629
6630 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6631
6632 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
6633 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
6634 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6635 (__ASSUME_CLONE_BACKWARDS): Define.
6636
6637 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
6638
6639 [BZ #23024]
6640 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
6641 early when linux sentinel value is set.
6642
6643 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
6644
6645 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
6646
6647 2018-03-27 Andreas Schwab <schwab@suse.de>
6648
6649 [BZ #23005]
6650 * resolv/res_send.c (__res_context_send): Return ENOMEM if
6651 allocation of private copy of nsaddr_list fails.
6652
6653 2018-03-26 Joseph Myers <joseph@codesourcery.com>
6654
6655 [BZ #16552]
6656 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
6657 * sysdeps/unix/sysv/linux/umount.c: ... here.
6658 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
6659 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
6660 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
6661 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
6662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
6663 * sysdeps/unix/sysv/linux/umount.S: Likewise.
6664 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
6665
6666 2018-03-26 Andreas Schwab <schwab@suse.de>
6667
6668 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
6669 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
6670 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
6671 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
6672 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
6673 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
6674 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
6675 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
6676 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
6677 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
6678 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
6679 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
6680 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
6681 (R_RISCV_NUM): Define.
6682
6683 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
6684
6685 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
6686 TLS declaration of errno.
6687 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
6688 __libc_setup_tls.
6689 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
6690 (ARCH_SETUP_TLS): Likewise.
6691 * sysdeps/mach/hurd/libc-start.h: New file copied from
6692 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
6693 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
6694 instead of __libc_setup_tls.
6695 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
6696 __libc_setup_tls before initializing libpthread and running _hurd_init
6697 which starts the signal thread.
6698 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
6699 Declare function.
6700 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6701
6702 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
6703
6704 [BZ #22998]
6705 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
6706 after it is defined.
6707
6708 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
6709 Max Horn <max@quendi.de>
6710
6711 [BZ #22644]
6712 CVE-2017-18269
6713 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
6714 branch conditions.
6715 * string/test-memmove.c (do_test2): New testcase.
6716
6717 2018-03-22 Joseph Myers <joseph@codesourcery.com>
6718
6719 * sysdeps/generic/frame.h: Remove file.
6720 * sysdeps/arm/frame.h: Likewise.
6721 * sysdeps/hppa/frame.h: Likewise.
6722 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
6723 macro.
6724 (GET_FRAME): Likewise.
6725 (GET_STACK): Likewise.
6726 (CALL_SIGHANDLER): Likewise.
6727 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
6728 Likewise.
6729 (GET_FRAME): Likewise.
6730 (GET_STACK): Likewise.
6731 (CALL_SIGHANDLER): Likewise.
6732 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
6733 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6734 (GET_FRAME): Likewise.
6735 (GET_STACK): Likewise.
6736 (CALL_SIGHANDLER): Likewise.
6737 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
6738 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6739 (GET_FRAME): Likewise.
6740 (GET_STACK): Likewise.
6741 (ADVANCE_STACK_FRAME): Likewise.
6742 (CALL_SIGHANDLER): Likewise.
6743 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
6744 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6745 (GET_FRAME): Likewise.
6746 (GET_STACK): Likewise.
6747 (CALL_SIGHANDLER): Likewise.
6748 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
6749 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6750 (GET_FRAME): Likewise.
6751 (GET_STACK): Likewise.
6752 (CALL_SIGHANDLER): Likewise.
6753 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
6754 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6755 (GET_FRAME): Likewise.
6756 (GET_STACK): Likewise.
6757 (CALL_SIGHANDLER): Likewise.
6758 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
6759 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6760 (GET_FRAME): Likewise.
6761 (GET_STACK): Likewise.
6762 (CALL_SIGHANDLER): Likewise.
6763 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
6764 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6765 (GET_FRAME): Likewise.
6766 (GET_STACK): Likewise.
6767 (CALL_SIGHANDLER): Likewise.
6768 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
6769 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6770 (GET_FRAME): Likewise.
6771 (GET_STACK): Likewise.
6772 (CALL_SIGHANDLER): Likewise.
6773 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
6774 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6775 (GET_FRAME): Likewise.
6776 (GET_STACK): Likewise.
6777 (CALL_SIGHANDLER): Likewise.
6778 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
6779 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6780 (GET_FRAME): Likewise.
6781 (GET_STACK): Likewise.
6782 (CALL_SIGHANDLER): Likewise.
6783 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
6784 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6785 (GET_FRAME): Likewise.
6786 (GET_STACK): Likewise.
6787 (CALL_SIGHANDLER): Likewise.
6788 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
6789 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6790 (FIRST_FRAME_POINTER): Likewise.
6791 (ADVANCE_STACK_FRAME): Likewise.
6792 (GET_STACK): Likewise.
6793 (GET_FRAME): Likewise.
6794 (CALL_SIGHANDLER): Likewise.
6795 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
6796 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6797 (ADVANCE_STACK_FRAME): Likewise.
6798 (GET_STACK): Likewise.
6799 (GET_FRAME): Likewise.
6800 (CALL_SIGHANDLER): Likewise.
6801 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
6802 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6803 (GET_FRAME): Likewise.
6804 (GET_STACK): Likewise.
6805 (CALL_SIGHANDLER): Likewise.
6806 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
6807 (SIGCONTEXT_EXTRA_ARGS): Likewise.
6808 (GET_FRAME): Likewise.
6809 (GET_STACK): Likewise.
6810 (CALL_SIGHANDLER): Likewise.
6811
6812 2018-03-21 Joseph Myers <joseph@codesourcery.com>
6813
6814 * sysdeps/x86_64/backtrace.c: Move to ....
6815 * debug/backtrace.c: ... here.
6816 * sysdeps/aarch64/backtrace.c: Remove file.
6817 * sysdeps/alpha/backtrace.c: Likewise.
6818 * sysdeps/hppa/backtrace.c: Likewise.
6819 * sysdeps/ia64/backtrace.c: Likewise.
6820 * sysdeps/mips/backtrace.c: Likewise.
6821 * sysdeps/nios2/backtrace.c: Likewise.
6822 * sysdeps/riscv/backtrace.c: Likewise.
6823 * sysdeps/sh/backtrace.c: Likewise.
6824 * sysdeps/tile/backtrace.c: Likewise.
6825
6826 2018-03-20 Joseph Myers <joseph@codesourcery.com>
6827
6828 [BZ #22987]
6829 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
6830 function.
6831 (fdimf): Likewise.
6832 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
6833
6834 [BZ #17343]
6835 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
6836 possibly overflowing computations.
6837
6838 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6839
6840 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
6841 values from Linux-specific section now that it is in the GNU section.
6842 * sysdeps/gnu/errlist.c: Regenerate.
6843
6844 2018-03-20 Joseph Myers <joseph@codesourcery.com>
6845
6846 * math/Makefile (libm-narrow-fns): Add sub.
6847 (libm-test-funcs-narrow): Likewise.
6848 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
6849 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
6850 * math/gen-auto-libm-tests.c (test_functions): Add sub.
6851 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
6852 (NARROW_SUB_ROUND_TO_ODD): Likewise.
6853 (NARROW_SUB_TRIVIAL): Likewise.
6854 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
6855 macro.
6856 (__dsubl): Likewise.
6857 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
6858 dsub.
6859 (CFLAGS-nldbl-dsub.c): New variable.
6860 (CFLAGS-nldbl-fsub.c): Likewise.
6861 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
6862 __nldbl_dsubl.
6863 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
6864 prototype.
6865 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
6866 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
6867 * math/auto-libm-test-in: Add tests of sub.
6868 * math/auto-libm-test-out-narrow-sub: New generated file.
6869 * math/libm-test-narrow-sub.inc: New file.
6870 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6871 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
6872 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
6873 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
6874 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
6875 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
6876 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
6877 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
6878 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
6879 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
6880 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
6881 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
6883 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
6884 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
6885 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
6886 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
6887 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
6888 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6889 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
6890 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6891 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6892 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6893 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6894 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6895 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6896 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6897 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6898 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6899 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6900 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6901 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6902 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6903 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
6904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6906 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
6907 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6908 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6909 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6910 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6911 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6912 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
6913 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
6914 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6915 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6916
6917 2018-03-19 Joseph Myers <joseph@codesourcery.com>
6918
6919 [BZ #20079]
6920 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
6921
6922 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
6923
6924 * benchtests/bench-timing.h (attribute_hidden): Undefine.
6925
6926 2018-03-18 Richard Braun <rbraun@sceen.net>
6927
6928 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
6929 thread reference.
6930
6931 2018-03-18 Agustina Arzille <avarzille@riseup.net>
6932
6933 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
6934 (__libc_cleanup_fct): Define function.
6935 (__libc_cleanup_region_start, __libc_cleanup_region_end,
6936 __libc_cleanup_end): Rewrite implementation using
6937 __attribute__ ((__cleanup__)).
6938 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
6939 * hurd/Makefile (routines): Add hurdlock.
6940 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
6941 interface.
6942 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
6943 * hurd/hurdpid.c: Include <lowlevellock.h>
6944 (_S_msg_proc_newids): Use lll_wait to synchronize.
6945 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
6946 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
6947 * mach/Makefile (lock-headers): Remove machine-lock.h.
6948 * mach/lock-intern.h: Include <lowlevellock.h> instead of
6949 <machine-lock.h>.
6950 (__spin_lock_t): New type.
6951 (__SPIN_LOCK_INITIALIZER): New macro.
6952 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
6953 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
6954 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
6955 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
6956 (__mutex_init): Initialize with lll.
6957 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
6958 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
6959 needing lll.
6960 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6961 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
6962 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
6963 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
6964 (__setpgid): Use lll for synchronization.
6965 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
6966 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
6967 instead of <cthreads.h>.
6968 (_IO_lock_inexpensive): New macro
6969 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
6970 (__libc_lock_self0): New declaration.
6971 (__libc_lock_owner_self): New macro.
6972 (__libc_key_t): Remove type.
6973 (_LIBC_LOCK_INITIALIZER): New macro.
6974 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
6975 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
6976 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
6977 __libc_lock_define_initialized_recursive,
6978 __rtld_lock_define_initialized_recursive,
6979 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
6980 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
6981 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
6982 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
6983 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
6984 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
6985 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
6986 New macros.
6987 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
6988 * hurd/hurdlock.c: New file.
6989 * hurd/hurdlock.h: New file.
6990 * mach/lowlevellock.h: New file
6991
6992 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
6993
6994 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
6995 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
6996 when opening a symlink with O_NOFOLLOW.
6997 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
6998 path when flags contains O_NOFOLLOW.
6999 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
7000 if flags contains O_DIRECTORY and the result is a directory.
7001 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
7002 oneself when the pointer given in D is nul (as set by ext2fs).
7003 * sysdeps/mach/hurd/mlockall.c: New file.
7004 * sysdeps/mach/hurd/munlockall.c: New file.
7005
7006 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
7007
7008 * hurd/hurdsig.c: Include <pthread.h>.
7009 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
7010 get the signal thread stack layout.
7011 * hurd/Makefile (headers): Remove threadvar.h.
7012 (inline-headers): Remove threadvar.h.
7013 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
7014 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
7015 __hurd_threadvar_max, __hurd_errno_location.
7016 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
7017 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
7018 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
7019 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
7020 unless TLS is not initialized yet, in which case we do not need a
7021 critical section yet anyway.
7022 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
7023 <machine-sp.h>.
7024 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
7025 declarations.
7026 (__hurd_threadvar_index): Remove enum.
7027 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
7028 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
7029 inlines.
7030 (__hurd_reply_port0): New variable declaration.
7031 (__hurd_local_reply_port): New macro.
7032 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
7033 (interrupted_reply_port_location): Add thread_t parameter. Use it
7034 with THREAD_TCB to access thread-local variables.
7035 (_hurdsig_abort_rpcs): Pass ss->thread to
7036 interrupted_reply_port_location.
7037 (_hurd_internal_post_signal): Likewise.
7038 (_hurdsig_init): Use presence of cthread_fork instead of
7039 __hurd_threadvar_stack_mask to start signal thread by hand.
7040 Remove signal thread threadvar initialization.
7041 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
7042 * hurd/sigunwind.c: Include <hurd/threadvar.h>
7043 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
7044 of threadvar.
7045 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
7046 __libc_lock_self0.
7047 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
7048 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
7049 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
7050 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
7051 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
7052 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
7053 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
7054 define variables.
7055 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
7056 <hurd/threadvar.h>.
7057 [IS_IN(rtld)] (rtld_errno): New variable.
7058 [IS_IN(rtld)] (__errno_location): New weak function.
7059 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
7060 * sysdeps/mach/hurd/errno.c: Remove file.
7061 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
7062 (__fork): Remove THREADVAR_SPACE macro and its use.
7063 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
7064 variable.
7065 (init): Do not initialize threadvar.
7066 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
7067 symbol.
7068 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
7069 __hurd_local_reply_port instead of threadvar.
7070 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
7071 _hurd_sigstate fields.
7072 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
7073 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
7074 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
7075 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
7076 instead of threadvar.
7077 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
7078 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
7079 (use_threadvar, global_reply_port): Remove variables.
7080 (__hurd_reply_port0): New variable.
7081 (__mig_get_reply_port): Use __hurd_local_reply_port and
7082 __hurd_reply_port0 instead of threadvar.
7083 (__mig_dealloc_reply_port): Likewise.
7084 (__mig_init): Do not initialize threadvar.
7085 * sysdeps/mach/hurd/profil.c: Fix comment.
7086 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
7087 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
7088 cthread_keycreate, cthread_getspecific, cthread_setspecific to
7089 __cthread_fork, __cthread_detach, __pthread_getattr_np,
7090 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
7091 __cthread_setspecific.
7092 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
7093 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
7094 __cthread_t instead of cthread_fork, cthread_detach,
7095 pthread_getattr_np, pthread_attr_getstack.
7096 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
7097 __cthread_keycreate.
7098 (cthread_getspecific): Rename to __cthread_getspecific.
7099 (cthread_setspecific): Rename to __cthread_setspecific.
7100 (__libc_getspecific): Use __cthread_getspecific instead of
7101 cthread_getspecific.
7102 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
7103 __cthread_keycreate instead of cthread_keycreate.
7104 (__libc_setspecific): Use __cthread_setspecific instead of
7105 cthread_setspecific.
7106 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
7107 Likewise.
7108 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
7109 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
7110 testing whether it is defined.
7111
7112 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
7113
7114 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
7115 Define macro.
7116 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
7117 * sysdeps/mach/i386/thread_state.h
7118 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
7119 i386_THREAD_STATE.
7120 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
7121 i386_THREAD_STATE.
7122 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
7123
7124 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
7125 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
7126
7127 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
7128 macros.
7129 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
7130 descriptor instead of creating a new one.
7131 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
7132
7133 * mach/setup-thread.c: Include <ldsodefs.h>.
7134 (__mach_setup_thread): Call _dl_allocate_tls, pass
7135 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
7136 MACHINE_THREAD_STATE_FLAVOR, before getting
7137 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
7138 MACHINE_THREAD_STATE_FLAVOR with the result.
7139 * hurd/hurdfault.c (_hurdsig_fault_init): Call
7140 MACHINE_THREAD_STATE_FIX_NEW.
7141 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
7142 too. Add original thread parameter.
7143
7144 2018-03-16 Joseph Myers <joseph@codesourcery.com>
7145
7146 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
7147 Remove inline function.
7148
7149 * sysdeps/i386/fpu/libm-test-ulps: Update.
7150 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
7151
7152 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
7153
7154 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
7155 commit.
7156
7157 2018-03-15 Joseph Myers <joseph@codesourcery.com>
7158
7159 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
7160 (__sincos_code): Remove define and undefine.
7161 [__FAST_MATH__] (__sincos): Remove inline function.
7162 [__FAST_MATH__] (__sincosf): Remove inline function.
7163 [__FAST_MATH__] (__sincosl): Remove inline function.
7164 (__atan2l): Remove inline functions.
7165 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
7166 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
7167 function.
7168 (floor): Remove inline function.
7169 (ceil): Likewise.
7170 [__FAST_MATH__] (__ldexp_code): Remove macro.
7171 [__FAST_MATH__] (ldexp): Remove inline function.
7172 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
7173 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
7174 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
7175 [__USE_ISOC99] (__lrint_code): Remove macro.
7176 [__USE_ISOC99] (__llrint_code): Likewise.
7177 [__USE_ISOC99] (lrintf): Remove inline function.
7178 [__USE_ISOC99] (lrint): Likewise.
7179 [__USE_ISOC99] (lrintl): Likewise.
7180 [__USE_ISOC99] (llrint): Likewise.
7181 [__USE_ISOC99] (llrintf): Likewise.
7182 [__USE_ISOC99] (llrintl): Likewise.
7183
7184 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7185
7186 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
7187 (__ieee754_sqrtf): Remove.
7188 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
7189 (__ieee754_sqrtf): Remove.
7190 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
7191 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
7192 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
7193 (__ieee754_sqrtf): Remove.
7194 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
7195 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
7196 (sqrtf): Remove.
7197 (sqrtl): Remove.
7198 (__ieee754_sqrt): Remove.
7199 (__ieee754_sqrtf): Remove.
7200 (__ieee754_sqrtl): Remove.
7201 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
7202 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
7203 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
7204 (__ieee754_sqrtf): Remove.
7205 (__ieee754_sqrtl): Remove.
7206
7207 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7208
7209 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
7210 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
7211 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7212 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
7213 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
7214 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7215 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7216 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
7217 Likewise.
7218 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
7219 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
7220 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
7221 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7222 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7223 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
7224 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
7225 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
7226 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7227 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
7228 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
7229 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
7230 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
7231 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
7232 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
7233 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7234 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7235 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7236 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
7237 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
7238 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
7239 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7240 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
7241 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
7242 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
7243 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
7244 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7245 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7246 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
7247 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
7248 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
7249 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
7250 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7251 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
7252 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
7253 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7254 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
7255 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
7256 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
7257 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
7258
7259 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7260
7261 * include/math.h (sqrt): Declare with asm redirect.
7262 (sqrtf): Likewise.
7263 (sqrtl): Likewise.
7264 (sqrtf128): Likewise.
7265 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
7266 nonlib and libnldbl with -fmath-errno.
7267 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
7268 * math/w_sqrt_template.c: Likewise.
7269 * math/w_sqrtf_compat.c: Likewise.
7270 * math/w_sqrtl_compat.c: Likewise.
7271 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
7272 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
7273 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
7274 complex.h.
7275
7276 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
7277
7278 * benchtests/Makefile: Define _ISOMAC.
7279 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
7280 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
7281 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
7282 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
7283 * benchtests/bench-timing.h: Define attribute_hidden.
7284
7285 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7286
7287 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
7288 mov + lsr.
7289
7290 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
7291
7292 [BZ #22963]
7293 * localedata/locales/cs_CZ (mon): Rename to...
7294 (alt_mon): This.
7295 (mon): Import from CLDR (genitive case).
7296
7297 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
7298
7299 [BZ #22937]
7300 * localedata/locales/el_CY (abmon): Rename to...
7301 (ab_alt_mon): This.
7302 (abmon): Import from CLDR (abbreviated genitive case).
7303 * localedata/locales/el_GR (abmon): Rename to...
7304 (ab_alt_mon): This.
7305 (abmon): Import from CLDR (abbreviated genitive case).
7306
7307 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
7308
7309 [BZ #22932]
7310 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
7311
7312 2018-03-15 Robert Buj <robert.buj@gmail.com>
7313
7314 [BZ #22848]
7315 * localedata/locales/ca_ES (abmon): Rename to...
7316 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
7317 (mon): Rename to...
7318 (alt_mon): This.
7319 (abmon): Import from CLDR (genitive case, month names preceded by
7320 "de" or "d’").
7321 (mon): Likewise.
7322 (abday): Synchronize with CLDR.
7323 (d_t_fmt): Likewise.
7324 (d_fmt): Likewise.
7325 (am_pm): Likewise.
7326
7327 (LC_TIME): Improve indentation.
7328 (LC_TELEPHONE): Likewise.
7329 (LC_NAME): Likewise.
7330 (LC_ADDRESS): Likewise.
7331
7332 2018-03-14 Joseph Myers <joseph@codesourcery.com>
7333
7334 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
7335 (lrintf): Remove definitions used only with old GCC.
7336 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
7337 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
7338 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
7339 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
7340 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
7341 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
7342 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
7343 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
7344 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
7345 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
7346 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
7347 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
7348 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
7349 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
7350 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
7351 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
7352 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
7353 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
7354 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
7355 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
7356 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
7357 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
7358 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
7359 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
7360 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
7361 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
7362 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
7363 [__FAST_MATH__] (__M_SQRT2): Remove macro.
7364
7365 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
7366
7367 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
7368 instruction to unbreak builds with binutils 2.26 and older.
7369
7370 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
7371
7372 * sysdeps/aarch64/strncmp.S (count): New macro.
7373 (strncmp): Store misaligned length in SRC1 in COUNT.
7374 (mutual_align): Adjust.
7375 (misaligned8): Load dword at a time when it is safe.
7376
7377 2018-03-12 Zack Weinberg <zackw@panix.com>
7378
7379 [BZ #1190]
7380 [BZ #19476]
7381 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
7382 if the _IO_EOF_SEEN bit is already set; update commentary.
7383 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
7384 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
7385
7386 * support/support_openpty.c, support/tty.h: New files.
7387 * support/Makefile (libsupport-routines): Add support_openpty.
7388
7389 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
7390 New test cases.
7391 * libio/Makefile (tests): Add tst-fgetc-after-eof.
7392 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
7393
7394 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
7395
7396 * po/pt_BR.po: Update translations.
7397
7398 2018-03-12 David Michael <fedora.dm0@gmail.com>
7399
7400 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
7401 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
7402 get a port to the startup server.
7403
7404 2018-03-11 Zack Weinberg <zackw@panix.com>
7405
7406 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
7407 before nldbl-compat.h.
7408
7409 2018-03-10 Zack Weinberg <zackw@panix.com>
7410
7411 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
7412 math.h or math_private.h.
7413
7414 * sysdeps/alpha/fpu/s_isnan.c
7415 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
7416 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
7417 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
7418 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
7419 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
7420 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
7421 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
7422 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
7423 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
7424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
7425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
7426 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
7427 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
7428 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
7429 Include math_private.h.
7430
7431 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
7432 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
7433 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
7434 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
7435 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
7436 * sysdeps/powerpc/power7/fpu/s_logb.c:
7437 Include math.h and math_private.h.
7438
7439 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
7440 uses of $at in .set noat / .set at.
7441
7442 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
7443
7444 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
7445 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
7446 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
7447 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
7448 Likewise.
7449
7450 2018-03-09 Florian Weimer <fweimer@redhat.com>
7451
7452 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
7453 in comment.
7454
7455 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
7456
7457 [BZ #22919]
7458 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
7459 Add nop before __startcontext, add explaining comments.
7460
7461 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7462
7463 [BZ #22926]
7464 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
7465 empty for __SPE__.
7466 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7467 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
7468 Do not build hardware transactional code for __SPE__.
7469 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7470 (__lll_trylock_elision): Likewise.
7471 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
7472 (__lll_unlock_elision): Likewise.
7473
7474 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
7475 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
7476 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
7477 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
7478 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
7479 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
7480 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
7481 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
7482 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
7483 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
7484 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
7485 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
7486 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
7487 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
7488 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
7489 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
7490 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
7491 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
7492 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
7493 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
7494 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
7495 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7496 (__ASSUME_CLONE_BACKWARDS): Define.
7497 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
7498 __clone2 if __NR_clone2 is defined.
7499 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
7500 (__ASSUME_CLONE_BACKWARDS): Likewise.
7501 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7502 (__ASSUME_CLONE_BACKWARDS): Likewise.
7503 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7504 (__ASSUME_CLONE2): Likewise.
7505 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7506 (__ASSUME_CLONE_BACKWARDS3): Likewise.
7507 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
7508 variants and the define architecture can use.
7509 (__ASSUME_CLONE_DEFAULT): Define as default.
7510 * sysdeps/unix/sysv/linux/mips/kernel-features.h
7511 (__ASSUME_CLONE_BACKWARDS): Likewise.
7512 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7513 (__ASSUME_CLONE_BACKWARDS): Likewise.
7514 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7515 (__ASSUME_CLONE_BACKWARDS2): Likewise.
7516
7517 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
7518
7519 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
7520
7521 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
7522 time.
7523
7524 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
7525 (do_test_limit): Likewise.
7526
7527 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
7528 for every implementation.
7529 (do_test): Likewise.
7530
7531 * benchtests/bench-strncmp.c: Convert output to json.
7532
7533 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
7534
7535 * io/futimens.c: Add missing start-of-file descriptive comment.
7536 * io/utime.c: Likewise.
7537 * misc/futimesat.c: Likewise.
7538 * misc/utimes.c: Likewise.
7539 * sysdeps/mach/hurd/futimesat.c: Likewise.
7540 * sysdeps/mach/hurd/utimes.c: Likewise.
7541 * sysdeps/posix/utime.c: Likewise.
7542 * sysdeps/posix/utimes.c: Likewise.
7543 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
7544 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
7545 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
7546 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
7547
7548 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
7549
7550 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
7551 hurd_futimes.
7552 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
7553 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
7554 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
7555 (__futimens): Move implementation to...
7556 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
7557 utime_tvalue_from_tspec): ... new helper functions.
7558 (hurd_futimens): New function.
7559 * sysdeps/mach/hurd/futimesat.c: New file.
7560 * sysdeps/mach/hurd/utimensat.c: New file.
7561
7562 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
7563
7564 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
7565 UTIME_OMIT): New macros.
7566 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
7567 before reverting to converting time spec to time value and calling
7568 __file_utimes.
7569 * sysdeps/mach/hurd/utime-helper.c: New file.
7570 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
7571 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
7572 reverting to utime_tvalue_from_tval and __file_utimes.
7573 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
7574 (__lutimes): Just call hurd_futimens after lookup.
7575 * sysdeps/mach/hurd/utimes.c: Likewise.
7576
7577 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
7578
7579 * bits/sigaction.h: Add include guard.
7580 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
7581 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
7582 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
7583 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
7584 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
7585 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
7586 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7587 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
7588 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
7589
7590 2018-03-05 Joseph Myers <joseph@codesourcery.com>
7591
7592 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
7593 -Wmaybe-uninitialized for -Os.
7594 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
7595 this disabling.
7596
7597 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7598
7599 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
7600 __INO_T_MATCHES_INO64_T is defined.
7601 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
7602 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
7603 of definition.
7604 * dirent/alphasort64.c: Likewise.
7605 * dirent/scandir.c: Likewise.
7606 * dirent/scandir64-tail.c: Likewise.
7607 * dirent/scandir64.c: Likewise.
7608 * dirent/scandirat.c: Likewise.
7609 * dirent/scandirat64.c: Likewise.
7610 * dirent/versionsort.c: Likewise.
7611 * dirent/versionsort64.c: Likewise.
7612 * include/dirent.h: Likewise.
7613
7614 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
7615 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
7616 for socketpair endpoint.
7617 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
7618 WRITE_BUFFER_SIZE as buffer size for sending socket.
7619 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
7620 issue on system where send is implemented with sendto syscall.
7621 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
7622 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
7623 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
7624 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
7625
7626 [BZ #21269]
7627 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
7628 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
7629 sa_restorer for vDSO case.
7630 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
7631
7632 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7633
7634 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
7635 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
7636 * hurd/hurd/ioctl.h: Include <mach/port.h>
7637 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
7638 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
7639 <mach/mach_types.h> and <mach/message.h>.
7640 (headers): Move mach/param.h to bits/mach/param.h.
7641 * sysdeps/mach/i386/mach/param.h: Move file to ...
7642 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
7643 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
7644 of <mach/param.h>.
7645 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
7646 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
7647 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
7648 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
7649 trivial, for C++ conformity.
7650 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
7651 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
7652 Process mig output through $(migheadersed).
7653 * hurd/Makefile (migheadersed): Define variable.
7654 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
7655 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
7656 headers.
7657 * hurd/hurd.h: Include <bits/types/sigset_t.h>
7658 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
7659 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
7660 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
7661 <bits/types/sigset_t.h>.
7662 [!defined __USE_GNU]: Do not #error out.
7663 (struct hurd_sigstate): Use _NSIG instead of NSIG.
7664 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
7665 Include <stddef.h> and <bits/types/sigset_t.h>
7666 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
7667 instead of sighandler_t.
7668 * stdlib/errno.h (error_t): Move definition to...
7669 * bits/types/error_t.h: ... new header.
7670 * stdlib/Makefile (headers): Add bits/types/error_t.h.
7671 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
7672 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
7673 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
7674 * hurd/hurd.h: Include <bits/types/error_t.h>
7675 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
7676 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
7677 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
7678 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
7679 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
7680 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
7681 * sysdeps/mach/hurd/futimens.c: New file.
7682
7683 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
7684
7685 [BZ #22918]
7686 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
7687 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
7688 * nscd/gai.c (__nss_hosts_database): Readd definition.
7689 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7690 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7691 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7692
7693 2018-03-02 Joseph Myers <joseph@codesourcery.com>
7694
7695 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
7696 (ifunc_one): Likewise.
7697
7698 2018-03-01 DJ Delorie <dj@delorie.com>
7699
7700 [BZ #22342]
7701 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
7702 key value.
7703
7704 2018-03-01 Maciej W. Rozycki <macro@mips.com>
7705
7706 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
7707 `match_pid' parameter.
7708 (td_ta_thr_iter): Update accordingly.
7709
7710 2018-03-01 Florian Weimer <fweimer@redhat.com>
7711
7712 * nptl/Makefile (install-lib-ldscripts): Remove.
7713 (install): Remove rule.
7714 ($(inst_libdir)/libpthread.so): Likewise.
7715
7716 2018-03-01 Mike FABIAN <mfabian@redhat.com>
7717
7718 [BZ #22896]
7719 * localedata/locales/an_ES: update month and day names,
7720 improve d_fmt, improve postal_fmt, add country_post,
7721 add country_isbn
7722
7723 2018-03-01 Mike FABIAN <mfabian@redhat.com>
7724
7725 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
7726 Ukrainian instead of Bulgarian.
7727
7728 2018-03-01 Florian Weimer <fweimer@redhat.com>
7729
7730 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
7731 reference.
7732
7733 2018-03-01 Florian Weimer <fweimer@redhat.com>
7734
7735 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
7736 * nptl/Makefile (routines): Add pthread_atfork.
7737 (static-only-routines): Set to pthread_atfork.
7738 (libpthread-routines): Remove pthread_atfork.
7739 (libpthread-static-only-routines): Remove.
7740 (install): Update comment.
7741 (libpthread.so): Do not install libpthread_nonshared.a.
7742 (tests): Do not link with libpthread_nonshared.a.
7743 (generated): Remove libpthread_nonshared.a.
7744 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
7745 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
7746 with libpthread_nonshared.a.
7747
7748 2018-02-28 Joseph Myers <joseph@codesourcery.com>
7749
7750 [BZ #22902]
7751 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
7752 (libc_feholdexcept_setroundf128): New macro.
7753 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
7754
7755 [BZ #15105]
7756 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
7757 libc_hidden_def.
7758 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
7759 * include/inttypes.h: New file.
7760
7761 2018-02-27 Joseph Myers <joseph@codesourcery.com>
7762
7763 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
7764 -Os in two more places.
7765
7766 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7767
7768 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
7769 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
7770 be sorted correctly at the moment because of a bug.
7771
7772 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7773
7774 [BZ #22550] - es_ES locale (and other es_* locales): collation should
7775 treat ñ as a primary different character, sync the collation
7776 for Spanish with CLDR.
7777 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
7778 * localedata/Makefile: Add new test files.
7779 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
7780 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
7781 collation order.
7782 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
7783 * localedata/am_ET.UTF-8.in: New test file.
7784 * localedata/az_AZ.UTF-8.in: Likewise.
7785 * localedata/be_BY.UTF-8.in: Likewise.
7786 * localedata/ber_DZ.UTF-8.in: Likewise.
7787 * localedata/ber_MA.UTF-8.in: Likewise.
7788 * localedata/bg_BG.UTF-8.in: Likewise.
7789 * localedata/br_FR.UTF-8.in: Likewise.
7790 * localedata/cmn_TW.UTF-8.in: Likewise.
7791 * localedata/crh_UA.UTF-8.in: Likewise.
7792 * localedata/csb_PL.UTF-8.in: Likewise.
7793 * localedata/cv_RU.UTF-8.in: Likewise.
7794 * localedata/cy_GB.UTF-8.in: Likewise.
7795 * localedata/dz_BT.UTF-8.in: Likewise.
7796 * localedata/eo.UTF-8.in: Likewise.
7797 * localedata/es_ES.UTF-8.in: Likewise.
7798 * localedata/fa_IR.UTF-8.in: Likewise.
7799 * localedata/fi_FI.UTF-8.in: Likewise.
7800 * localedata/fil_PH.UTF-8.in: Likewise.
7801 * localedata/fur_IT.UTF-8.in: Likewise.
7802 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
7803 * localedata/ha_NG.UTF-8.in: Likewise.
7804 * localedata/ig_NG.UTF-8.in: Likewise.
7805 * localedata/ik_CA.UTF-8.in: Likewise.
7806 * localedata/kk_KZ.UTF-8.in: Likewise.
7807 * localedata/ku_TR.UTF-8.in: Likewise.
7808 * localedata/ky_KG.UTF-8.in: Likewise.
7809 * localedata/ln_CD.UTF-8.in: Likewise.
7810 * localedata/mi_NZ.UTF-8.in: Likewise.
7811 * localedata/ml_IN.UTF-8.in: Likewise.
7812 * localedata/mn_MN.UTF-8.in: Likewise.
7813 * localedata/mr_IN.UTF-8.in: Likewise.
7814 * localedata/mt_MT.UTF-8.in: Likewise.
7815 * localedata/nb_NO.UTF-8.in: Likewise.
7816 * localedata/om_KE.UTF-8.in: Likewise.
7817 * localedata/os_RU.UTF-8.in: Likewise.
7818 * localedata/ps_AF.UTF-8.in: Likewise.
7819 * localedata/ro_RO.UTF-8.in: Likewise.
7820 * localedata/ru_RU.UTF-8.in: Likewise.
7821 * localedata/sc_IT.UTF-8.in: Likewise.
7822 * localedata/se_NO.UTF-8.in: Likewise.
7823 * localedata/sq_AL.UTF-8.in: Likewise.
7824 * localedata/sv_SE.UTF-8.in: Likewise.
7825 * localedata/szl_PL.UTF-8.in: Likewise.
7826 * localedata/tg_TJ.UTF-8.in: Likewise.
7827 * localedata/tk_TM.UTF-8.in: Likewise.
7828 * localedata/tt_RU.UTF-8.in: Likewise.
7829 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
7830 * localedata/ug_CN.UTF-8.in: Likewise.
7831 * localedata/uz_UZ.UTF-8.in: Likewise.
7832 * localedata/vi_VN.UTF-8.in: Likewise.
7833 * localedata/yi_US.UTF-8.in: Likewise.
7834 * localedata/yo_NG.UTF-8.in: Likewise.
7835 * localedata/zh_CN.UTF-8.in: Likewise.
7836 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
7837 file and fix bugs in the collation.
7838 * localedata/locales/az_AZ: Likewise.
7839 * localedata/locales/be_BY: Likewise.
7840 * localedata/locales/ber_DZ: Likewise.
7841 * localedata/locales/ber_MA: Likewise.
7842 * localedata/locales/bg_BG: Likewise.
7843 * localedata/locales/br_FR: Likewise.
7844 * localedata/locales/br_FR@euro: Likewise.
7845 * localedata/locales/ca_ES: Likewise.
7846 * localedata/locales/cns11643_stroke: Likewise.
7847 * localedata/locales/crh_UA: Likewise.
7848 * localedata/locales/cs_CZ: Likewise.
7849 * localedata/locales/csb_PL: Likewise.
7850 * localedata/locales/cv_RU: Likewise.
7851 * localedata/locales/cy_GB: Likewise.
7852 * localedata/locales/da_DK: Likewise.
7853 * localedata/locales/dz_BT: Likewise.
7854 * localedata/locales/en_CA: Likewise.
7855 * localedata/locales/eo: Likewise.
7856 * localedata/locales/es_CU: Likewise.
7857 * localedata/locales/es_EC: Likewise.
7858 * localedata/locales/es_ES: Likewise.
7859 * localedata/locales/es_US: Likewise.
7860 * localedata/locales/et_EE: Likewise.
7861 * localedata/locales/fa_IR: Likewise.
7862 * localedata/locales/fi_FI: Likewise.
7863 * localedata/locales/fil_PH: Likewise.
7864 * localedata/locales/fur_IT: Likewise.
7865 * localedata/locales/gez_ER@abegede: Likewise.
7866 * localedata/locales/ha_NG: Likewise.
7867 * localedata/locales/hr_HR: Likewise.
7868 * localedata/locales/hsb_DE: Likewise.
7869 * localedata/locales/hu_HU: Likewise.
7870 * localedata/locales/ig_NG: Likewise.
7871 * localedata/locales/ik_CA: Likewise.
7872 * localedata/locales/is_IS: Likewise.
7873 * localedata/locales/iso14651_t1_pinyin: Likewise.
7874 * localedata/locales/kk_KZ: Likewise.
7875 * localedata/locales/ku_TR: Likewise.
7876 * localedata/locales/ky_KG: Likewise.
7877 * localedata/locales/ln_CD: Likewise.
7878 * localedata/locales/lt_LT: Likewise.
7879 * localedata/locales/lv_LV: Likewise.
7880 * localedata/locales/mi_NZ: Likewise.
7881 * localedata/locales/ml_IN: Likewise.
7882 * localedata/locales/mn_MN: Likewise.
7883 * localedata/locales/mr_IN: Likewise.
7884 * localedata/locales/mt_MT: Likewise.
7885 * localedata/locales/nb_NO: Likewise.
7886 * localedata/locales/om_KE: Likewise.
7887 * localedata/locales/os_RU: Likewise.
7888 * localedata/locales/pl_PL: Likewise.
7889 * localedata/locales/ps_AF: Likewise.
7890 * localedata/locales/ro_RO: Likewise.
7891 * localedata/locales/ru_RU: Likewise.
7892 * localedata/locales/ru_UA: Likewise.
7893 * localedata/locales/sc_IT: Likewise.
7894 * localedata/locales/se_NO: Likewise.
7895 * localedata/locales/si_LK: Likewise.
7896 * localedata/locales/sq_AL: Likewise.
7897 * localedata/locales/sv_FI: Likewise.
7898 * localedata/locales/sv_FI@euro: Likewise.
7899 * localedata/locales/sv_SE: Likewise.
7900 * localedata/locales/szl_PL: Likewise.
7901 * localedata/locales/tg_TJ: Likewise.
7902 * localedata/locales/ti_ER: Likewise.
7903 * localedata/locales/tk_TM: Likewise.
7904 * localedata/locales/tl_PH: Likewise.
7905 * localedata/locales/tr_TR: Likewise.
7906 * localedata/locales/tt_RU: Likewise.
7907 * localedata/locales/tt_RU@iqtelif: Likewise.
7908 * localedata/locales/ug_CN: Likewise.
7909 * localedata/locales/uk_UA: Likewise.
7910 * localedata/locales/uz_UZ: Likewise.
7911 * localedata/locales/uz_UZ@cyrillic: Likewise.
7912 * localedata/locales/vi_VN: Likewise.
7913 * localedata/locales/yi_US: Likewise.
7914 * localedata/locales/yo_NG: Likewise.
7915
7916 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7917
7918 * gen-locales.mk: Make test files which contain @ modifiers in their
7919 name work.
7920 * localedata/gen-locale.sh: Likewise.
7921
7922 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7923
7924 * posix/tst-fnmatch.input: Fix results for range expressions
7925 for non C locales.
7926 * posix/tst-regexloc.c: Do not use a range expression for
7927 de_DE.ISO-8859-1 locale.
7928
7929 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7930
7931 * posix/bug-regex5.c: Fix test case because with the new
7932 iso14651_t1_common file, the da_DK locale now has 6 collating elements
7933 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
7934 file.
7935
7936 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7937
7938 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
7939 downloaded from ISO, the collation order of @-. and space has changed.
7940 Therefore, this test file needed to be adapted.
7941 * localedata/fr_CA.UTF-8.in: Likewise.
7942 * localedata/fr_FR.UTF-8.in: Likewise.
7943 * localedata/uk_UA.UTF-8.in: Likewise.
7944
7945 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7946
7947 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
7948 order of ȥ in the new iso14651_t1_common file.
7949 * localedata/pl_PL.UTF-8.in: Likewise.
7950
7951 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7952
7953 * localedata/locales/iso14651_t1_common: Add sections for various
7954 scripts to the iso14651_t1_common file.
7955
7956 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7957
7958 * localedata/locales/iso14651_t1_common: Use the code point of a
7959 character in the fourth collation level instead of IGNORE for all
7960 entries which have IGNORE on all 4 levels.
7961
7962 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7963
7964 * localedata/locales/iso14651_t1_common: Add some convenient collation
7965 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
7966 rules similar to those in CLDR.
7967
7968 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7969
7970 * localedata/locales/iso14651_t1_common: The new version of this
7971 file downloaded from ISO contained several syntax errors which
7972 are fixed by this patch.
7973
7974 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7975
7976 * localedata/locales/iso14651_t1_common: replace all <U.....>
7977 with <U000.....> because glibc understands only 4 digit or 8 digit
7978
7979 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7980
7981 * localedata/locales/iso14651_t1_common: Necessary changes
7982 to make the file downloaded from ISO usable by glibc.
7983
7984 2018-02-27 Mike FABIAN <mfabian@redhat.com>
7985
7986 [BZ #14095]
7987 * localedata/locales/iso14651_t1_common: Update file to
7988 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
7989
7990 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7991
7992 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
7993 of <nptl/pthreadP.h>
7994 (thread_attr_compare): Move function to...
7995 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
7996 * sysdeps/nptl/timer_routines.h: ... new header.
7997 * sysdeps/mach/hurd/gai_misc.h: New file.
7998
7999 2018-02-26 Joseph Myers <joseph@codesourcery.com>
8000
8001 * string/strcoll_l.c: Include <libc-diag.h>.
8002 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
8003 declarations of seq1 and seq2.
8004
8005 [BZ #15105]
8006 * stdlib/atoi.c (atoi): Use libc_hidden_def.
8007 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
8008
8009 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
8010
8011 [BZ #22433]
8012 [BZ #22807]
8013 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
8014 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
8015 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
8016 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
8017 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
8018 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
8019
8020 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8021
8022 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
8023 macros used in __ptrace_request.
8024
8025 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
8026
8027 [BZ #22792]
8028 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
8029 to $(CC).
8030 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
8031 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
8032 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
8033 <tcb-offsets.h>.
8034
8035 2018-02-23 Joseph Myers <joseph@codesourcery.com>
8036
8037 [BZ #15105]
8038 * ctype/ctype.c (tolower): Use libc_hidden_def.
8039 (toupper): Likewise.
8040 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
8041 [!_ISOMAC] (toupper): Likewise.
8042
8043 2018-02-23 Mike FABIAN <mfabian@redhat.com>
8044
8045 * localedata/Makefile: Remove --quiet argument when
8046 installing locales
8047
8048 2018-02-23 Mike FABIAN <mfabian@redhat.com>
8049
8050 [BZ #17438]
8051 * localedata/locales/pt_BR (LC_TIME): use / instead of -
8052 in d_fmt.
8053 * localedata/locales/pt_PT (LC_TIME): likewise
8054
8055 2018-02-23 Mike FABIAN <mfabian@redhat.com>
8056
8057 [BZ #22646]
8058 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
8059 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
8060 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
8061
8062 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8063
8064 * sysdeps/sparc/fpu/libm-test-ulps: Update.
8065
8066 * nptl/Makefile (routines): Remove unregister-atfork.
8067 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
8068 (fork_handler_alloc): Remove function.
8069 (fork_handlers, fork_handler_init): New variables.
8070 (__fork_lock): Rename to atfork_lock.
8071 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
8072 to use a dynamic array to add/remove atfork handlers.
8073 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
8074 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
8075 Remove declaration.
8076 (fork_handler): Remove next, refcntr, and need_signal member.
8077 (__run_fork_handler_type): New enum.
8078 (__run_fork_handlers): New prototype.
8079 * nptl/register-atfork.c: Remove file.
8080 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
8081
8082 * sysdeps/nptl/nptl-signals.h: Move to ...
8083 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
8084 comments.
8085 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
8086 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
8087 unnecessary check for SIGTIMER.
8088 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
8089 remove unnecessary removal of SIGTIMER.
8090 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
8091 include-signals.h rename.
8092 * nptl/pthreadP.h: Likewise.
8093 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
8094 __is_internal_signal instead of __nptl_is_internal_signal.
8095
8096 2018-02-22 Andrew Waterman <andrew@sifive.com>
8097
8098 [BZ # 22884]
8099 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
8100 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
8101 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
8102 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
8103
8104 2018-02-22 DJ Delorie <dj@delorie.com>
8105
8106 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
8107
8108 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
8109
8110 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
8111 do_misaligned, not misaligned8.
8112
8113 2018-02-22 Steve Ellcey <sellcey@cavium.com>
8114
8115 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
8116 Add memcpy_thunderx2.
8117 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8118 Increment to 4.
8119 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
8120 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
8121 and IS_THUNDERX2PA checks.
8122 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
8123 Use macro to set name appropriately.
8124 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
8125 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
8126 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
8127 New macro.
8128 (IS_THUNDERX2): New macro.
8129
8130 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
8131
8132 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8133
8134 2018-02-21 Zack Weinberg <zackw@panix.com>
8135
8136 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
8137 Define here, unconditionally.
8138 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
8139 * libio/libioP.h: Remove #if 0 blocks.
8140 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
8141 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
8142 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
8143
8144 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
8145 Assume weak_alias is always defined.
8146
8147 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
8148 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
8149 Remove #if 0 and #ifdef TODO blocks.
8150 Assume text_set_element is always defined.
8151
8152 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
8153 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
8154 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
8155
8156 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
8157 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
8158 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
8159 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
8160 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
8161 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
8162 Reformat bit flags for _flags field to make occupancy clearer.
8163 Update commentary.
8164 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
8165 Keep definitions consistent with those in libio/libio.h.
8166
8167 * libio/libio.h (_IO_file_flags): Remove macro.
8168 All uses changed to _flags.
8169
8170 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
8171 (__HAVE_COLUMN, _IO_BE): Don't define.
8172 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
8173 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
8174 * libio/libioP.h (EOF): Don't define.
8175 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
8176 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
8177 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
8178 testing _IO_UNIFIED_JUMPTABLES.
8179
8180 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
8181 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
8182 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
8183 (_IO_size_t): Delete; all uses changed to size_t.
8184 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
8185 (_IO_off_t): Delete; all uses changed to off_t.
8186 (_IO_off64_t): Delete; all uses changed to off64_t.
8187 (_IO_pid_t): Delete; all uses changed to pid_t.
8188 (_IO_uid_t): Delete; all uses changed to uid_t.
8189 (_IO_wint_t): Delete; all uses changed to wint_t.
8190 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
8191 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
8192 (_IO_cookie_io_functions_t): Delete; all uses changed to
8193 cookie_io_functions_t.
8194 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
8195 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
8196 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
8197 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
8198
8199 * libio/iofopncook.c: Remove unnecessary forward declarations.
8200 * libio/iolibio.h: Correct outdated commentary.
8201 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
8202 * stdio-common/fxprintf.c (__fxprintf_nocancel):
8203 Remove unnecessary casts.
8204 * stdio-common/getline.c: Use _IO_getdelim directly.
8205 Don't redefine ssize_t.
8206 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
8207 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
8208 Remove outdated comments.
8209 * stdio-common/vfscanf.c: Don't redefine va_list.
8210
8211 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
8212 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
8213 Remove preprocessor conditionals on _LIBC and __USE_GNU,
8214 which are always true, and __cplusplus, which is always false.
8215
8216 2018-02-21 Joseph Myers <joseph@codesourcery.com>
8217
8218 [BZ #15105]
8219 [BZ #19463]
8220 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
8221 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
8222 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
8223 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
8224 libc_hidden_proto.
8225 [!_ISOMAC] (putc_unlocked): Likewise.
8226 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
8227 define inline if [__USE_EXTERN_INLINES].
8228 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
8229 putc_unlocked.
8230
8231 [BZ #15105]
8232 [BZ #19463]
8233 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
8234 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
8235 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
8236 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
8237 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
8238 getc_unlocked.
8239 * time/tzfile.c (__tzfile_read): Likewise.
8240
8241 2018-02-21 Mike FABIAN <mfabian@redhat.com>
8242
8243 [BZ #22517]
8244 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
8245
8246 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
8247
8248 * io/fcntl.h: Fix a typo in a comment.
8249
8250 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
8251
8252 [BZ #22862]
8253 * include/features.h: Add _ISOC11_SOURCE to test for whether to
8254 define _DEFAULT_SOURCE.
8255 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
8256
8257 2018-02-21 Florian Weimer <fweimer@redhat.com>
8258
8259 [BZ #20890]
8260 * elf/cache.c (save_cache): Call fsync on temporary file before
8261 renaming it.
8262 (save_aux_cache): Call fdatasync on temporary file before renaming
8263 it.
8264
8265 2018-02-21 Florian Weimer <fweimer@redhat.com>
8266
8267 [BZ #22787]
8268 * include/caller.h: Remove file.
8269 * elf/dl-caller.c: Likewise.
8270 * elf/Makefile (dl-routines): Remove dl-caller.
8271 (shared-only-routines): Do not add dl-caller.
8272 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
8273 __check_caller.
8274 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
8275 member.
8276 (dl_open_worker): Do not call __check_caller.
8277 (_dl_open): Do not set caller_dl_open member.
8278 * elf/rtld.c (_rtld_global_ro): Do not initialize
8279 _dl_check_caller member.
8280 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
8281 _dl_check_caller member.
8282 (_dl_check_caller): Remove declaration.
8283 * sysdeps/unix/sysv/linux/dl-execstack.c
8284 (_dl_make_stack_executable): Do not call __check_caller.
8285
8286 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
8287
8288 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
8289 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
8290
8291 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
8292
8293 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
8294 description.
8295
8296 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
8297
8298 [BZ #16335]
8299 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
8300 of 199606L, 200112L, and 200809L.
8301 (_XOPEN_SOURCE): Document special values of 600 and 700.
8302 (_ISOC11_SOURCE): Document macro.
8303 (_ATFILE_SOURCE): Likewise.
8304 (_FORTIFY_SOURCE): Likewise.
8305
8306 2018-02-19 Joseph Myers <joseph@codesourcery.com>
8307
8308 [BZ #15105]
8309 [BZ #19463]
8310 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
8311 and define as weak alias of __ferror_unlocked. Use
8312 libc_hidden_weak.
8313 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
8314 libc_hidden_proto.
8315 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
8316 function if [__USE_EXTERN_INLINES].
8317 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
8318 ferror_unlocked.
8319
8320 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
8321
8322 [BZ #6889]
8323 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
8324
8325 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
8326
8327 [BZ #22818]
8328 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
8329 the GLIBC_2.1 version.
8330
8331 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
8332
8333 [BZ #21508]
8334 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
8335 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
8336 intl/tst-gettext-de.po from po/de.po by removing the
8337 POT-Creation-Date line.
8338 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
8339 ../po/de.po.
8340 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
8341 ../po/de.po.
8342
8343 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
8344
8345 * mach/Makefile (headers): Add mach/param.h.
8346 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
8347 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
8348 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
8349 (__ptsname_r): Move implementation to...
8350 (__ptsname_internal): ... new function. Add filling the STP
8351 structure.
8352
8353 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
8354
8355 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
8356 idouble to 1 ULP.
8357
8358 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
8359
8360 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
8361 syntax.
8362
8363 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
8364
8365 * nptl/Makefile (tst-mutex8-ENV): Delete.
8366 * nptl/tst-mutex8.c (check_type):
8367 Add runtime check if mutex will be elided.
8368
8369 2018-02-15 Joseph Myers <joseph@codesourcery.com>
8370
8371 [BZ #20980]
8372 [BZ #21234]
8373 * manual/install.texi (Configuring and compiling): Describe
8374 passing CC and CFLAGS on configure command line, not as
8375 environment variables. Use @code markup on those variables.
8376 Specify what options go in CC and what go in CFLAGS. Note the
8377 requirement to compile with optimization.
8378 * INSTALL: Regenerated.
8379
8380 [BZ #18124]
8381 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
8382 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
8383 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
8384 __sigprocmask instead of sigprocmask.
8385 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
8386 Likewise.
8387 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
8388 __sigsetjmp and sigprocmask.
8389
8390 [BZ #15105]
8391 * include/argz.h (argz_next): Use libc_hidden_proto.
8392 (__argz_next): Likewise.
8393 * string-argz-next.c (__argz_next): Use libc_hidden_def.
8394 (argz_next): Use libc_hidden_weak.
8395
8396 [BZ #15105]
8397 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
8398 libc_hidden_proto.
8399 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
8400 libc_hidden_def.
8401
8402 [BZ #15105]
8403 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
8404 libc_hidden_proto.
8405 * libio/iofputs.c (fputs): Use libc_hidden_weak.
8406
8407 [BZ #15105]
8408 [BZ #19463]
8409 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
8410 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
8411 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
8412 (__feof_unlocked): New declaration, and inline function if
8413 [__USE_EXTERN_INLINES].
8414 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
8415 instead of feof_unlocked.
8416 * intl/localealias.c [_LIBC] (FEOF): Likewise.
8417 * nss/nsswitch.c (nss_parse_file): Likewise.
8418 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
8419 Likewise.
8420 * time/getdate.c (__getdate_r): Likewise.
8421 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
8422 Define as macro to call __feof_unlocked.
8423
8424 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
8425
8426 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
8427
8428 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
8429
8430 * math/Makefile: Remove mpexp.c and mplog.c
8431 * sysdeps/i386/fpu/mpexp.c: Delete file.
8432 * sysdeps/i386/fpu/mplog.c: Likewise.
8433 * sysdeps/ia64/fpu/mpexp.c: Likewise.
8434 * sysdeps/ia64/fpu/mplog.c: Likewise.
8435 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
8436 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
8437 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
8438 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
8439 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
8440 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
8441 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
8442 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
8443 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8444 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
8445 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
8446 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8447 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
8448 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
8449 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8450 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
8451
8452 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
8453
8454 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8455
8456 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8457
8458 * sysdeps/sh/libm-test-ulps: Update.
8459
8460 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8461
8462 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
8463 idouble to 1 ULP.
8464
8465 2018-02-12 Zack Weinberg <zackw@panix.com>
8466
8467 [BZ #19239]
8468 * posix/sys/types.h: Don't include sys/sysmacros.h.
8469 * misc/sys/sysmacros.h: Remove the conditional deprecation
8470 warnings for the macros defined by this header.
8471
8472 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
8473
8474 * manual/probes.texi: Remove slowexp probes.
8475 * math/Makefile: Remove slowexp.
8476 * sysdeps/generic/math_private.h (__slowexp): Remove.
8477 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
8478 document error bounds.
8479 * sysdeps/i386/fpu/slowexp.c: Remove.
8480 * sysdeps/ia64/fpu/slowexp.c: Remove.
8481 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
8482 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
8483 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
8484 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
8485 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
8486 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
8487 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
8488 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
8489 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
8490 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
8491 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
8492
8493 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
8494
8495 [BZ #13932]
8496 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
8497 * benchtests/pow-inputs: Update comment for slow path cases.
8498 * manual/probes.texi (slowpow_p10): Delete removed probe.
8499 (slowpow_p10): Likewise.
8500 * math/Makefile: Remove halfulp.c and slowpow.c.
8501 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
8502 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
8503 (__halfulp): Remove.
8504 (__slowpow): Remove.
8505 * sysdeps/i386/fpu/halfulp.c: Delete file.
8506 * sysdeps/i386/fpu/slowpow.c: Likewise.
8507 * sysdeps/ia64/fpu/halfulp.c: Likewise.
8508 * sysdeps/ia64/fpu/slowpow.c: Likewise.
8509 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
8510 improve comments and add error analysis.
8511 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
8512 (power1): Remove function:
8513 (log1): Remove error argument, add error analysis.
8514 (my_log2): Remove function.
8515 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
8516 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8517 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
8518 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
8519 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
8520 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
8521 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
8522 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
8523 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
8524 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
8525 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
8526 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
8527 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8528 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
8529
8530 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
8531
8532 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
8533 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
8534
8535 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
8536
8537 [BZ #22433]
8538 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
8539 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
8540 and PTRACE_SETHBPREGS.
8541
8542 2018-02-10 Zack Weinberg <zackw@panix.com>
8543
8544 [BZ #22830]
8545 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
8546 correctly.
8547 * malloc/tst-malloc-stats-cancellation.c: New test case.
8548 * malloc/Makefile: Add new test case.
8549
8550 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
8551
8552 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
8553
8554 2018-02-10 Joseph Myers <joseph@codesourcery.com>
8555
8556 * math/Makefile (libm-narrow-fns): Add add.
8557 (libm-test-funcs-narrow): Likewise.
8558 * math/Versions (GLIBC_2.28): Add narrowing add functions.
8559 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
8560 * math/gen-auto-libm-tests.c (test_functions): Add add.
8561 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
8562 (NARROW_ADD_ROUND_TO_ODD): Likewise.
8563 (NARROW_ADD_TRIVIAL): Likewise.
8564 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
8565 macro.
8566 (__daddl): Likewise.
8567 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
8568 dadd.
8569 (CFLAGS-nldbl-dadd.c): New variable.
8570 (CFLAGS-nldbl-fadd.c): Likewise.
8571 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8572 __nldbl_daddl.
8573 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
8574 prototype.
8575 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
8576 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
8577 * math/auto-libm-test-in: Add tests of add.
8578 * math/auto-libm-test-out-narrow-add: New generated file.
8579 * math/libm-test-narrow-add.inc: New file.
8580 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8581 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
8582 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
8583 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
8584 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
8585 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
8586 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
8587 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
8588 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
8589 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
8590 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
8591 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
8592 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
8593 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
8594 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
8595 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
8596 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
8597 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
8598 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8599 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8600 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8601 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8602 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8603 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8604 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8605 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8606 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8607 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8608 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8609 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8610 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8611 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8616 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8617 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8618 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8619 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8620 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8621 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8622 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
8623 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
8624 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8625 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8626
8627 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
8628 (f128-pairs): New variable.
8629 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
8630 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
8631 to CFLAGS.
8632 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
8633 Also make tests add $(f128-loader-link) to gnulib-tests.
8634
8635 2018-02-09 DJ Delorie <dj@redhat.com>
8636
8637 [BZ #22827]
8638 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
8639 64-bit ELF type for 64-bit ELF objects.
8640
8641 2018-02-09 Joseph Myers <joseph@codesourcery.com>
8642
8643 * math/libm-test-driver.c (snan_tests_arg): New variable.
8644 * math/libm-test-support.h (snan_tests_arg): New declaration.
8645 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
8646
8647 * math/Makefile (test-type-pairs): New variable.
8648 (test-type-pairs-f64xf128-yes): Likewise.
8649 (tests): Add test-narrow-macros.
8650 (libm-test-funcs-narrow): New variable.
8651 (libm-test-c-narrow): Likewise.
8652 (generated): Add $(libm-test-c-narrow).
8653 (libm-tests-base-narrow): New variable.
8654 (libm-tests-narrow): Likewise.
8655 (libm-tests): Add $(libm-tests-narrow).
8656 (libm-tests-for-type): Handle $(libm-tests-narrow).
8657 (libm-test-c-narrow-obj): New variable.
8658 ($(libm-test-c-narrow-obj)): New rule.
8659 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
8660 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
8661 $(o-iterator) to set dependencies and CFLAGS.
8662 * math/gen-auto-libm-tests.c: Document use for narrowing
8663 functions.
8664 (output_for_one_input_case): Take argument NARROW.
8665 (generate_output): Likewise. Update call to
8666 output_for_one_input_case.
8667 (main): Take --narrow option. Update call to generate_output.
8668 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
8669 (apply_lit): Update call to _apply_lit.
8670 (apply_arglit): New function.
8671 (parse_args): Handle "a" arguments.
8672 (parse_auto_input): Handle format names using ":".
8673 * math/README.libm-test: Document "a" parameter type.
8674 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
8675 (ARG_TYPE_TRUE_MIN): Likewise.
8676 (ARG_TYPE_MAX): Likwise.
8677 (ARG_MIN_EXP): Likewise.
8678 (ARG_MAX_EXP): Likewise.
8679 (ARG_MANT_DIG): Likewise.
8680 (TEST_COND_arg_ibm128): Likewise.
8681 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
8682 (TEST_COND_arg_fmt): New macro.
8683 (init_max_error): Update prototype.
8684 * math/libm-test-support.c (test_ibm128): New variable.
8685 (init_max_error): Take argument testing_ibm128 and set test_ibm128
8686 instead of using [TEST_COND_ibm128] conditional.
8687 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
8688 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
8689 [TEST_NARROW] (TEST_MSG): New definition.
8690 (arg_plus_zero): New macro.
8691 (arg_minus_zero): Likewise.
8692 (arg_plus_infty): Likewise.
8693 (arg_minus_infty): Likewise.
8694 (arg_qnan_value_pl): Likewise.
8695 (arg_qnan_value): Likewise.
8696 (arg_snan_value_pl): Likewise.
8697 (arg_snan_value): Likewise.
8698 (arg_max_value): Likewise.
8699 (arg_min_value): Likewise.
8700 (arg_min_subnorm_value): Likewise.
8701 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
8702 (RUN_TEST_LOOP_aa_f): New macro.
8703 (TEST_SUFF): New macro.
8704 (TEST_SUFF_STR): Likewise.
8705 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
8706 (TEST_COND_any_ibm128): New macro.
8707 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
8708 this_func. Update call to init_max_error.
8709 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
8710 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
8711 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
8712 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
8713 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
8714 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
8715 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
8716 * math/test-math-scalar.h (TEST_NARROW): Likewise.
8717 * math/test-math-vector.h (TEST_NARROW): Likewise.
8718 * math/test-arg-double.h: New file.
8719 * math/test-arg-float128.h: Likewise.
8720 * math/test-arg-float32x.h: Likewise.
8721 * math/test-arg-float64.h: Likewise.
8722 * math/test-arg-float64x.h: Likewise.
8723 * math/test-arg-ldouble.h: Likewise.
8724 * math/test-math-narrow.h: Likewise.
8725 * math/test-narrow-macros.c: Likewise.
8726 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
8727 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
8728 test-narrow-macros-ldbl-64.
8729 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
8730
8731 * math/bits/mathcalls-narrow.h: New file.
8732 * include/bits/mathcalls-narrow.h: Likewise.
8733 * math/math-narrow.h: Likewise.
8734 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
8735 (__MATHCALL_NARROW_ARGS_2): Likewise.
8736 (__MATHCALL_NARROW_ARGS_3): Likewise.
8737 (__MATHCALL_NARROW_NORMAL): Likewise.
8738 (__MATHCALL_NARROW_REDIR): Likewise.
8739 (__MATHCALL_NARROW): Likewise.
8740 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
8741 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
8742 defined.
8743 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
8744 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
8745 (libm-narrow-fns): New variable.
8746 (libm-narrow-types-basic): Likewise.
8747 (libm-narrow-types-ldouble-yes): Likewise.
8748 (libm-narrow-types-float128-yes): Likewise.
8749 (libm-narrow-types-float128-alias-yes): Likewise.
8750 (libm-narrow-types): Likewise.
8751 (libm-routines): Add narrowing functions.
8752 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
8753 (libc_feholdexcept_setroundf128): New macro.
8754 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
8755 * sysdeps/ieee754/float128/float128_private.h: Include
8756 <math/math-narrow.h>.
8757 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
8758 Undefine and redefine.
8759 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
8760 (libm_alias_float_ldouble): Undefine and redefine.
8761 (libm_alias_double_ldouble): Likewise.
8762
8763 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
8764
8765 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
8766
8767 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
8768 FPCR/FPSR.
8769
8770 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
8771
8772 * manual/creature.texi: Convert references to gcc.info to gcc.
8773 * manual/stdio.texi: Likewise.
8774 * manual/string.texi: Likewise.
8775
8776 2018-02-07 Joseph Myers <joseph@codesourcery.com>
8777
8778 [BZ #17979]
8779 * posix/bits/types.h (__int_least8_t): New typedef.
8780 (__uint_least8_t): Likewise.
8781 (__int_least16_t): Likewise.
8782 (__uint_least16_t): Likewise.
8783 (__int_least32_t): Likewise.
8784 (__uint_least32_t): Likewise.
8785 (__int_least64_t): Likewise.
8786 (__uint_least64_t): Likewise.
8787 * sysdeps/generic/stdint.h (int_least8_t): Define using
8788 __int_least8_t.
8789 (int_least16_t): Define using __int_least16_t.
8790 (int_least32_t): Define using __int_least32_t.
8791 (int_least64_t): Define using __int_least64_t.
8792 (uint_least8_t): Define using __uint_least8_t.
8793 (uint_least16_t): Define using __uint_least16_t.
8794 (uint_least32_t): Define using __uint_least32_t.
8795 (uint_least64_t): Define using __uint_least64_t.
8796 * wcsmbs/uchar.h: Include <bits/types.h>.
8797 (char16_t): Define using __uint_least16_t conditional only on
8798 [!__USE_ISOCXX11].
8799 (char32_t): Define using __uint_least32_t conditional only on
8800 [!__USE_ISOCXX11].
8801 * wcsmbs/test-char-types.c: New file.
8802 * wcsmbs/Makefile (tests): Add test-char-types.
8803
8804 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
8805 version to 4.0.1.
8806
8807 2018-02-07 Zack Weinberg <zackw@panix.com>
8808
8809 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
8810 Delete all contents except for definitions of _G_HAVE_MMAP and
8811 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
8812 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
8813 sysdeps/unix/sysv/linux/_G_config.h. Make same content
8814 change as above.
8815
8816 * libio/libio.h: Don't include bits/_G_config.h here.
8817 Include stddef.h with __need_wchar_t defined. Include
8818 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
8819 Define _IO_iconv_t here, directly.
8820 Don't define _IO_HAVE_ST_BLKSIZE.
8821 * libio/libioP.h: Include _G_config.h here. Move include of
8822 shlib-compat.h up with rest of includes. Simplify conditionals
8823 controlling definition of _IO_JUMPS_OFFSET.
8824
8825 * csu/init.c: Remove always-true #if around entire file.
8826 Don't include stdio.h. Set _IO_stdin_used to hardwired
8827 constant 0x20001, and update commentary.
8828 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
8829 Replace all uses of _G_va_list with __gnuc_va_list.
8830 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
8831 instead of #if _IO_HAVE_ST_BLKSIZE.
8832 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
8833 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
8834 not #ifdef.
8835
8836 * libio/bits/libio.h: Move back to libio/libio.h and adjust
8837 multiple-include guard to match.
8838 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
8839 into this file.
8840 Remove preprocessor conditionals that are always true and/or
8841 redundant to other preprocessor conditionals in the same nest.
8842 Include shlib-compat.h unconditionally.
8843 Error out if _LIBC is not defined, or if _ISOMAC is defined,
8844 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
8845 defined after including stdio.h.
8846 Use __BEGIN_DECLS/__END_DECLS.
8847
8848 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
8849 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
8850 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
8851
8852 2018-02-07 Zack Weinberg <zackw@panix.com>
8853
8854 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
8855 New single-type headers split from _G_config.h.
8856 * libio/bits/types/cookie_io_functions_t.h
8857 * libio/bits/types/struct_FILE.h
8858 New single-type headers split from libio.h.
8859
8860 * libio/Makefile: Install the above new headers. Don't install
8861 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
8862 bits/libio-ldbl.h.
8863 * libio/_G_config.h, libio/libio.h: Delete file.
8864
8865 * libio/bits/libio.h: Remove improper-inclusion guard.
8866 Include stdio.h and don't repeat anything that it does.
8867 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
8868 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
8869 __io_read_fn as cookie_read_function_t,
8870 __io_write_fn as cookie_write_function_t,
8871 __io_seek_fn as cookie_seek_function_t,
8872 __io_close_fn as cookie_close_function_t,
8873 and _IO_cookie_io_functions_t as cookie_io_functions_t.
8874 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
8875 here, in the "compatibility defines" section. Remove an #if 0
8876 block. Use the "body" macros from bits/types/struct_FILE.h to
8877 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
8878 and _IO_ferror_unlocked.
8879 Move prototypes of __uflow and __overflow...
8880
8881 * libio/stdio.h: ...here. Don't include bits/libio.h.
8882 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
8883 directly from stdarg.h. Include bits/types/__fpos_t.h,
8884 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
8885 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
8886 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
8887 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
8888 cookie_io_functions_t, not _IO_cookie_io_functions_t;
8889 __ssize_t, not _IO_ssize_t. Unconditionally define
8890 BUFSIZ as 8192 and EOF as (-1).
8891
8892 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
8893 macros from bits/types/struct_FILE.h instead of _IO_* macros
8894 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
8895 instead of _IO_ssize_t.
8896 * libio/bits/stdio2.h: Similarly.
8897
8898 * libio/iolibio.h: Add multiple-include guard.
8899 Include bits/libio.h after stdio.h.
8900 * libio/libioP.h: Add multiple-include guard.
8901 Include stdio.h and bits/libio.h before iolibio.h.
8902
8903 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
8904 * include/bits/types/cookie_io_functions_t.h
8905 * include/bits/types/struct_FILE.h: New wrappers.
8906
8907 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
8908 Get definitions of _G_fpos_t and _G_fpos64_t from
8909 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
8910 respectively. Remove improper-inclusion guards.
8911
8912 * conform/data/stdio.h-data: Update expectations of va_list.
8913 * scripts/check-installed-headers.sh: Remove special case for
8914 libio.h and _G_config.h.
8915
8916 2018-02-07 Joseph Myers <joseph@codesourcery.com>
8917
8918 [BZ #15105]
8919 [BZ #19463]
8920 * include/sys/sysmacros.h [!_ISOMAC]
8921 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
8922 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
8923 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
8924 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
8925 libc_hidden_proto.
8926 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
8927 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
8928 Likewise.
8929 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
8930 Undefine and redefine to add use __gnu_dev_ prefix.
8931 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
8932 Likewise.
8933 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
8934 and define as hidden inline function.
8935 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
8936 Likewise.
8937 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
8938 Likewise.
8939 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
8940 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
8941 (gnu_dev_minor): Likewise.
8942 (gnu_dev_makedev): Likewise.
8943 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
8944 makedev.
8945 * posix/wordexp.c (exec_comm_child): Likewise.
8946 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
8947 instead of minor and __gnu_dev_major instead of major.
8948 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
8949 __gnu_dev_major instead of major.
8950 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
8951 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
8952 instead of gnu_dev_minor.
8953 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
8954 (SLAVE_P): Likewise.
8955 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
8956 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
8957 instead of major.
8958
8959 [BZ #21313]
8960 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
8961 in another place.
8962 * locale/weightwc.h (findidx): Likewise.
8963
8964 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
8965
8966 * manual/probes.texi (slowlog): Delete documentation of removed probe.
8967 (slowlog_inexact): Likewise
8968 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
8969 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
8970
8971 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
8972
8973 [BZ #22797]
8974 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
8975 missing second underscore to parameter name.
8976
8977 2018-02-06 Joseph Myers <joseph@codesourcery.com>
8978
8979 [BZ #14508]
8980 [BZ #15512]
8981 [BZ #17082]
8982 [BZ #20530]
8983 * bits/byteswap.h: Update file comment. Do not include
8984 <bits/byteswap-16.h>.
8985 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
8986 constant.
8987 (__bswap_16): Define as inline function.
8988 (__bswap_constant_32): Reformat definition.
8989 (__bswap_32): Always define as inline function, not macro, using
8990 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
8991 otherwise __bswap_constant_32.
8992 (__bswap_constant_64): Reformat definition. Do not use
8993 __extension__ here.
8994 (__bswap_64): Always define as inline function, not macro. Use
8995 __extension__ on function definition. Use __builtin_bswap64 if
8996 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
8997 * string/test-endian-file-scope.c: New file.
8998 * string/test-endian-sign-conversion.c: Likewise.
8999 * string/Makefile (headers): Remove bits/byteswap-16.h.
9000 (tests): Add test-endian-file-scope and
9001 test-endian-sign-conversion.
9002 (CFLAGS-test-endian-sign-conversion.c): New variable.
9003 * bits/byteswap-16.h: Remove file.
9004 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
9005 * sysdeps/ia64/bits/byteswap.h: Likewise.
9006 * sysdeps/m68k/bits/byteswap.h: Likewise.
9007 * sysdeps/s390/bits/byteswap-16.h: Likewise.
9008 * sysdeps/s390/bits/byteswap.h: Likewise.
9009 * sysdeps/tile/bits/byteswap.h: Likewise.
9010 * sysdeps/x86/bits/byteswap-16.h: Likewise.
9011 * sysdeps/x86/bits/byteswap.h: Likewise.
9012
9013 [BZ #17721]
9014 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
9015 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
9016 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
9017 199901L] (__restrict): Define to restrict.
9018
9019 [BZ #19667]
9020 * string/testcopy.c: Include <support/support.h>. Do not include
9021 <malloc.h>. Use <support/test-driver.c>.
9022 (main): Rename to do_test. Make static. Use xmalloc instead of
9023 malloc.
9024
9025 [BZ #13575]
9026 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
9027 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
9028 (SSIZE_MAX): Define to INT_MAX.
9029 * posix/test-ssize-max.c: New file.
9030 * posix/Makefile (tests): Add test-ssize-max.
9031
9032 [BZ #19668]
9033 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
9034 <support/support.h>. Do not include <malloc.h>.
9035 (query_auxv): Use xmalloc instead of malloc.
9036
9037 [BZ #14553]
9038 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
9039 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
9040 instead of loff_t.
9041
9042 2018-02-06 Florian Weimer <fweimer@redhat.com>
9043
9044 [BZ #18023]
9045 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
9046 Use scratch_buffer instead of extend_alloca.
9047
9048 2018-02-06 Zack Weinberg <zackw@panix.com>
9049
9050 * libio/stdio.h: Don't define getc or putc as macros.
9051 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
9052 not _IO_getc and _IO_putc.
9053
9054 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
9055 * stdio-common/tstgetln.c: Don't redefine ssize_t.
9056
9057 2018-02-06 Joseph Myers <joseph@codesourcery.com>
9058
9059 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
9060 (TCP_FASTOPEN_NO_COOKIE): Likewise.
9061
9062 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
9063
9064 [BZ #14890]
9065 * elf/elf.h (NT_PRFPREG): New macro.
9066 (NT_S390_VXRS_LOW): Likewise.
9067 (NT_S390_VXRS_HIGH): Likewise.
9068 (NT_S390_GS_CB): Likewise.
9069 (NT_S390_GS_BC): Likewise.
9070 (NT_S390_RI_CB): Likewise.
9071
9072 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
9073 (MAP_SYNC): New macro.
9074 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
9075 Likewise.
9076 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
9077 (MAP_SYNC): Likewise.
9078 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
9079 (MAP_SYNC): Likewise.
9080 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
9081 (MAP_SYNC): Likewise.
9082 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
9083 (MAP_SYNC): Likewise.
9084 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
9085 (MAP_SYNC): Likewise.
9086 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
9087 (MAP_SYNC): Likewise.
9088 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
9089 Likewise.
9090 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
9091 Likewise.
9092
9093 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
9094 (MAP_SHARED_VALIDATE): New macro.
9095 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9096 (MAP_SHARED_VALIDATE): Likewise.
9097
9098 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9099
9100 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
9101 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
9102 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
9103
9104 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9105
9106 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
9107 (DT_NUM): Updated to 35.
9108
9109 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9110
9111 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
9112 __builtin_expect with __glibc_likely and __glibc_unlikely.
9113 (elf_machine_rela): Likewise.
9114 (elf_machine_lazy_rel): Likewise.
9115
9116 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9117
9118 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
9119 __builtin_expect with __glibc_likely and __glibc_unlikely.
9120 (elf_machine_lazy_rel): Likewise.
9121
9122 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
9123
9124 [BZ #22638]
9125 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
9126 SHARED.
9127 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
9128
9129 2018-02-05 Andreas Schwab <schwab@suse.de>
9130
9131 [BZ #22761]
9132 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
9133 string.
9134
9135 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
9136
9137 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
9138 not check against PTHREAD_STACK_MIN.
9139
9140 2018-02-02 Sean McKean <smckean83@gmail.com>
9141
9142 [BZ #22735]
9143 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
9144
9145 2018-02-02 Florian Weimer <fweimer@redhat.com>
9146
9147 [BZ #22753]
9148 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
9149 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
9150 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
9151 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
9152 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
9153 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9154 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9155 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
9156 * manual/llio.texi (Scatter-Gather): Mention offset -1.
9157 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
9158 * misc/tst-preadvwritev2.c (do_test): Call it.
9159 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
9160
9161 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
9162
9163 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
9164
9165 * benchtests/bench-memcmp.c: Print json instead of plain text.
9166
9167 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
9168 every test run.
9169
9170 2018-02-01 Joseph Myers <joseph@codesourcery.com>
9171
9172 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9173 version to 4.15.
9174 (s390_sthyi): New syscall.
9175
9176 * sysdeps/generic/ldbl-classify-compat.h: New file.
9177 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
9178 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
9179 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
9180 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
9181 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
9182 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
9183 * sysdeps/ieee754/dbl-64/s_finite.c: Include
9184 <ldbl-classify-compat.h>.
9185 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9186 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
9187 <ldbl-classify-compat.h>.
9188 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9189 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
9190 <ldbl-classify-compat.h>.
9191 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9192 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
9193 <ldbl-classify-compat.h>.
9194 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9195 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
9196 <ldbl-classify-compat.h>.
9197 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9198 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
9199 <ldbl-classify-compat.h>.
9200 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
9201 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
9202 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
9203 * sysdeps/m68k/coldfire/math_private.h: Remove file.
9204 * sysdeps/microblaze/math_private.h: Likewise.
9205 * sysdeps/nios2/math_private.h: Likewise.
9206 * sysdeps/sh/math_private.h: Likewise.
9207
9208 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
9209 * sysdeps/m68k/coldfire/math_private.h: ... here.
9210 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
9211 * sysdeps/tile/math_private.h: Likewise.
9212 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
9213 Remove macro.
9214 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
9215 Likewise.
9216
9217 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
9218 Remove macro.
9219 (libc_fetestexcept): Likewise.
9220 (libc_feupdateenv_test): Likewise.
9221 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
9222 (libc_fetestexcept): Likewise.
9223 (libc_feupdateenv_test): Likewise.
9224 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
9225 (libc_fetestexcept): Likewise.
9226 (libc_feupdateenv_test): Likewise.
9227 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
9228 (libc_fetestexcept): Likewise.
9229 (libc_feupdateenv_test): Likewise.
9230
9231 * sysdeps/generic/math_private.h
9232 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
9233 New inline function.
9234 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
9235 Likewise.
9236
9237 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
9238 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
9239 * sysdeps/generic/math_private.h
9240 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
9241 inline function.
9242 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
9243 Likewise.
9244 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
9245 Likewise.
9246 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
9247 Likewise.
9248 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
9249 Likewise.
9250 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
9251 Likewise.
9252 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
9253 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
9254 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
9255 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
9256 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
9257 (__fegetenv): Likewise.
9258 (fesetenv): Likewise.
9259 (__fesetenv): Likewise.
9260 (feupdateenv): Likewise.
9261 (__feupdateenv): Likewise.
9262 (fegetround): Likewise.
9263 (__fegetround): Likewise.
9264 (fesetround): Likewise.
9265 (__fesetround): Likewise.
9266
9267 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
9268 (feraiseexcept): New macro.
9269 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
9270 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
9271 Remove macro.
9272 (__feraiseexcept): Likewise.
9273 (feclearexcept): Likewise.
9274 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
9275 (__feraiseexcept): Likewise.
9276 (feclearexcept): Likewise.
9277 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
9278 (__feraiseexcept): Likewise.
9279 (feclearexcept): Likewise.
9280 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
9281 (__feraiseexcept): Likewise.
9282 (feclearexcept): Likewise.
9283 (fetestexcept): Likewise.
9284
9285 * sysdeps/m68k/coldfire/math-tests.h: New file.
9286
9287 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
9288 * sysdeps/m68k/bits/fenv.h: ... here.
9289 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
9290 not define.
9291 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
9292 Likewise.
9293 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
9294 Likewise.
9295 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
9296 Likewise.
9297 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
9298 Likewise.
9299 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
9300 Define to 0.
9301 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
9302 (__FE_UNDEFINED): New enum constant.
9303 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
9304 Do not define.
9305 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
9306 Likewise.
9307 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
9308 Likewise.
9309 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
9310 to match generic bits/fenv.h.
9311 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
9312 Do not define.
9313
9314 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
9315 packed on bits.
9316 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
9317 * soft-fp/half.h (union _FP_UNION_H): Likewise.
9318 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
9319 * soft-fp/single.h (union _FP_UNION_S): Likewise.
9320
9321 2018-02-01 Carlos O'Donell <carlos@redhat.com>
9322 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
9323 Joseph Myers <joseph@codesourcery.com>
9324
9325 [BZ #21314]
9326 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
9327 (__log1p): Disable -Wmaybe-uninitialized for -Os around
9328 computation using c.
9329 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
9330 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
9331 computation using c.
9332
9333 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
9334
9335 * version.h (RELEASE): Set to "development".
9336 (VERSION): Set to "2.27.9000".
9337 * NEWS (2.28): New section.
9338
9339 * version.h (RELEASE): Set to "stable".
9340 (VERSION): Set to "2.27".
9341 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
9342
9343 * NEWS: Add the list of bugs fixed in 2.27.
9344
9345 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9346
9347 * stdlib/test-atexit-race-common.c (do_test): Check stack size
9348 against PTHREAD_STACK_MIN.
9349
9350 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
9351
9352 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
9353 New entries.
9354 (Rafal Luzynski, Andreas Schwab): Update.
9355
9356 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
9357
9358 [BZ #10871]
9359 * NEWS: List the languages which actually use the alternative
9360 months feature in this release. Also explain that "alt_mon" and
9361 "ab_alt_mon" are optional.
9362
9363 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
9364
9365 [BZ #22765]
9366 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
9367
9368 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
9369
9370 * manual/install.texi (Tools for Compilation): Update the newest
9371 versions of gcc, binutils, texinfo, gawk, bison, and sed.
9372 * INSTALL: Regenerated.
9373
9374 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9375
9376 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
9377 instead of __builtin_expect.
9378
9379 2018-01-30 Florian Weimer <fweimer@redhat.com>
9380
9381 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
9382 data.
9383 * nss/tst-nss-getpwent.c (do_test): Likewise.
9384
9385 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
9386
9387 [BZ #10871]
9388 * localedata/locales/hr_HR (mon): Rename to...
9389 (alt_mon): This.
9390 (mon): Import from CLDR (genitive case).
9391 (d_t_fmt): Update the comment.
9392
9393 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
9394
9395 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
9396 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
9397 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
9398
9399 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
9400
9401 * mach/Versions: Fix version when __mach_host_self_ was added.
9402 * hurd/Versions: Fix version when _hurd_exec_paths was added.
9403 * sysdeps/mach/hurd/i386/ld.abilist: New file.
9404 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
9405 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
9406 * sysdeps/mach/hurd/i386/libc.abilist: New file.
9407 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
9408 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
9409 * sysdeps/mach/hurd/i386/libm.abilist: New file.
9410 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
9411 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
9412 * sysdeps/mach/hurd/i386/librt.abilist: New file.
9413 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
9414 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
9415 || to respect codestyle.
9416 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
9417 (do_test_bz20181): Rename accordingly.
9418 * malloc/malloc.c: Include <assert.h>.
9419 (assert): Do not define.
9420 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
9421 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
9422 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9423 * sysdeps/mach/hurd/hp-timing.h: New file.
9424 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
9425
9426 2018-01-29 Darius Rad <darius@bluespec.com>
9427
9428 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
9429
9430 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
9431
9432 * sysdeps/init_array/crti.S (.section .init_array): Add
9433 PREINIT_FUNCTION when defined.
9434 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
9435 * config.h.in: Regenerate.
9436 * manual/platform.texi: Add RISC-V documenation for
9437 __riscv_flush_icache.
9438 * sysdeps/riscv/__longjmp.S: New file.
9439 * sysdeps/riscv/backtrace.c: Likewise.
9440 * sysdeps/riscv/bits/endian.h: Likewise.
9441 * sysdeps/riscv/bits/setjmp.h: Likewise.
9442 * sysdeps/riscv/bits/wordsize.h: Likewise.
9443 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
9444 * sysdeps/riscv/bsd-setjmp.c: Likewise.
9445 * sysdeps/riscv/dl-trampoline.S: Likewise.
9446 * sysdeps/riscv/gccframe.h: Likewise.
9447 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
9448 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
9449 * sysdeps/riscv/machine-gmon.h: Likewise.
9450 * sysdeps/riscv/memusage.h: Likewise.
9451 * sysdeps/riscv/setjmp.S: Likewise.
9452 * sysdeps/riscv/sys/asm.h: Likewise.
9453 * sysdeps/riscv/tls-macros.h: Likewise.
9454 * sysdeps/riscv/dl-tls.h: New file.
9455 * sysdeps/riscv/libc-tls.c: Likewise.
9456 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
9457 * sysdeps/riscv/nptl/tls.h: Likewise.
9458 * sysdeps/riscv/stackinfo.h: Likewise.
9459 * sysdeps/riscv/bits/fenv.h: New file.
9460 * sysdeps/riscv/e_sqrtl.c: Likewise.
9461 * sysdeps/riscv/fpu_control.h: Likewise.
9462 * sysdeps/riscv/math-tests.h: Likewise.
9463 * sysdeps/riscv/nofpu/Implies: Likewise.
9464 * sysdeps/riscv/sfp-machine.h: Likewise.
9465 * sysdeps/riscv/tininess.h: Likewise.
9466 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
9467 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9468 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
9469 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
9470 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
9471 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
9472 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9473 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9474 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9475 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9476 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9477 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
9478 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
9479 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
9480 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
9481 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
9482 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9483 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9484 * sysdeps/riscv/rvd/s_fma.c: Likewise.
9485 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9486 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9487 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9488 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9489 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9490 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9491 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
9492 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
9493 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
9494 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
9495 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9496 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9497 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9498 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
9499 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
9500 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9501 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9502 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9503 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
9504 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
9505 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9506 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
9507 * sysdeps/riscv/rvf/math_private.h: Likewise.
9508 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9509 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9510 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9511 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9512 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
9513 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9514 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9515 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9516 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9517 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9518 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9519 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9520 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9521 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9522 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9523 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9524 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
9525 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
9526 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
9527 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
9528 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
9529 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
9530 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
9531 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
9532 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
9533 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
9534 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
9535 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
9536 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
9537 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
9538 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
9539 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
9540 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9541 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
9542 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
9543 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
9544 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
9545 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
9546 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
9547 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
9548 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
9549 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
9550 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
9551 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
9552 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
9553 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
9554 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9555 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
9556 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
9557 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
9558 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
9559 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
9560 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
9561 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
9562 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
9563 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
9564 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
9565 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
9566 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
9567 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
9568 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
9569 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
9570 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9571 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
9572 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
9573 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
9574 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
9575 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
9576 * sysdeps/riscv/Implies: New file.
9577 * sysdeps/riscv/Makefile: Likewise.
9578 * sysdeps/riscv/configure: Likewise.
9579 * sysdeps/riscv/configure.ac: Likewise.
9580 * sysdeps/riscv/nptl/Makefile: Likewise.
9581 * sysdeps/riscv/preconfigure: Likewise.
9582 * sysdeps/riscv/rv64/Implies-after: Likewise.
9583 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
9584 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
9585 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
9586 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
9587 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
9588 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
9589 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
9590 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
9591 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
9592 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
9593 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
9594 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
9595 (Config): Likewise.
9596
9597 2018-01-29 Florian Weimer <fweimer@redhat.com>
9598
9599 [BZ #22701]
9600 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
9601 libnsl_hidden_proto.
9602 * include/rpcsvc/yp.h (yp_xdrall): Declare with
9603 libnsl_hidden_proto.
9604 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
9605 * nis/Makefile (libnsl-routines): Add nss-default only for
9606 build-obsolete-nsl.
9607 * nis/nis_defaults.c (__nis_default_ttl): Add
9608 libnsl_hidden_nolink_def.
9609 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
9610 declaration.
9611 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
9612 * nis/ypclnt.c (yp_maplist): Likewise.
9613
9614 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
9615
9616 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9617 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
9618
9619 2018-01-29 Joseph Myers <joseph@codesourcery.com>
9620
9621 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
9622 clean -dxfq for git updates when replacing sources.
9623
9624 * scripts/build-many-glibcs.py (Config.build_gcc): Use
9625 --disable-libcilkrts unconditionally, not just for the final GCC
9626 build for Hurd.
9627
9628 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9629 version to 4.15.
9630
9631 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9632
9633 [BZ #10871]
9634 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
9635 case).
9636
9637 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9638
9639 [BZ #10871]
9640 * localedata/locales/be_BY (mon): Rename to...
9641 (alt_mon): This, then synchronize with CLDR (nominative case).
9642 (abmon): Rename to...
9643 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
9644 (mon): Import from CLDR (genitive case).
9645 (abmon): Likewise.
9646 * localedata/locales/be_BY@latin (mon): Rename to...
9647 (alt_mon): This.
9648 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
9649
9650 * localedata/locales/be_BY@latin (lang_name): Reworded to
9651 "biełaruskaja mova".
9652
9653 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9654
9655 [BZ #10871]
9656 * localedata/locales/el_CY (mon): Renamed to...
9657 (alt_mon): This.
9658 (mon): Import from CLDR (genitive case).
9659 * localedata/locales/el_GR: Likewise.
9660
9661 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9662
9663 [BZ #10871]
9664 * localedata/locales/ru_RU (mon): Rename to...
9665 (alt_mon): This.
9666 (abmon): Rename to...
9667 (ab_alt_mon): This.
9668 (mon): Import from CLDR (genitive case).
9669 (abmon): Copy from the old content except the 5th month which is
9670 now in the genitive case, even when abbreviated.
9671 * localedata/locales/ru_UA: Likewise.
9672 * time/tst-strptime.c (day_tests): Add an actual example of
9673 a difference between %b and %Ob in Russian.
9674
9675 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
9676
9677 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
9678 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
9679 a `c' variable.
9680 * resolv/res-close.c: Include <stdlib.h>.
9681 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
9682 <sys/wait.h>, <time.h>, <sys/uio.h>.
9683 (NOT_CANCEL_H): Add inclusion guard.
9684 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
9685 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
9686 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
9687 return 0.
9688 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
9689 vm_address_t * to ElfW(Addr) * for dl_main parameter.
9690 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
9691 instead of void *.
9692 * sysdeps/pthread/timer_create.c (timer_create): Do not use
9693 timer_ptr2id to cast struct timer_node * to void *.
9694 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
9695 --disable-libcilkrts to gcc configure.
9696 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
9697 and make them the default for now.
9698 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
9699 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
9700 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
9701 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
9702 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
9703 MACH_IPC_COMPAT.
9704 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
9705 __task_terminate would ever return successfully.
9706 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
9707 to global scope.
9708 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
9709 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
9710 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
9711 critical section to make code simpler and avoid warning.
9712 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
9713 critical section to make code simpler and avoid warning.
9714 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
9715 const char * instead of char *.
9716 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
9717 __hurd_file_name_split, hurd_file_name_split,
9718 __hurd_directory_name_split, hurd_directory_name_split,
9719 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
9720 hurd_file_name_path_lookup): Make lookup function parameter take a
9721 const char *name instead of char *name.
9722 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
9723 __hurd_directory_name_split): Likewise.
9724 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
9725 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
9726 * sysdeps/mach/hurd/check_native.c: New file.
9727 * sysdeps/mach/hurd/check_pf.c: New file.
9728 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
9729 (__freeifaddrs): Define macro to freeifaddrs.
9730 * sysdeps/mach/hurd/libhurduser.abilist: New file.
9731 * sysdeps/mach/libmachuser.abilist: New file.
9732 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
9733 (do_test_bz20181): Rename accordingly.
9734 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
9735 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
9736 <sys/mount.h>.
9737 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
9738 version only if __USE_EXTERN_INLINES is defined.
9739 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
9740 __hurd_sockfail): Likewise.
9741 (_hurd_fd_get): Always declare functions, and provide inline versions
9742 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
9743 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
9744 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
9745 _hurd_port_set): Always declare functions, and provide inline versions
9746 only if __USE_EXTERN_INLINES and _LIBC are defined and
9747 IS_IN(libc).
9748 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
9749 _hurd_critical_section_unlock): Likewise.
9750 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
9751 * __hurd_threadvar_location): Likewise.
9752 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
9753 _hurd_userlink_clear): Likewise.
9754 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
9755 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
9756 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
9757 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
9758 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
9759 __spin_lock_locked): Likewise.
9760 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
9761 __spin_lock_locked): Likewise.
9762 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
9763 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
9764 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
9765 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
9766 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
9767 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
9768 _POSIX_NO_TRUNC): Define to 0.
9769 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
9770 check size against PTHREAD_STACK_MIN.
9771 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
9772 IS_IN(libpthread)]: Include <sigsetops.h>.
9773 * mach/Makefile (user-interfaces): Add mach/gnumach.
9774 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
9775 * sysdeps/mach/configure (mach_interface_list): Regenerate.
9776 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
9777 instead of invalid -1.
9778 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
9779 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
9780 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
9781 <net/ppp_defs.h>.
9782
9783 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
9784
9785 * hurd/fcntl-internal.h: New file.
9786
9787 2018-01-27 James Clarke <jrtc27@jrtc27.com>
9788
9789 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9790
9791 * sysdeps/alpha/fpu/libm-test-ulps: Update.
9792
9793 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
9794
9795 [BZ #22701]
9796 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
9797 Build only shared objects.
9798
9799 2018-01-26 Carlos O'Donell <carlos@redhat.com>
9800
9801 * README: Update for hppa.
9802
9803 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
9804
9805 * sysdeps/sparc/fpu/libm-test-ulps: Update
9806 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
9807
9808 2018-01-26 Carlos O'Donell <carlos@redhat.com>
9809
9810 Revert:
9811
9812 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
9813
9814 [BZ #22563]
9815 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9816 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
9817 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9818 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
9819 to feature_1.
9820
9821 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
9822
9823 [BZ #22563]
9824 * bits/types/__cancel_jmp_buf_tag.h: New file.
9825 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
9826 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
9827 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
9828 * nptl/Makefile (headers): Add
9829 bits/types/__cancel_jmp_buf_tag.h.
9830 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
9831 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
9832 * sysdeps/nptl/pthread.h: Include
9833 <bits/types/__cancel_jmp_buf_tag.h>.
9834 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
9835 __cancel_jmp_buf.
9836 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
9837
9838 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9839
9840 [BZ #10871]
9841 * localedata/locales/uk_UA (mon): Renamed to...
9842 (alt_mon): This.
9843 (alt_digits): "0" removed and then renamed to...
9844 (mon): This.
9845 (date_fmt): Definition changed not to use the alternative
9846 digits hack.
9847
9848 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
9849
9850 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
9851 FLAG_RISCV_FLOAT_ABI_DOUBLE.
9852 * elf/elf.h (EF_RISCV_RVC): New define.
9853 (EF_RISCV_FLOAT_ABI): Likewise.
9854 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
9855 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
9856 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
9857 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
9858 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
9859 define.
9860 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
9861
9862 2018-01-25 Andreas Schwab <schwab@suse.de>
9863
9864 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
9865 single quotes.
9866 * sysdeps/gnu/configure: Regenerate.
9867 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
9868 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
9869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
9870 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
9871 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
9872 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
9873 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
9874 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
9875
9876 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
9877
9878 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
9879 URL, and run autoconf, make it the default for now.
9880
9881 2018-01-24 Joseph Myers <joseph@codesourcery.com>
9882
9883 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9884 soft-float ColdFire configuration.
9885
9886 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
9887 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
9888 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
9889
9890 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
9891 MicroBlaze file.
9892
9893 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
9894 ....
9895 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
9896 ... here.
9897 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
9898 New file.
9899
9900 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
9901 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
9902 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
9903 file.
9904
9905 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
9906
9907 [BZ #22742]
9908 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
9909 Rename to __reserved and add comment.
9910 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
9911 Rename to __reserved.
9912
9913 2018-01-24 Joseph Myers <joseph@codesourcery.com>
9914
9915 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9916 i686-gnu configurations.
9917 (Context.run_builds): Include mig, gnumach and hurd in components
9918 considered.
9919 (Context.checkout): Add mig, gnumach and hurd to components.
9920 (Context.checkout_tar): Add URL mappings for mig, gnumach and
9921 hurd.
9922 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
9923 (Config.build): Install gnumach headers, build mig and install
9924 hurd headers for 'gnu' OS.
9925 (Config.install_gnumach_headers): New function.
9926 (Config.install_hurd_headers): Likewise.
9927 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
9928 when building for 'gnu' OS.
9929
9930 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
9931
9932 * manual/tunables.texi (Hardware Capability Tunables): Fix
9933 spelling.
9934
9935 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
9936
9937 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
9938 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
9939 (ALTMON_11, ALTMON_12): Improve documentation.
9940 * manual/time.texi (strftime): Likewise.
9941
9942 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9943
9944 [BZ #10871]
9945 * localedata/locales/pl_PL: Alternative month names added,
9946 primary month names are genitive now.
9947 * time/tst-strptime.c (day_tests): Actually use a genitive case
9948 of a month name in Polish language.
9949
9950 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9951
9952 [BZ #10871]
9953 * manual/locale.texi: Document ALTMON_1..12 constants for
9954 nl_langinfo. Specify when to use ALTMON instead of MON.
9955 * manual/time.texi (strftime, strptime): Document GNU extension
9956 permitting O modifier with %B and %b. Specify when to use
9957 %OB instead of %B.
9958
9959 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9960
9961 [BZ #10871]
9962 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
9963 names, define them as the same as abbreviated month names explicitly.
9964 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
9965 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
9966 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
9967 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
9968 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
9969 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
9970 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
9971 _NL_WABALTMON_12): New enum constants.
9972 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
9973 wab_alt_mon, and ab_alt_mon_defined members.
9974 (time_output): Output ab_alt_mon and wab_alt_mon members.
9975 (time_read): Read them, initialize them as copies of abmon and wabmon
9976 respectively if they are missing, initialize ab_alt_mon_defined.
9977 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
9978 * locale/programs/locfile-kw.h: Regenerate.
9979 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
9980 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
9981 and ru_RU.UTF-8.
9982 * time/strftime_l.c (a_altmonth, aam_len): New macros.
9983 [!COMPILE_WIDE] (ABALTMON_1): New macro.
9984 (__strftime_internal): Handle %Ob and %Oh formats.
9985 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
9986 (__strptime_internal): Handle %Ob and %Oh formats.
9987 * time/tst-strptime.c (day_tests): Add more tests to parse different
9988 forms of month names including the new %Ob format specifier.
9989
9990 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
9991
9992 [BZ #10871]
9993 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
9994 define them as the same as primary full month names explicitly.
9995 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
9996 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
9997 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
9998 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
9999 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
10000 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
10001 _NL_WALTMON_12): New enum constants.
10002 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
10003 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
10004 macros.
10005 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
10006 walt_mon, and alt_mon_defined members.
10007 (time_output): Output alt_mon and walt_mon members.
10008 (time_read): Read them, initialize them as copies of mon and wmon
10009 respectively if they are missing, initialize alt_mon_defined.
10010 * locale/programs/locfile-kw.gperf (alt_mon): Define.
10011 * locale/programs/locfile-kw.h: Regenerate.
10012 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
10013 * localedata/tst-langinfo.c (map): Add tests for the new constants
10014 ALTMON_1 .. ALTMON_12.
10015 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
10016 and pl_PL.UTF-8.
10017 * time/strftime_l.c (f_altmonth): New macro.
10018 (__strftime_internal): Handle %OB format.
10019 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
10020 (__strptime_internal): Handle %OB format.
10021 * time/tst-strptime.c (day_tests): Add tests to parse different forms
10022 of month names including the new %OB format specifier.
10023
10024 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10025
10026 [BZ #22685]
10027 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
10028 from ABORT_TRANSACTION.
10029 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
10030 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
10031 ABORT_TRANSACTION_IMPL): Likewise.
10032 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
10033 Linux code, but remove the code that aborts transactions.
10034
10035 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10036
10037 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
10038
10039 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
10040
10041 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
10042 in date: "2004-14-09" should be "2004-09-14".
10043 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
10044 "2003-15-09" should be "2003-09-15".
10045
10046 2018-01-18 Arjun Shankar <arjun@redhat.com>
10047
10048 [BZ #22343]
10049 [BZ #22774]
10050 CVE-2018-6485
10051 CVE-2018-6551
10052 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
10053 after padding.
10054 (_int_memalign): check for integer overflow before calling
10055 _int_malloc.
10056 * malloc/tst-malloc-too-large.c: New test.
10057 * malloc/Makefile: Add tst-malloc-too-large.
10058
10059 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
10060
10061 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
10062 in date: "2017-24-07" should be "2017-07-24".
10063 * localedata/locales/mai_IN: Likewise.
10064 * localedata/locales/mai_NP: Likewise.
10065
10066 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
10067
10068 * po/ru.po: Update translations.
10069
10070 2018-01-17 Joseph Myers <joseph@codesourcery.com>
10071
10072 [BZ #22719]
10073 * sysdeps/hppa/backtrace.c: New file.
10074
10075 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
10076
10077 [BZ #22715]
10078 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
10079 align La_x86_64_retval to VEC_SIZE.
10080
10081 2018-01-16 Joseph Myers <joseph@codesourcery.com>
10082
10083 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
10084 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
10085
10086 2018-01-16 Florian Weimer <fweimer@redhat.com>
10087
10088 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
10089 Move tst-thread-exit-clobber ...
10090 [$(CXX)] (tests-unsupported): ... to here.
10091
10092 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
10093
10094 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
10095 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
10096 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
10097 (_dl_aarch64_cap_flags): Update.
10098 (_DL_HWCAP_COUNT): Update.
10099
10100 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
10101
10102 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
10103 (_DL_HWCAP_LAST): Remove.
10104 (_DL_HWCAP_COUNT): Move to ...
10105 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
10106 (_DL_HWCAP_COUNT): ... here.
10107
10108 2018-01-16 Florian Weimer <fweimer@redhat.com>
10109
10110 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
10111 mode with GNU extensions.
10112
10113 2018-01-15 Alan Hayward <alan.hayward@arm.com>
10114
10115 * elf/elf.h (NT_ARM_SVE): Define.
10116
10117 2018-01-15 Florian Weimer <fweimer@redhat.com>
10118
10119 [BZ #22636]
10120 * nptl/tst-minstack-throw.cc: New file.
10121 * nptl/Makefile (tests): Add tst-minstack-throw.
10122 (LDLIBS-tst-minstack-throw): Link with libstdc++.
10123 [!CXX] (tests-unsupported): Add tst-minstack-throw.
10124
10125 2018-01-15 Joseph Myers <joseph@codesourcery.com>
10126
10127 * scripts/build-many-glibcs.py (Context.checkout): Default
10128 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
10129 version to 1.1.0.
10130
10131 2018-01-13 Carlos O'Donell <carlos@redhat.com>
10132
10133 [BZ #22707]
10134 * elf/elf.h (DF_1_STUB): Define.
10135 (DF_1_PIE): Define.
10136
10137 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10138
10139 [BZ #22697]
10140 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
10141 Do not add 0.5 to integer or out-of-range arguments.
10142
10143 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
10144
10145 * po/bg.po: Update translations.
10146 * po/cs.po: Likewise.
10147 * po/de.po: Likewise.
10148 * po/ko.po: Likewise.
10149 * po/pl.po: Likewise.
10150 * po/sv.po: Likewise.
10151 * po/uk.po: Likewise.
10152 * po/vi.po: Likewise.
10153
10154 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
10155
10156 * aarch64/start.S (_start): Use __wrap_main.
10157 (__wrap_main): New local symbol.
10158
10159 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
10160
10161 [BZ #22679]
10162 CVE-2018-1000001
10163 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
10164 generic_getcwd if the path returned by getcwd syscall is not absolute.
10165 * io/tst-getcwd-abspath.c: New test.
10166 * io/Makefile (tests): Add tst-getcwd-abspath.
10167
10168 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
10169
10170 * malloc/malloc.c (malloc_consolidate): Add size check.
10171
10172 2018-01-12 Florian Weimer <fweimer@redhat.com>
10173
10174 * support/write_message.c (write_message): Preserve errno.
10175 * support/check.c (print_failure): Likewise.
10176 * support/support_test_verify_impl.c (support_test_verify_impl):
10177 Likewise.
10178 * support/support_test_compare_failure.c
10179 (support_test_compare_failure): Likewise.
10180
10181 2018-01-12 Florian Weimer <fweimer@redhat.com>
10182
10183 [BZ #22701]
10184 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
10185 Prevent installation of libnsl.so.
10186 (libnsl-inhibit-o): Do not build (or install) static libraries.
10187
10188 2018-01-12 Egmont Koblinger <egmont@gmail.com>
10189
10190 [BZ #22657]
10191 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
10192 before the day number which may produce a double space.
10193 (date_fmt): Likewise.
10194
10195 2018-01-12 Joseph Myers <joseph@codesourcery.com>
10196
10197 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
10198 instead of fegetenv.
10199
10200 2018-01-11 Joseph Myers <joseph@codesourcery.com>
10201
10202 [BZ #22702]
10203 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
10204 comment to say exceptions are discarded.
10205 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
10206 __fegetenv.
10207 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
10208 be enabled.
10209
10210 2018-01-11 Florian Weimer <fweimer@redhat.com>
10211
10212 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
10213 and error message.
10214
10215 2018-01-11 Florian Weimer <fweimer@redhat.com>
10216
10217 [BZ #22636]
10218 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
10219 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
10220
10221 2018-01-10 Joseph Myers <joseph@codesourcery.com>
10222
10223 [BZ #22693]
10224 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
10225 negative arguments in test for NaN or infinity argument.
10226
10227 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
10228
10229 * po/libc.pot: Regenerate.
10230
10231 2018-01-10 Florian Weimer <fweimer@redhat.com>
10232
10233 [BZ #22636]
10234 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
10235 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
10236
10237 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10238
10239 * hurd/hurd/fd.h: Include <fcntl.h>
10240 (__hurd_at_flags): New function.
10241 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
10242 with call to __hurd_at_flags.
10243 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
10244 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
10245 __faccessat
10246 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
10247 (__access_noerrno): Use __faccessat_common instead of access_common.
10248 (__access): Likewise.
10249 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
10250 with a call to __faccessat.
10251 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
10252 (__faccessat_common): ... this. Move implementation of __access into it when
10253 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
10254 reauthenticate_cwdir_at helper to implement AT mechanism.
10255 (__faccessat_noerrno): New function, just calls __faccessat_common.
10256 (__faccessat): New function, just calls __faccessat_common.
10257 (faccessat): Define weak alias.
10258
10259 2018-01-10 Joseph Myers <joseph@codesourcery.com>
10260
10261 [BZ #22691]
10262 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10263 (CFLAGS-s_fmaxmagl.c): New variable.
10264 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
10265
10266 [BZ #22690]
10267 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
10268 long int for arguments of possibly overflowing addition or
10269 subtraction.
10270 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
10271
10272 2018-01-09 Joseph Myers <joseph@codesourcery.com>
10273
10274 [BZ #22688]
10275 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10276 (CFLAGS-e_remainderl.c): New variable.
10277
10278 [BZ #22687]
10279 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
10280 variable.
10281 (CFLAGS-s_cacoshl.c): Likewise.
10282 (CFLAGS-s_casinhl.c): Likewise.
10283 (CFLAGS-s_catanl.c): Likewise.
10284 (CFLAGS-s_catanhl.c): Likewise.
10285 (CFLAGS-s_cexpl.c): Likewise.
10286 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
10287 (CFLAGS-s_csinhl.c): Likewise.
10288 (CFLAGS-s_clogl.c): Likewise.
10289 (CFLAGS-s_clog10l.c): Likewise.
10290 (CFLAGS-s_csinl.c): Likewise.
10291 (CFLAGS-s_csqrtl.c): Likewise.
10292
10293 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
10294 2017-01-09 Svante Signell <svante.signell@gmail.com>
10295
10296 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
10297 (_hurd_exec_paths): New function.
10298 * hurd/hurd.h (_hurd_exec): Deprecate function.
10299 (_hurd_exec_paths): Declare function.
10300 * hurd/Versions: Export _hurd_exec_paths.
10301 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
10302 (__execve): Use __getcwd to build absolute path, and use
10303 _hurd_exec_paths instead of _hurd_exec.
10304 * sysdeps/mach/hurd/spawni.c: Likewise.
10305 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
10306 _hurd_exec.
10307
10308 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
10309
10310 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
10311 test instead of failing in case of ENOENT returned by posix_openpt.
10312
10313 2018-01-08 Florian Weimer <fweimer@redhat.com>
10314
10315 resolv: Support binary labels in test framework.
10316 * support/resolv_test.c (struct to_be_freed): Remove.
10317 (struct compressed_name): New.
10318 (allocate_compressed_name, ascii_tolower)
10319 (compare_compressed_name): New functions.
10320 (struct resolv_response_builder): Update type of
10321 compression_offsets for use with tsearch. Rempve to_be_freed.
10322 (response_push_pointer_to_free): Remove function.
10323 (resolv_response_add_name): Rewrite using struct compressed_name
10324 and tsearch instead of hsearch_r.
10325 (response_builder_allocate): Remove initialization of
10326 compression_offsets.
10327 (response_builder_free): Update for removal of to_be_freed. Use
10328 tdestroy instead of hdestroy_r.
10329 * resolv/Makefile (tests): Add tst-resolv-binary.
10330 (tst-resolv-binary): Link with -lresolv -lpthread.
10331
10332 2018-01-08 Florian Weimer <fweimer@redhat.com>
10333
10334 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
10335 time. Pass positive flag instead of negative flag to
10336 support_test_compare_failure.
10337 (support_test_compare_failure): Change negative parameter to
10338 positive.
10339 * support/support_test_compare_failure.c (report)
10340 (support_test_compare_failure): Likewise.
10341 * support/tst-test_compare.c (return_ssize_t, return_int): New.
10342 (do_test): Check int/size_t, ssize_t/size_t comparisons.
10343
10344 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
10345
10346 [BZ #22637]
10347 * nptl/descr.h (stackblock, stackblock_size): Update comments.
10348 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
10349 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
10350 stacksize.
10351 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
10352
10353 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
10354
10355 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10356 Add s_sincosf-sse2 and s_sincosf-fma.
10357 (CFLAGS-s_sincosf-fma.c): New.
10358 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
10359 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
10360 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
10361 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
10362 __sincosf is defined.
10363
10364 2018-01-08 Florian Weimer <fweimer@redhat.com>
10365
10366 * nptl/tst-thread-exit-clobber.cc: New file.
10367 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
10368 C++11 mode.
10369 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
10370 (tests): Add tst-thread-exit-clobber.
10371 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
10372
10373 2018-01-08 Florian Weimer <fweimer@redhat.com>
10374
10375 * support/check.h (support_static_assert): Define.
10376 (TEST_COMPARE): Use it.
10377
10378 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
10379
10380 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
10381 [!__RLIM_T_MATCHES_RLIM64_T]
10382 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
10383 __getrlimit64. Add libc_hidden_weak.
10384
10385 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
10386
10387 * elf/elf.h (R_RISCV_NONE): New define.
10388 (R_RISCV_32): Likewise.
10389 (R_RISCV_64): Likewise.
10390 (R_RISCV_RELATIVE): Likewise.
10391 (R_RISCV_COPY): Likewise.
10392 (R_RISCV_JUMP_SLOT): Likewise.
10393 (R_RISCV_TLS_DTPMOD32): Likewise.
10394 (R_RISCV_TLS_DTPMOD64): Likewise.
10395 (R_RISCV_TLS_DTPREL32): Likewise.
10396 (R_RISCV_TLS_DTPREL64): Likewise.
10397 (R_RISCV_TLS_TPREL32): Likewise.
10398 (R_RISCV_TLS_TPREL64): Likewise.
10399 * Makerules (make-link-multidir): Make directories before linking into
10400 them.
10401 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
10402 define.
10403 (VDSO_HASH_LINUX_4_15): Likewise.
10404 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
10405 in subdirectories of lib.
10406 * nptl/Makefile (/librt.so): Always depend on
10407 "$(shared-thread-library)".
10408
10409 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
10410
10411 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
10412 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
10413 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
10414 (___tls_get_addr).
10415 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
10416 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
10417 "-O2 -march=i686".
10418 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
10419 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
10420 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
10421 * sysdeps/gnu/glob-lstat-compat.c: New file.
10422 * sysdeps/gnu/glob64-lstat-compat.c: New file.
10423 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
10424
10425 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
10426
10427 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
10428 Reserve 16 chars to reloc_addr before calling _itoa_word.
10429
10430 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
10431
10432 [BZ #22678]
10433 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
10434 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
10435
10436 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
10437 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
10438
10439 * resource/tst-getrlimit.c: Add copyright header.
10440
10441 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
10442 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10443
10444 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
10445 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
10446 Define __GI_getrlimit64 as weak alias of __getrlimit64.
10447 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
10448 instead.
10449 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
10450 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
10451 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
10452 RLIM64_INFINITY): Fix values to match the kernel ones.
10453 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
10454 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
10455 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
10456 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
10457 getrlimit64@@GLIBC_2_27.
10458 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
10459 and setrlimit64.
10460 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
10461 getrlimit, setrlimit, getrlimit64 and setrlimit64.
10462 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
10463 setrlimit, getrlimit64 and setrlimit64.
10464
10465 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
10466
10467 [BZ #22648]
10468 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
10469 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
10470
10471 2018-01-04 Joseph Myers <joseph@codesourcery.com>
10472
10473 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
10474 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
10475 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
10476
10477 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10478
10479 [BZ #15479]
10480 [BZ #22666]
10481 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
10482 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
10483
10484 [BZ #15479]
10485 [BZ #22665]
10486 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
10487 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10488 * sysdeps/alpha/fpu/s_floor.c: Likewise.
10489 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10490
10491 2018-01-04 Florian Weimer <fweimer@redhat.com>
10492
10493 [BZ #22667]
10494 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
10495 Align the stack before calling exit.
10496 * stdlib/tst-makecontext-align.c: New file.
10497 * stdlib/Makefile (tests): Add tst-makecontext-align.
10498
10499 2018-01-04 Florian Weimer <fweimer@redhat.com>
10500
10501 Add support for calling dlvsym from libc.so.
10502 * include/dlfcn.h (__libc_dlvsym): Declare.
10503 * elf/Makefile (tests-static-internal): Add
10504 tst-libc_dlvsym-static.
10505 (tests-internal): Add tst-libc_dlvsym.
10506 (modules-names): Add tst-libc_dlvsym-dso.
10507 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
10508 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
10509 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
10510 object tst-libc_dlvsym-dso.so needs to be built before running
10511 these tests.
10512 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
10513 * elf/Versions: Export __libc_dlvsym.
10514 * elf/dl-libc.c (struct do_dlvsym_args): New.
10515 (do_dlvsym, __libc_dlvsym): New functions.
10516 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
10517 (_dl_open_hook2): New variable.
10518 (__libc_register_dl_open_hook): Set it.
10519 * elf/tst-libc_dlvsym-dso.c: New file.
10520 * elf/tst-libc_dlvsym-static.c: Likewise.
10521 * elf/tst-libc_dlvsym.c: Likewise.
10522 * elf/tst-libc_dlvsym.h: Likewise.
10523
10524 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10525
10526 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
10527 include <sys/mount.h>.
10528
10529 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
10530
10531 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
10532 Add __NO_MATH_ERRNO__ check.
10533
10534 2018-01-02 Joseph Myers <joseph@codesourcery.com>
10535
10536 * sysdeps/mips/mips32/libm-test-ulps: Update.
10537 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10538
10539 2018-01-02 Florian Weimer <fweimer@redhat.com>
10540
10541 * misc/tst-pselect.c: Add copyright header.
10542
10543 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
10544
10545 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
10546 comment.
10547 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
10548 comment.
10549 (settrlimit): Rename into setrlimit.
10550 (__sttrlimit): Rename into __setrlimit.
10551
10552 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
10553 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
10554 never defined in that case.
10555
10556 2018-01-02 Joseph Myers <joseph@codesourcery.com>
10557
10558 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10559
10560 * sysdeps/arm/libm-test-ulps: Update.
10561
10562 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
10563 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
10564
10565 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10566
10567 * NEWS: Add cosf and sincosf to list of optimized functions.
10568
10569 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
10570
10571 [BZ #22660]
10572 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
10573 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
10574 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
10575 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
10576
10577 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
10578
10579 [BZ #22433]
10580 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
10581
10582 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
10583 making a copy of it.
10584
10585 2018-01-01 Joseph Myers <joseph@codesourcery.com>
10586
10587 * manual/texinfo.tex: Update to version 2017-12-26.21 with
10588 trailing whitespace removed.
10589 * scripts/config.guess: Update to version 2018-01-01.
10590 * scripts/config.sub: Update to version 2018-01-01.
10591 * scripts/move-if-change: Update from gnulib.
10592
10593 * NEWS: Update copyright dates.
10594 * catgets/gencat.c (print_version): Likewise.
10595 * csu/version.c (banner): Likewise.
10596 * debug/catchsegv.sh: Likewise.
10597 * debug/pcprofiledump.c (print_version): Likewise.
10598 * debug/xtrace.sh (do_version): Likewise.
10599 * elf/ldconfig.c (print_version): Likewise.
10600 * elf/ldd.bash.in: Likewise.
10601 * elf/pldd.c (print_version): Likewise.
10602 * elf/sotruss.sh: Likewise.
10603 * elf/sprof.c (print_version): Likewise.
10604 * iconv/iconv_prog.c (print_version): Likewise.
10605 * iconv/iconvconfig.c (print_version): Likewise.
10606 * locale/programs/locale.c (print_version): Likewise.
10607 * locale/programs/localedef.c (print_version): Likewise.
10608 * login/programs/pt_chown.c (print_version): Likewise.
10609 * malloc/memusage.sh (do_version): Likewise.
10610 * malloc/memusagestat.c (print_version): Likewise.
10611 * malloc/mtrace.pl: Likewise.
10612 * manual/libc.texinfo: Likewise.
10613 * nptl/version.c (banner): Likewise.
10614 * nscd/nscd.c (print_version): Likewise.
10615 * nss/getent.c (print_version): Likewise.
10616 * nss/makedb.c (print_version): Likewise.
10617 * posix/getconf.c (main): Likewise.
10618 * scripts/test-installation.pl: Likewise.
10619 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
10620
10621 * All files with FSF copyright notices: Update copyright dates
10622 using scripts/update-copyrights.
10623 * locale/programs/charmap-kw.h: Regenerated.
10624 * locale/programs/locfile-kw.h: Likewise.
10625
10626 2017-12-31 Zack Weinberg <zackw@panix.com>
10627
10628 * libio/bits/libio-ldbl.h: Correct check for improper
10629 inclusion. Add own multiple include guard.
10630
10631 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
10632 Dmitry V. Levin <ldv@altlinux.org>
10633
10634 [BZ #22625]
10635 CVE-2017-16997
10636 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
10637 string token expansion. Check for NULL pointer or empty string possibly
10638 returned by expand_dynamic_string_token.
10639 (decompose_rpath): Check for empty path after dynamic string
10640 token expansion.
10641
10642 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
10643
10644 [BZ #22433]
10645 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
10646
10647 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
10648 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
10649 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
10650 and PTRACE_SYSCALL.
10651 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
10652 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10653 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10654 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10655 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10656 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
10657
10658 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
10659 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
10660 __ptrace_peeksiginfo_flags, ptrace): Move to ...
10661 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
10662 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10663 bits/ptrace-shared.h.
10664 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
10665 <bits/ptrace-shared.h>.
10666 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
10667 __ptrace_peeksiginfo_flags, ptrace): Remove.
10668 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
10669 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10670 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10671 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10672 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
10673
10674 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
10675
10676 [BZ #17804]
10677 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
10678 end of the loop. Improve comments.
10679
10680 2017-12-29 Zack Weinberg <zackw@panix.com>
10681
10682 [BZ #22615]
10683 * manual/errno.texi (Checking for Errors): Explicitly say that errno
10684 might be set on success.
10685
10686 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
10687
10688 [BZ #22611]
10689 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
10690 is unchanged on success.
10691
10692 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
10693
10694 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
10695 updated.
10696 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
10697 expand_dynamic_string_token): Likewise.
10698 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
10699 is_path argument.
10700
10701 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
10702 contains ':'.
10703
10704 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
10705 is set and name contains ':', and all code depending on these checks.
10706
10707 2017-12-24 Zack Weinberg <zackw@panix.com>
10708
10709 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
10710 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
10711 respectively.
10712 * libio/libio.h: Rename the original version of this file to
10713 libio/bits/libio.h. Error out if not included by stdio.h or the
10714 stub libio.h.
10715 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
10716 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
10717 if not included by bits/libio.h or the stub _G_config.h.
10718 * sysdeps/unix/sysv/linux/_G_config.h: Move to
10719 sysdeps/unix/sysv/linux/bits. Error out if not included by
10720 bits/libio.h or the stub _G_config.h.
10721 * libio/stdio.h: Include bits/libio.h, not libio.h.
10722 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
10723 well as libio.h and _G_config.h.
10724
10725 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
10726 * libio/strfile.h, stdio-common/vfscanf.c
10727 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
10728 Include stdio.h, not _G_config.h nor libio.h.
10729 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
10730 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
10731
10732 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
10733
10734 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10735
10736 [BZ #22347]
10737 * stdlib/getrandom.c (getrandom): Fix comment.
10738 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
10739
10740 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
10741
10742 [BZ #21161]
10743 * manual/arith.texi (strtoul): Fix a typo.
10744
10745 [BZ #22596]
10746 * manual/arith.texi (finite): Fix the description of the return
10747 value.
10748
10749 2017-12-22 Eric Blake <ebb9@byu.net>
10750
10751 Avoid gcc warnings on cygwin
10752 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
10753 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
10754 Avoid unused variable.
10755
10756 2017-12-22 Florian Weimer <fweimer@redhat.com>
10757
10758 * io/Makefile (routines): Add copy_file_range.
10759 (tests): Add tst-copy_file_range.
10760 (tests-static, tests-internal): Add tst-copy_file_range-compat.
10761 * io/Versions (GLIBC_2.27): Export copy_file_range.
10762 * io/copy_file_range-compat.c: New file.
10763 * io/copy_file_range.c: Likewise.
10764 * io/tst-copy_file_range-compat.c: Likewise.
10765 * io/tst-copy_file_range.c: Likewise.
10766 * manual/llio.texi (Copying File Data): New section.
10767 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
10768 * support/Makefile (libsupport-routines): Add support-xfstat,
10769 xftruncate, xlseek.
10770 * support/support-xfstat.c: New file.
10771 * support/xftruncate.c: Likewise.
10772 * support/xlseek.c: Likewise.
10773 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
10774 * sysdeps/unix/sysv/linux/**.abilist: Update.
10775 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
10776
10777 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10778
10779 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
10780 disable-multi-arch variant to aarch64-linux-gnu.
10781
10782 2017-12-20 Joseph Myers <joseph@codesourcery.com>
10783
10784 * manual/texinfo.tex: Update to version 2017-12-18.20 with
10785 trailing whitespace removed.
10786 * scripts/config.guess: Update to version 2017-12-17.
10787 * scripts/config.sub: Update to version 2017-11-23.
10788 * scripts/install-sh: Update to version 2017-09-23.17.
10789 * scripts/move-if-change: Update to version 2017-09-13 06:45.
10790
10791 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10792
10793 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
10794 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
10795 * sysdeps/tile/_mcount.S (__mcount): Likewise.
10796 * sysdeps/tile/crti.S (_init, _fini): Likewise.
10797 * sysdeps/tile/crtn.S: Likewise.
10798 * sysdeps/tile/dl-start.S (_start): Likewise.
10799 * sysdeps/tile/dl-trampoline.S: Likewise.
10800 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
10801 * sysdeps/tile/start.S (_start): Likewise.
10802 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
10803 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
10804 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
10805 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
10806 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
10807 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
10808 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
10809
10810 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
10811 comment.
10812 * sysdeps/tile/preconfigure: Remove tilegx folder.
10813 * sysdeps/tile/tilegx/Implies: Move definitions to ...
10814 * sysdeps/tile/Implies: ... here.
10815 * sysdeps/tile/tilegx/Makefile: Move rules to ...
10816 * sysdeps/tile/Makefile: ... here.
10817 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
10818 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
10819 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
10820 * sysdeps/tile/bits/wordsize.h: ... here.
10821 * sysdeps/tile/tilegx/*: Move to ...
10822 * sysdeps/tile/*: ... here.
10823 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
10824 * sysdeps/tile/tilegx32/Implies: ... here.
10825 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
10826 * sysdeps/tile/tilegx64/Implies: ... here.
10827 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
10828 to ...
10829 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
10830 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
10831 * sysdeps/unix/sysv/linux/tile/*: ... here.
10832 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
10833 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
10834 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
10835 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
10836
10837 * README: Remove tilepro-*-linux-gnu from supported architecture.
10838 * scripts/build-many-glibcs.py: Likewise.
10839 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
10840 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
10841 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
10842 elf_machine_matches_host, elf_machine_dynamic,
10843 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
10844 howto, elf_machine_rela): Likewise.
10845 * sysdeps/tile/dl-start.S (_start): Likewise.
10846 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
10847 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
10848 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
10849 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
10850 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
10851 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
10852 Likewise.
10853 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
10854 * sysdeps/tile/preconfigure: Likewise.
10855 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
10856 POINTER_CHK_GUARD): Likewise.
10857 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
10858 * sysdeps/tile/start.S (_start): Likewise.
10859 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
10860 Likewise.
10861 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
10862 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
10863 CMOVNEZ): Remove.
10864 * sysdeps/unix/sysv/linux/tile/bits/environments.h
10865 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
10866 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
10867 Likewise.
10868 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
10869 * sysdeps/tile/tilepro/Implies: Remove file.
10870 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
10871 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
10872 * sysdeps/tile/tilepro/memchr.c: Likewise.
10873 * sysdeps/tile/tilepro/memcpy.S: Likewise.
10874 * sysdeps/tile/tilepro/memset.c: Likewise.
10875 * sysdeps/tile/tilepro/memusage.h: Likewise.
10876 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
10877 * sysdeps/tile/tilepro/strchr.c: Likewise.
10878 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
10879 * sysdeps/tile/tilepro/strlen.c: Likewise.
10880 * sysdeps/tile/tilepro/strrchr.c: Likewise.
10881 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
10882 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
10883 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
10884 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
10885 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
10886 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
10887 Likewise.
10888 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
10889 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
10890 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
10891 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
10892 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10893 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
10894 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
10895 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
10896 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
10897 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
10898 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
10899 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
10900 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
10901 tilepro mention in comment.
10902
10903 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
10904 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
10905 * nptl/pthread_join_common.c: New file: common function used on
10906 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
10907 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
10908 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
10909 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
10910 (cleanup): Move definition to pthread_join_common.c.
10911 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
10912 Remove superflous checks.
10913 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
10914 Likewise.
10915
10916 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
10917
10918 * sysdeps/aarch64/libm-test-ulps: Update.
10919
10920 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10921
10922 * sysdeps/aarch64/memset.S (MEMSET): Define.
10923
10924 2017-12-20 Florian Weimer <fweimer@redhat.com>
10925
10926 [BZ #22635]
10927 nptl: Provide full implementation of pthread_self in libc.so.
10928 * nptl/Makefile (routines): Add pthread_self.
10929 (libpthread-routines): Replace pthread_self with
10930 compat-pthread_self.
10931 * nptl/forward.c (pthread_self): Remove.
10932 * nptl/nptl-init.c (pthread_functions): Do not initialize
10933 ptr_pthread_self.
10934 * nptl/pthread_self.c (pthread_self): Remove weak alias.
10935 * nptl/compat-pthread_self.c: New file.
10936 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
10937 Remove ptr_pthread_self.
10938
10939 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
10940
10941 * posix/regcomp.c: Fix spelling in comments.
10942 * posix/regex.h: Likewise.
10943 * posix/regex_internal.c: Likewise.
10944 * posix/regexec.c: Likewise.
10945
10946 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10947
10948 [BZ #22377]
10949 * math/Makefile [C++] (tests): Add test for iseqsig.
10950 * math/math.h [C++] (iseqsig): New implementation, which does
10951 not rely on __MATH_TG/__builtin_types_compatible_p.
10952 * math/test-math-iseqsig.cc: New file.
10953 * sysdeps/powerpc/powerpc64le/Makefile
10954 (CFLAGS-test-math-iseqsig.cc): New variable.
10955
10956 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
10957
10958 * elf/dl-load.c (is_trusted_path): Remove.
10959 (fillin_rpath): Remove check_trusted argument and its use,
10960 all callers changed.
10961
10962 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
10963
10964 [BZ #22630]
10965 * Makeconfig (link-pie-before-libc): Replace -pie with
10966 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
10967 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
10968 (tst-dlopen-aout-no-pie): New.
10969 (LDFLAGS-tst-prelink): Removed.
10970 (tst-prelink-no-pie): New.
10971 (LDFLAGS-tst-main1): Removed.
10972 (tst-main1-no-pie): New.
10973 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
10974 (tst-gmon-no-pie): New.
10975
10976 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
10977
10978 * manual/install.texi: Document that --enable-static-pie
10979 implies PIE.
10980 * INSTALL: Regenerated.
10981
10982 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
10983
10984 [BZ #21309]
10985 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
10986 unsigned.
10987
10988 2017-12-19 Joseph Myers <joseph@codesourcery.com>
10989
10990 Revert:
10991
10992 2017-12-19 Joseph Myers <joseph@codesourcery.com>
10993
10994 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10995
10996 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
10997
10998 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
10999 <errno.h>. Include "eexp.tbl".
11000 (half): New constant.
11001 (one): Likewise.
11002 (__ieee754_exp): Rewrite.
11003 (__slowexp): Remove prototype.
11004 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
11005 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
11006 * sysdeps/i386/fpu/slowexp.c: Likewise.
11007 * sysdeps/ia64/fpu/slowexp.c: Likewise.
11008 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
11009 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
11010 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
11011 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11012 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
11013 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
11014 comment.
11015 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
11016 (CPPFLAGS-slowexp.c): Remove variable.
11017 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11018 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
11019 (CFLAGS-slowexp-fma.c): Remove variable.
11020 (CFLAGS-slowexp-fma4.c): Likewise.
11021 (CFLAGS-slowexp-avx.c): Likewise.
11022 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
11023 define as macro.
11024 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
11025 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
11026 * math/Makefile (type-double-routines): Remove slowexp.
11027 * manual/probes.texi (slowexp_p6): Remove.
11028 (slowexp_p32): Likewise.
11029
11030 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11031
11032 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
11033 arithmetic.
11034
11035 * lib/glob.c (glob): Do not pass NULL to mempcpy.
11036
11037 2017-12-19 Joseph Myers <joseph@codesourcery.com>
11038
11039 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11040
11041 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
11042
11043 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
11044 <errno.h>. Include "eexp.tbl".
11045 (half): New constant.
11046 (one): Likewise.
11047 (__ieee754_exp): Rewrite.
11048 (__slowexp): Remove prototype.
11049 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
11050 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
11051 * sysdeps/i386/fpu/slowexp.c: Likewise.
11052 * sysdeps/ia64/fpu/slowexp.c: Likewise.
11053 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
11054 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
11055 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
11056 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
11057 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
11058 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
11059 comment.
11060 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
11061 (CPPFLAGS-slowexp.c): Remove variable.
11062 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11063 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
11064 (CFLAGS-slowexp-fma.c): Remove variable.
11065 (CFLAGS-slowexp-fma4.c): Likewise.
11066 (CFLAGS-slowexp-avx.c): Likewise.
11067 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
11068 define as macro.
11069 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
11070 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
11071 * math/Makefile (type-double-routines): Remove slowexp.
11072 * manual/probes.texi (slowexp_p6): Remove.
11073 (slowexp_p32): Likewise.
11074
11075 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11076 James Clarke <jrtc27@jrtc27.com>
11077
11078 [BZ #22603]
11079 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
11080 addition.
11081
11082 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11083
11084 [BZ #22605]
11085 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
11086 code.
11087
11088 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
11089
11090 [BZ #22563]
11091 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11092 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
11093 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11094 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
11095 to feature_1.
11096
11097 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
11098
11099 [BZ #22563]
11100 * bits/types/__cancel_jmp_buf_tag.h: New file.
11101 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
11102 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
11103 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
11104 * nptl/Makefile (headers): Add
11105 bits/types/__cancel_jmp_buf_tag.h.
11106 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
11107 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
11108 * sysdeps/nptl/pthread.h: Include
11109 <bits/types/__cancel_jmp_buf_tag.h>.
11110 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
11111 __cancel_jmp_buf.
11112 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
11113
11114 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
11115
11116 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
11117 --enable-static-pie variants to x86_64, x32 and i686.
11118
11119 2017-12-19 Joseph Myers <joseph@codesourcery.com>
11120
11121 [BZ #22631]
11122 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
11123 argument for attrubutes. All callers changed.
11124 (__inline_mathop1): Likewise. All callers changed.
11125 (__inline_mathop): Likewise. All callers changed.
11126 [__USE_MISC] (scalbn): Use __inline_forward instead of
11127 __inline_forward_c.
11128 [__USE_ISOC99] (scalbln): Likewise.
11129 [__USE_ISOC99] (nearbyint): Likewise.
11130 [__USE_ISOC99] (lrint): Likewise.
11131 [__USE_MISC] (scalbnf): Likewise.
11132 [__USE_ISOC99] (scalblnf): Likewise.
11133 [__USE_ISOC99] (nearbyintf): Likewise.
11134 [__USE_ISOC99] (lrintf): Likewise.
11135 [__USE_MISC] (scalbnl): Likewise.
11136 [__USE_ISOC99] (scalblnl): Likewise.
11137 [__USE_ISOC99] (nearbyintl): Likewise.
11138 [__USE_ISOC99] (lrintl): Likewise.
11139 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
11140 __inline_mathop and __m81_defun changed.
11141
11142 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
11143 CPU or FPU for ARM hard-float configurations.
11144
11145 2017-12-18 Joseph Myers <joseph@codesourcery.com>
11146
11147 * nptl/tst-attr3.c: Include <libc-diag.h>.
11148 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
11149
11150 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
11151
11152 * string/tester.c (test_strncat): Also disable -Warray-bounds
11153 warnings for two tests.
11154
11155 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
11156
11157 [BZ #22614]
11158 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
11159 $(cc-pie-default) == yes.
11160 * config.make.in (cc-pie-default): New.
11161 * configure.ac (libc_cv_pie_default): Renamed to ...
11162 (libc_cv_cc_pie_default): This.
11163 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
11164 * configure: Regenerated.
11165
11166 2017-12-18 Florian Weimer <fweimer@redhat.com>
11167
11168 [BZ #20204]
11169 ld.so: Harden dl-libc/libdl hooks.
11170 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
11171 (rtld_active): New function.
11172 * dlfcn/dladdr.c (__dladdr): Call it.
11173 * dlfcn/dladdr1.c (__dladdr1): Likewise.
11174 * dlfcn/dlclose.c (__dlcose): Likewise.
11175 * dlfcn/dlerror.c (__dlerror): Likewise.
11176 * dlfcn/dlinfo.c (__dlinfo): Likewise.
11177 * dlfcn/dlmopen.c (__dlmopen): Likewise.
11178 * dlfcn/dlopen.c (__dlopen): Likewise.
11179 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
11180 * dlfcn/dlsym.c (__dlsym): Likewise.
11181 * dlfcn/dlvsym.c (__dlvsym): Likewise.
11182 * libio/vtables.c (_IO_vtable_check): Likewise.
11183 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
11184 (__libc_dlclose): Likewise.
11185 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
11186 assignment.
11187
11188 2017-12-18 Joseph Myers <joseph@codesourcery.com>
11189
11190 [BZ #22446]
11191 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
11192 buffers for readlink input and output.
11193
11194 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
11195
11196 [BZ #22624]
11197 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
11198 inhibit_stack_protector.
11199
11200 [BZ #22624]
11201 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
11202 inhibit_stack_protector.
11203
11204 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
11205
11206 [BZ #22627]
11207 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
11208 code and invocation.
11209
11210 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
11211
11212 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
11213
11214 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
11215
11216 [BZ #22505]
11217 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
11218
11219 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11220
11221 * sysdeps/s390/fpu/libm-test-ulps: Update.
11222
11223 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11224
11225 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11226
11227 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11228
11229 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
11230 constants to s_sincosf.h file.
11231 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11232 * sysdeps/ieee754/flt-32/s_sincosf.c: New
11233 implementation.
11234 * sysdeps/ieee754/flt-32/s_sincosf.h:
11235 New file.
11236
11237 2017-12-12 Carlos O'Donell <carlos@redhat.com>
11238
11239 [BZ #14681]
11240 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
11241 before mtrace.
11242
11243 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
11244
11245 [BZ #19574]
11246 * INSTALL: Regenerated.
11247 * Makeconfig (real-static-start-installed-name): New.
11248 (pic-default): Updated for --enable-static-pie.
11249 (pie-default): New for --enable-static-pie.
11250 (default-pie-ldflag): Likewise.
11251 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
11252 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
11253 Replace $(static-start-installed-name) with
11254 $(real-static-start-installed-name).
11255 (+prectorT): Updated for --enable-static-pie.
11256 (+postctorT): Likewise.
11257 (CFLAGS-.o): Add $(pie-default).
11258 (CFLAGS-.op): Likewise.
11259 * NEWS: Mention --enable-static-pie.
11260 * config.h.in (ENABLE_STATIC_PIE): New.
11261 * configure.ac (--enable-static-pie): New configure option.
11262 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
11263 (have-static-pie): Likewise.
11264 Enable static PIE if linker supports --no-dynamic-linker.
11265 (ENABLE_STATIC_PIE): New AC_DEFINE.
11266 (enable-static-pie): New LIBC_CONFIG_VAR.
11267 * configure: Regenerated.
11268 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
11269 gr$(start-installed-name) for --enable-static-pie.
11270 (extra-objs): Likewise.
11271 (install-lib): Likewise.
11272 (extra-objs): Add static-reloc.o and static-reloc.os
11273 ($(objpfx)$(start-installed-name)): Also depend on
11274 $(objpfx)static-reloc.o.
11275 ($(objpfx)r$(start-installed-name)): New.
11276 ($(objpfx)g$(start-installed-name)): Also depend on
11277 $(objpfx)static-reloc.os.
11278 ($(objpfx)gr$(start-installed-name)): New.
11279 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
11280 in libc.a.
11281 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
11282 initimage.
11283 * csu/static-reloc.c: New file.
11284 * elf/Makefile (routines): Add dl-reloc-static-pie.
11285 (elide-routines.os): Likewise.
11286 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
11287 (tst-tls1-static-non-pie-no-pie): New.
11288 * elf/dl-reloc-static-pie.c: New file.
11289 * elf/dl-support.c (_dl_get_dl_main_map): New function.
11290 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
11291 STATIC_PIE_BOOTSTRAP.
11292 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
11293 * gmon/Makefile (tests): Add tst-gmon-static-pie.
11294 (tests-static): Likewise.
11295 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
11296 (tst-gmon-static-no-pie): New.
11297 (CFLAGS-tst-gmon-static-pie.c): Likewise.
11298 (CRT-tst-gmon-static-pie): Likewise.
11299 (tst-gmon-static-pie-ENV): Likewise.
11300 (tests-special): Likewise.
11301 ($(objpfx)tst-gmon-static-pie.out): Likewise.
11302 (clean-tst-gmon-static-pie-data): Likewise.
11303 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
11304 * gmon/tst-gmon-static-pie.c: New file.
11305 * manual/install.texi: Document --enable-static-pie.
11306 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
11307 (_dl_get_dl_main_map): Likewise.
11308 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
11309 * sysdeps/x86_64/configure.ac: Likewise.
11310 * sysdeps/i386/configure: Regenerated.
11311 * sysdeps/x86_64/configure: Likewise.
11312 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
11313 (ASFLAGS-.op): Likewise.
11314
11315 2017-12-15 Joseph Myers <joseph@codesourcery.com>
11316
11317 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
11318 * posix/tst-mmap-offset.c (fname): Use /tmp.
11319 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
11320
11321 2017-12-15 Steve Ellcey <sellcey@cavium.com>
11322
11323 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
11324
11325 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
11326
11327 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
11328 errno.
11329
11330 2017-12-15 Joseph Myers <joseph@codesourcery.com>
11331
11332 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
11333 --with-float=hard for arm-linux-gnueabihf configurations.
11334
11335 [BZ #14121]
11336 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
11337 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
11338 ($(mo-installed)): Use $(objpfx)%.mo.
11339 (realclean): Remove rule.
11340
11341 * po/Makefile (linguas): Remove rule and dependencies.
11342 (linguas.mo): Likewise.
11343 (.PHONY): Do not depend on linguas and linguas.mo.
11344 (podir): Remove variable.
11345 (pofiles): Likewise.
11346 [$(pofiles)] (%.po): Remove rule.
11347
11348 * sysdeps/sparc/sparc32/Makefile
11349 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
11350 start-of-line whitespace in argument of echo.
11351 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
11352 with whitespace. Generate __wrap_.udiv alias.
11353 * sysdeps/sparc/sparc32/rem.S: Regenerated.
11354 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
11355 * sysdeps/sparc/sparc32/udiv.S: Likewise.
11356 * sysdeps/sparc/sparc32/urem.S: Likewise.
11357
11358 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11359
11360 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
11361 for aligned inputs.
11362
11363 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
11364
11365 * benchtests/bench-strcmp.c: Print output in JSON format.
11366
11367 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
11368
11369 2017-12-14 Florian Weimer <fweimer@redhat.com>
11370
11371 [BZ #22607]
11372 CVE-2017-1000409
11373 * elf/dl-load.c (_dl_init_paths): Compute number of components in
11374 the expanded path string.
11375
11376 2017-12-14 Florian Weimer <fweimer@redhat.com>
11377
11378 [BZ #22606]
11379 CVE-2017-1000408
11380 * elf/dl-load.c (system_dirs): Update comment.
11381 (nsystem_dirs_len): Use array_length.
11382 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
11383
11384 2017-12-14 Florian Weimer <fweimer@redhat.com>
11385
11386 Simplify compiling most of support/ outside of glibc.
11387 * support/check_addrinfo.c: Include <string.h>.
11388 * support/check_dns_packet.c: Likewise.
11389 * support/check_hostent.c: Likewise.
11390 * support/support_can_chroot.c: Include <support/xunistd.h>.
11391 * support/support_format_addrinfo.c: Include <stdlib.h>
11392 * support/support_format_dns_packet.c: Include <stdbool.h>.
11393 * support/support_format_hostent.c: Include <stdlib.h>.
11394 * support/support_format_netent.c: Likewise.
11395 * support/support_write_string.c: Include <support/xunistd.h>.
11396 * support/xdlfcn.c: Include <stddef.h>.
11397
11398 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
11399
11400 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
11401
11402 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
11403 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11404
11405 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
11406 (sysdeps_routines): Add memset-niagara7.
11407 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
11408 Likewise.
11409 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
11410 file.
11411 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
11412 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
11413 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
11414 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
11415 Add niagara7 option.
11416 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
11417 memset.
11418
11419 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
11420 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
11421 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
11422 Likewise.
11423 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
11424 New file.
11425 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
11426 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
11427 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
11428 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
11429 and __memmove_niagara7.
11430 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
11431 Add niagara7 option.
11432 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
11433 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
11434 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
11435 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
11436 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
11437
11438 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11439
11440 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
11441 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
11442 * sysdeps/sparc/sparc64/memmove.S: Likewise.
11443 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
11444
11445 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
11446 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
11447 _dl_sparc_cap_flags array.
11448 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
11449
11450 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
11451
11452 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
11453 time whenever possible.
11454
11455 2017-12-12 Carlos O'Donell <carlos@redhat.com>
11456
11457 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
11458 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
11459
11460 2017-12-12 Joseph Myers <joseph@codesourcery.com>
11461
11462 * soft-fp/fmadf4.c: Move to ....
11463 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
11464 * soft-fp/fmasf4.c: Move to ....
11465 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
11466 * soft-fp/fmatf4.c: Move to ....
11467 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
11468 * sysdeps/ieee754/soft-fp/Makefile: New file.
11469 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
11470 * sysdeps/arm/preconfigure: Regenerated.
11471 * sysdeps/arm/nofpu/Implies: New file.
11472 * sysdeps/arm/s_fma.c: Remove file.
11473 * sysdeps/arm/s_fmaf.c: Likewise.
11474 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
11475 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
11476 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11477 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
11478 * sysdeps/microblaze/s_fma.c: Remove file.
11479 * sysdeps/microblaze/s_fmaf.c: Likewise.
11480 * sysdeps/mips/mips32/nofpu/Implies: New file.
11481 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
11482 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
11483 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
11484 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
11485 * sysdeps/mips/ieee754/s_fma.c: Remove file.
11486 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
11487 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
11488 implementation.
11489 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
11490 * sysdeps/nios2/s_fma.c: Remove file.
11491 * sysdeps/nios2/s_fmaf.c: Likewise.
11492 * sysdeps/sh/nofpu/Implies: New file.
11493 * sysdeps/sh/s_fma.c: Remove file.
11494 * sysdeps/sh/s_fmaf.c: Likewise.
11495 * sysdeps/tile/Implies: Add ieee754/soft-fp.
11496 * sysdeps/tile/s_fma.c: Remove file.
11497 * sysdeps/tile/s_fmaf.c: Likewise.
11498
11499 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
11500
11501 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11502 Add s_cosf-sse2 and s_cosf-fma.
11503 (CFLAGS-s_cosf-fma.c): New.
11504 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
11505 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
11506 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
11507
11508 2017-12-12 Steve Ellcey <sellcey@cavium.com>
11509
11510 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
11511
11512 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11513
11514 * libio/Makefile (tests): Add tst-bz22415.
11515 (tst-bz22415-ENV): New rule.
11516 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
11517 (tests-special): Add tst-bz22415-mem.out.
11518 ($(objpfx)tst-bz22415-mem.out): New rule.
11519 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
11520 in case of a successful seek operation.
11521 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
11522 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
11523 buffer is required.
11524 * libio/tst-bz22415.c: New test.
11525
11526 * sysdeps/ia64/fpu/libm-test-ulps: Update.
11527
11528 2017-12-12 James Clarke <jrtc27@jrtc27.com>
11529
11530 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
11531 __IPC_64 to 0 to avoid IPC_64 being set.
11532
11533 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
11534
11535 [BZ #22593]
11536 * math/bits/mathcalls.h (nextafter): Remove const.
11537 (nexttoward): Likewise.
11538
11539 2017-12-12 Joseph Myers <joseph@codesourcery.com>
11540
11541 * configure.ac (--with-fp): Remove configure option.
11542 (with_fp_cond): New variable.
11543 (libc_cv_with_fp): New configure test. Use this variable instead
11544 of with_fp.
11545 * configure: Regenerated.
11546 * config.make.in (with-fp): Use @libc_cv_with_fp@.
11547 * manual/install.texi (Configuring and compiling): Remove
11548 --without-fp.
11549 * INSTALL: Regenerated.
11550 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
11551 * sysdeps/mips/preconfigure (with_fp_cond): Define.
11552 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
11553 * sysdeps/sh/preconfigure (with_fp_cond): Define.
11554 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
11555 use --without-fp to configure glibc.
11556
11557 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
11558
11559 * manual/locale.texi (nl_langinfo): Fix a typo.
11560
11561 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
11562
11563 [BZ #22588]
11564 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
11565
11566 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
11567
11568 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
11569 (CFLAGS-argp-parse.c): Likewise.
11570 (CFLAGS-argp-fmtstream.c): Likewise.
11571 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
11572 (CPPFLAGS-sha512-crypt.c): Likewise.
11573 (CPPFLAGS-md5-crypt.c): Likewise.
11574 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
11575 (CFLAGS-stack_chk_fail_local.c): Likewise.
11576 (CFLAGS-backtrace.c): Likewise.
11577 (CFLAGS-sprintf_chk.c): Likewise.
11578 (CFLAGS-snprintf_chk.c): Likewise.
11579 (CFLAGS-vsprintf_chk.c): Likewise.
11580 (CFLAGS-vsnprintf_chk.c): Likewise.
11581 (CFLAGS-asprintf_chk.c): Likewise.
11582 (CFLAGS-vasprintf_chk.c): Likewise.
11583 (CFLAGS-obprintf_chk.c): Likewise.
11584 (CFLAGS-dprintf_chk.c): Likewise.
11585 (CFLAGS-vdprintf_chk.c): Likewise.
11586 (CFLAGS-printf_chk.c): Likewise.
11587 (CFLAGS-fprintf_chk.c): Likewise.
11588 (CFLAGS-vprintf_chk.c): Likewise.
11589 (CFLAGS-vfprintf_chk.c): Likewise.
11590 (CFLAGS-gets_chk.c): Likewise.
11591 (CFLAGS-fgets_chk.c): Likewise.
11592 (CFLAGS-fgets_u_chk.c): Likewise.
11593 (CFLAGS-fread_chk.c): Likewise.
11594 (CFLAGS-fread_u_chk.c): Likewise.
11595 (CFLAGS-swprintf_chk.c): Likewise.
11596 (CFLAGS-vswprintf_chk.c): Likewise.
11597 (CFLAGS-wprintf_chk.c): Likewise.
11598 (CFLAGS-fwprintf_chk.c): Likewise.
11599 (CFLAGS-vwprintf_chk.c): Likewise.
11600 (CFLAGS-vfwprintf_chk.c): Likewise.
11601 (CFLAGS-fgetws_chk.c): Likewise.
11602 (CFLAGS-fgetws_u_chk.c): Likewise.
11603 (CFLAGS-read_chk.c): Likewise.
11604 (CFLAGS-pread_chk.c): Likewise.
11605 (CFLAGS-pread64_chk.c): Likewise.
11606 (CFLAGS-recv_chk.c): Likewise.
11607 (CFLAGS-recvfrom_chk.c): Likewise.
11608 (CFLAGS-tst-longjmp_chk.c): Likewise.
11609 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
11610 (CFLAGS-tst-longjmp_chk2.c): Likewise.
11611 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
11612 (CFLAGS-tst-longjmp_chk3.c): Likewise.
11613 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
11614 (CFLAGS-tst-chk1.c): Likewise.
11615 (CFLAGS-tst-chk2.c): Likewise.
11616 (CFLAGS-tst-chk3.c): Likewise.
11617 (CFLAGS-tst-chk4.cc): Likewise.
11618 (CFLAGS-tst-chk5.cc): Likewise.
11619 (CFLAGS-tst-chk6.cc): Likewise.
11620 (CFLAGS-tst-lfschk1.c): Likewise.
11621 (CFLAGS-tst-lfschk2.c): Likewise.
11622 (CFLAGS-tst-lfschk3.c): Likewise.
11623 (CFLAGS-tst-lfschk4.cc): Likewise.
11624 (CFLAGS-tst-lfschk5.cc): Likewise.
11625 (CFLAGS-tst-lfschk6.cc): Likewise.
11626 (CFLAGS-tst-ssp-1.c): Likewise.
11627 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
11628 (CFLAGS-scandir64.c): Likewise.
11629 (CFLAGS-scandir-tail.c): Likewise.
11630 (CFLAGS-scandir64-tail.c): Likewise.
11631 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
11632 (CFLAGS-dl-tunables.c): Likewise.
11633 (CFLAGS-dl-runtime.c): Likewise.
11634 (CFLAGS-dl-lookup.c): Likewise.
11635 (CFLAGS-dl-iterate-phdr.c): Likewise.
11636 (CFLAGS-vismain.c): Likewise.
11637 (CFLAGS-tst-linkall-static.c): Likewise.
11638 (CFLAGS-tst-linkall-static.c): Likewise.
11639 (CPPFLAGS-dl-load.c): Likewise.
11640 (CFLAGS-ldconfig.c): Likewise.
11641 (CFLAGS-dl-cache.c): Likewise.
11642 (CFLAGS-cache.c): Likewise.
11643 (CFLAGS-rtld.c): Likewise.
11644 (CFLAGS-multiload.c): Likewise.
11645 (CFLAGS-filtmod1.c): Likewise.
11646 (CFLAGS-tst-align.c): Likewise.
11647 (CFLAGS-tst-align2.c): Likewise.
11648 (CFLAGS-tst-alignmod.c): Likewise.
11649 (CFLAGS-tst-alignmod2.c): Likewise.
11650 (CPPFLAGS-tst-execstack.c): Likewise.
11651 (CFLAGS-tst-ptrguard1-static.c): Likewise.
11652 (CFLAGS-tst-latepthreadmod.c): Likewise.
11653 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
11654 (CFLAGS-getgrnam_r.c): Likewise.
11655 (CFLAGS-getgrent_r.c): Likewise.
11656 (CFLAGS-getgrent.c): Likewise.
11657 (CFLAGS-fgetgrent.c): Likewise.
11658 (CFLAGS-fgetgrent_r.c): Likewise.
11659 (CFLAGS-putgrent.c): Likewise.
11660 (CFLAGS-initgroups.c): Likewise.
11661 (CFLAGS-getgrgid.c): Likewise.
11662 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
11663 (CFLAGS-getsgent.c): Likewise.
11664 (CFLAGS-fgetsgent.c): Likewise.
11665 (CFLAGS-fgetsgent_r.c): Likewise.
11666 (CFLAGS-putsgent.c): Likewise.
11667 (CFLAGS-getsgnam.c): Likewise.
11668 (CFLAGS-getsgnam_r.c): Likewise.
11669 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
11670 (CFLAGS-iconv_charmap.c): Likewise.
11671 (CFLAGS-dummy-repertoire.c): Likewise.
11672 (CFLAGS-charmap.c): Likewise.
11673 (CFLAGS-linereader.c): Likewise.
11674 (CFLAGS-simple-hash.c): Likewise.
11675 (CFLAGS-gconv_conf.c): Likewise.
11676 (CFLAGS-iconvconfig.c): Likewise.
11677 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
11678 (CFLAGS-gethstbyad.c): Likewise.
11679 (CFLAGS-gethstbynm_r.c): Likewise.
11680 (CFLAGS-gethstbynm.c): Likewise.
11681 (CFLAGS-gethstbynm2_r.c): Likewise.
11682 (CFLAGS-gethstbynm2.c): Likewise.
11683 (CFLAGS-gethstent_r.c): Likewise.
11684 (CFLAGS-gethstent.c): Likewise.
11685 (CFLAGS-rcmd.c): Likewise.
11686 (CFLAGS-getnetbynm_r.c): Likewise.
11687 (CFLAGS-getnetbynm.c): Likewise.
11688 (CFLAGS-getnetbyad_r.c): Likewise.
11689 (CFLAGS-getnetbyad.c): Likewise.
11690 (CFLAGS-getnetent_r.c): Likewise.
11691 (CFLAGS-getnetent.c): Likewise.
11692 (CFLAGS-getaliasent_r.c): Likewise.
11693 (CFLAGS-getaliasent.c): Likewise.
11694 (CFLAGS-getrpcent_r.c): Likewise.
11695 (CFLAGS-getrpcent.c): Likewise.
11696 (CFLAGS-getservent_r.c): Likewise.
11697 (CFLAGS-getservent.c): Likewise.
11698 (CFLAGS-getprtent_r.c): Likewise.
11699 (CFLAGS-getprtent.c): Likewise.
11700 (CFLAGS-either_ntoh.c): Likewise.
11701 (CFLAGS-either_hton.c): Likewise.
11702 (CFLAGS-getnetgrent.c): Likewise.
11703 (CFLAGS-getnetgrent_r.c): Likewise.
11704 (CFLAGS-tst-checks-posix.c): Likewise.
11705 (CFLAGS-tst-sockaddr.c): Likewise.
11706 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
11707 (CFLAGS-tst-translit.c): Likewise.
11708 (CFLAGS-tst-gettext2.c): Likewise.
11709 (CFLAGS-tst-codeset.c): Likewise.
11710 (CFLAGS-tst-gettext3.c): Likewise.
11711 (CFLAGS-tst-gettext4.c): Likewise.
11712 (CFLAGS-tst-gettext5.c): Likewise.
11713 (CFLAGS-tst-gettext6.c): Likewise.
11714 * io/Makefile (CFLAGS-open.c): Likewise.
11715 (CFLAGS-open64.c): Likewise.
11716 (CFLAGS-creat.c): Likewise.
11717 (CFLAGS-creat64.c): Likewise.
11718 (CFLAGS-fcntl.c): Likewise.
11719 (CFLAGS-poll.c): Likewise.
11720 (CFLAGS-ppoll.c): Likewise.
11721 (CFLAGS-lockf.c): Likewise.
11722 (CFLAGS-statfs.c): Likewise.
11723 (CFLAGS-fstatfs.c): Likewise.
11724 (CFLAGS-statvfs.c): Likewise.
11725 (CFLAGS-fstatvfs.c): Likewise.
11726 (CFLAGS-fts.c): Likewise.
11727 (CFLAGS-fts64.c): Likewise.
11728 (CFLAGS-ftw.c): Likewise.
11729 (CFLAGS-ftw64.c): Likewise.
11730 (CFLAGS-lockf.c): Likewise.
11731 (CFLAGS-posix_fallocate.c): Likewise.
11732 (CFLAGS-posix_fallocate64.c): Likewise.
11733 (CFLAGS-fallocate.c): Likewise.
11734 (CFLAGS-fallocate64.c): Likewise.
11735 (CFLAGS-read.c): Likewise.
11736 (CFLAGS-write.c): Likewise.
11737 (CFLAGS-test-stat.c): Likewise.
11738 (CFLAGS-test-lfs.c): Likewise.
11739 * libio/Makefile (CFLAGS-fileops.c): Likewise.
11740 (CFLAGS-fputc.c): Likewise.
11741 (CFLAGS-fputwc.c): Likewise.
11742 (CFLAGS-freopen64.c): Likewise.
11743 (CFLAGS-freopen.c): Likewise.
11744 (CFLAGS-fseek.c): Likewise.
11745 (CFLAGS-fseeko64.c): Likewise.
11746 (CFLAGS-fseeko.c): Likewise.
11747 (CFLAGS-ftello64.c): Likewise.
11748 (CFLAGS-ftello.c): Likewise.
11749 (CFLAGS-fwide.c): Likewise.
11750 (CFLAGS-genops.c): Likewise.
11751 (CFLAGS-getc.c): Likewise.
11752 (CFLAGS-getchar.c): Likewise.
11753 (CFLAGS-getwc.c): Likewise.
11754 (CFLAGS-getwchar.c): Likewise.
11755 (CFLAGS-iofclose.c): Likewise.
11756 (CFLAGS-iofflush.c): Likewise.
11757 (CFLAGS-iofgetpos64.c): Likewise.
11758 (CFLAGS-iofgetpos.c): Likewise.
11759 (CFLAGS-iofgets.c): Likewise.
11760 (CFLAGS-iofgetws.c): Likewise.
11761 (CFLAGS-iofputs.c): Likewise.
11762 (CFLAGS-iofputws.c): Likewise.
11763 (CFLAGS-iofread.c): Likewise.
11764 (CFLAGS-iofsetpos64.c): Likewise.
11765 (CFLAGS-iofsetpos.c): Likewise.
11766 (CFLAGS-ioftell.c): Likewise.
11767 (CFLAGS-iofwrite.c): Likewise.
11768 (CFLAGS-iogetdelim.c): Likewise.
11769 (CFLAGS-iogetline.c): Likewise.
11770 (CFLAGS-iogets.c): Likewise.
11771 (CFLAGS-iogetwline.c): Likewise.
11772 (CFLAGS-ioputs.c): Likewise.
11773 (CFLAGS-ioseekoff.c): Likewise.
11774 (CFLAGS-ioseekpos.c): Likewise.
11775 (CFLAGS-iosetbuffer.c): Likewise.
11776 (CFLAGS-iosetvbuf.c): Likewise.
11777 (CFLAGS-ioungetc.c): Likewise.
11778 (CFLAGS-ioungetwc.c): Likewise.
11779 (CFLAGS-oldfileops.c): Likewise.
11780 (CFLAGS-oldiofclose.c): Likewise.
11781 (CFLAGS-oldiofgetpos64.c): Likewise.
11782 (CFLAGS-oldiofgetpos.c): Likewise.
11783 (CFLAGS-oldiofsetpos64.c): Likewise.
11784 (CFLAGS-oldiofsetpos.c): Likewise.
11785 (CFLAGS-peekc.c): Likewise.
11786 (CFLAGS-putc.c): Likewise.
11787 (CFLAGS-putchar.c): Likewise.
11788 (CFLAGS-putwc.c): Likewise.
11789 (CFLAGS-putwchar.c): Likewise.
11790 (CFLAGS-rewind.c): Likewise.
11791 (CFLAGS-wfileops.c): Likewise.
11792 (CFLAGS-wgenops.c): Likewise.
11793 (CFLAGS-oldiofopen.c): Likewise.
11794 (CFLAGS-iofopen.c): Likewise.
11795 (CFLAGS-iofopen64.c): Likewise.
11796 (CFLAGS-oldtmpfile.c): Likewise.
11797 (CFLAGS-tst_putwc.c): Likewise.
11798 * locale/Makefile (CFLAGS-md5.c): Likewise.
11799 (CFLAGS-charmap.c): Likewise.
11800 (CFLAGS-locfile.c): Likewise.
11801 (CFLAGS-charmap-dir.c): Likewise.
11802 * login/Makefile (CFLAGS-grantpt.c): Likewise.
11803 (CFLAGS-getpt.c): Likewise.
11804 (CFLAGS-pt_chown.c): Likewise.
11805 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
11806 (CFLAGS-obstack.c): Likewise.
11807 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
11808 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
11809 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
11810 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
11811 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
11812 (CFLAGS-test-tgmath.c): Likewise.
11813 (CFLAGS-test-tgmath2.c): Likewise.
11814 (CFLAGS-test-tgmath-ret.c): Likewise.
11815 (CFLAGS-test-powl.c): Likewise.
11816 (CFLAGS-test-snan.c): Likewise.
11817 (CFLAGS-test-signgam-finite.c): Likewise.
11818 (CFLAGS-test-signgam-finite-c99.c): Likewise.
11819 (CFLAGS-test-signgam-finite-c11.c): Likewise.
11820 (CFLAGS-test-signgam-uchar.c): Likewise.
11821 (CFLAGS-test-signgam-uchar-init.c): Likewise.
11822 (CFLAGS-test-signgam-uchar-static.c): Likewise.
11823 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
11824 (CFLAGS-test-signgam-uint.c): Likewise.
11825 (CFLAGS-test-signgam-uint-init.c): Likewise.
11826 (CFLAGS-test-signgam-uint-static.c): Likewise.
11827 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
11828 (CFLAGS-test-signgam-ullong.c): Likewise.
11829 (CFLAGS-test-signgam-ullong-init.c): Likewise.
11830 (CFLAGS-test-signgam-ullong-static.c): Likewise.
11831 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
11832 (CFLAGS-test-math-cxx11.cc): Likewise.
11833 (CFLAGS-test-math-isinff.cc): Likewise.
11834 (CFLAGS-test-math-iszero.cc): Likewise.
11835 (CFLAGS-test-math-issignaling.cc): Likewise.
11836 (CFLAGS-test-math-iscanonical.cc): Likewise.
11837 (CFLAGS-test-iszero-excess-precision.c): Likewise.
11838 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
11839 (CFLAGS-test-flt-eval-method.c): Likewise.
11840 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
11841 (CFLAGS-test-finite-macros.c): Likewise.
11842 * misc/Makefile (CFLAGS-select.c): Likewise.
11843 (CFLAGS-tsearch.c): Likewise.
11844 (CFLAGS-lsearch.c): Likewise.
11845 (CFLAGS-pselect.c): Likewise.
11846 (CFLAGS-readv.c): Likewise.
11847 (CFLAGS-writev.c): Likewise.
11848 (CFLAGS-preadv.c): Likewise.
11849 (CFLAGS-preadv64.c): Likewise.
11850 (CFLAGS-pwritev.c): Likewise.
11851 (CFLAGS-pwritev64.c): Likewise.
11852 (CFLAGS-preadv2.c): Likewise.
11853 (CFLAGS-preadv64v2.c): Likewise.
11854 (CFLAGS-pwritev2.c): Likewise.
11855 (CFLAGS-pwritev64v2.c): Likewise.
11856 (CFLAGS-usleep.c): Likewise.
11857 (CFLAGS-syslog.c): Likewise.
11858 (CFLAGS-error.c): Likewise.
11859 (CFLAGS-getpass.c): Likewise.
11860 (CFLAGS-mkstemp.c): Likewise.
11861 (CFLAGS-mkstemp64.c): Likewise.
11862 (CFLAGS-getsysstats.c): Likewise.
11863 (CFLAGS-getusershell.c): Likewise.
11864 (CFLAGS-err.c): Likewise.
11865 (CFLAGS-tst-tsearch.c): Likewise.
11866 (CFLAGS-msync.c): Likewise.
11867 (CFLAGS-fdatasync.c): Likewise.
11868 (CFLAGS-fsync.c): Likewise.
11869 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
11870 (CFLAGS-unwind.c): Likewise.
11871 (CFLAGS-unwind-forcedunwind.c): Likewise.
11872 (CFLAGS-pthread_cancel.c): Likewise.
11873 (CFLAGS-pthread_setcancelstate.c): Likewise.
11874 (CFLAGS-pthread_setcanceltype.c): Likewise.
11875 (CFLAGS-cancellation.c): Likewise.
11876 (CFLAGS-libc-cancellation.c): Likewise.
11877 (CFLAGS-pthread_exit.c): Likewise.
11878 (CFLAGS-forward.c): Likewise.
11879 (CFLAGS-pthread_testcancel.c): Likewise.
11880 (CFLAGS-pthread_join.c): Likewise.
11881 (CFLAGS-pthread_timedjoin.c): Likewise.
11882 (CFLAGS-pthread_once.c): Likewise.
11883 (CFLAGS-pthread_cond_wait.c): Likewise.
11884 (CFLAGS-sem_wait.c): Likewise.
11885 (CFLAGS-sem_timedwait.c): Likewise.
11886 (CFLAGS-fcntl.c): Likewise.
11887 (CFLAGS-lockf.c): Likewise.
11888 (CFLAGS-pread.c): Likewise.
11889 (CFLAGS-pread64.c): Likewise.
11890 (CFLAGS-pwrite.c): Likewise.
11891 (CFLAGS-pwrite64.c): Likewise.
11892 (CFLAGS-wait.c): Likewise.
11893 (CFLAGS-waitpid.c): Likewise.
11894 (CFLAGS-sigwait.c): Likewise.
11895 (CFLAGS-msgrcv.c): Likewise.
11896 (CFLAGS-msgsnd.c): Likewise.
11897 (CFLAGS-tcdrain.c): Likewise.
11898 (CFLAGS-open.c): Likewise.
11899 (CFLAGS-open64.c): Likewise.
11900 (CFLAGS-pause.c): Likewise.
11901 (CFLAGS-recv.c): Likewise.
11902 (CFLAGS-send.c): Likewise.
11903 (CFLAGS-accept.c): Likewise.
11904 (CFLAGS-sendto.c): Likewise.
11905 (CFLAGS-connect.c): Likewise.
11906 (CFLAGS-recvfrom.c): Likewise.
11907 (CFLAGS-recvmsg.c): Likewise.
11908 (CFLAGS-sendmsg.c): Likewise.
11909 (CFLAGS-close.c): Likewise.
11910 (CFLAGS-read.c): Likewise.
11911 (CFLAGS-write.c): Likewise.
11912 (CFLAGS-nanosleep.c): Likewise.
11913 (CFLAGS-sigsuspend.c): Likewise.
11914 (CFLAGS-msync.c): Likewise.
11915 (CFLAGS-fdatasync.c): Likewise.
11916 (CFLAGS-fsync.c): Likewise.
11917 (CFLAGS-pt-system.c): Likewise.
11918 (CFLAGS-tst-cleanup2.c): Likewise.
11919 (CFLAGS-tst-cleanupx2.c): Likewise.
11920 (CFLAGS-flockfile.c): Likewise.
11921 (CFLAGS-ftrylockfile.c): Likewise.
11922 (CFLAGS-funlockfile.c): Likewise.
11923 (CFLAGS-tst-initializers1.c): Likewise.
11924 (CFLAGS-tst-initializers1-c89.c): Likewise.
11925 (CFLAGS-tst-initializers1-c99.c): Likewise.
11926 (CFLAGS-tst-initializers1-c11.c): Likewise.
11927 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
11928 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
11929 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
11930 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
11931 (CFLAGS-nscd_getgr_r.c): Likewise.
11932 (CFLAGS-nscd_gethst_r.c): Likewise.
11933 (CFLAGS-nscd_getai.c): Likewise.
11934 (CFLAGS-nscd_initgroups.c): Likewise.
11935 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
11936 (CFLAGS-pause.c): Likewise.
11937 (CFLAGS-pread.c): Likewise.
11938 (CFLAGS-pread64.c): Likewise.
11939 (CFLAGS-pwrite.c): Likewise.
11940 (CFLAGS-pwrite64.c): Likewise.
11941 (CFLAGS-sleep.c): Likewise.
11942 (CFLAGS-wait.c): Likewise.
11943 (CFLAGS-waitid.c): Likewise.
11944 (CFLAGS-waitpid.c): Likewise.
11945 (CFLAGS-getopt.c): Likewise.
11946 (CFLAGS-wordexp.c): Likewise.
11947 (CFLAGS-sysconf.c): Likewise.
11948 (CFLAGS-pathconf.c): Likewise.
11949 (CFLAGS-fpathconf.c): Likewise.
11950 (CFLAGS-spawn.c): Likewise.
11951 (CFLAGS-spawnp.c): Likewise.
11952 (CFLAGS-spawni.c): Likewise.
11953 (CFLAGS-glob.c): Likewise.
11954 (CFLAGS-glob64.c): Likewise.
11955 (CFLAGS-getconf.c): Likewise.
11956 (CFLAGS-nanosleep.c): Likewise.
11957 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
11958 (CFLAGS-getpwent.c): Likewise.
11959 (CFLAGS-getpw.c): Likewise.
11960 (CFLAGS-fgetpwent_r.c): Likewise.
11961 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
11962 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
11963 (CFLAGS-mq_timedreceive.c): Likewise.
11964 (CFLAGS-mq_timedsend.c): Likewise.
11965 (CFLAGS-clock_nanosleep.c): Likewise.
11966 (CFLAGS-librt-cancellation.c): Likewise.
11967 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
11968 (CFLAGS-getspent.c): Likewise.
11969 (CFLAGS-fgetspent.c): Likewise.
11970 (CFLAGS-fgetspent_r.c): Likewise.
11971 (CFLAGS-putspent.c): Likewise.
11972 (CFLAGS-getspnam.c): Likewise.
11973 (CFLAGS-getspnam_r.c): Likewise.
11974 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
11975 (CFLAGS-sigsuspend.c): Likewise.
11976 (CFLAGS-sigtimedwait.c): Likewise.
11977 (CFLAGS-sigwait.c): Likewise.
11978 (CFLAGS-sigwaitinfo.c): Likewise.
11979 (CFLAGS-sigreturn.c): Likewise.
11980 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
11981 (CFLAGS-vfwprintf.c): Likewise.
11982 (CFLAGS-tmpfile.c): Likewise.
11983 (CFLAGS-tmpfile64.c): Likewise.
11984 (CFLAGS-tempname.c): Likewise.
11985 (CFLAGS-psignal.c): Likewise.
11986 (CFLAGS-vprintf.c): Likewise.
11987 (CFLAGS-cuserid.c): Likewise.
11988 (CFLAGS-errlist.c): Likewise.
11989 (CFLAGS-siglist.c): Likewise.
11990 (CFLAGS-scanf15.c): Likewise.
11991 (CFLAGS-scanf17.c): Likewise.
11992 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
11993 (CFLAGS-msort.c): Likewise.
11994 (CFLAGS-qsort.c): Likewise.
11995 (CFLAGS-system.c): Likewise.
11996 (CFLAGS-fmtmsg.c): Likewise.
11997 (CFLAGS-strfmon.c): Likewise.
11998 (CFLAGS-strfmon_l.c): Likewise.
11999 (CFLAGS-strfromd.c): Likewise.
12000 (CFLAGS-strfromf.c): Likewise.
12001 (CFLAGS-strfroml.c): Likewise.
12002 (CFLAGS-tst-bsearch.c): Likewise.
12003 (CFLAGS-tst-qsort.c): Likewise.
12004 (CFLAGS-tst-makecontext2.c): Likewise.
12005 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
12006 (CFLAGS-xnlm_prot.c): Likewise.
12007 (CFLAGS-xrstat.c): Likewise.
12008 (CFLAGS-xyppasswd.c): Likewise.
12009 (CFLAGS-xklm_prot.c): Likewise.
12010 (CFLAGS-xrex.c): Likewise.
12011 (CFLAGS-xsm_inter.c): Likewise.
12012 (CFLAGS-xmount.c): Likewise.
12013 (CFLAGS-xrusers.c): Likewise.
12014 (CFLAGS-xspray.c): Likewise.
12015 (CFLAGS-xnfs_prot.c): Likewise.
12016 (CFLAGS-xrquota.c): Likewise.
12017 (CFLAGS-xkey_prot.c): Likewise.
12018 (CFLAGS-auth_unix.c): Likewise.
12019 (CFLAGS-key_call.c): Likewise.
12020 (CFLAGS-pmap_rmt.c): Likewise.
12021 (CFLAGS-clnt_perr.c): Likewise.
12022 (CFLAGS-openchild.c): Likewise.
12023 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
12024 (CFLAGS-msgsnd.c): Likewise.
12025 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
12026 * time/Makefile (CFLAGS-tzfile.c): Likewise.
12027 (CFLAGS-tzset.c): Likewise.
12028 (CFLAGS-getdate.c): Likewise.
12029 (CFLAGS-test_time.c): Likewise.
12030 (CPPFLAGS-tst-tzname.c): Likewise.
12031 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
12032 (CFLAGS-zic.c): Likewise.
12033 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
12034 (CFLAGS-wcswidth.c): Likewise.
12035 (CFLAGS-wcstol.c): Likewise.
12036 (CFLAGS-wcstoul.c): Likewise.
12037 (CFLAGS-wcstoll.c): Likewise.
12038 (CFLAGS-wcstoull.c): Likewise.
12039 (CFLAGS-wcstod.c): Likewise.
12040 (CFLAGS-wcstold.c): Likewise.
12041 (CFLAGS-wcstof128.c): Likewise.
12042 (CFLAGS-wcstof.c): Likewise.
12043 (CFLAGS-wcstol_l.c): Likewise.
12044 (CFLAGS-wcstoul_l.c): Likewise.
12045 (CFLAGS-wcstoll_l.c): Likewise.
12046 (CFLAGS-wcstoull_l.c): Likewise.
12047 (CFLAGS-wcstod_l.c): Likewise.
12048 (CFLAGS-wcstold_l.c): Likewise.
12049 (CFLAGS-wcstof128_l.c): Likewise.
12050 (CFLAGS-wcstof_l.c): Likewise.
12051 (CPPFLAGS-tst-wchar-h.c): Likewise.
12052 (CPPFLAGS-wcstold_l.c): Likewise.
12053 ---
12054 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
12055
12056 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
12057
12058 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
12059 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
12060
12061 * manual/tunables.texi (Hardware Capability Tunables): Document
12062 glibc.tune.cached_memopt.
12063 * sysdeps/powerpc/cpu-features.c: New file.
12064 * sysdeps/powerpc/cpu-features.h: New file.
12065 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
12066 _dl_powerpc_cpu_features.
12067 * sysdeps/powerpc/dl-tunables.list: New file.
12068 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
12069 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
12070 (INIT_ARCH): Initialize use_aligned_memopt.
12071 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
12072 IS_IN(rtld))]: Restrict dl_platform_init availability and
12073 initialize CPU features used by tunables.
12074 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
12075 Add memcpy-power8-cached.
12076 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
12077 __memcpy_power8_cached.
12078 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
12079 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
12080 New file.
12081
12082 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
12083
12084 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
12085 (CFLAGS-noinl-tester.c): Likewise.
12086 (CFLAGS-tst-strlen.c): Likewise.
12087 (CFLAGS-stratcliff.c): Likewise.
12088 (CFLAGS-test-ffs.c): Likewise.
12089 (CFLAGS-tst-inlcall.c): Likewise.
12090 (CFLAGS-tst-xbzero-opt.c): Likewise.
12091 (CFLAGS-memcpy.c): Likewise.
12092 (CFLAGS-wordcopy.c): Likewise.
12093
12094 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
12095
12096 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
12097 Store r15 on stack and add cfi rule.
12098 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
12099 Likewise.
12100
12101 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
12102
12103 [BZ #22577]
12104 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
12105 call.
12106
12107 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
12108
12109 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12110 Add s_sinf-sse2 and s_sinf-fma.
12111 (CFLAGS-s_sinf-fma.c): New.
12112 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
12113 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
12114 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
12115
12116 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
12117
12118 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
12119
12120 2017-12-07 Joseph Myers <joseph@codesourcery.com>
12121
12122 [BZ #22568]
12123 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
12124 part of result to imaginary part of argument if it is zero and the
12125 real part of the argument is not finite.
12126 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
12127 of result to real part of argument if it is zero and the imaginary
12128 part of the argument is not finite.
12129
12130 2017-12-07 Mike FABIAN <mfabian@redhat.com>
12131
12132 [BZ #22524]
12133 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
12134 and to the list of locales to be built for testing.
12135 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
12136 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
12137 and build the collation rules upon that.
12138
12139 2017-12-07 Joseph Myers <joseph@codesourcery.com>
12140
12141 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
12142 * manual/math.texi (Mathematics): Document support for _Float32.
12143 * math/Makefile (test-types): Add float32.
12144 * math/Versions (GLIBC_2.27): Add _Float32 functions.
12145 * stdlib/Versions (GLIBC_2.27): Likewise.
12146 * wcsmbs/Versions (GLIBC_2.27): Likewise.
12147 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
12148 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12157 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12160 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12164 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
12168 Likewise.
12169 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12172 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12173 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12175 Likewise.
12176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12177 Likewise.
12178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12179 Likewise.
12180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12181 Likewise.
12182
12183 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12184 Likewise.
12185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
12186 Likewise.
12187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12188 Likewise.
12189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12190 Likewise.
12191 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12192 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12193 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12194 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12195 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12196 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12197 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12198 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12199 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12200 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12201 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12202 Likewise.
12203 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12204 Likewise.
12205 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12206 Likewise.
12207 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12208 Likewise.
12209 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12210 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12211 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12212 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12213 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12214 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12215 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
12216 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
12217
12218 2017-12-06 Joseph Myers <joseph@codesourcery.com>
12219
12220 * stdlib/strtof.c: Include <bits/floatn.h>
12221 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
12222 and later undefine as macro. Define as weak alias if
12223 [!USE_WIDE_CHAR].
12224 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
12225 and later undefine as macro. Define as weak alias if
12226 [USE_WIDE_CHAR].
12227 * stdlib/strtof_l.c: Include <bits/floatn.h>
12228 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
12229 and later undefine as macro. Define as weak alias if
12230 [!USE_WIDE_CHAR].
12231 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
12232 and later undefine as macro. Define as weak alias if
12233 [USE_WIDE_CHAR].
12234
12235 * stdlib/strfromf.c: Include <bits/floatn.h>.
12236 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
12237 and later undefine as macro and define as weak alias.
12238
12239 * math/test-float32.h: New file.
12240
12241 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
12242 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
12243 (libm_alias_float_other_r): Create f32 alias.
12244 (libm_alias_float_r): Use semicolon before call to
12245 libm_alias_float_other_r.
12246
12247 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
12248 second argument to libm_alias_float_other.
12249 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
12250 second argument to libm_alias_float_other.
12251 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
12252 argument to libm_alias_float_other.
12253
12254 [BZ #22561]
12255 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
12256 real part of result for argument 0 + i * NaN.
12257 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
12258 results for tests of 0 + i * NaN.
12259
12260 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12261
12262 * sysdeps/alpha/fpu/libm-test-ulps: Update.
12263
12264 2017-12-06 David S. Miller <davem@davemloft.net>
12265
12266 * sysdeps/sparc/fpu/libm-test-ulps: Update
12267 exp_{downward,towardzero,upward} ulps.
12268
12269 2017-12-06 Joseph Myers <joseph@codesourcery.com>
12270
12271 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
12272 variables static.
12273
12274 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
12275 (Y0_2D): Likewise.
12276 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
12277 (Y0_2D): Likewise.
12278 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
12279 (Y0_2D): Likewise.
12280 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
12281 (Y0_2D): Likewise.
12282
12283 2017-12-06 Mike FABIAN <mfabian@redhat.com>
12284
12285 [BZ #22515]
12286 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
12287 and to the list of locales to be built for testing.
12288 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
12289 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
12290 and build the collation rules upon that.
12291
12292 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12293
12294 * NEWS: Add sinf to list of optimized functions.
12295
12296 2017-12-06 Joseph Myers <joseph@codesourcery.com>
12297
12298 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
12299 (__HAVE_FLOAT32X): Likewise.
12300 * manual/math.texi (Mathematics): Document support for _Float64
12301 and _Float32x.
12302 * math/Makefile (test-types): Add float64 and float32x.
12303 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
12304 functions.
12305 * stdlib/Versions (GLIBC_2.27): Likewise.
12306 * wcsmbs/Versions (GLIBC_2.27): Likewise.
12307 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
12308 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12316 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12317 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
12328 Likewise.
12329 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12335 Likewise.
12336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12337 Likewise.
12338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12339 Likewise.
12340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12341 Likewise.
12342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
12343 Likewise.
12344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
12345 Likewise.
12346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12347 Likewise.
12348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12349 Likewise.
12350 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
12361 Likewise.
12362 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12363 Likewise.
12364 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
12365 Likewise.
12366 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12367 Likewise.
12368 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12374 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
12375 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
12376
12377 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12378
12379 * bits/floatn-common.h: Include <bits/long-double.h>.
12380 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12381 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
12382 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12383 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
12384 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12385 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
12386 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12387 (__builtin_huge_valf64): Use __builtin_huge_vall.
12388 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12389 (__builtin_inff64): Use __builtin_infl.
12390 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12391 (__builtin_nanf64): Use __builtin_nanl.
12392 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
12393 (__builtin_nansf64): Use __builtin_nansl.
12394
12395 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
12396 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
12397 Carlos O'Donnell <carlos@redhat.com>
12398
12399 * elf/dl-tunables.list: Add elision parameters.
12400 * manual/tunables.texi: Add entries about elision tunable.
12401 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
12402 Add callback functions to dynamically enable/disable elision.
12403 Add multiple callbacks functions to set elision parameters.
12404 Deleted __libc_enable_secure check.
12405 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
12406 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
12407 * configure: Regenerated.
12408 * configure.ac: Option enable_lock_elision was deleted.
12409 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
12410 * config.make.in: Remove references to enable_lock_elision.
12411 * manual/install.texi: Elision configure option was removed.
12412 * INSTALL: Regenerated to remove enable_lock_elision.
12413 * nptl/Makefile:
12414 Disable elision so it can verify error case for destroying a mutex.
12415 * sysdeps/powerpc/nptl/elide.h:
12416 Cleanup ENABLE_LOCK_ELISION check.
12417 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
12418 * sysdeps/s390/configure: Regenerated.
12419 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
12420 * nptl/tst-mutex8.c:
12421 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
12422 * sysdeps/powerpc/powerpc32/sysdep.h:
12423 Deleted all ENABLE_LOCK_ELISION checks.
12424 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12425 * sysdeps/powerpc/sysdep.h: Likewise.
12426 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
12427 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
12428 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
12429 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
12430 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
12431 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
12432 enable-lock-elision.
12433
12434 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12435
12436 * stdlib/strtod.c: Include <bits/floatn.h>.
12437 (BUILD_DOUBLE): New macro.
12438 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12439 (strtof64): Define and later undefine as macro. Define as weak
12440 alias if [!USE_WIDE_CHAR].
12441 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12442 (wcstof64): Define and later undefine as macro. Define as weak
12443 alias if [USE_WIDE_CHAR].
12444 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12445 (strtof32x): Define and later undefine as macro. Define as weak
12446 alias if [!USE_WIDE_CHAR].
12447 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12448 (wcstof32x): Define and later undefine as macro. Define as weak
12449 alias if [USE_WIDE_CHAR].
12450 * stdlib/strtod_l.c: Include <bits/floatn.h>.
12451 (BUILD_DOUBLE): New macro.
12452 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12453 (strtof64_l): Define and later undefine as macro. Define as weak
12454 alias if [!USE_WIDE_CHAR].
12455 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
12456 (wcstof64_l): Define and later undefine as macro. Define as weak
12457 alias if [USE_WIDE_CHAR].
12458 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12459 (strtof32x_l): Define and later undefine as macro. Define as weak
12460 alias if [!USE_WIDE_CHAR].
12461 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
12462 (wcstof32x_l): Define and later undefine as macro. Define as weak
12463 alias if [USE_WIDE_CHAR].
12464
12465 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12466
12467 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
12468 (reduced): Use ones as double instead of integer.
12469
12470 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12471
12472 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
12473
12474 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12475
12476 * stdlib/strfromd.c: Include <bits/floatn.h>.
12477 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
12478 and later undefine as macro and define as weak alias.
12479 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
12480 Likewise.
12481
12482 * math/test-float32x.h: New file.
12483 * math/test-float64.h: Likewise.
12484
12485 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
12486 (libm_alias_double_other_r_f64): New macro.
12487 (libm_alias_double_other_r_f32x): Likewise.
12488 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
12489 libm_alias_double_other_r_f32x.
12490 (libm_alias_double_r): Use semicolon before call to
12491 libm_alias_double_other_r.
12492 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
12493 <bits/floatn.h>.
12494 (libm_alias_double_other_r_f64): New macro.
12495 (libm_alias_double_other_r_f32x): Likewise.
12496 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
12497 libm_alias_double_other_r_f32x.
12498
12499 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
12500
12501 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
12502 int.
12503 (SINF_FUNC): Likewise. Replace floor with simple casts.
12504
12505 2017-12-05 Mike FABIAN <mfabian@redhat.com>
12506
12507 [BZ #22517]
12508 * localedata/Makefile: Add et_EE.UTF-8 to test-input
12509 and to the list of locales to be built for testing.
12510 * localedata/et_EE.UTF-8.in: New file for testing the collation.
12511 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
12512 and build the collation rules upon that.
12513
12514 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
12515
12516 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
12517 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
12518 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
12519 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
12520 instead of __insn__xxx.
12521 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
12522 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
12523 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
12524 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
12525 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
12526 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
12527
12528 2017-12-05 Florian Weimer <fweimer@redhat.com>
12529
12530 Linux: Implement interfaces for memory protection keys
12531 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
12532 xsignal, xsysconf.
12533 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
12534 * support/xunistd.h (xsysconf): Declare.
12535 * support/xraise.c: New file.
12536 * support/xsigaction.c: Likewise.
12537 * support/xsignal.c: Likewise.
12538 * support/xsysconf.c: Likewise.
12539 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
12540 pkey_set, pkey_get, pkey_mprotect.
12541 [misc] (tests): Add tst-pkey.
12542 (tst-pkey): Link with -lpthread.
12543 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
12544 pkey_free, pkey_set, pkey_get, pkey_mprotect.
12545 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
12546 (PKEY_DISABLE_WRITE): Define.
12547 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
12548 Declare.
12549 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
12550 (SEGV_PKUERR): Add.
12551 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
12552 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
12553 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
12554 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
12555 Add.
12556 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
12557 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
12558 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
12559 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
12560 * sysdeps/unix/sysv/linux/**.abilist: Update.
12561
12562 2017-12-05 Florian Weimer <fweimer@redhat.com>
12563
12564 * support/tst-test_compare.c (subprocess): Use long long instead
12565 of long argument for consistent type width across 32-bit and
12566 64-bit architectures.
12567 (do_test): Adjust expected output.
12568
12569 2017-12-05 Joseph Myers <joseph@codesourcery.com>
12570
12571 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
12572 (cosf): Define using libm_alias_float.
12573 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
12574 (fabsf): Define using libm_alias_float.
12575 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
12576 (fmaf): Define using libm_alias_float.
12577 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
12578 (rintf): Define using libm_alias_float.
12579 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
12580 (sinf): Define using libm_alias_float.
12581 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
12582 <libm-alias-float.h>.
12583 (modff): Define using libm_alias_float.
12584 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
12585 <libm-alias-float.h>.
12586 (logbf): Define using libm_alias_float.
12587 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
12588 <libm-alias-float.h>.
12589 (ceilf): Define using libm_alias_float.
12590 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
12591 <libm-alias-float.h>.
12592 (copysignf): Define using libm_alias_float.
12593 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
12594 <libm-alias-float.h>.
12595 (floorf): Define using libm_alias_float.
12596 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
12597 <libm-alias-float.h>.
12598 (llrintf): Define using libm_alias_float.
12599 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
12600 <libm-alias-float.h>.
12601 (llroundf): Define using libm_alias_float.
12602 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
12603 <libm-alias-float.h>.
12604 (lrintf): Define using libm_alias_float.
12605 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
12606 <libm-alias-float.h>.
12607 (lroundf): Define using libm_alias_float.
12608 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
12609 <libm-alias-float.h>.
12610 (nearbyintf): Define using libm_alias_float.
12611 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
12612 <libm-alias-float.h>.
12613 (rintf): Define using libm_alias_float.
12614 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
12615 <libm-alias-float.h>.
12616 (roundf): Define using libm_alias_float.
12617 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
12618 <libm-alias-float.h>.
12619 (truncf): Define using libm_alias_float.
12620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
12621 Include <libm-alias-float.h>.
12622 (ceilf): Define using libm_alias_float.
12623 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12624 Include <libm-alias-float.h>.
12625 (copysignf): Define using libm_alias_float.
12626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
12627 Include <libm-alias-float.h>.
12628 (floorf): Define using libm_alias_float.
12629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
12630 Include <libm-alias-float.h>.
12631 (llrintf): Define using libm_alias_float.
12632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
12633 Include <libm-alias-float.h>.
12634 (llroundf): Define using libm_alias_float.
12635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
12636 Include <libm-alias-float.h>.
12637 (logbf): Define using libm_alias_float.
12638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
12639 Include <libm-alias-float.h>.
12640 (lrintf): Define using libm_alias_float.
12641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
12642 Include <libm-alias-float.h>.
12643 (lroundf): Define using libm_alias_float.
12644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
12645 Include <libm-alias-float.h>.
12646 (modff): Define using libm_alias_float.
12647 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
12648 Include <libm-alias-float.h>.
12649 (roundf): Define using libm_alias_float.
12650 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
12651 Include <libm-alias-float.h>.
12652 (truncf): Define using libm_alias_float.
12653 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
12654 <libm-alias-float.h>.
12655 (llrintf): Define using libm_alias_float.
12656 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
12657 <libm-alias-float.h>.
12658 (llroundf): Define using libm_alias_float.
12659 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
12660 <libm-alias-float.h>.
12661 (ceilf): Define using libm_alias_float.
12662 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
12663 <libm-alias-float.h>.
12664 (floorf): Define using libm_alias_float.
12665 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
12666 <libm-alias-float.h>.
12667 (llroundf): Define using libm_alias_float.
12668 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
12669 <libm-alias-float.h>.
12670 (lroundf): Define using libm_alias_float.
12671 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
12672 <libm-alias-float.h>.
12673 (roundf): Define using libm_alias_float.
12674 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
12675 <libm-alias-float.h>.
12676 (truncf): Define using libm_alias_float.
12677 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
12678 <libm-alias-float.h>.
12679 (copysignf): Define using libm_alias_float.
12680 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
12681 <libm-alias-float.h>.
12682 (llrintf): Define using libm_alias_float.
12683 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
12684 <libm-alias-float.h>.
12685 (llroundf): Define using libm_alias_float.
12686 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
12687 <libm-alias-float.h>.
12688 (lrintf): Define using libm_alias_float.
12689 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
12690 <libm-alias-float.h>.
12691 (lroundf): Define using libm_alias_float.
12692 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
12693 <libm-alias-float.h>.
12694 (ceilf): Define using libm_alias_float.
12695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
12696 <libm-alias-float.h>.
12697 (copysignf): Define using libm_alias_float.
12698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
12699 <libm-alias-float.h>.
12700 (cosf): Define using libm_alias_float.
12701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
12702 <libm-alias-float.h>.
12703 (floorf): Define using libm_alias_float.
12704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
12705 <libm-alias-float.h>.
12706 (llrintf): Define using libm_alias_float.
12707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
12708 <libm-alias-float.h>.
12709 (llroundf): Define using libm_alias_float.
12710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
12711 <libm-alias-float.h>.
12712 (logbf): Define using libm_alias_float.
12713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
12714 <libm-alias-float.h>.
12715 (modff): Define using libm_alias_float.
12716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
12717 <libm-alias-float.h>.
12718 (roundf): Define using libm_alias_float.
12719 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
12720 <libm-alias-float.h>.
12721 (sinf): Define using libm_alias_float.
12722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
12723 <libm-alias-float.h>.
12724 (truncf): Define using libm_alias_float.
12725 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
12726 <libm-alias-float.h>.
12727 (ceilf): Define using libm_alias_float.
12728 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
12729 <libm-alias-float.h>.
12730 (copysignf): Define using libm_alias_float.
12731 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
12732 <libm-alias-float.h>.
12733 (floorf): Define using libm_alias_float.
12734 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
12735 <libm-alias-float.h>.
12736 (llrintf): Define using libm_alias_float.
12737 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
12738 <libm-alias-float.h>.
12739 (llroundf): Define using libm_alias_float.
12740 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
12741 <libm-alias-float.h>.
12742 (nearbyintf): Define using libm_alias_float.
12743 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
12744 <libm-alias-float.h>.
12745 (rintf): Define using libm_alias_float.
12746 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
12747 <libm-alias-float.h>.
12748 (roundf): Define using libm_alias_float.
12749 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
12750 <libm-alias-float.h>.
12751 (truncf): Define using libm_alias_float.
12752 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
12753 <libm-alias-float.h>.
12754 (ceilf): Define using libm_alias_float.
12755 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
12756 <libm-alias-float.h>.
12757 (floorf): Define using libm_alias_float.
12758 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
12759 <libm-alias-float.h>.
12760 (llroundf): Define using libm_alias_float.
12761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
12762 <libm-alias-float.h>.
12763 (roundf): Define using libm_alias_float.
12764 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
12765 <libm-alias-float.h>.
12766 (truncf): Define using libm_alias_float.
12767 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
12768 <libm-alias-float.h>.
12769 (copysignf): Define using libm_alias_float.
12770 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
12771 <libm-alias-float.h>.
12772 (llrintf): Define using libm_alias_float.
12773 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
12774 <libm-alias-float.h>.
12775 (llroundf): Define using libm_alias_float.
12776 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
12777 <libm-alias-float.h>.
12778 (cosf): Define using libm_alias_float.
12779 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
12780 <libm-alias-float.h>.
12781 (llrintf): Define using libm_alias_float.
12782 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
12783 <libm-alias-float.h>.
12784 (llroundf): Define using libm_alias_float.
12785 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
12786 <libm-alias-float.h>.
12787 (sinf): Define using libm_alias_float.
12788
12789 2017-12-04 Florian Weimer <fweimer@redhat.com>
12790
12791 * support/check.h (TEST_COMPARE): Define.
12792 (support_test_compare_failure): Declare.
12793 * support/Makefile (libsupport-routines): Add
12794 support_test_compare_failure.
12795 (tests): Add tst-test_compare.
12796 * support /support_test_compare_failure.c: New file.
12797 * support/tst-test_compare.c: Likewise.
12798
12799 2017-12-04 Mike FABIAN <mfabian@redhat.com>
12800
12801 [BZ #22527]
12802 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
12803 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
12804 available, this rewrite of the collation rules does reproduce
12805 the test file in the same order.
12806
12807 2017-12-04 Mike FABIAN <mfabian@redhat.com>
12808
12809 [BZ #10580]
12810 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
12811 digraphs in the month and day names. Using single code points for
12812 digraphs is deprecated. While there are dedicated Unicode
12813 codepoints, for the digraphs, these are included for backwards
12814 compatibility and modern texts use a sequence of Basic Latin
12815 characters. See: https://www.unicode.org/faq/ligature_digraph.html
12816 This makes the month and day names agree exactly with CLDR now,
12817 CLDR does not use the single code points for the digraphs either.
12818
12819 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
12820
12821 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
12822
12823 2017-12-04 Joseph Myers <joseph@codesourcery.com>
12824
12825 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
12826 of floor.
12827
12828 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
12829
12830 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
12831 Define only for libc.so.
12832
12833 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12834
12835 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
12836 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
12837 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
12838 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
12839 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12840
12841 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12842
12843 [BZ #5997]
12844 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
12845
12846 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
12847
12848 [BZ libc/19170]
12849 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
12850 PREINIT_FUNCTION_WEAK is nonzero.
12851 (gmon_initializer): New function. Put procedure label for it in
12852 .init_array section.
12853 (_init): Don't call PREINIT_FUNCTION.
12854 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
12855 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
12856 value when map argument is null.
12857
12858 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
12859 depi instruction from PIC pc-relative sequence.
12860 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
12861 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
12862 (elf_machine_load_address): Likewise.
12863 (elf_machine_runtime_setup): Likewise.
12864
12865 2017-12-02 Joseph Myers <joseph@codesourcery.com>
12866
12867 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
12868 <libm-alias-double.h>.
12869 (logb): Define using libm_alias_double.
12870 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
12871 <libm-alias-double.h>.
12872 (copysign): Define using libm_alias_double.
12873 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
12874 <libm-alias-double.h>.
12875 (llrint): Define using libm_alias_double.
12876 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
12877 <libm-alias-double.h>.
12878 (llround): Define using libm_alias_double.
12879 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
12880 <libm-alias-double.h>.
12881 (lrint): Define using libm_alias_double.
12882 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
12883 <libm-alias-double.h>.
12884 (lround): Define using libm_alias_double.
12885 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12886 Include <libm-alias-double.h>.
12887 (copysign): Define using libm_alias_double.
12888 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
12889 Include <libm-alias-double.h>.
12890 (llrint): Define using libm_alias_double.
12891 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
12892 Include <libm-alias-double.h>.
12893 (llround): Define using libm_alias_double.
12894 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
12895 <libm-alias-double.h>.
12896 (logb): Define using libm_alias_double.
12897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
12898 Include <libm-alias-double.h>.
12899 (lrint): Define using libm_alias_double.
12900 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
12901 Include <libm-alias-double.h>.
12902 (lround): Define using libm_alias_double.
12903 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
12904 <libm-alias-double.h>.
12905 (llrint): Define using libm_alias_double.
12906 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
12907 <libm-alias-double.h>.
12908 (llround): Define using libm_alias_double.
12909 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
12910 <libm-alias-double.h>.
12911 (llround): Define using libm_alias_double.
12912 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
12913 <libm-alias-double.h>.
12914 (lround): Define using libm_alias_double.
12915 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
12916 <libm-alias-double.h>.
12917 (copysign): Define using libm_alias_double.
12918 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
12919 <libm-alias-double.h>.
12920 (llrint): Define using libm_alias_double.
12921 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
12922 <libm-alias-double.h>.
12923 (llround): Define using libm_alias_double.
12924 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
12925 <libm-alias-double.h>.
12926 (lrint): Define using libm_alias_double.
12927 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
12928 <libm-alias-double.h>.
12929 (lround): Define using libm_alias_double.
12930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
12931 <libm-alias-double.h>.
12932 (copysign): Define using libm_alias_double.
12933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
12934 <libm-alias-double.h>.
12935 (llrint): Define using libm_alias_double.
12936 (lrint): Likewise.
12937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
12938 <libm-alias-double.h>.
12939 (llround): Define using libm_alias_double.
12940 (lround): Likewise.
12941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
12942 <libm-alias-double.h>.
12943 (logb): Define using libm_alias_double.
12944 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
12945 <libm-alias-double.h>.
12946 (copysign): Define using libm_alias_double.
12947 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
12948 <libm-alias-double.h>.
12949 (llrint): Define using libm_alias_double.
12950 (lrint): Likewise.
12951 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
12952 <libm-alias-double.h>.
12953 (llround): Define using libm_alias_double.
12954 (lround): Likewise.
12955 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
12956 <libm-alias-double.h>.
12957 (llround): Define using libm_alias_double.
12958 (lround): Likewise.
12959 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
12960 <libm-alias-double.h>.
12961 (copysign): Define using libm_alias_double.
12962 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
12963 <libm-alias-double.h>.
12964 (llrint): Define using libm_alias_double.
12965 (lrint): Likewise.
12966 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
12967 <libm-alias-double.h>.
12968 (llround): Define using libm_alias_double.
12969 (lround): Likewise.
12970 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
12971 <libm-alias-double.h>.
12972 (llrint): Define using libm_alias_double.
12973 (lrint): Likewise.
12974 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
12975 <libm-alias-double.h>.
12976 (llround): Define using libm_alias_double.
12977 (lround): Likewise.
12978
12979 2017-12-01 Joseph Myers <joseph@codesourcery.com>
12980
12981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
12982 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
12983 compat symbol based on llround.
12984
12985 * sysdeps/powerpc/power7/fpu/s_logb.c
12986 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
12987 symbol based on __logb, not on logb.
12988 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
12989 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
12990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
12991 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
12992
12993 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
12994 (rint): Define using libm_alias_double.
12995 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
12996 <libm-alias-double.h>.
12997 (modf): Define using libm_alias_double.
12998 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
12999 <libm-alias-double.h>.
13000 (ceil): Define using libm_alias_double.
13001 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
13002 <libm-alias-double.h>.
13003 (floor): Define using libm_alias_double.
13004 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
13005 <libm-alias-double.h>.
13006 (nearbyint): Define using libm_alias_double.
13007 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
13008 <libm-alias-double.h>.
13009 (rint): Define using libm_alias_double.
13010 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
13011 <libm-alias-double.h>.
13012 (round): Define using libm_alias_double.
13013 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
13014 <libm-alias-double.h>.
13015 (trunc): Define using libm_alias_double.
13016 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
13017 <libm-alias-double.h>.
13018 (ceil): Define using libm_alias_double.
13019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
13020 Include <libm-alias-double.h>.
13021 (floor): Define using libm_alias_double.
13022 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
13023 <libm-alias-double.h>.
13024 (modf): Define using libm_alias_double.
13025 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
13026 Include <libm-alias-double.h>.
13027 (round): Define using libm_alias_double.
13028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
13029 Include <libm-alias-double.h>.
13030 (trunc): Define using libm_alias_double.
13031 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
13032 <libm-alias-double.h>.
13033 (ceil): Define using libm_alias_double.
13034 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
13035 <libm-alias-double.h>.
13036 (floor): Define using libm_alias_double.
13037 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
13038 <libm-alias-double.h>.
13039 (round): Define using libm_alias_double.
13040 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
13041 <libm-alias-double.h>.
13042 (trunc): Define using libm_alias_double.
13043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
13044 <libm-alias-double.h>.
13045 (ceil): Define using libm_alias_double.
13046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
13047 <libm-alias-double.h>.
13048 (floor): Define using libm_alias_double.
13049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
13050 <libm-alias-double.h>.
13051 (modf): Define using libm_alias_double.
13052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
13053 <libm-alias-double.h>.
13054 (round): Define using libm_alias_double.
13055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
13056 <libm-alias-double.h>.
13057 (trunc): Define using libm_alias_double.
13058 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
13059 <libm-alias-double.h>.
13060 (ceil): Define using libm_alias_double.
13061 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
13062 <libm-alias-double.h>.
13063 (floor): Define using libm_alias_double.
13064 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
13065 <libm-alias-double.h>.
13066 (nearbyint): Define using libm_alias_double.
13067 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
13068 <libm-alias-double.h>.
13069 (rint): Define using libm_alias_double.
13070 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
13071 <libm-alias-double.h>.
13072 (round): Define using libm_alias_double.
13073 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
13074 <libm-alias-double.h>.
13075 (trunc): Define using libm_alias_double.
13076 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
13077 <libm-alias-double.h>.
13078 (ceil): Define using libm_alias_double.
13079 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
13080 <libm-alias-double.h>.
13081 (floor): Define using libm_alias_double.
13082 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
13083 <libm-alias-double.h>.
13084 (round): Define using libm_alias_double.
13085 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
13086 <libm-alias-double.h>.
13087 (trunc): Define using libm_alias_double.
13088
13089 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
13090 (fabs): Define using libm_alias_double.
13091 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
13092 (fma): Define using libm_alias_double.
13093 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
13094 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
13095 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
13096 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
13097
13098 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13099
13100 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
13101
13102 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
13103 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
13104 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
13105
13106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
13107 due redirect macro.
13108
13109 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
13110
13111 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
13112
13113 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13114
13115 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
13116 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
13117 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
13118 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
13119
13120 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13121 (libm-sysdep_routines): Add s_nearbyintf-generic and
13122 s_nearbyint-generic.
13123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
13124 New file.
13125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
13126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
13127 Likewise.
13128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
13129 Likewise.
13130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
13131 file.
13132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
13133 Likewise.
13134
13135 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13136 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
13137 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
13138 file.
13139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
13140 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
13141 Likewise.
13142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
13143 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
13144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
13145
13146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13147 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
13148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
13149 file.
13150 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
13151 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
13152 Likewise.
13153 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
13154 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
13155 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
13156
13157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13158 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
13159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
13160 file.
13161 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
13162 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
13163 Likewise.
13164 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
13165 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
13166 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
13167
13168 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13169 (sysdep_calls): New rule.
13170 (sysdep_routines): Use sysdep_calls as base.
13171 (libm-sysdep_routines): Add generic rule for symbols shared with
13172 libc. Add s_copysign-generic and s_copysign-generic objects.
13173 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
13174 New file.
13175 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
13176 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
13177 Likewise.
13178 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
13179 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
13180 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
13181
13182 2017-12-01 Mike FABIAN <mfabian@redhat.com>
13183
13184 [BZ #22519]
13185 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
13186 the list of locales to be built for testing.
13187 * localedata/is_IS.UTF-8.in: New file.
13188 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
13189 on iso14651_t1.
13190
13191 2017-12-01 Joseph Myers <joseph@codesourcery.com>
13192
13193 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
13194 <libm-alias-float.h>.
13195 (fabsf): Define using libm_alias_float.
13196
13197 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
13198
13199 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
13200
13201 2017-11-30 Joseph Myers <joseph@codesourcery.com>
13202
13203 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
13204 <libm-alias-float.h>.
13205 (fabsf): Define using libm_alias_float.
13206 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
13207 <libm-alias-float.h>.
13208 (lrintf): Define using libm_alias_float.
13209 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
13210 <libm-alias-float.h>.
13211 (rintf): Define using libm_alias_float.
13212
13213 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
13214 <libm-alias-double.h>.
13215 (fabs): Define using libm_alias_double.
13216 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
13217 <libm-alias-double.h>.
13218 (lrint): Define using libm_alias_double.
13219 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
13220 <libm-alias-double.h>.
13221 (rint): Define using libm_alias_double.
13222
13223 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
13224 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
13225 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
13226 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
13227 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
13228 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
13229 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
13230 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
13231 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
13232 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
13233 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
13234 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
13235 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
13236 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
13237 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
13238 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
13239 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
13240 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
13241 s_atan_template.c.
13242 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
13243 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
13244 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
13245 s_ceil_template.c.
13246 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
13247 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
13248 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
13249 s_cos_template.c.
13250 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
13251 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
13252 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
13253 s_expm1_template.c.
13254 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
13255 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
13256 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
13257 s_fabs_template.c.
13258 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
13259 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
13260 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
13261 s_floor_template.c.
13262 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
13263 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
13264 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
13265 s_frexp_template.c.
13266 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
13267 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
13268 s_lrint_template.c.
13269 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
13270 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
13271 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
13272 s_modf_template.c.
13273 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
13274 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
13275 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
13276 s_nearbyint_template.c.
13277 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
13278 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
13279 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
13280 s_remquo_template.c.
13281 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
13282 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
13283 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
13284 s_rint_template.c.
13285 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
13286 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
13287 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
13288 s_sin_template.c.
13289 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
13290 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
13291 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
13292 s_sincos_template.c.
13293 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
13294 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
13295 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
13296 s_tan_template.c.
13297 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
13298 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
13299 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
13300 s_tanh_template.c.
13301 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
13302 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
13303 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
13304 s_trunc_template.c.
13305 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
13306 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
13307 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
13308 s_atan.c instead of including s_atan.c.
13309 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
13310 s_atanf.c instead of including s_atanf.c.
13311 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
13312 s_atanl.c instead of including s_atanl.c.
13313 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
13314 instead of s_atan.c.
13315 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
13316 instead of s_atanf.c.
13317 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
13318 instead of s_atanl.c.
13319
13320 * scripts/update-copyrights: Do not handle intl/plural.c
13321 specially.
13322
13323 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
13324
13325 [BZ #22432]
13326 * configure.ac (BISON): Require to be present.
13327 * configure: Regenerated.
13328 * intl/Makefile (generated): Add plural.c.
13329 [$(BISON) != no]: Make code unconditional.
13330 (plural.c): Change rule to $(objpfx)plural.c.
13331 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
13332 * intl/plural.c: Remove.
13333 * manual/install.texi (Tools for Compilation): Document bison as
13334 required.
13335 * INSTALL: Regenerated.
13336
13337 2017-11-30 Joseph Myers <joseph@codesourcery.com>
13338
13339 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
13340 <libm-alias-double.h>.
13341 (llrint): Define using libm_alias_double.
13342 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
13343 <libm-alias-float.h>.
13344 (llrintf): Define using libm_alias_float.
13345 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
13346 <libm-alias-ldouble.h>.
13347 (llrintl): Define using libm_alias_ldouble.
13348
13349 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
13350 declare_mgen_alias instead of weak_alias.
13351 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
13352 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
13353 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
13354
13355 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13356
13357 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13358 Add add_n-generic.
13359 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
13360 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
13361 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
13362
13363 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13364 Add submul_1-generic.
13365 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
13366 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
13367 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
13368
13369 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13370 Add addmul_1-generic.
13371 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
13372 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
13373 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
13374
13375 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13376 Add sub_n-generic.
13377 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
13378 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
13379 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
13380
13381 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
13382 Add mul_1-generic.
13383 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
13384 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
13385 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
13386
13387 2017-11-30 Mike FABIAN <mfabian@redhat.com>
13388
13389 According to CLDR, collation rules for Serbian and Bosnian
13390 should be the same as for Croatian.
13391
13392 [BZ #22534]
13393 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
13394 and to the list of locales to be built for testing.
13395 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
13396 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
13397 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
13398 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
13399
13400 2017-11-30 Mike FABIAN <mfabian@redhat.com>
13401
13402 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
13403 to make test case pass.
13404 * localedata/hr_HR.UTF-8.in: Add more test strings.
13405
13406 2017-11-30 Mike FABIAN <mfabian@redhat.com>
13407
13408 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
13409
13410 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
13411
13412 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
13413 the list of locales to built for testing.
13414 * localedata/hr_HR.UTF-8.in: New file.
13415
13416 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
13417
13418 [BZ #10580]
13419 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
13420 iso14651_t1.
13421 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
13422 CLDR (except use ligatures for the digraphs, CLDR does not use
13423 the ligatures), add first_workday, some fixes in the date and time
13424 formats.
13425 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
13426 for Đ and đ.
13427 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
13428 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
13429 Add int_p_cs_precedes and int_n_cs_precedes.
13430 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
13431 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
13432 LC_MONETARY now).
13433 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
13434 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
13435 name_miss.
13436 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
13437 and lang_lib. Change postal_fmt.
13438
13439 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
13440
13441 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
13442 <setjmp.h>.
13443 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
13444 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
13445 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
13446 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
13447 * sysdeps/generic/setjmpP.h: New file.
13448 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
13449 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
13450 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
13451 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
13452 Add jmp_buf-ssp.sym.
13453 (tests): Add tst-saved_mask-1.
13454
13455 2017-11-30 Arjun Shankar <arjun@redhat.com>
13456
13457 [BZ #22375]
13458 CVE-2017-17426
13459 * malloc/malloc.c (__libc_malloc): Use checked_request2size
13460 instead of request2size.
13461
13462 2017-11-30 Joseph Myers <joseph@codesourcery.com>
13463
13464 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
13465 (__lllrint): Remove alias.
13466 (lllrint): Likewise.
13467 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
13468 (__lllrintf): Likewise.
13469 (lllrintf): Likewise.
13470
13471 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
13472 <libm-alias-float.h>.
13473 (copysignf): Define using libm_alias_float.
13474 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
13475 <libm-alias-float.h>.
13476 (fabsf): Define using libm_alias_float.
13477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
13478 Include <libm-alias-float.h>.
13479 (copysignf): Define using libm_alias_float.
13480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
13481 <libm-alias-float.h>.
13482 (fabsf): Define using libm_alias_float.
13483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
13484 <libm-alias-float.h>.
13485 (fdimf): Define using libm_alias_float.
13486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
13487 <libm-alias-float.h>.
13488 (fmaf): Define using libm_alias_float.
13489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
13490 <libm-alias-float.h>.
13491 (llrintf): Define using libm_alias_float.
13492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
13493 Include <libm-alias-float.h>.
13494 (nearbyintf): Define using libm_alias_float.
13495 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
13496 <libm-alias-float.h>.
13497 (rintf): Define using libm_alias_float.
13498 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
13499 <libm-alias-float.h>.
13500 (llrintf): Define using libm_alias_float.
13501 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
13502 <libm-alias-float.h>.
13503 (lrintf): Define using libm_alias_float.
13504 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
13505 <libm-alias-float.h>.
13506 (nearbyintf): Define using libm_alias_float.
13507 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
13508 <libm-alias-float.h>.
13509 (rintf): Define using libm_alias_float.
13510 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
13511 <libm-alias-float.h>.
13512 (ceilf): Define using libm_alias_float.
13513 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
13514 <libm-alias-float.h>.
13515 (floorf): Define using libm_alias_float.
13516 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
13517 <libm-alias-float.h>.
13518 (fmaf): Define using libm_alias_float.
13519 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
13520 <libm-alias-float.h>.
13521 (lrintf): Define using libm_alias_float.
13522 (llrintf): Likewise.
13523 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
13524 <libm-alias-float.h>.
13525 (nearbyintf): Define using libm_alias_float.
13526 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
13527 <libm-alias-float.h>.
13528 (rintf): Define using libm_alias_float.
13529 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
13530 <libm-alias-float.h>.
13531 (truncf): Define using libm_alias_float.
13532 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
13533 <libm-alias-float.h>.
13534 (copysignf): Define using libm_alias_float.
13535 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
13536 <libm-alias-float.h>.
13537 (fabsf): Define using libm_alias_float.
13538 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
13539 <libm-alias-float.h>.
13540 (lrintf): Define using libm_alias_float.
13541 (llrintf): Likewise.
13542 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
13543 <libm-alias-float.h>.
13544 (nearbyintf): Define using libm_alias_float.
13545 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
13546 <libm-alias-float.h>.
13547 (rintf): Define using libm_alias_float.
13548
13549 2017-11-29 Joseph Myers <joseph@codesourcery.com>
13550
13551 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
13552 <libm-alias-double.h>.
13553 (copysign): Define using libm_alias_double.
13554 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
13555 <libm-alias-double.h>.
13556 (fabs): Define using libm_alias_double.
13557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
13558 Include <libm-alias-double.h>.
13559 (copysign): Define using libm_alias_double.
13560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
13561 <libm-alias-double.h>.
13562 (fabs): Define using libm_alias_double.
13563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
13564 <libm-alias-double.h>.
13565 (fdim): Define using libm_alias_double.
13566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
13567 <libm-alias-double.h>.
13568 (fma): Define using libm_alias_double.
13569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
13570 <libm-alias-double.h>.
13571 (llrint): Define using libm_alias_double.
13572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
13573 Include <libm-alias-double.h>.
13574 (nearbyint): Define using libm_alias_double.
13575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
13576 <libm-alias-double.h>.
13577 (rint): Define using libm_alias_double.
13578 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
13579 <libm-alias-double.h>.
13580 (fabs): Define using libm_alias_double.
13581 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
13582 <libm-alias-double.h>.
13583 (llrint): Define using libm_alias_double.
13584 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
13585 <libm-alias-double.h>.
13586 (nearbyint): Define using libm_alias_double.
13587 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
13588 <libm-alias-double.h>.
13589 (rint): Define using libm_alias_double.
13590 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
13591 <libm-alias-double.h>.
13592 (ceil): Define using libm_alias_double.
13593 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
13594 <libm-alias-double.h>.
13595 (floor): Define using libm_alias_double.
13596 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
13597 <libm-alias-double.h>.
13598 (fma): Define using libm_alias_double.
13599 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
13600 <libm-alias-double.h>.
13601 (lrint): Define using libm_alias_double.
13602 (llrint): Likewise.
13603 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
13604 <libm-alias-double.h>.
13605 (nearbyint): Define using libm_alias_double.
13606 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
13607 <libm-alias-double.h>.
13608 (rint): Define using libm_alias_double.
13609 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
13610 <libm-alias-double.h>.
13611 (trunc): Define using libm_alias_double.
13612 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
13613 <libm-alias-double.h>.
13614 (copysign): Define using libm_alias_double.
13615 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
13616 <libm-alias-double.h>.
13617 (fabs): Define using libm_alias_double.
13618 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
13619 <libm-alias-double.h>.
13620 (lrint): Define using libm_alias_double.
13621 (llrint): Likewise.
13622 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
13623 <libm-alias-double.h>.
13624 (nearbyint): Define using libm_alias_double.
13625 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
13626 <libm-alias-double.h>.
13627 (rint): Define using libm_alias_double.
13628
13629 [BZ #22229]
13630 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
13631 <math_ldbl_opt.h>.
13632 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
13633
13634 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13635 SPARC --disable-multi-arch glibc variants.
13636
13637 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
13638 <libm-alias-float.h>.
13639 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13640 if [SHARED].
13641 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
13642 <libm-alias-float.h>.
13643 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13644 if [SHARED].
13645 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
13646 <libm-alias-float.h>.
13647 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13648 if [SHARED].
13649 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
13650 <libm-alias-float.h>.
13651 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13652 if [SHARED].
13653 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
13654 <libm-alias-float.h>.
13655 (exp2f): Define using libm_alias_float, or libm_alias_float_other
13656 if [SHARED].
13657 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
13658 <libm-alias-float.h>.
13659 (ceilf): Define using libm_alias_float.
13660 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
13661 <libm-alias-float.h>.
13662 (floorf): Define using libm_alias_float.
13663 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
13664 <libm-alias-float.h>.
13665 (fmaf): Define using libm_alias_float.
13666 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
13667 <libm-alias-float.h>.
13668 (nearbyintf): Define using libm_alias_float.
13669 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
13670 <libm-alias-float.h>.
13671 (rintf): Define using libm_alias_float.
13672 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
13673 <libm-alias-float.h>.
13674 (truncf): Define using libm_alias_float.
13675 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
13676 (copysignf): Define using libm_alias_float.
13677 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
13678 (cosf): Define using libm_alias_float.
13679 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
13680 (fabsf): Define using libm_alias_float.
13681 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
13682 (fmaxf): Define using libm_alias_float.
13683 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
13684 (fminf): Define using libm_alias_float.
13685 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
13686 (llrintf): Define using libm_alias_float.
13687 [!__ILP32__] (lrintf): Likewise.
13688 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
13689 (sincosf): Define using libm_alias_float.
13690 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
13691 (sinf): Define using libm_alias_float.
13692 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
13693 (lrintf): Define using libm_alias_float.
13694
13695 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
13696 <libm-alias-double.h>.
13697 (atan): Define using libm_alias_double.
13698 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
13699 <libm-alias-double.h>.
13700 (ceil): Define using libm_alias_double.
13701 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
13702 <libm-alias-double.h>.
13703 (floor): Define using libm_alias_double.
13704 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
13705 <libm-alias-double.h>.
13706 (fma): Define using libm_alias_double.
13707 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
13708 <libm-alias-double.h>.
13709 (nearbyint): Define using libm_alias_double.
13710 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
13711 <libm-alias-double.h>.
13712 (rint): Define using libm_alias_double.
13713 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
13714 <libm-alias-double.h>.
13715 (sin): Define using libm_alias_double.
13716 (cos): Likewise.
13717 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
13718 <libm-alias-double.h>.
13719 (tan): Define using libm_alias_double.
13720 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
13721 <libm-alias-double.h>.
13722 (trunc): Define using libm_alias_double.
13723 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
13724 (copysign): Define using libm_alias_double.
13725 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
13726 (fabs): Define using libm_alias_double.
13727 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
13728 (fmax): Define using libm_alias_double.
13729 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
13730 (fmin): Define using libm_alias_double.
13731 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
13732 (llrint): Define using libm_alias_double.
13733 [!__ILP32__] (lrint): Likewise.
13734 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
13735 (lrint): Define using libm_alias_double.
13736
13737 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13738
13739 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13740 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
13741 objects.
13742 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
13743 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
13744 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
13745 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
13746 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
13747 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
13748
13749 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13750 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
13751 objects.
13752 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
13753 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
13754 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
13755 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
13756 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
13757 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
13758
13759 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13760 (libm-sysdep_routines): Add s_nearbyint-generic and
13761 s_nearbyintf-generic objects.
13762 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
13763 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
13764 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
13765 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
13766 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
13767 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
13768
13769 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13770 Add s_finitef-generic and s_finite-generic objects.
13771 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
13772 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
13773 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
13774 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
13775 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
13776 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
13777
13778 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13779 Add s_isinff-generic and s_isinf-generic objects.
13780 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
13781 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
13782 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
13783 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
13784 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
13785 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
13786
13787 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
13788 Add s_isnanf-generic and s_isnan-generic objects.
13789 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
13790 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
13791 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
13792 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
13793 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
13794 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
13795
13796 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
13797 macro.
13798 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
13799 rule.
13800 (sysdep_routines): Use sysdep_calls as base.
13801 (libm-sysdep_routines): Add generic rule for symbols shared with
13802 libc. Add s_signbit-generic and s_signbitf-generic objects.
13803 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
13804 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
13805 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
13806 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
13807 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
13808 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
13809
13810 2017-11-29 Joseph Myers <joseph@codesourcery.com>
13811
13812 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
13813 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
13814 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
13815 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
13816 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
13817 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
13818 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
13819 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
13820 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
13821 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
13822 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
13823 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
13824 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
13825 libm_alias_float_r.
13826 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
13827 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
13828 (logf): Likewise.
13829 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
13830 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
13831 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
13832 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
13833 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
13834 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
13835 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
13836 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
13837 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
13838 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
13839 libm_alias_float.
13840 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
13841 (cosf): Likewise.
13842 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
13843 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
13844 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
13845 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
13846 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
13847 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
13848 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
13849 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
13850 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
13851 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
13852 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
13853 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
13854 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
13855 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
13856 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
13857 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
13858 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
13859 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
13860 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
13861 libm_alias_float.
13862 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
13863 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
13864 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
13865 * sysdeps/ia64/fpu/w_lgammaf_main.c
13866 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
13867 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
13868
13869 2017-11-28 Mike FABIAN <mfabian@redhat.com>
13870 Alexandre Oliva <aoliva@redhat.com>
13871
13872 [BZ #17750]
13873 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
13874 * localedata/fr_CA.UTF-8.in: New file with test data for backward
13875 accents sorting.
13876 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
13877 sorting.
13878 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
13879 * localedata/locales/de_DE (LC_COLLATE): Likewise.
13880 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
13881 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
13882 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
13883 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
13884 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
13885 instead of “ifdef DIACRIT_BACKWARD”.
13886
13887 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13888
13889 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
13890 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
13891 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
13892 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
13893 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
13894 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
13895 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13896 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13897 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13898 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13899 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
13900 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
13901 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13902 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13903 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
13904 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
13905 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
13906 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
13907 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13908 ($(have-as-vis3) == yes): Remove conditional.
13909 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
13910 Likewise.
13911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
13912 file.
13913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
13914 file.
13915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
13916 file.
13917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
13918 file.
13919 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
13920 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
13921 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
13922 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
13923 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
13924 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
13925 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
13926 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
13927
13928 2017-11-29 Joseph Myers <joseph@codesourcery.com>
13929
13930 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
13931 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
13932 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
13933 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
13934 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
13935 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
13936 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
13937 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
13938 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
13939 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
13940 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
13941 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
13942 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
13943 libm_alias_double_r.
13944 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
13945 (log): Likewise.
13946 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
13947 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
13948 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
13949 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
13950 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
13951 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
13952 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
13953 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
13954 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
13955 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
13956 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
13957 libm_alias_double.
13958 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
13959 (cos): Likewise.
13960 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
13961 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
13962 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
13963 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
13964 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
13965 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
13966 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
13967 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
13968 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
13969 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
13970 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
13971 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
13972 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
13973 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
13974 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
13975 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
13976 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
13977 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
13978 libm_alias_double.
13979 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
13980 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
13981 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
13982 * sysdeps/ia64/fpu/w_lgamma_main.c
13983 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
13984 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
13985
13986 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
13987
13988 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
13989 address of $global$ into %dp register earlier. Use pc-relative
13990 instruction sequence for PIC case.
13991
13992 2017-11-28 Joseph Myers <joseph@codesourcery.com>
13993
13994 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
13995 (asinhf): Define using libm_alias_float.
13996 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
13997 (atanf): Define using libm_alias_float.
13998 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
13999 (cbrtf): Define using libm_alias_float.
14000 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
14001 (ceilf): Define using libm_alias_float.
14002 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
14003 (copysignf): Define using libm_alias_float.
14004 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
14005 (expm1f): Define using libm_alias_float.
14006 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
14007 (fabsf): Define using libm_alias_float.
14008 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
14009 (floorf): Define using libm_alias_float.
14010 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
14011 (fmaxf): Define using libm_alias_float.
14012 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
14013 (fminf): Define using libm_alias_float.
14014 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
14015 (frexpf): Define using libm_alias_float.
14016 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
14017 (llrintf): Define using libm_alias_float.
14018 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
14019 (logbf): Define using libm_alias_float.
14020 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
14021 (lrintf): Define using libm_alias_float.
14022 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
14023 (nearbyintf): Define using libm_alias_float.
14024 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
14025 (remquof): Define using libm_alias_float.
14026 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
14027 (rintf): Define using libm_alias_float.
14028 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
14029 (truncf): Define using libm_alias_float.
14030 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
14031 <libm-alias-float.h>.
14032 (exp2f): Define using libm_alias_float, or libm_alias_float_other
14033 if [SHARED].
14034 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
14035 <libm-alias-float.h>.
14036 (expf): Define using libm_alias_float, or libm_alias_float_other
14037 if [SHARED].
14038 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
14039 <libm-alias-float.h>.
14040 (log2f): Define using libm_alias_float, or libm_alias_float_other
14041 if [SHARED].
14042 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
14043 <libm-alias-float.h>.
14044 (logf): Define using libm_alias_float, or libm_alias_float_other
14045 if [SHARED].
14046 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
14047 <libm-alias-float.h>.
14048 (powf): Define using libm_alias_float, or libm_alias_float_other
14049 if [SHARED].
14050 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
14051 <libm-alias-float.h>.
14052 (cosf): Define using libm_alias_float.
14053 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
14054 <libm-alias-float.h>.
14055 (sincosf): Define using libm_alias_float.
14056 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
14057 <libm-alias-float.h>.
14058 (sinf): Define using libm_alias_float.
14059 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
14060 (fmaxf): Define using libm_alias_float.
14061 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
14062 (fminf): Define using libm_alias_float.
14063 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14064 <libm-alias-float.h>.
14065 (fmaf): Define using libm_alias_float.
14066
14067 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
14068 (asinh): Define using libm_alias_double.
14069 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
14070 (atan): Define using libm_alias_double.
14071 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
14072 (cbrt): Define using libm_alias_double.
14073 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
14074 (ceil): Define using libm_alias_double.
14075 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
14076 (copysign): Define using libm_alias_double.
14077 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
14078 (expm1): Define using libm_alias_double.
14079 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
14080 (fabs): Define using libm_alias_double.
14081 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
14082 (fdim): Define using libm_alias_double.
14083 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
14084 (floor): Define using libm_alias_double.
14085 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
14086 (fmax): Define using libm_alias_double.
14087 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
14088 (fmin): Define using libm_alias_double.
14089 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
14090 (frexp): Define using libm_alias_double.
14091 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
14092 (llrint): Define using libm_alias_double.
14093 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
14094 (logb): Define using libm_alias_double.
14095 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
14096 (lrint): Define using libm_alias_double.
14097 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
14098 (nearbyint): Define using libm_alias_double.
14099 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
14100 (remquo): Define using libm_alias_double.
14101 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
14102 (rint): Define using libm_alias_double.
14103 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
14104 (trunc): Define using libm_alias_double.
14105 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
14106 (fmax): Define using libm_alias_double.
14107 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
14108 (fmin): Define using libm_alias_double.
14109 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
14110 (fma): Define using libm_alias_double.
14111
14112 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
14113
14114 [BZ #22370]
14115 * elf/dl-hwcaps.c (ROUND): Removed.
14116 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
14117 and ELF_NOTE_NEXT_OFFSET.
14118 * elf/dl-load.c (ROUND): Removed.
14119 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
14120 * elf/readelflib.c (ROUND): Removed.
14121 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
14122 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
14123 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
14124 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
14125
14126 2017-11-28 Joseph Myers <joseph@codesourcery.com>
14127
14128 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
14129 [!__fmaf] (fmaf): Define using libm_alias_float.
14130
14131 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
14132 [!__fma] (fma): Define using libm_alias_double.
14133 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
14134
14135 2017-11-28 Mike FABIAN <mfabian@redhat.com>
14136
14137 [BZ #22336]
14138 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
14139 and implement the collation rules for cs from CLDR on top of that.
14140 * Makefile: Add cs_CZ.UTF-8 to test-input.
14141 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
14142
14143 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
14144
14145 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
14146
14147 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
14148 Icarus Sparry <icarus.w.sparry@intel.com>
14149
14150 * benchtests/Makefile:Add BENCHSET to allow subsets of
14151 benchmarks to be run.
14152 * benchtests/README: Add documentation for: Running subsets of
14153 benchmarks.
14154
14155 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
14156
14157 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
14158 range of tests names.
14159
14160 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
14161 result from property and remove "max", min" and "mean" from
14162 required properties based on benchtests/bench-skeleton.c.
14163
14164 2017-11-28 Florian Weimer <fweimer@redhat.com>
14165
14166 [BZ #20826]
14167 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
14168 due to Internet requirement.
14169 * posix/Makefile (tests): Remove tst-getaddrinfo4,
14170 tst-getaddrinfo5.
14171 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
14172
14173 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14174
14175 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14176 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
14177 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
14178 (sysdep_routines): Add memset-ultra1.
14179 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
14180 file.
14181 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
14182 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
14183 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
14184 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
14185 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
14186 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
14187 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
14188 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14189
14190 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
14191 file.
14192 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
14193 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
14194 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
14195 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
14196 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
14197 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
14198 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
14199 macro.
14200 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14201 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
14202 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
14203 (sysdep_routines): Add memcpy-ultra1.
14204 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
14205 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
14206
14207 2017-11-28 Joseph Myers <joseph@codesourcery.com>
14208
14209 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
14210 (cfloat_versions): Take function argument without trailing 'f'.
14211 Call libm_alias_float_other.
14212 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
14213 * sysdeps/alpha/fpu/cargf.c: Likewise.
14214 * sysdeps/alpha/fpu/cimagf.c: Likewise.
14215 * sysdeps/alpha/fpu/conjf.c: Likewise.
14216 * sysdeps/alpha/fpu/crealf.c: Likewise.
14217 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
14218 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
14219 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
14220 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
14221 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
14222 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
14223 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
14224 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
14225 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
14226 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
14227 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
14228 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
14229 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
14230 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
14231 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
14232 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
14233 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
14234 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
14235 (clog10f): Use libm_alias_float_other.
14236 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
14237 (ceilf): Define using libm_alias_float.
14238 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
14239 (copysignf): Define using libm_alias_float.
14240 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
14241 (fabsf): Define using libm_alias_float.
14242 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
14243 (floorf): Define using libm_alias_float.
14244 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
14245 (fmaxf): Define using libm_alias_float.
14246 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
14247 (fminf): Define using libm_alias_float.
14248 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
14249 (lrintf): Define using libm_alias_float.
14250 (llrintf): Likewise.
14251 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
14252 (lroundf): Define using libm_alias_float.
14253 (llroundf): Likewise.
14254 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
14255 (rintf): Define using libm_alias_float.
14256 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
14257 (truncf): Define using libm_alias_float.
14258
14259 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
14260 (ceilf): Define using libm_alias_float.
14261 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
14262 (floorf): Define using libm_alias_float.
14263 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
14264 (fmaf): Define using libm_alias_float.
14265 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
14266 (fmaxf): Define using libm_alias_float.
14267 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
14268 (fminf): Define using libm_alias_float.
14269 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
14270 (llrintf): Define using libm_alias_float.
14271 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
14272 (llroundf): Define using libm_alias_float.
14273 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
14274 (lrintf): Define using libm_alias_float.
14275 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
14276 (lroundf): Define using libm_alias_float.
14277 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
14278 <libm-alias-float.h>.
14279 (nearbyintf): Define using libm_alias_float.
14280 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
14281 (rintf): Define using libm_alias_float.
14282 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
14283 (roundf): Define using libm_alias_float.
14284 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
14285 (truncf): Define using libm_alias_float.
14286
14287 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
14288 (ceil): Define using libm_alias_double.
14289 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
14290 (copysign): Define using libm_alias_double.
14291 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
14292 (fabs): Define using libm_alias_double.
14293 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
14294 (floor): Define using libm_alias_double.
14295 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
14296 (fmax): Define using libm_alias_double.
14297 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
14298 (fmin): Define using libm_alias_double.
14299 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
14300 (lrint): Define using libm_alias_double.
14301 (llrint): Likewise.
14302 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
14303 (lround): Define using libm_alias_double.
14304 (llround): Likewise.
14305 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
14306 (rint): Define using libm_alias_double.
14307 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
14308 (trunc): Define using libm_alias_double.
14309
14310 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
14311 (libm_alias_double_r): Add semicolon after weak_alias call.
14312
14313 2017-11-27 Joseph Myers <joseph@codesourcery.com>
14314
14315 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
14316 (ceil): Define using libm_alias_double.
14317 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
14318 (floor): Define using libm_alias_double.
14319 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
14320 (fma): Define using libm_alias_double.
14321 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
14322 (fmax): Define using libm_alias_double.
14323 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
14324 (fmin): Define using libm_alias_double.
14325 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
14326 (llrint): Define using libm_alias_double.
14327 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
14328 (llround): Define using libm_alias_double.
14329 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
14330 (lrint): Define using libm_alias_double.
14331 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
14332 (lround): Define using libm_alias_double.
14333 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
14334 (nearbyint): Define using libm_alias_double.
14335 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
14336 (rint): Define using libm_alias_double.
14337 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
14338 (round): Define using libm_alias_double.
14339 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
14340 (trunc): Define using libm_alias_double.
14341
14342 2017-11-27 Florian Weimer <fweimer@redhat.com>
14343
14344 * sysdeps/unix/sysv/linux/mlock2.c: New file.
14345 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
14346 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
14347 (tests): Add tst-mlock2.
14348 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
14349 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
14350 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
14351 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
14352 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
14353 for mlock. Document mlock2.
14354
14355 2017-11-27 Joseph Myers <joseph@codesourcery.com>
14356
14357 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
14358 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
14359 Likewise.
14360 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
14361 Likewise.
14362 * sysdeps/x86/Makeconfig: New file.
14363 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
14364 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14365 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
14366 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14367 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14368 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14369 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
14370 Likewise.
14371 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14372 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14373 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14374 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14375 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14376 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
14377 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
14378 * manual/math.texi (Mathematics): Document support for _Float64x.
14379 * math/Versions (GLIBC_2.27): Add _Float64x functions.
14380 * stdlib/Versions (GLIBC_2.27): Likewise.
14381 * wcsmbs/Versions (GLIBC_2.27): Likewise.
14382 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
14383 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14389 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14391 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14394 Likewise.
14395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14396 Likewise.
14397 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14398 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14403 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14404 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14407 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14408 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14409 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
14410 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14411
14412 2017-11-27 Andreas Schwab <schwab@suse.de>
14413
14414 * elf/Makefile (dl-routines): Add dl-sort-maps.
14415 * elf/dl-sort-maps.c: New file.
14416 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
14417 (_dl_sort_maps): Declare.
14418 * elf/dl-fini.c (_dl_sort_fini): Remove.
14419 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
14420 * elf/dl-close.c (_dl_close_worker): Likewise.
14421 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
14422 open-coding it.
14423 * elf/dl-open.c (dl_open_worker): Likewise.
14424
14425 2017-11-24 Joseph Myers <joseph@codesourcery.com>
14426
14427 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
14428 using libm_alias_float128.
14429 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
14430 Likewise.
14431 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
14432 Likewise.
14433 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
14434 (setpayloadsigf128): Likewise.
14435 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
14436 Likewise.
14437 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
14438 Likewise.
14439
14440 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
14441 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
14442 -mfloat128 to CFLAGS.
14443 ($(foreach
14444 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
14445 Likewise.
14446 (CFLAGS-libm-test-support-float64x.c): New variable.
14447 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
14448 $(f128-loader-link) to gnulib-tests.
14449
14450 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
14451 (libm_alias_float128_other_r): If
14452 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
14453 alias.
14454 (libm_alias_float128_r): Add semicolon after weak_alias call.
14455 * sysdeps/generic/libm-alias-ldouble.h
14456 (libm_alias_ldouble_other_r_f128): New macro.
14457 (libm_alias_ldouble_other_r_f64x): Likewise.
14458 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
14459 and libm_alias_ldouble_other_r_f64x.
14460 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
14461 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
14462 (libm_alias_ldouble_other_r_f128): New macro.
14463 (libm_alias_ldouble_other_r_f64x): Likewise.
14464 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
14465 and libm_alias_ldouble_other_r_f64x.
14466
14467 * stdlib/strfroml.c: Always include <stdlib.h>.
14468 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
14469 undefine as macro and define as weak alias.
14470 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
14471 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
14472 <stdlib.h>.
14473 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
14474 Define and later undefine as macro and define as weak alias.
14475
14476 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
14477 Define and later undefine as macro. Define as weak alias if
14478 [!USE_WIDE_CHAR].
14479 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
14480 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14481 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
14482 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
14483 Define and later undefine as macro. Define as weak alias if
14484 [!USE_WIDE_CHAR].
14485 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
14486 Define and later undefine as macro. Define as weak alias if
14487 [USE_WIDE_CHAR].
14488 * sysdeps/ieee754/float128/strtof128_l.c
14489 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
14490 Define and later undefine as macro. Define as weak alias if
14491 [!USE_WIDE_CHAR].
14492 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
14493 Define and later undefine as macro. Define as weak alias if
14494 [USE_WIDE_CHAR].
14495 * sysdeps/ieee754/ldbl-128/strtold_l.c
14496 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14497 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
14498 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14499 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14500 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
14501 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14502 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
14503 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14504 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14505 * sysdeps/ieee754/ldbl-96/strtold_l.c
14506 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
14507 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
14508 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
14509 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
14510
14511 * math/test-float64x.h: New file.
14512 * math/Makefile (type-float64x-yes): New variable.
14513 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
14514
14515 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
14516 function-like macro.
14517 (min_of_type_): Likewise.
14518 (min_of_type_l): Likewise.
14519 (min_of_type_f128): Likewise.
14520 (min_of_type): Pass () as last argument of __MATH_TG.
14521
14522 * stdlib/tst-strtod-round-skeleton.c
14523 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
14524 headers.
14525
14526 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
14527 for combinations of long double with _Float64 and _Float64x.
14528
14529 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
14530 (__DECL_SIMD_cosf32): Likewise.
14531 (__DECL_SIMD_cosf64): Likewise.
14532 (__DECL_SIMD_cosf32x): Likewise.
14533 (__DECL_SIMD_cosf64x): Likewise.
14534 (__DECL_SIMD_cosf128x): Likewise.
14535 (__DECL_SIMD_sinf16): Likewise.
14536 (__DECL_SIMD_sinf32): Likewise.
14537 (__DECL_SIMD_sinf64): Likewise.
14538 (__DECL_SIMD_sinf32x): Likewise.
14539 (__DECL_SIMD_sinf64x): Likewise.
14540 (__DECL_SIMD_sinf128x): Likewise.
14541 (__DECL_SIMD_sincosf16): Likewise.
14542 (__DECL_SIMD_sincosf32): Likewise.
14543 (__DECL_SIMD_sincosf64): Likewise.
14544 (__DECL_SIMD_sincosf32x): Likewise.
14545 (__DECL_SIMD_sincosf64x): Likewise.
14546 (__DECL_SIMD_sincosf128x): Likewise.
14547 (__DECL_SIMD_logf16): Likewise.
14548 (__DECL_SIMD_logf32): Likewise.
14549 (__DECL_SIMD_logf64): Likewise.
14550 (__DECL_SIMD_logf32x): Likewise.
14551 (__DECL_SIMD_logf64x): Likewise.
14552 (__DECL_SIMD_logf128x): Likewise.
14553 (__DECL_SIMD_expf16): Likewise.
14554 (__DECL_SIMD_expf32): Likewise.
14555 (__DECL_SIMD_expf64): Likewise.
14556 (__DECL_SIMD_expf32x): Likewise.
14557 (__DECL_SIMD_expf64x): Likewise.
14558 (__DECL_SIMD_expf128x): Likewise.
14559 (__DECL_SIMD_powf16): Likewise.
14560 (__DECL_SIMD_powf32): Likewise.
14561 (__DECL_SIMD_powf64): Likewise.
14562 (__DECL_SIMD_powf32x): Likewise.
14563 (__DECL_SIMD_powf64x): Likewise.
14564 (__DECL_SIMD_powf128x): Likewise.
14565
14566 * stdlib/Versions (libc): Move entries for wcstof128 and
14567 wcstof128_l to ....
14568 * wcsmbs/Versions (libc): ... here.
14569 Include <float128-abi.h>.
14570
14571 2017-11-24 Florian Weimer <fweimer@redhat.com>
14572
14573 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14574 bits/mman-shared.h.
14575 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
14576 <bits/mman-shared.h>.
14577 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
14578 to ...
14579 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
14580 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
14581 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
14582 <bits/mman-shared.h>.
14583
14584 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14585
14586 [BZ #22457]
14587 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
14588 posix_memalign/free.
14589 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
14590
14591 2017-11-22 Mike FABIAN <mfabian@redhat.com>
14592
14593 [BZ #22469]
14594 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
14595 and implement the collation rules for pl from CLDR on top of that.
14596 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
14597 of locales to be built for testing.
14598 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
14599
14600 2017-11-23 Joseph Myers <joseph@codesourcery.com>
14601
14602 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
14603 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
14604 libm_alias_ldouble_other.
14605 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
14606 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
14607 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
14608 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
14609 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
14610 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
14611 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
14612 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
14613 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
14614 libm_alias_ldouble_r.
14615 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
14616 libm_alias_ldouble_other.
14617 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
14618 (log10l): Likewise.
14619 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
14620 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
14621 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
14622 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
14623 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
14624 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
14625 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
14626 (atan2l): Likewise.
14627 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
14628 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
14629 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
14630 libm_alias_ldouble.
14631 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
14632 (cosl): Likewise.
14633 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
14634 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
14635 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
14636 (expl): Likewise.
14637 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
14638 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
14639 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
14640 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
14641 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
14642 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
14643 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
14644 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
14645 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
14646 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
14647 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
14648 libm_alias_ldouble.
14649 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
14650 libm_alias_ldouble_other.
14651 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
14652 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
14653 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
14654 libm_alias_ldouble.
14655 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
14656 libm_alias_ldouble_other.
14657 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
14658 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
14659 * sysdeps/ia64/fpu/w_lgammal_main.c
14660 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
14661 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
14662
14663 2017-11-23 Florian Weimer <fweimer@redhat.com>
14664
14665 * malloc/malloc.c (tcache_thread_shutdown): Rename from
14666 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
14667 alike. Remove freeres marker.
14668 * malloc/arena.c (arena_thread_freeres): Call
14669 tcache_thread_shutdown.
14670
14671 2017-11-23 Florian Weimer <fweimer@redhat.com>
14672
14673 [BZ #22459]
14674 Export nscd hash function as __nss_hash.
14675 * include/nss.h (__nss_hash): Declare.
14676 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
14677 symbol.
14678 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
14679 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
14680 of __nscd_hash.
14681 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
14682 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
14683 * nss/Makefiles (routines): Add nss_hash.
14684 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
14685 * nss/nss_hash.c: Rename from nis/nis_hash.c.
14686 (__nss_hash): Rename from __nis_hash. Define hidden alias.
14687 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
14688
14689 2017-11-23 Florian Weimer <fweimer@redhat.com>
14690
14691 [BZ #22478]
14692 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
14693 Return error code, not -1.
14694 * signal/tst-sigwait-eintr.c: New file.
14695 * signal/Makefile (tests): Add tst-sigwait-eintr.
14696
14697 2017-11-23 Florian Weimer <fweimer@redhat.com>
14698
14699 Linux: Add memfd_create system call wrapper
14700 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
14701 tst-memfd_create.
14702 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
14703 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
14704 [__USE_GNU] (memfd_create): Declare.
14705 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
14706 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
14707 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
14708 * sysdeps/unix/sysv/linux/**.abilist: Update.
14709 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
14710
14711 2017-11-22 Joseph Myers <joseph@codesourcery.com>
14712
14713 * localedata/gen-locale.sh: Fix typo in variable name.
14714
14715 * resolv/res_debug.c (p_secstodate): Condition definition on
14716 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
14717 directly as __p_secstodate, and as a compat symbol. Do not use
14718 libresolv_hidden_def.
14719 * resolv/resolv.h (p_secstodate): Remove macro and function
14720 declaration.
14721 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
14722 using p_secstodate.
14723 * include/resolv.h (__p_secstodate): Do not use
14724 libresolv_hidden_proto.
14725 * resolv/Makefile (tests): Move tst-p_secstodate to ....
14726 (tests-internal): ... here.
14727 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
14728 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
14729 and declare and use __p_secstodate and use compat_symbol_reference
14730 in that case.
14731 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
14732 implementation returning 77.
14733
14734 [BZ #22463]
14735 * resolv/res_debug.c: Include <libc-diag.h>.
14736 (p_secstodate): Assert time_t at least as wide as u_long. On
14737 overflow, use integer seconds since the epoch as output, or use
14738 "<overflow>" as output and set errno to EOVERFLOW if integer
14739 seconds since the epoch would be 14 or more characters.
14740 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
14741 for sprintf call.
14742 * resolv/tst-p_secstodate.c: New file.
14743 * resolv/Makefile (tests): Add tst-p_secstodate.
14744 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
14745
14746 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
14747 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
14748 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
14749
14750 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
14751
14752 * posix/regcomp.c (init_word_char): Add comments.
14753
14754 2017-11-22 Joseph Myers <joseph@codesourcery.com>
14755
14756 [BZ #22447]
14757 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
14758 strlen to compute length of ut_user and set trailing NUL byte of
14759 result explicitly.
14760
14761 2017-11-21 Mike FABIAN <mfabian@redhat.com>
14762
14763 [BZ #15537]
14764 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
14765 using “copy "iso14651_t1"” and then implementing the
14766 collation rules for lv from CLDR on top of that.
14767 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
14768 of locales to be built for testing.
14769 * lv_LV.UTF-8.in: New file with test data to test the Latvian
14770 sorting.
14771
14772 2017-11-21 Joseph Myers <joseph@codesourcery.com>
14773
14774 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
14775 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
14776 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
14777 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
14778 [__USE_MISC] (MADV_HWPOISON): New macro.
14779 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
14780
14781 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14782
14783 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
14784 -Wmissing-braces on GCC 4.9.
14785
14786 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
14787
14788 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
14789 * sysdeps/s390/s390-32/start.S (_start): Likewise
14790 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
14791 (thread_start): Likewise.
14792 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
14793 (thread_start): Likewise.
14794 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
14795 (__makecontext_ret): Likewise.
14796 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
14797 (__makecontext_ret): Likewise.
14798
14799 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
14800
14801 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
14802 __wcschrnul): Remove attribute_hidden.
14803
14804 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
14805
14806 regex: don't assume uint64_t or uint32_t
14807 This avoids -Werror=overflow errors for 32-bit systems in
14808 the 64-bit case. Problem reported by Joseph Myers in:
14809 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
14810 Also, when this code is used in Gnulib it ports to platforms
14811 that lack uint64_t and uint32_t. The C standard doesn't guarantee
14812 them, and on some 32-bit compilers there is no uint64_t.
14813 Problem reported by Gianluigi Tiesi in:
14814 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
14815 * posix/regcomp.c (init_word_char): Don't assume that the types
14816 uint64_t and uint32_t exist. Adapted from Gnulib patch
14817 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
14818 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
14819
14820 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
14821
14822 * sysdeps/aarch64/memset-reg.h: New file.
14823 * sysdeps/aarch64/memset.S: Use it.
14824 (__memset): Rename to MEMSET macro.
14825 [ZVA_MACRO]: Use zva_macro.
14826 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14827 Add memset_generic and memset_falkor.
14828 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14829 (__libc_ifunc_impl_list): Add memset ifuncs.
14830 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
14831 local variable zva_size.
14832 * sysdeps/aarch64/multiarch/memset.c: New file.
14833 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
14834 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
14835 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
14836 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14837 (DCZID_DZP_MASK): New macro.
14838 (DCZID_BS_MASK): Likewise.
14839 (init_cpu_features): Read and set zva_size.
14840 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
14841 (struct cpu_features): New member zva_size.
14842
14843 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
14844 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
14845 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
14846
14847 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
14848 backwards. Fix timing computation.
14849 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
14850 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
14851 on memset by N at a time. Fix timing computation.
14852
14853 2017-11-20 Florian Weimer <fweimer@redhat.com>
14854
14855 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
14856 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
14857
14858 2017-11-19 Florian Weimer <fweimer@redhat.com>
14859
14860 manual: Document mprotect
14861 * manual/memory.texi (Memory Protection): New section.
14862 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
14863 documentation of PROT_* flags and reference the Memory Protection
14864 section instead.
14865
14866 2017-11-19 Florian Weimer <fweimer@redhat.com>
14867
14868 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
14869 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
14870 (Scatter-Gather): ... to here. Remove misleading comment.
14871
14872 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
14873
14874 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
14875 style.
14876
14877 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
14878 when /proc/<pid>/setgroups does not exist.
14879
14880 2017-11-18 Florian Weimer <fweimer@redhat.com>
14881
14882 * sysdeps/unix/sysv/linux/tst-ttyname.c
14883 (become_root_in_mount_ns): Remove.
14884 (do_in_chroot_1): Call support_enter_mount_namespace.
14885 (do_in_chroot_2): Likewise.
14886 (do_test): Call support_become_root early.
14887
14888 2017-11-18 Florian Weimer <fweimer@redhat.com>
14889
14890 * support/namespace.h (support_enter_mount_namespace): Declare.
14891 * support/support_enter_mount_namespace.c: New file.
14892 * support/Makefile (libsupport-routines): Add
14893 support_enter_mount_namespace.
14894
14895 2017-11-18 Florian Weimer <fweimer@redhat.com>
14896
14897 * support/temp_file.c (support_create_temp_directory): Use
14898 test_dir and do not rely on the presence of the XXXXXX suffix.
14899 * support/temp_file.h (support_create_temp_directory): Update
14900 comment.
14901 * support/tst-xreadlink.c (do_test): Adjust.
14902 * support/support_chroot.c (support_chroot_create): Likewise.
14903
14904 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14905
14906 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
14907 macro.
14908 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
14909 htm-no-suspend.
14910
14911 2017-11-17 Joseph Myers <joseph@codesourcery.com>
14912
14913 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
14914 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
14915 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
14916 (ceill): Define using libm_alias_ldouble.
14917 * sysdeps/x86_64/fpu/s_copysignl.S: Include
14918 <libm-alias-ldouble.h>.
14919 (copysignl): Define using libm_alias_ldouble.
14920 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
14921 (fabsl): Define using libm_alias_ldouble.
14922 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
14923 (floorl): Define using libm_alias_ldouble.
14924 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14925 (fmaxl): Define using libm_alias_ldouble.
14926 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14927 (fminl): Define using libm_alias_ldouble.
14928 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
14929 (llrintl): Define using libm_alias_ldouble.
14930 (lrintl): Likewise.
14931 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
14932 <libm-alias-ldouble.h>.
14933 (nearbyintl): Define using libm_alias_ldouble.
14934 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
14935 (truncl): Define using libm_alias_ldouble.
14936 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
14937 <libm-alias-ldouble.h>.
14938 (lrintl): Define using libm_alias_ldouble.
14939
14940 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
14941 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
14942 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
14943 (asinhl): Define using libm_alias_ldouble.
14944 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
14945 (atanl): Define using libm_alias_ldouble.
14946 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
14947 (cbrtl): Define using libm_alias_ldouble.
14948 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
14949 (ceill): Define using libm_alias_ldouble.
14950 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
14951 (copysignl): Define using libm_alias_ldouble.
14952 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
14953 (fabsl): Define using libm_alias_ldouble.
14954 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
14955 (floorl): Define using libm_alias_ldouble.
14956 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14957 (fmaxl): Define using libm_alias_ldouble.
14958 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14959 (fminl): Define using libm_alias_ldouble.
14960 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
14961 (frexpl): Define using libm_alias_ldouble.
14962 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
14963 (llrintl): Define using libm_alias_ldouble.
14964 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
14965 (logbl): Define using libm_alias_ldouble.
14966 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
14967 (lrintl): Define using libm_alias_ldouble.
14968 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
14969 (nearbyintl): Define using libm_alias_ldouble.
14970 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
14971 (nextafterl): Define using libm_alias_ldouble.
14972 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
14973 (remquol): Define using libm_alias_ldouble.
14974 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
14975 (rintl): Define using libm_alias_ldouble.
14976 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
14977 (truncl): Define using libm_alias_ldouble.
14978 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
14979 (fmaxl): Define using libm_alias_ldouble.
14980 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
14981 (fminl): Define using libm_alias_ldouble.
14982
14983 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
14984 to C syntax instead of availability and properties of types.
14985 * bits/floatn.h [!__ASSEMBLER]: Likewise.
14986 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
14987 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
14988 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
14989 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
14990 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
14991
14992 2017-11-17 Florian Weimer <fweimer@redhat.com>
14993
14994 support_become_root: Enable file creation in namespaces.
14995 * support/support_become_root.c (setup_mapping): New function.
14996 (support_become_root): Call it.
14997
14998 2017-11-17 Joseph Myers <joseph@codesourcery.com>
14999
15000 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
15001 macro.
15002
15003 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15004
15005 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
15006 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
15007
15008 2017-11-16 Joseph Myers <joseph@codesourcery.com>
15009
15010 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
15011
15012 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15013 version to 4.14.
15014
15015 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
15016
15017 * INSTALL: Fix botched up regeneration.
15018
15019 * NEWS: Update sourceare link to https.
15020 * configure.ac: Likewise.
15021 * crypt/md5test-giant.c: Likewise.
15022 * dlfcn/bug-atexit1.c: Likewise.
15023 * dlfcn/bug-atexit2.c: Likewise.
15024 * localedata/README: Likewise.
15025 * malloc/tst-mallocfork.c: Likewise.
15026 * manual/install.texi: Likewise.
15027 * nptl/tst-pthread-getattr.c: Likewise.
15028 * stdio-common/tst-fgets.c: Likewise.
15029 * stdio-common/tst-fwrite.c: Likewise.
15030 * sunrpc/Makefile: Likewise.
15031 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
15032 * wcsmbs/tst-mbrtowc2.c: Likewise.
15033 * configure: Regenerate.
15034 * INSTALL: Regenerate.
15035
15036 2017-11-15 Martin Sebor <msebor@redhat.com>
15037
15038 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
15039 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
15040 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
15041
15042 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
15043
15044 [BZ #22145]
15045 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
15046 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
15047
15048 [BZ #22145]
15049 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
15050 Defer is_pty check until end of the function.
15051 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15052
15053 [BZ #22145]
15054 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
15055 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
15056 (ttyname): Likewise.
15057 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
15058 (__ttyname_r): Likewise.
15059
15060 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
15061 int to bool.
15062
15063 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
15064
15065 * manual/terminal.texi (Is It a Terminal):
15066 Mention ENODEV for ttyname and ttyname_r.
15067
15068 2017-11-15 Joseph Myers <joseph@codesourcery.com>
15069
15070 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
15071 constant and macro.
15072
15073 * sysdeps/unix/sysv/linux/bits/mman-linux.h
15074 [__USE_MISC] (MADV_WIPEONFORK): New macro.
15075 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
15076 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
15077 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
15078 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
15079
15080 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15081
15082 * signal/sigrelse.c (sigrelse): Optimize implementation.
15083
15084 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
15085 (__sigpause): Rely on __sigsuspend to implement single thread
15086 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
15087
15088 2017-11-15 Joseph Myers <joseph@codesourcery.com>
15089
15090 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15091 kernel version to 4.14.
15092
15093 2017-11-15 Steve Ellcey <sellcey@cavium.com>
15094
15095 [BZ #22442]
15096 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
15097 Check if ifname is too long.
15098
15099 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
15100
15101 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
15102
15103 2017-11-15 Mike FABIAN <mfabian@redhat.com>
15104
15105 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
15106 was accidentally lost.
15107
15108 2017-11-15 Mike FABIAN <mfabian@redhat.com>
15109
15110 * localedata/locales/az_IR: Add standard copyright header.
15111
15112 2017-11-15 Florian Weimer <fweimer@redhat.com>
15113
15114 [BZ #22439]
15115 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
15116 not just the top one. Output a new "subheaps" statistic.
15117
15118 2017-11-15 Florian Weimer <fweimer@redhat.com>
15119
15120 [BZ #22408]
15121 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
15122 under the per-arena lock.
15123 * malloc/Makefile (tests): Add tst-malloc_info.
15124 (tst-malloc_info): Link with libpthread.
15125 * malloc/tst-malloc_info.c: New file.
15126
15127 2017-11-15 Joseph Myers <joseph@codesourcery.com>
15128
15129 [BZ #21660]
15130 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
15131 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
15132 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
15133 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
15134 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
15135 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
15136 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
15137 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
15138 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
15139 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
15140 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
15141 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
15142 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
15143 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
15144 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
15145 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
15146 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
15147 (__floating_type): Likewise.
15148 (__real_integer_type): Likewise.
15149 (__complex_integer_type): Likewise.
15150 (__expr_is_real): Likewise.
15151 (__tgmath_real_type_sub): Likewise.
15152 (__tgmath_real_type): Likewise.
15153 (__tgmath_complex_type_sub): Likewise.
15154 (__tgmath_complex_type): Likewise.
15155 (__TGMATH_F128): Likewise.
15156 (__TGMATH_CF128): Likewise.
15157 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
15158 new macros.
15159 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
15160 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
15161 Likewise.
15162 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
15163 Likewise.
15164 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
15165 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
15166 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
15167 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
15168 Likewise.
15169 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
15170 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
15171 Likewise.
15172 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
15173 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
15174 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
15175 Likewise.
15176 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
15177 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
15178 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
15179 (cimag): Likewise.
15180 (creal): Likewise.
15181
15182 2017-11-14 Joseph Myers <joseph@codesourcery.com>
15183
15184 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
15185 for stpncpy calls for GCC 8.
15186 (test_strncat): Disable -Wstringop-truncation warning for strncat
15187 calls for GCC 8. Disable -Wstringop-overflow= warning for one
15188 strncat call for GCC 7.
15189 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
15190 calls for GCC 8.
15191 (test_memcmp): Use memcpy instead of strncpy for calls not copying
15192 trailing NUL.
15193
15194 * string/bug-strncat1.c: Include <libc-diag.h>.
15195 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
15196
15197 2017-11-13 Claude Paroz <claude@2xlibre.net>
15198
15199 [BZ #22387]
15200 * localedata/locales/aa_DJ: Improved readibility by replacing
15201 <Uxxxx> sequences in the ASCII printable range by their ASCII
15202 character equivalents.
15203 * localedata/locales/aa_ER: Likewise.
15204 * localedata/locales/aa_ER@saaho: Likewise.
15205 * localedata/locales/aa_ET: Likewise.
15206 * localedata/locales/af_ZA: Likewise.
15207 * localedata/locales/agr_PE: Likewise.
15208 * localedata/locales/ak_GH: Likewise.
15209 * localedata/locales/am_ET: Likewise.
15210 * localedata/locales/anp_IN: Likewise.
15211 * localedata/locales/ar_AE: Likewise.
15212 * localedata/locales/ar_BH: Likewise.
15213 * localedata/locales/ar_DZ: Likewise.
15214 * localedata/locales/ar_EG: Likewise.
15215 * localedata/locales/ar_IN: Likewise.
15216 * localedata/locales/ar_IQ: Likewise.
15217 * localedata/locales/ar_JO: Likewise.
15218 * localedata/locales/ar_KW: Likewise.
15219 * localedata/locales/ar_LB: Likewise.
15220 * localedata/locales/ar_LY: Likewise.
15221 * localedata/locales/ar_MA: Likewise.
15222 * localedata/locales/ar_OM: Likewise.
15223 * localedata/locales/ar_QA: Likewise.
15224 * localedata/locales/ar_SA: Likewise.
15225 * localedata/locales/ar_SD: Likewise.
15226 * localedata/locales/ar_SS: Likewise.
15227 * localedata/locales/ar_SY: Likewise.
15228 * localedata/locales/ar_TN: Likewise.
15229 * localedata/locales/ar_YE: Likewise.
15230 * localedata/locales/as_IN: Likewise.
15231 * localedata/locales/ast_ES: Likewise.
15232 * localedata/locales/ayc_PE: Likewise.
15233 * localedata/locales/az_AZ: Likewise.
15234 * localedata/locales/az_IR: Likewise.
15235 * localedata/locales/be_BY: Likewise.
15236 * localedata/locales/be_BY@latin: Likewise.
15237 * localedata/locales/bem_ZM: Likewise.
15238 * localedata/locales/ber_DZ: Likewise.
15239 * localedata/locales/ber_MA: Likewise.
15240 * localedata/locales/bg_BG: Likewise.
15241 * localedata/locales/bhb_IN: Likewise.
15242 * localedata/locales/bho_IN: Likewise.
15243 * localedata/locales/bi_VU: Likewise.
15244 * localedata/locales/bn_BD: Likewise.
15245 * localedata/locales/bn_IN: Likewise.
15246 * localedata/locales/bo_CN: Likewise.
15247 * localedata/locales/bo_IN: Likewise.
15248 * localedata/locales/br_FR: Likewise.
15249 * localedata/locales/brx_IN: Likewise.
15250 * localedata/locales/bs_BA: Likewise.
15251 * localedata/locales/byn_ER: Likewise.
15252 * localedata/locales/ca_AD: Likewise.
15253 * localedata/locales/ca_ES: Likewise.
15254 * localedata/locales/ca_FR: Likewise.
15255 * localedata/locales/ca_IT: Likewise.
15256 * localedata/locales/ce_RU: Likewise.
15257 * localedata/locales/chr_US: Likewise.
15258 * localedata/locales/cmn_TW: Likewise.
15259 * localedata/locales/crh_UA: Likewise.
15260 * localedata/locales/cs_CZ: Likewise.
15261 * localedata/locales/csb_PL: Likewise.
15262 * localedata/locales/cv_RU: Likewise.
15263 * localedata/locales/cy_GB: Likewise.
15264 * localedata/locales/da_DK: Likewise.
15265 * localedata/locales/de_AT: Likewise.
15266 * localedata/locales/de_BE: Likewise.
15267 * localedata/locales/de_CH: Likewise.
15268 * localedata/locales/de_DE: Likewise.
15269 * localedata/locales/de_IT: Likewise.
15270 * localedata/locales/de_LI: Likewise.
15271 * localedata/locales/de_LU: Likewise.
15272 * localedata/locales/doi_IN: Likewise.
15273 * localedata/locales/dv_MV: Likewise.
15274 * localedata/locales/dz_BT: Likewise.
15275 * localedata/locales/el_CY: Likewise.
15276 * localedata/locales/el_GR: Likewise.
15277 * localedata/locales/en_AG: Likewise.
15278 * localedata/locales/en_AU: Likewise.
15279 * localedata/locales/en_BW: Likewise.
15280 * localedata/locales/en_CA: Likewise.
15281 * localedata/locales/en_DK: Likewise.
15282 * localedata/locales/en_GB: Likewise.
15283 * localedata/locales/en_HK: Likewise.
15284 * localedata/locales/en_IE: Likewise.
15285 * localedata/locales/en_IL: Likewise.
15286 * localedata/locales/en_IN: Likewise.
15287 * localedata/locales/en_NG: Likewise.
15288 * localedata/locales/en_NZ: Likewise.
15289 * localedata/locales/en_PH: Likewise.
15290 * localedata/locales/en_SG: Likewise.
15291 * localedata/locales/en_US: Likewise.
15292 * localedata/locales/en_ZA: Likewise.
15293 * localedata/locales/en_ZM: Likewise.
15294 * localedata/locales/en_ZW: Likewise.
15295 * localedata/locales/eo: Likewise.
15296 * localedata/locales/es_AR: Likewise.
15297 * localedata/locales/es_BO: Likewise.
15298 * localedata/locales/es_CL: Likewise.
15299 * localedata/locales/es_CO: Likewise.
15300 * localedata/locales/es_CR: Likewise.
15301 * localedata/locales/es_CU: Likewise.
15302 * localedata/locales/es_DO: Likewise.
15303 * localedata/locales/es_EC: Likewise.
15304 * localedata/locales/es_ES: Likewise.
15305 * localedata/locales/es_GT: Likewise.
15306 * localedata/locales/es_HN: Likewise.
15307 * localedata/locales/es_MX: Likewise.
15308 * localedata/locales/es_NI: Likewise.
15309 * localedata/locales/es_PA: Likewise.
15310 * localedata/locales/es_PE: Likewise.
15311 * localedata/locales/es_PR: Likewise.
15312 * localedata/locales/es_PY: Likewise.
15313 * localedata/locales/es_SV: Likewise.
15314 * localedata/locales/es_US: Likewise.
15315 * localedata/locales/es_UY: Likewise.
15316 * localedata/locales/es_VE: Likewise.
15317 * localedata/locales/et_EE: Likewise.
15318 * localedata/locales/eu_ES: Likewise.
15319 * localedata/locales/eu_ES@euro: Likewise.
15320 * localedata/locales/fa_IR: Likewise.
15321 * localedata/locales/ff_SN: Likewise.
15322 * localedata/locales/fi_FI: Likewise.
15323 * localedata/locales/fil_PH: Likewise.
15324 * localedata/locales/fo_FO: Likewise.
15325 * localedata/locales/fr_BE: Likewise.
15326 * localedata/locales/fr_CA: Likewise.
15327 * localedata/locales/fr_CH: Likewise.
15328 * localedata/locales/fr_FR: Likewise.
15329 * localedata/locales/fr_LU: Likewise.
15330 * localedata/locales/fur_IT: Likewise.
15331 * localedata/locales/fy_DE: Likewise.
15332 * localedata/locales/fy_NL: Likewise.
15333 * localedata/locales/ga_IE: Likewise.
15334 * localedata/locales/gd_GB: Likewise.
15335 * localedata/locales/gez_ER: Likewise.
15336 * localedata/locales/gez_ET: Likewise.
15337 * localedata/locales/gl_ES: Likewise.
15338 * localedata/locales/gu_IN: Likewise.
15339 * localedata/locales/gv_GB: Likewise.
15340 * localedata/locales/ha_NG: Likewise.
15341 * localedata/locales/hak_TW: Likewise.
15342 * localedata/locales/he_IL: Likewise.
15343 * localedata/locales/hi_IN: Likewise.
15344 * localedata/locales/hif_FJ: Likewise.
15345 * localedata/locales/hne_IN: Likewise.
15346 * localedata/locales/hr_HR: Likewise.
15347 * localedata/locales/hsb_DE: Likewise.
15348 * localedata/locales/ht_HT: Likewise.
15349 * localedata/locales/hu_HU: Likewise.
15350 * localedata/locales/hy_AM: Likewise.
15351 * localedata/locales/i18n: Likewise.
15352 * localedata/locales/ia_FR: Likewise.
15353 * localedata/locales/id_ID: Likewise.
15354 * localedata/locales/ig_NG: Likewise.
15355 * localedata/locales/ik_CA: Likewise.
15356 * localedata/locales/is_IS: Likewise.
15357 * localedata/locales/it_CH: Likewise.
15358 * localedata/locales/it_IT: Likewise.
15359 * localedata/locales/iu_CA: Likewise.
15360 * localedata/locales/ja_JP: Likewise.
15361 * localedata/locales/ka_GE: Likewise.
15362 * localedata/locales/kk_KZ: Likewise.
15363 * localedata/locales/kl_GL: Likewise.
15364 * localedata/locales/kn_IN: Likewise.
15365 * localedata/locales/ko_KR: Likewise.
15366 * localedata/locales/kok_IN: Likewise.
15367 * localedata/locales/ks_IN: Likewise.
15368 * localedata/locales/ks_IN@devanagari: Likewise.
15369 * localedata/locales/ku_TR: Likewise.
15370 * localedata/locales/kw_GB: Likewise.
15371 * localedata/locales/ky_KG: Likewise.
15372 * localedata/locales/lb_LU: Likewise.
15373 * localedata/locales/lg_UG: Likewise.
15374 * localedata/locales/li_BE: Likewise.
15375 * localedata/locales/li_NL: Likewise.
15376 * localedata/locales/lij_IT: Likewise.
15377 * localedata/locales/ln_CD: Likewise.
15378 * localedata/locales/lo_LA: Likewise.
15379 * localedata/locales/lt_LT: Likewise.
15380 * localedata/locales/lv_LV: Likewise.
15381 * localedata/locales/lzh_TW: Likewise.
15382 * localedata/locales/mag_IN: Likewise.
15383 * localedata/locales/mai_IN: Likewise.
15384 * localedata/locales/mg_MG: Likewise.
15385 * localedata/locales/mhr_RU: Likewise.
15386 * localedata/locales/mi_NZ: Likewise.
15387 * localedata/locales/mk_MK: Likewise.
15388 * localedata/locales/ml_IN: Likewise.
15389 * localedata/locales/mn_MN: Likewise.
15390 * localedata/locales/mni_IN: Likewise.
15391 * localedata/locales/mr_IN: Likewise.
15392 * localedata/locales/ms_MY: Likewise.
15393 * localedata/locales/mt_MT: Likewise.
15394 * localedata/locales/my_MM: Likewise.
15395 * localedata/locales/nan_TW: Likewise.
15396 * localedata/locales/nan_TW@latin: Likewise.
15397 * localedata/locales/nb_NO: Likewise.
15398 * localedata/locales/nds_DE: Likewise.
15399 * localedata/locales/nds_NL: Likewise.
15400 * localedata/locales/ne_NP: Likewise.
15401 * localedata/locales/nhn_MX: Likewise.
15402 * localedata/locales/niu_NU: Likewise.
15403 * localedata/locales/niu_NZ: Likewise.
15404 * localedata/locales/nl_AW: Likewise.
15405 * localedata/locales/nl_BE: Likewise.
15406 * localedata/locales/nl_NL: Likewise.
15407 * localedata/locales/nn_NO: Likewise.
15408 * localedata/locales/nr_ZA: Likewise.
15409 * localedata/locales/nso_ZA: Likewise.
15410 * localedata/locales/oc_FR: Likewise.
15411 * localedata/locales/om_ET: Likewise.
15412 * localedata/locales/om_KE: Likewise.
15413 * localedata/locales/or_IN: Likewise.
15414 * localedata/locales/os_RU: Likewise.
15415 * localedata/locales/pa_IN: Likewise.
15416 * localedata/locales/pa_PK: Likewise.
15417 * localedata/locales/pap_AW: Likewise.
15418 * localedata/locales/pap_CW: Likewise.
15419 * localedata/locales/pl_PL: Likewise.
15420 * localedata/locales/ps_AF: Likewise.
15421 * localedata/locales/pt_BR: Likewise.
15422 * localedata/locales/pt_PT: Likewise.
15423 * localedata/locales/quz_PE: Likewise.
15424 * localedata/locales/raj_IN: Likewise.
15425 * localedata/locales/ro_RO: Likewise.
15426 * localedata/locales/ru_RU: Likewise.
15427 * localedata/locales/ru_UA: Likewise.
15428 * localedata/locales/rw_RW: Likewise.
15429 * localedata/locales/sa_IN: Likewise.
15430 * localedata/locales/sat_IN: Likewise.
15431 * localedata/locales/sc_IT: Likewise.
15432 * localedata/locales/sd_IN: Likewise.
15433 * localedata/locales/sd_IN@devanagari: Likewise.
15434 * localedata/locales/se_NO: Likewise.
15435 * localedata/locales/sgs_LT: Likewise.
15436 * localedata/locales/shs_CA: Likewise.
15437 * localedata/locales/si_LK: Likewise.
15438 * localedata/locales/sid_ET: Likewise.
15439 * localedata/locales/sk_SK: Likewise.
15440 * localedata/locales/sl_SI: Likewise.
15441 * localedata/locales/sm_WS: Likewise.
15442 * localedata/locales/so_DJ: Likewise.
15443 * localedata/locales/so_ET: Likewise.
15444 * localedata/locales/so_KE: Likewise.
15445 * localedata/locales/so_SO: Likewise.
15446 * localedata/locales/sq_AL: Likewise.
15447 * localedata/locales/sq_MK: Likewise.
15448 * localedata/locales/sr_ME: Likewise.
15449 * localedata/locales/sr_RS: Likewise.
15450 * localedata/locales/sr_RS@latin: Likewise.
15451 * localedata/locales/ss_ZA: Likewise.
15452 * localedata/locales/st_ZA: Likewise.
15453 * localedata/locales/sv_FI: Likewise.
15454 * localedata/locales/sv_SE: Likewise.
15455 * localedata/locales/sw_KE: Likewise.
15456 * localedata/locales/sw_TZ: Likewise.
15457 * localedata/locales/szl_PL: Likewise.
15458 * localedata/locales/ta_IN: Likewise.
15459 * localedata/locales/ta_LK: Likewise.
15460 * localedata/locales/tcy_IN: Likewise.
15461 * localedata/locales/te_IN: Likewise.
15462 * localedata/locales/tg_TJ: Likewise.
15463 * localedata/locales/th_TH: Likewise.
15464 * localedata/locales/the_NP: Likewise.
15465 * localedata/locales/ti_ER: Likewise.
15466 * localedata/locales/ti_ET: Likewise.
15467 * localedata/locales/tig_ER: Likewise.
15468 * localedata/locales/tk_TM: Likewise.
15469 * localedata/locales/tl_PH: Likewise.
15470 * localedata/locales/tn_ZA: Likewise.
15471 * localedata/locales/to_TO: Likewise.
15472 * localedata/locales/tpi_PG: Likewise.
15473 * localedata/locales/tr_CY: Likewise.
15474 * localedata/locales/tr_TR: Likewise.
15475 * localedata/locales/ts_ZA: Likewise.
15476 * localedata/locales/tt_RU: Likewise.
15477 * localedata/locales/tt_RU@iqtelif: Likewise.
15478 * localedata/locales/ug_CN: Likewise.
15479 * localedata/locales/uk_UA: Likewise.
15480 * localedata/locales/unm_US: Likewise.
15481 * localedata/locales/ur_IN: Likewise.
15482 * localedata/locales/ur_PK: Likewise.
15483 * localedata/locales/uz_UZ: Likewise.
15484 * localedata/locales/uz_UZ@cyrillic: Likewise.
15485 * localedata/locales/ve_ZA: Likewise.
15486 * localedata/locales/vi_VN: Likewise.
15487 * localedata/locales/wa_BE: Likewise.
15488 * localedata/locales/wae_CH: Likewise.
15489 * localedata/locales/wal_ET: Likewise.
15490 * localedata/locales/wo_SN: Likewise.
15491 * localedata/locales/xh_ZA: Likewise.
15492 * localedata/locales/yi_US: Likewise.
15493 * localedata/locales/yo_NG: Likewise.
15494 * localedata/locales/yue_HK: Likewise.
15495 * localedata/locales/yuw_PG: Likewise.
15496 * localedata/locales/zh_CN: Likewise.
15497 * localedata/locales/zh_HK: Likewise.
15498 * localedata/locales/zh_SG: Likewise.
15499 * localedata/locales/zh_TW: Likewise.
15500 * localedata/locales/zu_ZA: Likewise.
15501
15502 2017-11-13 Florian Weimer <fweimer@redhat.com>
15503
15504 * support/next_to_fault.h, support/next_to_fault.c: New files.
15505 * support/Makefile (libsupport-routines): Add next_to_fault.
15506 * resolv/tst-inet_pton.c (struct next_to_fault)
15507 (next_to_fault_allocate, next_to_fault_free): Remove.
15508 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
15509
15510 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
15511
15512 * elf/dl-support.c: Include <dl-procruntime.c>.
15513 * include/link.h: Include <link_map.h>.
15514 * sysdeps/generic/dl-procruntime.c: New file.
15515 * sysdeps/generic/link_map.h: Likewise.
15516 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
15517 the writable ld.so namespace.
15518
15519 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
15520
15521 timezone: pacify GCC -Wstringop-truncation
15522 Problem reported by Martin Sebor in:
15523 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
15524 * timezone/zic.c (writezone): Use memcpy, not strncpy.
15525
15526 2017-11-12 Florian Weimer <fweimer@redhat.com>
15527
15528 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
15529 tst-xreadlink.
15530 (tests): Add tst-xreadlink.
15531 * support/support.h (xstrndup): Declare.
15532 * support/xunistd.h (xunlink, xreadlink): Declare.
15533 * support/temp_file.h (support_create_temp_directory): Declare.
15534 * support/temp_file.c (support_create_temp_directory): New function.
15535 * support/support_chroot.c (support_chroot_create): Use it.
15536 * support/xreadlink.c: New file.
15537 * support/xstrndup.c: Likewise.
15538 * support/xunlink.c: Likewise.
15539 * support/tst-xreadlink.c: Likewise.
15540
15541 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
15542
15543 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
15544
15545 2017-11-11 Florian Weimer <fweimer@redhat.com>
15546
15547 [BZ #22409]
15548 [BZ #22412]
15549 * resolv/res_comp.c (printable_string, binary_hnok)
15550 (binary_leading_dash): New functions.
15551 (res_hnok): Reimplement using these functions and ns_name_pton.
15552 (res_ownok): Likewise.
15553 (res_mailok): Reimplement using printable_string, ns_name_pton and
15554 binary_hnok.
15555 (res_dnok): Reimplement using printable_string and ns_name_pton.
15556 * resolv/tst-res_hnok.c (tests): Add additional tests.
15557 (LETTERDIGITS, PRINTABLE): Define.
15558 (do_test): Adjust one_char results.
15559
15560 2017-11-11 Florian Weimer <fweimer@redhat.com>
15561
15562 [BZ #22413]
15563 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
15564 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
15565
15566 2017-11-11 Florian Weimer <fweimer@redhat.com>
15567
15568 * resolv/tst-ns_name_pton.c: New file.
15569 * resolv/Makefile (tests): Add tst-ns_name_pton.
15570 (tst-ns_name_pton): Link against libresolv.
15571
15572 2017-11-11 Florian Weimer <fweimer@redhat.com>
15573
15574 * resolv/tst-res_hnok.c: New file.
15575 * resolv/Makefile (tests): Add tst-res_hnok.
15576 (tst-res_hnok): Link against libresolv.
15577
15578 2017-11-11 Florian Weimer <fweimer@redhat.com>
15579
15580 * resolv/tst-resolv-network.c: Use test framework instead explicit
15581 main function.
15582
15583 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
15584
15585 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
15586 <jmp_buf-macros.h>.
15587 [!_ISOMAC] (STR_HELPER): New.
15588 [!_ISOMAC] (STR): Likewise.
15589 [!_ISOMAC] (TEST_SIZE): Likewise.
15590 [!_ISOMAC] (TEST_ALIGN): Likewise.
15591 [!_ISOMAC] (TEST_OFFSET): Likewise.
15592 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
15593 field offsets of jmp_buf as well as sigjmp_buf.
15594 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
15595 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
15596 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
15597 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
15598 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
15599 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
15600 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
15601 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
15602 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
15603 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
15604 Likewise.
15605 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
15606 Likewise.
15607 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
15608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
15609 Likewise.
15610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
15611 Likewise.
15612 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
15613 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
15614 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
15615 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
15616 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
15617 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
15618 Likewise.
15619 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
15620 Likewise.
15621 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
15622 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
15623 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
15624
15625 2017-11-07 Joseph Myers <joseph@codesourcery.com>
15626
15627 * include/float.h
15628 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15629 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
15630 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15631 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
15632 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15633 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
15634 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15635 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
15636 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15637 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
15638 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15639 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
15640 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15641 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
15642 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15643 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
15644 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15645 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
15646 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15647 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
15648 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15649 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
15650 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15651 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
15652 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15653 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
15654 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15655 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
15656 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15657 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
15658 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15659 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
15660 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15661 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
15662 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15663 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
15664 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15665 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
15666 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15667 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
15668 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15669 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
15670 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15671 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
15672 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15673 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
15674 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15675 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
15676 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15677 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
15678 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15679 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
15680 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15681 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
15682 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15683 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
15684 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15685 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
15686 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15687 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
15688 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15689 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
15690 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15691 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
15692 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15693 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
15694 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15695 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
15696 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15697 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
15698 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15699 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
15700 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15701 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
15702 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15703 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
15704 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15705 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
15706 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15707 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
15708 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15709 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
15710 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15711 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
15712 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15713 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
15714 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
15715 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
15716
15717 * stdlib/tst-strtod.h (F16): New macro.
15718 (F32): Likewise.
15719 (F64): Likewise.
15720 (F32X): Likewise.
15721 (F64X): Likewise.
15722 (F128X): Likewise.
15723 (IF_FLOAT16): Likewise.
15724 (IF_FLOAT32): Likewise.
15725 (IF_FLOAT64): Likewise.
15726 (IF_FLOAT32X): Likewise.
15727 (IF_FLOAT64X): Likewise.
15728 (IF_FLOAT128X): Likewise.
15729 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
15730 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
15731 (STRTOD_TEST_FOREACH): Likewise.
15732 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
15733 (CHOOSE_f64): Likewise.
15734 (CHOOSE_f32x): Likewise.
15735 (CHOOSE_f64x): Likewise.
15736
15737 2017-11-07 Andreas Schwab <schwab@suse.de>
15738
15739 * nptl/Makefile (tests-internal): Remove tst-typesizes.
15740
15741 2017-11-07 Mike FABIAN <mfabian@redhat.com>
15742
15743 [BZ #22403]
15744 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
15745 to be escaped.
15746 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
15747 to be escaped.
15748
15749 2017-11-07 Claude Paroz <claude@2xlibre.net>
15750
15751 [BZ #22403]
15752 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
15753 to be escaped.
15754 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
15755 to be escaped.
15756 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
15757 to be escaped.
15758
15759 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15760
15761 [BZ #22298]
15762 * nptl/allocatestack.c (allocate_stack): Check if
15763 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
15764 __PTHREAD_MUTEX_HAVE_PREV is defined.
15765 * nptl/descr.h (pthread): Likewise.
15766 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
15767 Likewise.
15768 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15769 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15770 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
15771 * sysdeps/nptl/bits/thread-shared-types.h
15772 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
15773 defines.
15774 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
15775 of __WORDSIZE for internal layout.
15776 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
15777 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
15778 instead of __WORDSIZE whether to use an union for __spins and __list
15779 fields.
15780 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
15781 case.
15782 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
15783 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
15784 defines.
15785 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
15786 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15787 Likewise.
15788 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
15789 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15790 Likewise.
15791 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
15792 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15793 Likewise.
15794 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
15795 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15796 Likewise.
15797 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
15798 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15799 Likewise.
15800 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
15801 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15802 Likewise.
15803 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
15804 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15805 Likewise.
15806 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
15807 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15808 Likewise.
15809 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
15810 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15811 Likewise.
15812 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
15813 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15814 Likewise.
15815 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
15816 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15817 Likewise.
15818 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
15819 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15820 Likewise.
15821 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
15822 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15823 Likewise.
15824 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
15825 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
15826 Likewise.
15827
15828 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
15829 New macros.
15830 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
15831 checks for expected input type size.
15832 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
15833 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
15834 Likewise.
15835 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
15836 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
15837 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
15838 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
15839 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
15840 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
15841 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
15842 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
15843 superflous runtime assert check.
15844 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
15845 Likewise.
15846 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
15847 Likewise.
15848 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
15849 Likewise.
15850 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
15851 Likewise.
15852 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
15853 Likewise.
15854 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
15855 Likewise.
15856 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
15857 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
15858 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
15859 Likewise.
15860 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
15861 Likewise.
15862 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
15863 Likewise.
15864 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
15865 Likewise.
15866 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
15867 Likewise.
15868 * nptl/pthread_attr_setinheritsched.c
15869 (__pthread_attr_setinheritsched): Likewise.
15870 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
15871 Likewise.
15872 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
15873 Likewise.
15874 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
15875 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
15876 __old_pthread_attr_setstack): Likewise.
15877 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
15878 Likewise.
15879 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
15880 Likewise.
15881 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
15882 Likewise.
15883 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
15884 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
15885 Likewise.
15886 * nptl/tst-typesizes.c: Remove file.
15887
15888 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
15889 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
15890 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
15891 checks for internal pthread_mutex_t offsets.
15892 * sysdeps/aarch64/nptl/pthread-offsets.h
15893 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
15894 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
15895 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
15896 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
15897 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
15898 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
15899 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
15900 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
15901 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
15902 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
15903 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
15904 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
15905 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
15906 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
15907 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
15908 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
15909 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
15910 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
15911
15912 2017-11-07 Florian Weimer <fweimer@redhat.com>
15913
15914 * bits/mman-linux.h: Move ...
15915 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
15916 comment.
15917 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
15918 outdated comment.
15919
15920 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15921
15922 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
15923 Redefine STRNLEN as __strnlen_power8.
15924
15925 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15926
15927 * signal/sighold.c (sighold): Optimize implementation.
15928
15929 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
15930 __NR_rt_sigqueueinfo.
15931
15932 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
15933 __sigtimedwait.
15934 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
15935 assume __NR_rt_sigtimedwait.
15936 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
15937 and add LIBC_CANCEL_HANDLED for cancellation marking.
15938 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
15939
15940 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
15941 (sysdeps_routines): Add memchr_noneon.
15942 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
15943 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
15944 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
15945 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
15946 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
15947 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
15948 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
15949
15950 * sysdeps/arm/arm-ifunc.h: New file.
15951 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
15952 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
15953 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
15954 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
15955 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
15956 (__memcpy_neon): Avoid create hidden alias.
15957 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
15958 (__memcpy_vfp): Likewise.
15959 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
15960 (sysdep_routines): Add memcpy_arm.
15961 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
15962
15963 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
15964
15965 [BZ #22362]
15966 * Makerules (make-link-multidir): New.
15967 * config.make.in (multidir): New.
15968 * configure.ac (libc_cv_multidir): New. AC_SUBST.
15969 * configure: Regenerated.
15970 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
15971 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
15972 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
15973 New target.
15974
15975 2017-11-06 Joseph Myers <joseph@codesourcery.com>
15976
15977 [BZ #22402]
15978 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
15979 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
15980
15981 2017-11-04 Mike FABIAN <mfabian@redhat.com>
15982
15983 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
15984 to be escaped.
15985
15986 2017-11-04 Florian Weimer <fweimer@redhat.com>
15987
15988 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
15989
15990 2017-11-03 Joseph Myers <joseph@codesourcery.com>
15991
15992 * math/math.h [__HAVE_DISTINCT_FLOAT16
15993 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
15994 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
15995 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
15996 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
15997 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
15998 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
15999 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
16000 (__MATH_TG_F32): New macro.
16001 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
16002 (__MATH_TG_F64X): Likewise.
16003 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
16004 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
16005
16006 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
16007
16008 * po/de.po: Update translations.
16009 * po/ru.po: Likewise.
16010
16011 2017-11-03 Florian Weimer <fweimer@redhat.com>
16012
16013 * manual/filesys.texi (Hard Links): Document linkat.
16014
16015 2017-11-03 Joseph Myers <joseph@codesourcery.com>
16016
16017 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
16018 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
16019 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
16020 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
16021 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
16022 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
16023 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
16024 the same as _Float128.
16025 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
16026 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
16027 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
16028
16029 * stdlib/stdlib.h
16030 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
16031 Declare.
16032 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
16033 Likewise.
16034 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
16035 Likewise.
16036 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16037 (strtof32x): Likewise.
16038 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16039 (strtof64x): Likewise.
16040 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16041 (strtof128x): Likewise.
16042 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16043 (strfromf16): Likewise.
16044 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16045 (strfromf32): Likewise.
16046 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16047 (strfromf64): Likewise.
16048 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16049 (strfromf32x): Likewise.
16050 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16051 (strfromf64x): Likewise.
16052 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16053 (strfromf128x): Likewise.
16054 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
16055 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
16056 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
16057 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
16058 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
16059 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
16060
16061 2017-11-03 Richard Henderson <rth@twiddle.net>
16062
16063 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
16064
16065 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16066
16067 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
16068
16069 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16070
16071 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
16072 DT_TLSDESC_GOT initialization.
16073 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
16074 (_dl_tlsdesc_resolve_hold): Likewise.
16075 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
16076 (_dl_tlsdesc_resolve_hold): Likewise.
16077 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
16078 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
16079
16080 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16081
16082 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
16083
16084 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16085
16086 [BZ #18572]
16087 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
16088 non-lazily for R_ARM_TLS_DESC.
16089
16090 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16091
16092 [BZ #17078]
16093 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
16094 R_ARM_TLS_DESC case.
16095 (elf_machine_lazy_rel): Remove the prelink check.
16096
16097 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16098
16099 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
16100 DT_TLSDESC_GOT initialization.
16101 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
16102 (_dl_tlsdesc_resolve_rela): Likewise.
16103 (_dl_tlsdesc_resolve_hold): Likewise.
16104 (_dl_tlsdesc_undefweak): Remove ldar.
16105 (_dl_tlsdesc_dynamic): Likewise.
16106 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
16107 (_dl_tlsdesc_resolve_rela): Likewise.
16108 (_dl_tlsdesc_resolve_hold): Likewise.
16109 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
16110 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
16111 (_dl_tlsdesc_resolve_rela): Likewise.
16112 (_dl_tlsdesc_resolve_hold): Likewise.
16113
16114 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16115
16116 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
16117 binding and initialization non-lazily for R_AARCH64_TLSDESC.
16118
16119 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16120
16121 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
16122 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
16123
16124 2017-11-02 Joseph Myers <joseph@codesourcery.com>
16125
16126 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
16127 Declare.
16128 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
16129 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
16130 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
16131 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
16132 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
16133 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
16134 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
16135 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
16136 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
16137 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
16138 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
16139
16140 2017-11-02 Mike FABIAN <mfabian@redhat.com>
16141
16142 [BZ #22382]
16143 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
16144 * localedata/locales/tpi_PG: Add standard header.
16145
16146 2017-11-02 Florian Weimer <fweimer@redhat.com>
16147
16148 test-errno-linux: quotactl can fail with EPERM in containers.
16149 * sysdeps/unix/sysv/linux/test-errno-linux.c
16150 (LIST, LIST_FORWARD): New macros.
16151 (check_error_in_list): New function.
16152 (test_wrp_rv): Accept list of permitted error codes.
16153 (test_wrp_rv2): Remove.
16154 (test_wrp): Call test_wrp_rv with list of error codes.
16155 (test_wrp2): Accept list of error codes.
16156 (do_test): Adjust. Allow EPERM for quotactl.
16157
16158 2017-11-02 Florian Weimer <fweimer@redhat.com>
16159
16160 * stdio-common/bug16.c (do_test): Use array_length.
16161 * stdio-common/errlist.c (_sys_nerr): Likewise.
16162 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
16163 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
16164 * stdio-common/psiginfo.c (psiginfo): Use array_length.
16165 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
16166 (do_test): Use array_length.
16167 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
16168 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
16169 * stdio-common/tst-printf-round.c (do_test): Likewise.
16170 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
16171 (CHECK): Use array_length.
16172 * stdio-common/tstdiomisc.c (t3, F): Likewise.
16173 * stdio-common/tstscanf.c (main): Likewise.
16174 * stdio-common/vfprintf.c (process_string_arg): Likewise.
16175
16176 2017-11-02 Florian Weimer <fweimer@redhat.com>
16177
16178 Add array_length and array_end macros.
16179 * include/array_length.h: New file.
16180
16181 2017-11-02 Florian Weimer <fweimer@redhat.com>
16182
16183 [BZ #22332]
16184 * posix/tst-glob-tilde.c (do_noescape): New variable.
16185 (one_test): Process it.
16186 (do_test): Set do_noescape. Add unescaping test case.
16187
16188 2017-11-01 Joseph Myers <joseph@codesourcery.com>
16189
16190 * math/complex.h
16191 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
16192 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
16193 with appropriate macros defined and undefined.
16194 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
16195 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16196 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
16197 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16198 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
16199 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16200 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
16201 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16202 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
16203 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16204
16205 * math/complex.h
16206 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
16207 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
16208 that for long double. Do not condition define and undefine of
16209 _Mdouble_complex_ on [__CFLOAT128].
16210
16211 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
16212
16213 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
16214 of <sysdeps/generic/sysdep.h>.
16215 (ALIGNARG): Removed.
16216 (ASM_SIZE_DIRECTIVE): Likewise.
16217 (ENTRY): Likewise.
16218 (END): Likewise.
16219 (ENTRY_CHK): Likewise.
16220 (END_CHK): Likewise.
16221 (syscall_error): Likewise.
16222 (mcount): Likewise.
16223 (PSEUDO_END): Likewise.
16224 (L): Likewise.
16225 (atom_text_section): Likewise.
16226 * sysdeps/x86/sysdep.h: New file.
16227 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
16228 of <sysdeps/generic/sysdep.h>.
16229 (ALIGNARG): Removed.
16230 (ASM_SIZE_DIRECTIVE): Likewise.
16231 (ENTRY): Likewise.
16232 (END): Likewise.
16233 (ENTRY_CHK): Likewise.
16234 (END_CHK): Likewise.
16235 (syscall_error): Likewise.
16236 (mcount): Likewise.
16237 (PSEUDO_END): Likewise.
16238 (L): Likewise.
16239 (atom_text_section): Likewise.
16240
16241 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
16242
16243 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
16244 category of LC_CTYPE set to "i18n:2012".
16245 * localedata/locales/i18n_ctype: Regenerate.
16246
16247 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
16248
16249 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
16250 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
16251 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
16252 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
16253
16254 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
16255 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
16256 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
16257 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
16258
16259 2017-10-31 Joseph Myers <joseph@codesourcery.com>
16260
16261 * math/complex.h
16262 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
16263 New macro.
16264 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
16265 Likewise.
16266 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
16267 Likewise.
16268 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16269 (CMPLXF32X): Likewise.
16270 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16271 (CMPLXF64X): Likewise.
16272 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16273 (CMPLXF128X): Likewise.
16274
16275 * math/math.h
16276 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
16277 (__MATH_EVAL_FMT2): Define to add 0.0f.
16278
16279 2017-10-31 Alan Modra <amodra@gmail.com>
16280
16281 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
16282 include sysdep.h.
16283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
16284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
16285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
16286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
16287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
16288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
16289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
16290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
16291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
16292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
16293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
16294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
16295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
16296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
16297 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
16298 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
16299 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
16300 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
16301 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
16302 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
16303 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
16304 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
16305 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
16306 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
16307 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
16308 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
16309 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
16310 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
16311 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
16312 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
16313 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
16314 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
16315 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
16316 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
16317 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
16318 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
16319 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
16320 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
16321 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
16322 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
16323 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
16324 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
16325 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
16326 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
16327 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
16328 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
16329 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
16330 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
16331 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
16332 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
16333 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
16334 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
16335 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
16336 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
16337 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
16338 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
16339 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
16340 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
16341 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
16342 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
16343 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
16344 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
16345 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
16346 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
16347 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
16348 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
16349 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
16350 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
16351 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
16352
16353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
16354 include sysdep.h and math_ldbl_opt.h.
16355
16356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
16357 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
16358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
16359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
16360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
16361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
16362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
16363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
16364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
16365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
16366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
16367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
16368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
16369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
16370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
16371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
16372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
16373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
16374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
16375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
16376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
16377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
16378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
16379 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
16380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
16381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
16382
16383 2017-10-31 Alan Modra <amodra@gmail.com>
16384
16385 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
16386 string/strncase_l.c, not string/strncase.c.
16387 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
16388 (libc_hidden_def): Redefine.
16389
16390 2017-10-31 Alan Modra <amodra@gmail.com>
16391
16392 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
16393 (__STRCMP, STRCMP, __strcasecmp_l): Define.
16394 (__strcasecmp): Don't define.
16395
16396 2017-10-31 Alan Modra <amodra@gmail.com>
16397
16398 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
16399 IS_IN (libc).
16400 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
16401 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
16402 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
16403
16404 2017-10-31 Alan Modra <amodra@gmail.com>
16405
16406 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
16407 USE_AS_STPNCPY.
16408
16409 2017-10-31 Alan Modra <amodra@gmail.com>
16410
16411 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
16412 Redefine only when SHARED.
16413
16414 2017-10-30 Joseph Myers <joseph@codesourcery.com>
16415
16416 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
16417 Include <bits/math-finite.h> with appropriate macros defined and
16418 undefined.
16419 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
16420 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
16421 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
16422 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
16423 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
16424
16425 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
16426 [!_Mlong_double_] (_Mlong_double_): Likewise.
16427 [!_Mfloat16_] (_Mfloat16_): Likewise.
16428 [!_Mfloat32_] (_Mfloat32_): Likewise.
16429 [!_Mfloat64_] (_Mfloat64_): Likewise.
16430 [!_Mfloat128_] (_Mfloat128_): Likewise.
16431 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
16432 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
16433 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
16434 (_Mdouble_): Define without indirection through those macros.
16435 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
16436 [!_Mfloat128_] (_Mfloat128_): Likewise.
16437 [_Mlong_double_] (_Mlong_double_): Likewise.
16438 (_Mdouble_): Define without indirection through those macros.
16439 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
16440 not add -D_Mlong_double_=double.
16441 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
16442 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
16443
16444 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
16445
16446 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
16447
16448 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
16449
16450 * sysdeps/x86/libc-start.c: Reformat.
16451
16452 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
16453
16454 [BZ #22353]
16455 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
16456 (1): Renamed to ...
16457 (L(Src0)): This.
16458 (L(Src1)): New.
16459 (L(Src2)): Likewise.
16460 (L(1)): Renamed to ...
16461 (L(Src3)): This.
16462
16463 2017-10-30 Joseph Myers <joseph@codesourcery.com>
16464
16465 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
16466 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
16467 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
16468 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
16469 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
16470 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
16471 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
16472 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
16473 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
16474 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
16475 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
16476 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
16477 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
16478 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
16479 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
16480 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
16481 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
16482 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
16483 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
16484 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
16485 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
16486 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
16487 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
16488 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
16489 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
16490 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
16491 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
16492 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
16493 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
16494 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
16495 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
16496 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
16497 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
16498 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
16499 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
16500 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
16501 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
16502 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
16503 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
16504 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
16505 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
16506 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
16507 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
16508 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
16509 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
16510 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
16511 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
16512 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
16513 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
16514 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
16515 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
16516 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
16517 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
16518 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
16519 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
16520 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
16521 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
16522 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
16523 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
16524 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
16525 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
16526 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
16527 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
16528 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
16529 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
16530 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
16531
16532 2017-10-30 Florian Weimer <fweimer@redhat.com>
16533
16534 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
16535 always defined.
16536 * io/tst-mkdirat.c (do_test): Likewise.
16537 * io/tst-mkfifoat.c (do_test): Likewise.
16538 * io/tst-mknodat.c (do_test): Likewise.
16539 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
16540 * locale/programs/locale.c (select_dirs): Likewise.
16541 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
16542 * posix/bug-glob2.c (my_readdir): Likewise.
16543 * posix/tst-dir.c (main): Likewise.
16544 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
16545 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
16546
16547 2017-10-30 Florian Weimer <fweimer@redhat.com>
16548
16549 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
16550 just __USE_GNU.
16551
16552 2017-10-30 Florian Weimer <fweimer@redhat.com>
16553
16554 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
16555 Convert to support/test-driver.c.
16556 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
16557 New macro parameters.
16558 (PRINTF): Remove macro. Use test_verbose conditionals instead.
16559 * posix/tst-gnuglob.c: New file.
16560 * posix/tst-gnuglob64.c: Likewise.
16561 * posix/Makefile (tests): Add tst-gnuglob64.
16562
16563 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
16564
16565 [BZ #19485]
16566 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
16567 and use a better translation for March in “mon”.
16568 * localedata/locales/csb_PL: Use more ASCII to improve the
16569 readability of the source.
16570
16571 2017-10-30 Mike FABIAN <mfabian@redhat.com>
16572
16573 [BZ #13953]
16574 * localedata/locales/km_KH: Use ASCII as much
16575 as possible for better readability of the source and
16576 remove useless comments.
16577 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
16578 was commented out and apparently wrong anyway because it was
16579 using Lao characters. If Buddhist era should be used
16580 for km_KH, a native speaker should write the correct formaat
16581 for Khmer.
16582 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
16583 (According to CLDR, the first weekday for Cambodia is Sunday).
16584 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
16585 (These were using Lao characters which must be wrong. If we get
16586 the correct data from a native speaker, we could add it back, until
16587 then it is better not to have name_mr and name_mrs at all than
16588 having it wrong).
16589
16590 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
16591
16592 * locale/loadlocale.c: Correct size of
16593 _nl_value_type_LC_<category> arrays.
16594
16595 2017-10-27 Joseph Myers <joseph@codesourcery.com>
16596
16597 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
16598 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
16599 with appropriate macros defined and undefined.
16600 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
16601 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
16602 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
16603 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
16604 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
16605
16606 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
16607
16608 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16609 "-O2 -march=i586".
16610
16611 2017-10-27 Mike FABIAN <mfabian@redhat.com>
16612
16613 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
16614 with lowercase letters to make it agree with CLDR.
16615
16616 2017-10-27 Mike FABIAN <mfabian@redhat.com>
16617
16618 [BZ #15260]
16619 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
16620 first letters of yesstr and nostr in yesexpr and noexpr,
16621 not for the full words.
16622 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
16623 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
16624 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
16625 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
16626 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
16627 first letters of yesstr and nostr in yesexpr and noexpr,
16628 until now only English was matched in yesexpr and noexpr.
16629 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
16630 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
16631 fil but not for tl. As tl and fil are very similar, using fil
16632 is probably better than using English.
16633
16634 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
16635
16636 [BZ #21706]
16637 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
16638 in yesstr and nostr.
16639
16640 2017-10-26 Joseph Myers <joseph@codesourcery.com>
16641
16642 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
16643 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
16644 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
16645 Likewise.
16646 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
16647 Likewise.
16648 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
16649 Likewise.
16650 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
16651 Likewise.
16652 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16653 (SNANF128X): Likewise.
16654
16655 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
16656 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
16657 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16658 (HUGE_VAL_F32): Likewise.
16659 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16660 (HUGE_VAL_F64): Likewise.
16661 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16662 (HUGE_VAL_F32X): Likewise.
16663 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16664 (HUGE_VAL_F64X): Likewise.
16665 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
16666 (HUGE_VAL_F128X): Likewise.
16667
16668 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
16669
16670 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
16671 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
16672 for the br_FR locale.
16673
16674 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
16675
16676 [BZ #21706]
16677 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
16678
16679 2017-10-25 Carlos O'Donell <carlos@redhat.com>
16680
16681 * locale/programs/record-status.h: Define globals, and function
16682 prototypes. Move function bodies...
16683 * locale/programs/record-status.c: ... to here. New file.
16684 * iconv/Makefile (iconv_prog-modules): Add record-status.
16685 * locale/Makefile (lib-modules): Likewise.
16686 * iconv/iconv_prog.c: Remove verbose.
16687 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
16688 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
16689 record a warning about ASCII compatibility.
16690 * locale/programs/ld-monetary.c (monetary_finish): If
16691 warn_int_curr_symbol is true then record a warning about the symbol
16692 not being in our ISO 4217 list.
16693 * locale/programs/locale.c: Include record-status.h. Remove verbose.
16694 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
16695 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
16696 (OPT_NO_WARN): Define.
16697 (OPT_WARN): Define.
16698 (options): Add entry for --no-warnings, and --warnings.
16699 (set_warnings): New function to enable/disable warnings.
16700 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
16701 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
16702 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
16703 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
16704 Pass flags to generate_locale.
16705 (generate_locale): Accept new flag argument and pass it to localedef
16706 invocation.
16707 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
16708 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
16709
16710 * localedata/Makefile (test-input-data): Use full file name.
16711 * localedata/da_DK.in: Rename to...
16712 * localedata/da_DK.ISO-8859-1.in: ...this.
16713 * localedata/de_DE.in: Rename to...
16714 * localedata/de_DE.ISO-8859-1.in: ...this.
16715 * localedata/en_US.in: Rename to...
16716 * localedata/en_US.ISO-8859-1.in: ...this.
16717 * localedata/fr_FR.in: Rename to...
16718 * localedata/fr_FR.UTF-8.in: ... this.
16719 * localedata/hr_HR.in: Rename to...
16720 * localedata/hr_HR.ISO-8859-2.in: ...this.
16721 * localedata/hu_HU.in: Rename to...
16722 * localedata/hu_HU.UTF-8.in: ...this.
16723 * localedata/si_LK.in: Rename to...
16724 * localedata/si_LK.UTF-8.in: ...this.
16725 * localedata/sv_SE.in: Rename to...
16726 * localedata/sv_SE.ISO-8859-1.in: ...this.
16727 * localedata/tr_TR.in: Rename to...
16728 * localedata/tr_TR.UTF-8.in: ...this.
16729 * localedata/uk_UA.in: Rename to...
16730 * localedata/uk_UA.UTF-8.in: ...this.
16731 * localedata/sort-test.sh: Test file is locale name with the
16732 suffix.
16733
16734 * localedata/unicode-gen/Makefile (check_i18n): Rename to
16735 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
16736 file.
16737 * localedata/locales/i18n_ctype: Regenerate.
16738 * localedata/locales/tr_TR: Likewise.
16739 * localedata/locales/translit_circle: Likewise.
16740 * localedata/locales/translit_cjk_compat: Likewise.
16741 * localedata/locales/translit_combining: Likewise.
16742 * localedata/locales/translit_compat: Likewise.
16743 * localedata/locales/translit_font: Likewise.
16744 * localedata/locales/translit_fraction: Likewise.
16745
16746 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16747
16748 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
16749 lxvd2x/stxvd2x with lvx/stvx.
16750 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
16751
16752 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
16753
16754 * include/alloc_buffer.h: Replace "if if " with "if " in
16755 comments.
16756 * sysdeps/mips/memcpy.S: Likkewise.
16757 * sysdeps/mips/memset.S: Likewise.
16758 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
16759 Likewise.
16760 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
16761 Likewise.
16762 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
16763 Likewise.
16764
16765 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16766
16767 [BZ #15261]
16768 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
16769 yesexpr and noexpr.
16770 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
16771 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
16772 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
16773 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
16774 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
16775 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
16776 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
16777
16778 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16779
16780 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
16781 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
16782 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
16783 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
16784 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
16785 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
16786 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
16787 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
16788 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
16789 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
16790 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
16791 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
16792
16793 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16794
16795 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
16796 as possible for better readability of the source.
16797 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
16798 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
16799 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
16800 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
16801 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
16802 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
16803 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
16804 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
16805 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
16806 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
16807 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
16808 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
16809 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
16810 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
16811 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
16812 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
16813 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
16814 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
16815 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
16816 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
16817 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
16818 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
16819 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
16820 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
16821 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
16822 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
16823 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
16824 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
16825 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
16826 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
16827 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
16828 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
16829 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
16830 * localedata/locales/en_US (LC_MESSAGES): Likewise.
16831 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
16832 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
16833 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
16834 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
16835 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
16836 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
16837 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
16838 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
16839 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
16840 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
16841 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
16842 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
16843 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
16844 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
16845 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
16846 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
16847 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
16848 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
16849 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
16850 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
16851 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
16852 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
16853 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
16854 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
16855 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
16856 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
16857 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
16858 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
16859 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
16860 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
16861 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
16862 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
16863 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
16864 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
16865 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
16866 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
16867 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
16868 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
16869 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
16870 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
16871 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
16872 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
16873 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
16874 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
16875 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
16876 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
16877 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
16878 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
16879 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
16880 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
16881 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
16882 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
16883 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
16884 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
16885 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
16886 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
16887 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
16888 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
16889 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
16890 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
16891 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
16892 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
16893 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
16894 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
16895 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
16896 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
16897 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
16898 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
16899 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
16900 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
16901 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
16902 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
16903 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
16904 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
16905 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
16906 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
16907 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
16908 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
16909 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
16910 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
16911 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
16912 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
16913 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
16914 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
16915 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
16916 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
16917 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
16918 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
16919 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
16920 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
16921 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
16922 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
16923 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
16924 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
16925 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
16926 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
16927 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
16928 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
16929 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
16930 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
16931 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
16932 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
16933 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
16934 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
16935 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
16936 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
16937 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
16938 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
16939 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
16940 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
16941 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
16942 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
16943 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
16944 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
16945 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
16946 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
16947 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
16948 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
16949 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
16950 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
16951 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
16952 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
16953 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
16954 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
16955 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
16956 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
16957 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
16958 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
16959 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
16960 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
16961 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
16962 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
16963 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
16964 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
16965 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
16966 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
16967 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
16968 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
16969 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
16970 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
16971
16972 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16973
16974 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
16975 (Use first letters of yesstr and nostr correctly instead of using
16976 full words).
16977
16978 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16979
16980 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
16981 (Use first letters of yesstr and nostr correctly).
16982
16983 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16984
16985 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
16986 also check for the first characters of yesstr and nostr.
16987 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
16988 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
16989
16990 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16991
16992 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
16993 also check for Chinese characters.
16994
16995 2017-10-25 Mike FABIAN <mfabian@redhat.com>
16996
16997 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
16998 match also for the contents of yesstr and nostr. As the first letter
16999 of yesstr and nostr is equal, checking only for the first letter
17000 is not enough.
17001
17002 2017-10-25 Mike FABIAN <mfabian@redhat.com>
17003
17004 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
17005 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
17006
17007 2017-10-25 Mike FABIAN <mfabian@redhat.com>
17008
17009 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
17010 of main contributor.
17011
17012 2017-10-25 Mike FABIAN <mfabian@redhat.com>
17013
17014 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
17015 instead of using English.
17016
17017 2017-10-25 Mike FABIAN <mfabian@redhat.com>
17018
17019 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
17020 by including the first letters of nostr and yesexpr in the regexp.
17021 Also make it more readable by using ASCII where possible.
17022
17023 2017-10-25 Mike FABIAN <mfabian@redhat.com>
17024
17025 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
17026 the first letter of nostr in the regexp. It agrees with CLDR now.
17027 Also make it more readable by using ASCII where possible.
17028
17029 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17030
17031 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
17032 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
17033 these strings contain a U+17D6 (which somewhat looks like a colon)
17034 instead of a real colon to separate the full words for “yes”
17035 and “no” from the single letter responses.
17036
17037 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17038
17039 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
17040 it agree with CLDR (include the first letter of yesstr).
17041 Also make it more readable by using ASCII where possible.
17042
17043 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17044
17045 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
17046 and improve yesexpr and noexpr. The yesstr and nostr apparently
17047 came from CLDR. And CLDR has a bug there: these strings contain
17048 a U+0903 (which looks like a colon) instead of a real colon
17049 to separate the full words for “yes” and “no” from the single
17050 letter responses.
17051
17052 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17053
17054 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
17055 letters of the full yesstr and nostr in yesexpr and noexpr.
17056
17057 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17058
17059 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
17060 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
17061 * localedata/locales/an_ES: Make source more readable by using ASCII
17062 where possible.
17063
17064 2017-10-24 Mike FABIAN <mfabian@redhat.com>
17065
17066 [BZ #20952]
17067 * localedata/locales/yuw_PG: New file.
17068 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
17069 * locale/iso-639.def: Add Yau (Uruwa).
17070
17071 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
17072
17073 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
17074
17075 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
17076
17077 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
17078 (__libc_realloc): Likewise.
17079 (_mid_memalign): Likewise.
17080 (__libc_calloc): Likewise.
17081
17082 2017-10-23 Mike FABIAN <mfabian@redhat.com>
17083
17084 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
17085 by adding the generic +1 and -0 as in all other locales.
17086 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
17087 day names and make it more readable by using ASCII where possible.
17088
17089 2017-10-24 Joseph Myers <joseph@codesourcery.com>
17090
17091 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
17092 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
17093
17094 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17095
17096 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
17097 WNOHANG in waitpid call.
17098
17099 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
17100
17101 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
17102 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
17103
17104 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
17105 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
17106 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
17107 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
17108 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
17109 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
17110 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
17111 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
17112 variables.
17113
17114 2017-10-23 Michael Collison <michael.collison@arm.com>
17115
17116 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
17117 with __builtin_sqrt.
17118 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
17119 with __builtin_sqrtf.
17120 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
17121 with __builtin_ceil.
17122 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
17123 with __builtin_ceilf.
17124 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
17125 with __builtin_floor.
17126 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
17127 with __builtin_floorf.
17128 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
17129 with __builtin_fma.
17130 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
17131 with __builtin_fmaf.
17132 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
17133 with __builtin_fmax.
17134 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
17135 with __builtin_fmaxf.
17136 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
17137 with __builtin_fmin.
17138 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
17139 with __builtin_fminf.
17140 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
17141 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
17142 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
17143 with builtin_rint and conversion to int.
17144 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
17145 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
17146 with builtin_llround.
17147 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
17148 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
17149 with builtin_rint and conversion to long int.
17150 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
17151 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
17152 with builtin_lround.
17153 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
17154 with builtin_lroundf.
17155 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
17156 statements with __builtin_nearbyint.
17157 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
17158 statements with __builtin_nearbyintf.
17159 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
17160 with __builtin_rint.
17161 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
17162 with __builtin_rintf.
17163 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
17164 with __builtin_round.
17165 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
17166 with __builtin_roundf.
17167 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
17168 with __builtin_trunc.
17169 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
17170 with __builtin_truncf.
17171 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
17172 and s_l[l]round[f].c too.
17173
17174 2017-10-23 Alan Modra <amodra@gmail.com>
17175
17176 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
17177 Adjust stack after restoring regs. Add missing LR cfi_restore.
17178
17179 2017-10-23 Alan Modra <amodra@gmail.com>
17180
17181 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
17182 Move LR save and frame setup/teardown and LR restore to
17183 immediately around memset call. Provide cfi.
17184
17185 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17186
17187 * sysdeps/i386/fpu/e_powf.S: Removed.
17188 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
17189 * sysdeps/i386/fpu/w_powf.c: Likewise.
17190 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
17191 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17192 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17193 Add e_powf-sse2.
17194 (CFLAGS-e_powf-sse2.c): New.
17195 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
17196 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
17197
17198 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17199
17200 * sysdeps/i386/fpu/e_log2f.S: Removed.
17201 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
17202 * sysdeps/i386/fpu/w_log2f.c: Likewise.
17203 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
17204 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17205 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17206 Add e_log2f-sse2.
17207 (CFLAGS-e_log2f-sse2.c): New.
17208 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
17209 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
17210
17211 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17212
17213 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17214 Add e_powf-fma.
17215 (CFLAGS-e_powf-fma.c): New.
17216 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
17217 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
17218
17219 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17220
17221 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17222 Add e_log2f-fma.
17223 (CFLAGS-e_log2f-fma.c): New.
17224 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
17225 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
17226
17227 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17228
17229 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17230 Add e_logf-fma.
17231 (CFLAGS-e_logf-fma.c): New.
17232 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
17233 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
17234
17235 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17236
17237 * sysdeps/i386/fpu/e_logf.S: Removed.
17238 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
17239 * sysdeps/i386/fpu/w_logf.c: Likewise.
17240 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
17241 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
17242 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17243 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17244 Add e_logf-sse2.
17245 (CFLAGS-e_logf-sse2.c): New.
17246 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
17247 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
17248
17249 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17250
17251 * sysdeps/i386/fpu/e_exp2f.S: Removed.
17252 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
17253 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
17254 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17255 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17256 Add e_exp2f-sse2.
17257 (CFLAGS-e_exp2f-sse2.c): New.
17258 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
17259 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
17260
17261 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17262
17263 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17264 Add e_exp2f-fma.
17265 (CFLAGS-e_exp2f-fma.c): New.
17266 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
17267 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
17268
17269 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17270
17271 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
17272 * sysdeps/i386/fpu/e_expf.S: Likewise.
17273 * sysdeps/i386/fpu/math_errf.c: Likewise.
17274 * sysdeps/i386/fpu/w_expf.c: Likewise.
17275 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
17276 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
17277 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
17278 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
17279 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17280 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
17281 Remove e_expf-ia32.
17282 (CFLAGS-e_expf-sse2.c): New.
17283 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
17284 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
17285
17286 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
17287
17288 * sysdeps/x86_64/fpu/e_expf.S: Removed.
17289 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
17290 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
17291 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
17292 e_expf.c.
17293 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
17294 New.
17295 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
17296 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
17297 Renamed to ...
17298 (__redirect_expf): This.
17299 (SYMBOL_NAME): Changed to expf.
17300 (__ieee754_expf): Renamed to ...
17301 (__expf): This.
17302 (__GI___expf): This.
17303 (__ieee754_expf): Add strong_alias.
17304 (__expf_finite): Likewise.
17305 (__expf): New.
17306 Include <sysdeps/ieee754/flt-32/e_expf.c>.
17307
17308 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
17309
17310 [BZ #22332]
17311 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
17312 unescaping.
17313
17314 2017-10-21 Florian Weimer <fweimer@redhat.com>
17315
17316 * posix/Makefile (tests): Add tst-glob-tilde.
17317 (tests-special): Add tst-glob-tilde-mem.out
17318 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
17319 (tst-glob-tilde-mem.out): Add mtrace check.
17320 * posix/tst-glob-tilde.c: New file.
17321
17322 2017-10-20 Joseph Myers <joseph@codesourcery.com>
17323
17324 * bits/floatn-common.h: New file.
17325 * math/Makefile (headers): Add bits/floatn-common.h.
17326 * bits/floatn.h: Include <bits/floatn-common.h>.
17327 * sysdeps/ia64/bits/floatn.h: Likewise.
17328 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
17329 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
17330 * sysdeps/powerpc/bits/floatn.h: Likewise.
17331 * sysdeps/x86/bits/floatn.h: Likewise.
17332
17333 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17334
17335 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
17336 indicates whether compiler emits an warning for alias for
17337 functions with incompatible types.
17338
17339 [BZ #22273]
17340 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
17341 the auxiliary process is terminated by a signal before calling _exit
17342 or execve.
17343
17344 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
17345
17346 [BZ #21265]
17347 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
17348 New.
17349 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
17350 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
17351 and bit_arch_XSAVEC_Usable if needed.
17352 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
17353 and bit_arch_Use_dl_runtime_resolve_opt.
17354 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
17355 Removed.
17356 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
17357 (bit_arch_Prefer_No_AVX512): Updated.
17358 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
17359 (bit_arch_XSAVEC_Usable): New.
17360 (STATE_SAVE_OFFSET): Likewise.
17361 (STATE_SAVE_MASK): Likewise.
17362 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
17363 (cpu_features): Add xsave_state_size and xsave_state_full_size.
17364 (index_arch_Use_dl_runtime_resolve_opt): Removed.
17365 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
17366 (index_arch_XSAVEC_Usable): New.
17367 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17368 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
17369 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
17370 is enabled.
17371 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
17372 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
17373 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
17374 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
17375 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
17376 _dl_runtime_resolve_xsavec.
17377 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
17378 Removed.
17379 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
17380 instead of VEC_SIZE.
17381 (REGISTER_SAVE_BND0): Removed.
17382 (REGISTER_SAVE_BND1): Likewise.
17383 (REGISTER_SAVE_BND3): Likewise.
17384 (REGISTER_SAVE_RAX): Always defined to 0.
17385 (VMOV): Removed.
17386 (_dl_runtime_resolve_avx): Likewise.
17387 (_dl_runtime_resolve_avx_slow): Likewise.
17388 (_dl_runtime_resolve_avx_opt): Likewise.
17389 (_dl_runtime_resolve_avx512): Likewise.
17390 (_dl_runtime_resolve_avx512_opt): Likewise.
17391 (_dl_runtime_resolve_sse): Likewise.
17392 (_dl_runtime_resolve_sse_vex): Likewise.
17393 (USE_FXSAVE): New.
17394 (_dl_runtime_resolve_fxsave): Likewise.
17395 (USE_XSAVE): Likewise.
17396 (_dl_runtime_resolve_xsave): Likewise.
17397 (USE_XSAVEC): Likewise.
17398 (_dl_runtime_resolve_xsavec): Likewise.
17399 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
17400 Removed.
17401 (_dl_runtime_resolve_avx512_opt): Likewise.
17402 (_dl_runtime_resolve_avx): Likewise.
17403 (_dl_runtime_resolve_avx_opt): Likewise.
17404 (_dl_runtime_resolve_sse): Likewise.
17405 (_dl_runtime_resolve_sse_vex): Likewise.
17406 (_dl_runtime_resolve_fxsave): New.
17407 (_dl_runtime_resolve_xsave): Likewise.
17408 (_dl_runtime_resolve_xsavec): Likewise.
17409
17410 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
17411
17412 [BZ #22320]
17413 CVE-2017-15670
17414 * posix/glob.c (__glob): Fix one-byte overflow.
17415
17416 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
17417
17418 * malloc/malloc.c (sysdep-cancel.h): Add include.
17419
17420 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
17421
17422 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
17423
17424 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
17425
17426 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
17427 (tests): Remove $(objpfx)ga_test depdendency.
17428 * resolv/ga_test.c: Remove file.
17429
17430 2017-10-20 Mike FABIAN <mfabian@redhat.com>
17431
17432 [BZ #18812]
17433 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
17434 * localedata/locales/kab_DZ: New file.
17435
17436 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
17437
17438 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
17439 _dl_relocate_static_pie instead of _dl_start to compute load
17440 address in static PIE.
17441
17442 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
17443
17444 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
17445
17446 2017-10-20 Mike FABIAN <mfabian@redhat.com>
17447
17448 [BZ #13605]
17449 * localedata/SUPPORTED: Add shn_MM/UTF-8.
17450 * localedata/locales/shn_MM: New file.
17451
17452 2017-10-20 Florian Weimer <fweimer@redhat.com>
17453
17454 [BZ #22321]
17455 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
17456 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
17457 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
17458 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
17459 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
17460 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
17461
17462 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
17463
17464 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
17465
17466 2017-10-19 Joseph Myers <joseph@codesourcery.com>
17467
17468 * sysdeps/mips/ieee754/bits/floatn.h: New file.
17469
17470 [BZ #22322]
17471 * sysdeps/mips/bits/long-double.h: Move to ....
17472 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
17473
17474 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
17475
17476 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
17477
17478 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
17479 H.J. Lu <hongjiu.lu@intel.com>
17480
17481 [BZ #22299]
17482 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17483 GLRO(dl_platform) to NULL.
17484 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
17485 (modules-names): Add tst-platformmod-1 and
17486 x86_64/tst-platformmod-2.
17487 (CFLAGS-tst-platform-1.c): New.
17488 (CFLAGS-tst-platformmod-1.c): Likewise.
17489 (CFLAGS-tst-platformmod-2.c): Likewise.
17490 (LDFLAGS-tst-platformmod-2.so): Likewise.
17491 ($(objpfx)tst-platform-1): Likewise.
17492 ($(objpfx)tst-platform-1.out): Likewise.
17493 (tst-platform-1-ENV): Likewise.
17494 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
17495 * sysdeps/x86_64/tst-platform-1.c: New file.
17496 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
17497 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
17498
17499 2017-10-19 Mike FABIAN <mfabian@redhat.com>
17500
17501 [BZ #13994]
17502 * locale/iso-639.def: Add Karbi.
17503 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
17504 * localedata/locales/mjw_IN: New file.
17505
17506 2017-10-18 Joseph Myers <joseph@codesourcery.com>
17507
17508 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
17509 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
17510 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
17511 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
17512 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
17513 (libm_alias_ldouble_other_r): Also create _Float128 alias.
17514 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
17515 <bits/floatn.h>.
17516 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
17517 (libm_alias_ldouble_other_r): Also create _Float128 alias.
17518 * manual/math.texi (Mathematics): Document additional architecture
17519 support for _Float128.
17520 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
17521 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17522 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17523 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17524 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17525 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17526 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17527 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17528 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17529 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17530 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17531 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17532 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17533 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17534 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17535
17536 2017-10-18 Renlin Li <renlin.li@arm.com>
17537
17538 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
17539 _DYNAMIC symbol to calculate load address.
17540
17541 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
17542
17543 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
17544 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
17545 summary bits.
17546 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
17547 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
17548
17549 2017-10-18 Mike FABIAN <mfabian@redhat.com>
17550
17551 [BZ #16777]
17552 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
17553 and improve readability by using more ASCII.
17554 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
17555 and improve readability by using more ASCII.
17556
17557 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
17558
17559 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
17560 not all targets support atomics on bool.
17561
17562 2017-10-17 Joseph Myers <joseph@codesourcery.com>
17563
17564 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
17565 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
17566 __f128.
17567 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17568 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
17569 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17570 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
17571 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
17572 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
17573
17574 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17575
17576 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
17577 defines.
17578
17579 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
17580
17581 [BZ #22159]
17582 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
17583 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
17584 (do_check_remalloced_chunk): Fix build bug.
17585 (do_check_malloc_state): Add assert that checks arena->top.
17586 (malloc_consolidate): Remove initialization.
17587 (int_mallinfo): Remove call to malloc_consolidate.
17588 (__libc_mallopt): Clarify why malloc_consolidate is needed.
17589
17590 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
17591
17592 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
17593 (have_fastchunks): Remove.
17594 (clear_fastchunks): Remove.
17595 (set_fastchunks): Remove.
17596 (malloc_state): Add have_fastchunks.
17597 (malloc_init_state): Use have_fastchunks.
17598 (do_check_malloc_state): Remove incorrect invariant checks.
17599 (_int_malloc): Use have_fastchunks.
17600 (_int_free): Likewise.
17601 (malloc_consolidate): Likewise.
17602
17603 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
17604
17605 * malloc/malloc.c (tcache_put): Inline.
17606 (tcache_get): Inline.
17607
17608 2017-10-17 Jordi Mallach <jordi@gnu.org>
17609
17610 Aurelien Jarno <aurelien@aurel32.net>
17611 [BZ #2522]
17612 * localedata/locales/ca_ES@valencia: New file.
17613 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
17614
17615 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
17616
17617 [BZ #22296]
17618 * math/math.h: Let signbit use the builtin in C++ mode with gcc
17619 < 6.x
17620
17621 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17622
17623 * scripts/build-many-glibcs.py (Context.add_all_configs):
17624 Add arm-linux-gnueabihf multiarch extra_glibcs.
17625
17626 * sysdeps/generic/ifunc-init.h: New file.
17627 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
17628
17629 2017-10-17 Mike FABIAN <mfabian@redhat.com>
17630
17631 [BZ #22019]
17632 * localedata/locales/el_GR: Set n_cs_precedes to 0.
17633 * localedata/locales/el_CY: copy "el_GR" because it is identical.
17634 * stdlib/tst-strfmon_l.c: adapt test case.
17635
17636 2017-10-16 Joseph Myers <joseph@codesourcery.com>
17637
17638 * sysdeps/generic/float128-abi.h: New file.
17639 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
17640 non-__prefixed symbols to ....
17641 * math/Versions: ... here. Include <float128-abi.h>.
17642 * stdlib/Versions ... and here. Include <float128-abi.h>
17643
17644 2017-10-16 Florian Weimer <fweimer@redhat.com>
17645
17646 * version.h (VERSION): Switch to ".9000" as the development
17647 version suffix.
17648
17649 2017-10-16 Florian Weimer <fweimer@redhat.com>
17650
17651 [BZ #22050]
17652 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
17653 compat_symbol_reference to access non-default version.
17654
17655 2017-10-16 Florian Weimer <fweimer@redhat.com>
17656
17657 * malloc/Makefile (others-extras): Set to mcheck-init.o.
17658
17659 2017-10-16 Carlos O'Donell <carlos@redhat.com>
17660
17661 * include/shlib-compat.h (compat_symbol_reference): Update
17662 comment.
17663
17664 2017-10-16 Joseph Myers <joseph@codesourcery.com>
17665
17666 * math/Makefile (test-types): Add
17667 $(type-float128-$(float128-alias-fcts)).
17668 * math/test-float128.h (TYPE_STR): Define conditional on
17669 [FLT128_MANT_DIG == LDBL_MANT_DIG].
17670 (ULP_IDX): Likewise.
17671 (ULP_I_IDX): Likewise.
17672
17673 * stdlib/strtold.c: Include <bits/floatn.h>
17674 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
17675 and later undefine as macro. Define as weak alias if
17676 [!USE_WIDE_CHAR].
17677 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
17678 and later undefine as macro. Define as weak alias if
17679 [USE_WIDE_CHAR].
17680 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
17681 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
17682 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
17683 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
17684 Define and later undefine as macro. Define as weak alias if
17685 [USE_WIDE_CHAR].
17686 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
17687 <bits/floatn.h>.
17688 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
17689 Define and later undefine as macro. Define as weak alias if
17690 [!USE_WIDE_CHAR].
17691 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
17692 Define and later undefine as macro. Define as weak alias if
17693 [USE_WIDE_CHAR].
17694
17695 2017-10-15 Carlos O'Donell <carlos@redhat.com>
17696
17697 * localedata/collate-test.c (allocate_arrays): Don't use \n in
17698 record_verbose messages.
17699
17700 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
17701
17702 [BZ #22052]
17703 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
17704 to silence -O3 -Wall warning with GCC 7.
17705
17706 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
17707
17708 * Makeconfig (+link-static-before-libc): Use the first of
17709 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
17710 * gmon/Makefile (tests): Add tst-gmon-static.
17711 (tests-static): Likewise.
17712 (CFLAGS-tst-gmon-static.c): New.
17713 (CRT-tst-gmon-static): Likewise.
17714 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
17715 (tst-gmon-static-ENV): Likewise.
17716 (tests-special): Likewise.
17717 ($(objpfx)tst-gmon-static.out): Likewise.
17718 (clean-tst-gmon-static-data): Likewise.
17719 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
17720 * gmon/tst-gmon-static-gprof.sh: New file.
17721 * gmon/tst-gmon-static.c: Likewise.
17722
17723 2017-10-13 Carlos O'Donell <carlos@redhat.com>
17724
17725 [BZ #22295]
17726 * locale/programs/linereader.c (get_string): Don't warn on
17727 non-symbolic character.
17728
17729 [BZ #22294]
17730 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
17731 int_curr_symbol.
17732
17733 [BZ #22292]
17734 * locale/programs/record-status.h: New file
17735 * locale/programs/locale.c: Add comment.
17736 * locale/programs/charmap-dir.c: Don't include error.h.
17737 (charmap_opendir): Use record_error.
17738 * locale/programs/charmap.c: Don't include error.h.
17739 (charmap_read): Use record_error, and record_warning.
17740 (parse_charmap): Likewise.
17741 * locale/programs/ld-address.c: Don't include error.h.
17742 (address_finish): Use record_error, and record_warning.
17743 * locale/programs/ld-collate.c: Don't include error.h.
17744 (collate_finish): Use record_error, and record_error_at_line.
17745 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
17746 (ctype_class_new): Likewise.
17747 (ctype_map_new): Likewise.
17748 (set_one_default): Likewise.
17749 (set_class_defaults): Likewise.
17750 (translit_flatten): Likewise.
17751 (allocate_arrays): Use record_error, and record_verbose.
17752 * locale/programs/ld-identification.c: Don't include error.h.
17753 (indentation_finish): Use record_error and record_warning.
17754 * locale/programs/ld-measurement.c: Don't include error.h.
17755 (measurement_finish): Use record_error.
17756 * locale/programs/ld-messages.c
17757 (message_finish): Likewise.
17758 * locale/programs/ld-monetary.c
17759 (monetary_finish): Likewise.
17760 * locale/programs/ld-name.c (name_finish): Use record_error
17761 and record_warning.
17762 * locale/programs/ld-numeric.c
17763 (numeric_finish): Use record_error.
17764 * locale/programs/ld-paper.c: Don't include error.h.
17765 (paper_finish): Use record_error.
17766 * locale/programs/ld-telephone.c: Don't include error.h.
17767 (telephone_finish): Use record_error.
17768 * locale/programs/ld-time.c (time_finish): Likewise.
17769 * locale/programs/linereader.h (lr_error): Make inline func.
17770 * locale/programs/localedef.c: Define recorded_warning_count,
17771 and recorded_error_count.
17772 (main): Use record_error. Use recorded_error_count and
17773 recorded_warning_count to issue correct error returns.
17774 (add_to_readlist): Use record_error.
17775 (find_locale): Likewise.
17776 (load_locale): Likewise.
17777 * locale/programs/localedef.h: Remove be_quiet
17778 and WITH_CUR_LOCALE.
17779 * locale/programs/locarchive.c (compare_from_file): Use
17780 record_error.
17781 * locale/programs/locfile.c (write_locale_data): Use
17782 record_error.
17783 * locale/programs/repertoire.c: Dont include error.h.
17784 (repertoire_complain): Use record_error.
17785 * localedata/tst-fmon.sh: Expect failures from localedef.
17786 * localedata/tst-locale.sh: Likewise.
17787 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
17788
17789 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
17790 (REPORTS): Likewise.
17791 (check): Likewise.
17792 (i18n): Rename to...
17793 (i18n_ctype): ...this.
17794 (i18n-report): Rename to...
17795 (i18n_ctype-report): ...this.
17796 * localedata/locales/i18n_ctype: Regenerate.
17797 * localedata/locales/i18n: copy i18n_ctype.
17798
17799 2017-10-13 Joseph Myers <joseph@codesourcery.com>
17800
17801 * stdlib/strfroml.c: Include <bits/floatn.h>.
17802 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
17803 Define before include of <stdlib.h> and undefine afterwards, then
17804 define as weak alias.
17805
17806 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
17807 Undefine and restore default definition. Use
17808 libm_alias_ldouble_other.
17809
17810 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
17811
17812 [BZ #22153]
17813 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
17814 in coredumps.
17815
17816 2017-10-13 James Clarke <jrtc27@jrtc27.com>
17817
17818 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17819 Assign sym_map to be map for local symbols, as TLS relocations
17820 use sym_map to determine whether the symbol is defined and to
17821 extract the TLS information.
17822 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17823 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17824
17825 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17826
17827 [BZ #22189]
17828 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
17829 (math_force_eval): Add powerpc version.
17830
17831 [BZ #22142]
17832 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
17833 -DBL_MAX.
17834 (do_test): Likewise.
17835 * stdio-common/tst-printf.sh: Likewise.
17836 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
17837 ifdef clause in order to set the carry bit right. Replace r0 by
17838 0 without changing the behavior.
17839
17840 2017-10-13 Joseph Myers <joseph@codesourcery.com>
17841
17842 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
17843 <libm-alias-ldouble.h>.
17844 (fabsl): Define using libm_alias_ldouble.
17845 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
17846 <libm-alias-ldouble.h>.
17847 (fabsl): Define using libm_alias_ldouble.
17848
17849 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
17850 Remove conditional code.
17851
17852 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
17853 Rename to __clog10_internal_l.
17854 (__clog10_internal_l): Define aliases using
17855 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
17856 with __clog10.
17857
17858 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17859
17860 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
17861 * benchtests/sincosf-inputs: New file.
17862 * benchtests/cosf-inputs: New file.
17863 * benchtests/sinf-inputs: New file.
17864
17865 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17866
17867 * posix/tst-spawn.c (do_test): Wait for both children.
17868
17869 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
17870
17871 [BZ #22284]
17872 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
17873 tests-pie): Add tst-gmon-pie.
17874 (CFLAGS-tst-gmon-pie.c): New.
17875 (CRT-tst-gmon-pie): Likewise.
17876 (tst-gmon-pie-ENV): Likewise.
17877 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
17878 ($(objpfx)tst-gmon-pie.out): Likewise.
17879 (clean-tst-gmon-pie-data): Likewise.
17880 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
17881 * gmon/gmon.c [PIC]: Include <link.h>.
17882 [PIC] (callback): New function.
17883 (write_hist): Add an argument for load address. Subtract load
17884 address from PCs.
17885 (write_call_graph): Likewise.
17886 (write_gmon): Call __dl_iterate_phdr to get load address, pass
17887 it to write_hist and write_call_graph.
17888 * gmon/tst-gmon-pie.c: New file.
17889
17890 2017-10-11 Joseph Myers <joseph@codesourcery.com>
17891
17892 * math/Makefile (test-types-basic): New variable.
17893 (test-types): Likewise.
17894 (libm-test-support): Use $(test-types) instead of $(types).
17895 (libm-tests-base-normal): Likewise.
17896 (libm-tests-base-finite): Likewise.
17897 (libm-tests-base-inline): Likewise.
17898 (generated): Likewise.
17899 ($(objpfx)libm-test-support-$(t).c): Likewise.
17900 (libm-tests-for-type iterator): Likewise.
17901 (libm-test-support iterator): Likewise.
17902 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
17903 (ulp_idx): Use ULP_IDX.
17904 * math/test-ldouble.h: Include <float.h>.
17905 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
17906 (ULP_IDX): New macro.
17907 (ULP_I_IDX): Likewise.
17908 * math/test-double.h (ULP_IDX): Likewise.
17909 (ULP_I_IDX): Likewise.
17910 * math/test-float.h (ULP_IDX): Likewise.
17911 (ULP_I_IDX): Likewise.
17912 * math/test-float128.h (ULP_IDX): Likewise.
17913 (ULP_I_IDX): Likewise.
17914
17915 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17916
17917 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
17918 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
17919 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
17920 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
17921 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
17922 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
17923 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
17924 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
17925 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
17926 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
17927 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
17928 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
17929 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
17930 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17931 (SINGLE_THREAD_BY_GLOBAL): Define.
17932 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17933 Likewise.
17934 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17935 Likewise.
17936 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17937 Likewise.
17938 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17939 Likewise.
17940 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
17941 (SINGLE_THREAD_BY_GLOBAL): Likewise.
17942 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
17943 Likewise.
17944
17945 2017-10-11 Andreas Schwab <schwab@suse.de>
17946
17947 * nis/Makefile (aux): Remove.
17948 * nscd/Makefile (aux): Add nscd_hash.
17949 (nscd-modules): Likewise.
17950 ($(objpfx)nscd): Don't depend on libnsl.
17951 * nscd/nscd_hash.c: New file.
17952 * nscd/nscd_hash.h: Likewise.
17953 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
17954 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
17955 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
17956 instead of <nis/rpcsvc/nis.h>.
17957 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
17958
17959 2017-10-11 Florian Weimer <fweimer@redhat.com>
17960
17961 [BZ #22078]
17962 Avoid large NSS buffers with many addresses, aliases.
17963 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
17964 using dynarrays and struct alloc_buffer.
17965 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
17966 (tst-nss-files-hosts-multi): Link with -ldl.
17967 * nss/tst-nss-files-hosts-multi.c: New file.
17968
17969 2017-10-11 Florian Weimer <fweimer@redhat.com>
17970
17971 [BZ #18023]
17972 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
17973 scratch_buffer. Eliminate gotos.
17974
17975 2017-10-11 Joseph Myers <joseph@codesourcery.com>
17976
17977 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
17978 libm_alias_ldouble_other.
17979 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
17980 undefine and redefine.
17981 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
17982 (exp10l): Do not define here.
17983 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
17984 (weak_alias): Undefine and redefine.
17985 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
17986 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
17987 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
17988 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
17989
17990 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
17991 [!__fma] (fma): Define using libm_alias_double.
17992 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
17993 [!__fmaf] (fmaf): Define using libm_alias_float.
17994 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
17995 (fmal): Define using libm_alias_ldouble.
17996
17997 2017-10-10 Joseph Myers <joseph@codesourcery.com>
17998
17999 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
18000 New macro.
18001 (libm_alias_double_other): Likewise.
18002 (libm_alias_double_r): Use libm_alias_double_other_r.
18003 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
18004 New macro.
18005 (libm_alias_float_other): Likewise.
18006 (libm_alias_float_r): Use libm_alias_float_other_r.
18007 * sysdeps/generic/libm-alias-float128.h
18008 (libm_alias_float128_other_r): New macro.
18009 (libm_alias_float128_other): Likewise.
18010 (libm_alias_float128_r): Use libm_alias_float128_other_r.
18011 * sysdeps/generic/libm-alias-ldouble.h
18012 (libm_alias_ldouble_other_r): New macro.
18013 (libm_alias_ldouble_other): Likewise.
18014 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
18015 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
18016 (libm_alias_double_other_r): New macro.
18017 (libm_alias_double_other): Likewise.
18018 (libm_alias_double_r): Use libm_alias_double_other_r.
18019 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
18020 (libm_alias_ldouble_other_r): New macro.
18021 (libm_alias_ldouble_other): Likewise.
18022 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
18023 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
18024 [!USE_AS_COMPAT]: Use libm_alias_double_other.
18025 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
18026 [!USE_AS_COMPAT]: Use libm_alias_float_other.
18027 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
18028 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
18029 * math/w_exp2f.c: Use libm_alias_float_other.
18030 * math/w_expf.c: Likewise.
18031 * math/w_log2f.c: Likewise.
18032 * math/w_logf.c: Likewise.
18033 * math/w_powf.c: Likewise.
18034 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
18035 [!__exp2f]: Use libm_alias_float_other.
18036 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
18037 [!__expf]: Use libm_alias_float_other.
18038 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
18039 [!__log2f]: Use libm_alias_float_other.
18040 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
18041 [!__logf]: Use libm_alias_float_other.
18042 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
18043 [!__powf]: Use libm_alias_float_other.
18044
18045 2017-10-10 Florian Weimer <fweimer@redhat.com>
18046
18047 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
18048 function.
18049 (_nss_files_gethostbyname3_r): Call it.
18050
18051 2017-10-09 Joseph Myers <joseph@codesourcery.com>
18052
18053 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
18054 error. Remove default definition of declare_mgen_alias.
18055 [!declare_mgen_alias_r]: Likewise.
18056 * sysdeps/generic/math-type-macros-double.h
18057 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
18058 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
18059 (declare_mgen_alias_r): Likewise.
18060 * sysdeps/generic/math-type-macros-float128.h
18061 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
18062 * sysdeps/generic/math-type-macros-ldouble.h
18063 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
18064 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
18065 macro.
18066 (declare_mgen_alias_r_s): Likewise.
18067 (declare_mgen_alias_r): Likewise.
18068 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
18069 (lgamma_r): Define using libm_alias_double_r.
18070 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
18071 (lgammaf_r): Define using libm_alias_float_r.
18072 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
18073 (lgammal_r): Define using libm_alias_ldouble_r.
18074 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
18075 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
18076
18077 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18078
18079 * lib/glob.c (__glob_pattern_type): Remove now-spurious
18080 extern declaration.
18081
18082 2017-10-09 Joseph Myers <joseph@codesourcery.com>
18083
18084 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
18085
18086 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
18087
18088 [BZ #21326]
18089 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
18090 [__cplusplus >= 201103] (__USE_ISOC99): Define.
18091 * math/Makefile (test-math-cxx11): New test.
18092 * math/test-math-cxx11.cc: New file.
18093
18094 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
18095
18096 * login/openpty.c (openpty): Close slave pty file descriptor on error.
18097
18098 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
18099 call to allocate the slave pty file descriptor.
18100
18101 2017-10-06 Joseph Myers <joseph@codesourcery.com>
18102
18103 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
18104 [!__fma] (fma): Define using libm_alias_double.
18105 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
18106 [!__fma] (fma): Define using libm_alias_double.
18107
18108 * sysdeps/ieee754/float128/float128_private.h: Include
18109 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
18110 (libm_alias_ldouble_r): Undefine and redefine.
18111 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
18112 <libm-alias-ldouble.h>.
18113 (asinhl): Define using libm_alias_ldouble.
18114 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
18115 <libm-alias-ldouble.h>.
18116 (atanl): Define using libm_alias_ldouble.
18117 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
18118 <libm-alias-ldouble.h>.
18119 (cbrtl): Define using libm_alias_ldouble.
18120 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
18121 <libm-alias-ldouble.h>.
18122 (ceill): Define using libm_alias_ldouble.
18123 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
18124 <libm-alias-ldouble.h>.
18125 (copysignl): Define using libm_alias_ldouble.
18126 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
18127 <libm-alias-ldouble.h>.
18128 (cosl): Define using libm_alias_ldouble.
18129 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
18130 <libm-alias-ldouble.h>.
18131 (erfl): Define using libm_alias_ldouble.
18132 (erfcl): Likewise.
18133 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
18134 <libm-alias-ldouble.h>.
18135 (expm1l): Define using libm_alias_ldouble.
18136 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
18137 <libm-alias-ldouble.h>.
18138 (fabsl): Define using libm_alias_ldouble.
18139 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
18140 <libm-alias-ldouble.h>.
18141 (floorl): Define using libm_alias_ldouble.
18142 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
18143 <libm-alias-ldouble.h>.
18144 (fmal): Define using libm_alias_ldouble.
18145 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
18146 <libm-alias-ldouble.h>.
18147 (frexpl): Define using libm_alias_ldouble.
18148 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
18149 libm_alias_ldouble.
18150 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
18151 <libm-alias-ldouble.h>.
18152 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
18153 libm_alias_ldouble.
18154 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
18155 <libm-alias-ldouble.h>.
18156 (getpayloadl): Define using libm_alias_ldouble.
18157 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
18158 <libm-alias-ldouble.h>.
18159 (llrintl): Define using libm_alias_ldouble.
18160 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
18161 <libm-alias-ldouble.h>.
18162 (llroundl): Define using libm_alias_ldouble.
18163 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
18164 <libm-alias-ldouble.h>.
18165 (logbl): Define using libm_alias_ldouble.
18166 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
18167 <libm-alias-ldouble.h>.
18168 (lrintl): Define using libm_alias_ldouble.
18169 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
18170 <libm-alias-ldouble.h>.
18171 (lroundl): Define using libm_alias_ldouble.
18172 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
18173 <libm-alias-ldouble.h>.
18174 (modfl): Define using libm_alias_ldouble.
18175 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
18176 <libm-alias-ldouble.h>.
18177 (nearbyintl): Define using libm_alias_ldouble.
18178 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
18179 <libm-alias-ldouble.h>.
18180 (nextafterl): Define using libm_alias_ldouble.
18181 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
18182 <libm-alias-ldouble.h>.
18183 (nextupl): Define using libm_alias_ldouble.
18184 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
18185 <libm-alias-ldouble.h>.
18186 (remquol): Define using libm_alias_ldouble.
18187 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
18188 <libm-alias-ldouble.h>.
18189 (rintl): Define using libm_alias_ldouble.
18190 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
18191 <libm-alias-ldouble.h>.
18192 (roundevenl): Define using libm_alias_ldouble.
18193 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
18194 <libm-alias-ldouble.h>.
18195 (roundl): Define using libm_alias_ldouble.
18196 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
18197 using libm_alias_ldouble.
18198 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
18199 <libm-alias-ldouble.h>.
18200 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
18201 Define using libm_alias_ldouble.
18202 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
18203 <libm-alias-ldouble.h>.
18204 (sincosl): Define using libm_alias_ldouble.
18205 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
18206 <libm-alias-ldouble.h>.
18207 (sinl): Define using libm_alias_ldouble.
18208 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
18209 <libm-alias-ldouble.h>.
18210 (tanhl): Define using libm_alias_ldouble.
18211 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
18212 <libm-alias-ldouble.h>.
18213 (tanl): Define using libm_alias_ldouble.
18214 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
18215 <libm-alias-ldouble.h>.
18216 (totalorderl): Define using libm_alias_ldouble.
18217 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
18218 <libm-alias-ldouble.h>.
18219 (totalordermagl): Define using libm_alias_ldouble.
18220 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
18221 <libm-alias-ldouble.h>.
18222 (truncl): Define using libm_alias_ldouble.
18223 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
18224 libm_alias_ldouble.
18225 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
18226 libm_alias_ldouble.
18227 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
18228 <libm-alias-ldouble.h>.
18229 (weak_alias): Do not undefine and redefine.
18230 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18231 (copysignl): Define with long_double_symbol only if [IS_IN
18232 (libc)].
18233 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
18234 <libm-alias-ldouble.h>.
18235 (weak_alias): Do not undefine and redefine.
18236 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18237 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
18238 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
18239 <libm-alias-ldouble.h>.
18240 (weak_alias): Do not undefine and redefine.
18241 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
18242 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
18243 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
18244 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
18245 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
18246 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
18247 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
18248 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
18249 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
18250 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
18251 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
18252 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
18253 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
18254 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
18255 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
18256 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
18257 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
18258 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
18259 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
18260 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
18261 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
18262 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
18263 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
18264 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
18265 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
18266 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
18267
18268 2017-10-06 Carlos O'Donell <carlos@redhat.com>
18269
18270 [BZ #22111]
18271 * malloc/malloc.c (tcache_shutting_down): Use bool type.
18272 (tcache_thread_freeres): Set tcache_shutting_down before
18273 freeing the tcache.
18274 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
18275 * malloc/tst-malloc-tcache-leak.c: New file.
18276
18277 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18278
18279 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
18280 back to powerpc32 file.
18281 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
18282 (memrchr): Add __memrchr_power8 to ifunc list.
18283 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
18284 extra bytes for unaligned inputs.
18285
18286 2017-10-06 Joseph Myers <joseph@codesourcery.com>
18287
18288 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
18289 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
18290 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
18291 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
18292 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
18293
18294 2017-10-05 Joseph Myers <joseph@codesourcery.com>
18295
18296 * sysdeps/arm/libm-test-ulps: Update.
18297
18298 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
18299 <libm-alias-ldouble.h>.
18300 (asinhl): Define using libm_alias_ldouble.
18301 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
18302 <libm-alias-ldouble.h>.
18303 (cbrtl): Define using libm_alias_ldouble.
18304 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
18305 <libm-alias-ldouble.h>.
18306 (copysignl): Define using libm_alias_ldouble.
18307 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
18308 <libm-alias-ldouble.h>.
18309 (cosl): Define using libm_alias_ldouble.
18310 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
18311 <libm-alias-ldouble.h>.
18312 (erfl): Define using libm_alias_ldouble.
18313 (erfcl): Likewise.
18314 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
18315 <libm-alias-ldouble.h>.
18316 (fmal): Define using libm_alias_ldouble.
18317 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
18318 <libm-alias-ldouble.h>.
18319 (frexpl): Define using libm_alias_ldouble.
18320 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
18321 libm_alias_ldouble.
18322 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
18323 <libm-alias-ldouble.h>.
18324 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
18325 libm_alias_ldouble.
18326 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
18327 <libm-alias-ldouble.h>.
18328 (getpayloadl): Define using libm_alias_ldouble.
18329 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
18330 <libm-alias-ldouble.h>.
18331 (llrintl): Define using libm_alias_ldouble.
18332 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
18333 <libm-alias-ldouble.h>.
18334 (llroundl): Define using libm_alias_ldouble.
18335 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
18336 <libm-alias-ldouble.h>.
18337 (lrintl): Define using libm_alias_ldouble.
18338 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
18339 <libm-alias-ldouble.h>.
18340 (lroundl): Define using libm_alias_ldouble.
18341 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
18342 <libm-alias-ldouble.h>.
18343 (modfl): Define using libm_alias_ldouble.
18344 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
18345 <libm-alias-ldouble.h>.
18346 (nextupl): Define using libm_alias_ldouble.
18347 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
18348 <libm-alias-ldouble.h>.
18349 (remquol): Define using libm_alias_ldouble.
18350 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
18351 <libm-alias-ldouble.h>.
18352 (roundevenl): Define using libm_alias_ldouble.
18353 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
18354 <libm-alias-ldouble.h>.
18355 (roundl): Define using libm_alias_ldouble.
18356 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
18357 using libm_alias_ldouble.
18358 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
18359 <libm-alias-ldouble.h>.
18360 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
18361 <libm-alias-ldouble.h>.
18362 (setpayloadsigl): Define using libm_alias_ldouble.
18363 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
18364 <libm-alias-ldouble.h>.
18365 (sincosl): Define using libm_alias_ldouble.
18366 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
18367 <libm-alias-ldouble.h>.
18368 (sinl): Define using libm_alias_ldouble.
18369 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
18370 <libm-alias-ldouble.h>.
18371 (tanhl): Define using libm_alias_ldouble.
18372 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
18373 <libm-alias-ldouble.h>.
18374 (tanl): Define using libm_alias_ldouble.
18375 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
18376 <libm-alias-ldouble.h>.
18377 (totalorderl): Define using libm_alias_ldouble.
18378 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
18379 <libm-alias-ldouble.h>.
18380 (totalordermagl): Define using libm_alias_ldouble.
18381 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
18382 libm_alias_ldouble.
18383 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
18384 libm_alias_ldouble.
18385
18386 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
18387
18388 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
18389 memmove_falkor.
18390 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
18391 (__libc_ifunc_impl_list): Likewise.
18392 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
18393 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
18394
18395 * benchtests/bench-memmove-walk.c: New file.
18396 * benchtests/Makefile (string-benchset): Add it.
18397
18398 * benchtests/bench-memset-walk.c: New file.
18399 * benchtests/Makefile (string-benchset): Add it.
18400
18401 * benchtests/bench-memcpy-walk.c: New file.
18402 * benchtests/Makefile (string-benchset): Add it.
18403
18404 2017-10-05 Florian Weimer <fweimer@redhat.com>
18405
18406 nscd: Eliminate compilation time dependency in the build output.
18407 * nscd/nscd_stat.c (STATDATA_VERSION)
18408 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
18409 (STATDATA_VERSION_FULL): New macro definitions.
18410 (compilation): Remove.
18411 (struct statdata): Adjust version member.
18412 (send_stats): Set version from STATDATA_VERSION_FULL.
18413 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
18414
18415 2017-10-05 Joseph Myers <joseph@codesourcery.com>
18416
18417 * configure.ac (--enable-add-ons): Remove option.
18418 (machine): Do not mention add-ons in comment.
18419 (LIBC_PRECONFIGURE): Likewise.
18420 (add_ons): Remove variable and sanity checks and logic to locate
18421 add-ons.
18422 (add_ons_automatic): Remove variable.
18423 (configured_add_ons): Likewise.
18424 (add_ons_sfx): Likewise.
18425 (add_ons_pfx): Likewise.
18426 (add_on_subdirs): Likewise.
18427 (sysnames_add_ons): Likewise. Remove loop over add-ons and
18428 consideration of add-ons in Implies handling.
18429 (sysdeps_add_ons): Likewise.
18430 * configure: Regenerated.
18431 * libidn/configure.ac: Remove.
18432 * libidn/configure: Likewise.
18433 * sysdeps/unix/inet/configure.ac: New file.
18434 * sysdeps/unix/inet/configure: New generated file.
18435 * sysdeps/unix/inet/Subdirs: Add libidn.
18436 * Makeconfig (sysdeps-srcdirs): Remove variable.
18437 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
18438 ($(common-objpfx)config.status): Do not depend on add-on files.
18439 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
18440 comment.
18441 (all-subdirs): Do not include $(add-on-subdirs).
18442 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
18443 * config.make.in (add-ons): Remove variable.
18444 (add-on-subdirs): Likewise.
18445 (sysdeps-add-ons): Likewise.
18446 * manual/Makefile (add-chapters): Remove.
18447 ($(objpfx)texis): Do not depend on $(add-chapters).
18448 (nonexamples): Do not handle $(add-chapters).
18449 (examples): Do not handle $(add-ons).
18450 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
18451 libc-texinfo.sh.
18452 * manual/install.texi (Installation): Do not mention add-ons.
18453 (--enable-add-ons): Do not document configure option.
18454 * INSTALL: Regenerated.
18455 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
18456 * manual/maint.texi (Hierarchy Conventions): Do not mention
18457 add-ons.
18458 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
18459 --enable-add-ons.
18460 * scripts/gen-sorted.awk: Do not handle Subdirs files from
18461 add-ons.
18462 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
18463 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
18464
18465 2017-10-05 Andreas Schwab <schwab@suse.de>
18466
18467 [BZ #15142]
18468 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
18469 (_IO_flush_all_lockp): Always lock list_all_lock.
18470 (_IO_flush_all_linebuffered): Likewise.
18471 (_IO_unbuffer_all): Likewise.
18472
18473 2017-10-05 Florian Weimer <fweimer@redhat.com>
18474
18475 [BZ #15436]
18476 Do not flush stdio streams on abort.
18477 * stdlib/abort.c (fflush): Remove macro definition.
18478 (abort): Remove stages related to stdio flushing.
18479
18480 2017-10-05 Florian Weimer <fweimer@redhat.com>
18481
18482 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
18483
18484 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18485
18486 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18487
18488 2017-10-05 Florian Weimer <fweimer@redhat.com>
18489
18490 * support/support_format_hostent.c (support_format_hostent): Add
18491 more error information for NETDB_INTERNAL.
18492
18493 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18494
18495 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
18496 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
18497 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
18498 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
18499 AC_DEFINE if multi-arch is enabled.
18500 * sysdeps/i386/configure: Regenerated.
18501
18502 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18503
18504 * Makeconfig (+link-static-before-libc): Use
18505 $(DEFAULT-LDFLAGS-$(@F)).
18506 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
18507 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
18508 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
18509
18510 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18511
18512 * elf/Makefile (tests): Add tst-main1.
18513 (modules-names): Add tst-main1mod.
18514 ($(objpfx)tst-main1): New.
18515 (CRT-tst-main1): Likewise.
18516 (LDFLAGS-tst-main1): Likewise.
18517 (LDLIBS-tst-main1): Likewise.
18518 (tst-main1mod.so-no-z-defs): Likewise.
18519 * elf/tst-main1.c: New file.
18520 * elf/tst-main1mod.c: Likewise.
18521
18522 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
18523
18524 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
18525
18526 2017-10-04 Joseph Myers <joseph@codesourcery.com>
18527
18528 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
18529 (fma): Define using libm_alias_double.
18530 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
18531 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
18532 <math_ldbl_opt.h>.
18533 (fmal): Do not define as compat symbol here.
18534 * sysdeps/alpha/fpu/s_fma.c: New file.
18535
18536 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18537
18538 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
18539
18540 2017-10-04 Joseph Myers <joseph@codesourcery.com>
18541
18542 [BZ #22229]
18543 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
18544 <math_ldbl_opt.h>
18545 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
18546 and libc.
18547 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
18548 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
18549 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
18550 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
18551 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
18552 Include <math_ldbl_opt.h>
18553 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
18554 and libc.
18555 (compat_symbol): Undefine and redefine.
18556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
18557 <math_ldbl_opt.h>
18558 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
18559 (compat_symbol): Undefine and redefine.
18560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
18561 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
18562 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
18563 GLIBC_2_1 for libm.
18564 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
18565 GLIBC_2.0 copysignl symbol.
18566 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
18567 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
18568
18569 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
18570
18571 2017-10-04 Florian Weimer <fweimer@redhat.com>
18572
18573 * scripts/check-local-headers.sh: Ignore nspr4 header file
18574 directory in addition to nspr.
18575
18576 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
18577
18578 [BZ #17956]
18579 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
18580 * configure: Regenerate.
18581 * crypt/Makefile (nss-cpp-flags): New variable.
18582 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
18583 (CPPFLAGS-md5-crypt.c): Use it.
18584 * scripts/check-local-headers.sh: Ignore nspr header file
18585 directory.
18586
18587 2017-10-04 Andreas Schwab <schwab@suse.de>
18588
18589 * nis/Makefile (services): Remove compat.
18590 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
18591 ($(objpfx)libnss_compat.so): Remove rule.
18592 * nis/Versions (libnss_compat): Remove.
18593 * nss/Makefile (services): Add compat.
18594 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
18595 * nss/Versions (libnss_compat): Define.
18596 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
18597 Don't include <rpc/types.h>. Replace bool_t by bool.
18598 * nss/nss_compat/compat-initgroups.c: Likewise.
18599 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
18600 instead of <rpcsrv/ypclnt.h>.
18601 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
18602 yp_get_default_domain.
18603 * nss/nss_compat/compat-pwd.c: Likewise.
18604 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
18605 yp_get_default_domain.
18606 * nss/nss_compat/nisdomain.c: New file.
18607 * nss/nss_compat/nisdomain.h: Likewise.
18608
18609 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18610
18611 [BZ #22244]
18612 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
18613 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
18614
18615 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18616
18617 [BZ #22243]
18618 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
18619 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
18620
18621 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18622
18623 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
18624 "movl main@GOTOFF(%ebx), %eax".
18625
18626 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18627
18628 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
18629 allow undefined _DYNAMIC in PIE libc.a.
18630 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
18631 Likewse.
18632
18633 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18634
18635 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
18636 check _DYNAMIC.
18637
18638 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18639
18640 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
18641 check _DYNAMIC.
18642
18643 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18644
18645 * math/test-math-iscanonical.cc (error): Replace bool with int.
18646
18647 2017-10-03 Joseph Myers <joseph@codesourcery.com>
18648
18649 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
18650 (modf): Define using libm_alias_double, only if [!__modf].
18651 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
18652 <libm-alias-double.h>.
18653 (modf): Define using libm_alias_double, only if [!__modf].
18654 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
18655 compat symbol here.
18656 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
18657 (weak_alias): Do not undefine and redefine.
18658 (strong_alias): Likewise.
18659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
18660 (weak_alias): Likewise.
18661 (strong_alias): Likewise.
18662
18663 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
18664 (logb): Define using libm_alias_double, only if [!__logb].
18665 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
18666 <libm-alias-double.h>.
18667 (logb): Define using libm_alias_double, only if [!__logb].
18668 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
18669 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
18670 (weak_alias): Do not undefine and redefine.
18671 (strong_alias): Likewise.
18672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
18673 (weak_alias): Likewise.
18674 (strong_alias): Likewise.
18675
18676 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18677
18678 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
18679 Check SHARED instead PIC.
18680
18681 2017-10-03 Joseph Myers <joseph@codesourcery.com>
18682
18683 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
18684 [!__fmaf] (fmaf): Define using libm_alias_float.
18685
18686 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
18687 (frexp): Define using libm_alias_double.
18688 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
18689 <libm-alias-double.h>.
18690 (frexp): Define using libm_alias_double.
18691 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
18692 compat symbol here.
18693
18694 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18695
18696 [BZ #22235]
18697 * math/math.h: Trivial fix for unbalanced parentheses in comment.
18698 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
18699 (CFLAGS-test-math-iscanonical.cc): New variable.
18700 * math/test-math-iscanonical.cc: New file.
18701 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
18702 Provide a C++ implementation based on function overloading,
18703 rather than using __MATH_TG, which uses C-only builtins.
18704 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
18705 Likewise.
18706 * sysdeps/powerpc/powerpc64le/Makefile
18707 (CFLAGS-test-math-iscanonical.cc): New variable.
18708
18709 2017-10-03 Joseph Myers <joseph@codesourcery.com>
18710
18711 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
18712 (ceil): Define using libm_alias_double.
18713 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
18714 (floor): Define using libm_alias_double.
18715 * sysdeps/ieee754/dbl-64/s_llround.c: Include
18716 <libm-alias-double.h>.
18717 (llround): Define using libm_alias_double.
18718 * sysdeps/ieee754/dbl-64/s_lround.c: Include
18719 <libm-alias-double.h>.
18720 (lround): Define using libm_alias_double.
18721 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
18722 <libm-alias-double.h>.
18723 (nearbyint): Define using libm_alias_double.
18724 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
18725 <libm-alias-double.h>.
18726 (remquo): Define using libm_alias_double.
18727 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
18728 (rint): Define using libm_alias_double.
18729 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
18730 (round): Define using libm_alias_double.
18731 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
18732 (trunc): Define using libm_alias_double.
18733 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
18734 <libm-alias-double.h>.
18735 (ceil): Define using libm_alias_double.
18736 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
18737 <libm-alias-double.h>.
18738 (floor): Define using libm_alias_double.
18739 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
18740 <libm-alias-double.h>.
18741 (llround): Define using libm_alias_double.
18742 [_LP64] (lround): Likewise.
18743 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
18744 <libm-alias-double.h>.
18745 [!_LP64] (lround): Define using libm_alias_double.
18746 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
18747 <libm-alias-double.h>.
18748 (nearbyint): Define using libm_alias_double.
18749 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
18750 <libm-alias-double.h>.
18751 (remquo): Define using libm_alias_double.
18752 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
18753 <libm-alias-double.h>.
18754 (rint): Define using libm_alias_double.
18755 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
18756 <libm-alias-double.h>.
18757 (round): Define using libm_alias_double.
18758 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
18759 <libm-alias-double.h>.
18760 (trunc): Define using libm_alias_double.
18761 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
18762 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
18763 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
18764 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
18765 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
18766 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
18767 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
18768 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
18769 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
18770
18771 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18772
18773 * math/w_remainder.c: New file.
18774 * math/w_remainderf.c: New file.
18775 * math/w_remainderl.c: New file.
18776
18777 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
18778
18779 * elf/rtld.c (BOOTSTRAP_MAP): New.
18780 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
18781 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18782 Likewise.
18783 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18784 Likewise.
18785 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18786 Likewise.
18787
18788 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18789
18790 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
18791 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
18792 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
18793 rtld_hidden_data_ver): Define to empty.
18794 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
18795 __assert_perror_fail): Likewise.
18796 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18797 (__rewinddir): Likewise.
18798 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18799 (__profile_frequency): Likewise.
18800 * include/setjmp.h (__sigsetjmp): Likewise.
18801 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
18802 __libc_sigaction): Likewise.
18803 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
18804 not set hidden attribute.
18805 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
18806 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
18807 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
18808 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
18809 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
18810 __fxstatat64): Likewise.
18811 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18812 (__uname): Likewise.
18813 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
18814 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
18815 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
18816 (NO_RTLD_HIDDEN): Set.
18817 * sysdeps/mach/hurd/configure: Refresh.
18818 * config.h.in: Refresh.
18819
18820 2017-10-02 Joseph Myers <joseph@codesourcery.com>
18821
18822 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
18823 (atan): Define using libm_alias_double.
18824 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
18825 (tan): Define using libm_alias_double.
18826 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
18827 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
18828
18829 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
18830 define as weak alias of __atan. Do not define any aliases if
18831 [__atan].
18832 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
18833 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
18834 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
18835 as weak alias of __tan. Do not define any aliases if [__tan].
18836 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
18837 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
18838 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
18839 __atan.
18840 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
18841 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
18842 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
18843 and define as weak alias of __atan.
18844 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
18845 __atan.
18846 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
18847 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
18848 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
18849 define as weak alias of __tan.
18850
18851 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18852
18853 * math/w_lgamma.c: New file.
18854 * math/w_lgammaf.c: New file.
18855 * math/w_lgammal.c: New file.
18856
18857 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18858
18859 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
18860 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
18861 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
18862 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
18863 * sysdeps/ieee754/flt-32/w_logf.c: New file.
18864 * sysdeps/ieee754/flt-32/w_powf.c: New file.
18865 * sysdeps/i386/fpu/w_log2f.c: New file.
18866 * sysdeps/i386/fpu/w_logf.c: New file.
18867 * sysdeps/i386/fpu/w_powf.c: New file.
18868 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
18869 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
18870 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
18871
18872 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18873 H.J. Lu <hongjiu.lu@intel.com>
18874
18875 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
18876 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
18877 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
18878 * sysdeps/ieee754/flt-32/w_expf.c: New file.
18879 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
18880 the new expf code.
18881 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
18882 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
18883 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
18884 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
18885 * sysdeps/i386/fpu/w_exp2f.c: New file.
18886 * sysdeps/i386/fpu/w_expf.c: New file.
18887 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
18888 * sysdeps/x86_64/fpu/w_expf.c: New file.
18889
18890 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
18891
18892 * math/Versions (logf): New libm symbol at GLIBC_2.27.
18893 (log2f): Likewise.
18894 (powf): Likewise.
18895 * math/w_log2f.c: New file.
18896 * math/w_logf.c: New file.
18897 * math/w_powf.c: New file.
18898 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
18899 * math/w_logf_compat.c (__logf_compat): Likewise.
18900 * math/w_powf_compat.c (__powf_compat): Likewise.
18901 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
18902 * sysdeps/ia64/fpu/e_logf.S: Likewise.
18903 * sysdeps/ia64/fpu/e_powf.S: Likewise.
18904 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
18905 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18910 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18911 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18912 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18914 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18915 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18917 Likewise.
18918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18919 Likewise.
18920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18921 Likewise.
18922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18923 Likewise.
18924 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18925 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18926 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18927 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18928 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18929 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18930 Likewise.
18931 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18932 Likewise.
18933 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18934 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18935 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18936
18937 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18938
18939 * sysdeps/powerpc/powerpc64/multiarch/Makefile
18940 (sysdep_routines): Add memrchr_power8.
18941 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
18942 (memrchr): Add __memrchr_power8 to list of memrchr functions.
18943 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
18944 New file.
18945 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
18946 (memrchr): Add __memrchr_power8 to ifunc list.
18947 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
18948
18949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18950
18951 [BZ #18822]
18952 * sysdeps/unix/sysv/linux/posix_fadvise64.c
18953 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
18954 libc_hidden_def.
18955 * sysdeps/unix/sysv/linux/posix_fallocate64.c
18956 (__posix_fallocate64_l64): Likewise.
18957
18958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18959
18960 [BZ #18822]
18961 * sysdeps/unix/sysv/linux/sched_setaffinity.c
18962 (__sched_setaffinity_new): Add libc_hidden_proto and
18963 libc_hidden_def.
18964
18965 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18966
18967 [BZ #18822]
18968 * include/glob.h (__glob64): Add libc_hidden_proto.
18969 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
18970 libc_hidden_def.
18971
18972 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18973
18974 [BZ #18822]
18975 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
18976 attribute_hidden.
18977
18978 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18979
18980 [BZ #18822]
18981 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
18982
18983 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18984
18985 [BZ #18822]
18986 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
18987 libc_hidden_def.
18988
18989 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18990
18991 [BZ #18822]
18992 * csu/version.c (__libc_print_version): Add attribute_hidden.
18993
18994 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
18995
18996 [BZ #18822]
18997 * include/libc-internal.h (__init_misc): Add attribute_hidden.
18998
18999 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19000
19001 [BZ #18822]
19002 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
19003
19004 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19005
19006 [BZ #18822]
19007 * nscd/nscd_helper.c (__nis_hash): New prototype.
19008
19009 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19010
19011 [BZ #18822]
19012 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
19013 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
19014 libc_hidden_def.
19015 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
19016 * termios/tcgetattr.c (__tcgetattr): Likewise.
19017
19018 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19019
19020 [BZ #18822]
19021 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
19022 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
19023 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
19024 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
19025 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
19026
19027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19028
19029 [BZ #18822]
19030 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
19031
19032 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19033
19034 [BZ #18822]
19035 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
19036 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
19037
19038 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19039
19040 [BZ #18822]
19041 * intl/hash-string.h (__hash_string): Add attribute_hidden.
19042
19043 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19044
19045 [BZ #18822]
19046 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
19047 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
19048
19049 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19050
19051 [BZ #18822]
19052 * include/ifreq.h: New file.
19053 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
19054 (__ifreq): Likewise.
19055 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
19056 (__ifreq): Likewise.
19057
19058 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19059
19060 [BZ #18822]
19061 * include/idna.h: New file.
19062 * inet/getnameinfo.c: Include <idna.h> instead of
19063 <libidn/idna.h>.
19064 (__idna_to_unicode_lzlz): Removed.
19065 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
19066 <libidn/idna.h>.
19067 (__idna_to_ascii_lz): Removed.
19068 (__idna_to_unicode_lzlz): Likewise.
19069
19070 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19071
19072 [BZ #18822]
19073 * include/plural-exp.h: New file.
19074 * intl/plural-exp.c: Include <plural-exp.h> instead of
19075 "plural-exp.h".
19076
19077 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19078
19079 [BZ #18822]
19080 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
19081 "getsourcefilter.h".
19082 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
19083 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
19084 "getsourcefilter.h".
19085 (__get_sol): Removed.
19086
19087 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19088
19089 [BZ #18822]
19090 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
19091 to ...
19092 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
19093
19094 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19095
19096 [BZ #18822]
19097 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
19098 attribute_hidden.
19099
19100 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19101
19102 [BZ #18822]
19103 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
19104
19105 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19106
19107 [BZ #18822]
19108 * include/search.h (__tdestroy): Add libc_hidden_proto.
19109 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
19110
19111 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19112
19113 [BZ #18822]
19114 * include/assert.h (__assert_fail_base): Add attribute_hidden.
19115
19116 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19117
19118 [BZ #18822]
19119 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
19120 attribute_hidden.
19121
19122 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19123
19124 [BZ #18822]
19125 * include/signal.h (__kill): Add libc_hidden_proto.
19126 (__sigblock): Likewise.
19127 (__sigprocmask): Likewise.
19128 (__sigaltstack): Likewise.
19129 * signal/kill.c (__kill): Add libc_hidden_def.
19130 * signal/sigblock.c (__sigblock): Likewise.
19131 * signal/sigprocmask.c (__sigprocmask): Likewise.
19132 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
19133 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
19134 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
19135 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
19136 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
19137 Likewise.
19138 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
19139 Likewise.
19140 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
19141 (__sigprocmask): Likewise.
19142 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
19143 Likewise.
19144 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
19145 (__sigprocmask): Likewise.
19146 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
19147 Likewise.
19148
19149 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19150
19151 [BZ #18822]
19152 * include/string.h (__strsep): Add libc_hidden_proto.
19153 * string/strsep.c (__strsep): Add libc_hidden_def.
19154
19155 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19156
19157 [BZ #18822]
19158 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
19159 attribute_hidden.
19160 (__spawni): Likewise.
19161
19162 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19163
19164 [BZ #18822]
19165 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
19166 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
19167 libc_hidden_def.
19168
19169 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19170
19171 [BZ #18822]
19172 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
19173
19174 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19175
19176 [BZ #18822]
19177 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
19178 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
19179 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
19180 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
19181 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
19182 Likewise.
19183 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
19184 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
19185
19186 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19187
19188 [BZ #18822]
19189 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
19190 (__dcigettext): Likewise.
19191
19192 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19193
19194 [BZ #18822]
19195 * include/sys/sysinfo.h (__get_nprocs_conf): Add
19196 libc_hidden_proto.
19197 (__get_nprocs): Likewise.
19198 (__get_phys_pages): Likewise.
19199 (__get_avphys_pages): Likewise.
19200 (__get_child_max): Add attribute_hidden.
19201 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
19202 (__get_nprocs): Likewise.
19203 (__get_phys_pages): Likewise.
19204 (__get_avphys_pages): Likewise.
19205 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
19206 libc_hidden_def.
19207 (__get_nprocs): Likewise.
19208 (__get_phys_pages): Likewise.
19209 (__get_avphys_pages): Likewise.
19210 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
19211 libc_hidden_def.
19212 (__get_nprocs_conf): Likewise.
19213 (__get_phys_pages): Likewise.
19214 (__get_avphys_pages): Likewise.
19215
19216 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19217
19218 [BZ #18822]
19219 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
19220 attribute_hidden.
19221 (__netlink_close): Likewise.
19222 (__netlink_free_handle): Likewise.
19223 (__netlink_request): Likewise.
19224
19225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19226
19227 [BZ #18822]
19228 * include/rpc/rpc.h (__rpc_thread_variables): Add
19229 attribute_hidden.
19230 (__rpc_thread_svc_cleanup): Likewise.
19231 (__rpc_thread_clnt_cleanup): Likewise.
19232 (__rpc_thread_key_cleanup): Likewise.
19233
19234 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19235
19236 [BZ #18822]
19237 * include/sys/uio.h (__readv): Add libc_hidden_proto.
19238 (__writev): Likewise.
19239 * misc/readv.c (__readv): Add libc_hidden_def.
19240 * misc/writev.c (__writev): Likewise.
19241 * sysdeps/posix/readv.c (__readv): Likewise.
19242 * sysdeps/posix/writev.c (__writev): Likewise.
19243 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
19244 (__readv): Likewise.
19245 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
19246 (__writev): Likewise.
19247
19248 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19249
19250 [BZ #18822]
19251 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
19252 (__regcomp): Add libc_hidden_proto.
19253 (__regexec): Likewise.
19254 (__regfree): Likewise.
19255 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
19256 (__regfree): Likewise.
19257 * posix/regexec.c (__regexec): Likewise.
19258
19259 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19260
19261 [BZ #18822]
19262 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
19263 (__getutent): Likewise.
19264 (__getutid): Likewise.
19265 (__getutline): Likewise.
19266 (__pututline): Likewise.
19267 (__getutent_r): Likewise.
19268 (__getutid_r): Likewise.
19269 (__getutline_r): Likewise.
19270 (__utmpname): Add attribute_hidden.
19271 (__setutent): Likewise.
19272 (__endutent): Likewise.
19273 * login/getutent.c (__getutent): Add libc_hidden_def.
19274 * login/getutent_r.c (__getutent_r): Likewise.
19275 (__pututline): Likewise.
19276 * login/getutid.c (__getutid): Likewise.
19277 * login/getutid_r.c (__getutid_r): Likewise.
19278 * login/getutline.c (__getutline): Likewise.
19279 * login/getutline_r.c (__getutline_r): Likewise.
19280 * login/updwtmp.c (__updwtmp): Likewise.
19281
19282 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19283
19284 [BZ #18822]
19285 * include/dirent.h (__opendir): Always add attribute_hidden.
19286 (__fdopendir): Likewise.
19287 (__closedir): Likewise.
19288 (__readdir): Likewise.
19289 (__readdir64): Add libc_hidden_proto.
19290 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
19291 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
19292 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
19293 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
19294 New alias.
19295
19296 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19297
19298 [BZ #18822]
19299 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
19300 * include/netdb.h (__gethostbyaddr_r): Likewise.
19301 (__gethostbyname_r): Likewise.
19302 (__gethostbyname2_r): Likewise.
19303 (__getnetbyaddr_r): Likewise.
19304 (__getnetbyname_r): Likewise.
19305 (__getservbyname_r): Likewise.
19306 (__getservbyport_r): Likewise.
19307 (__getprotobyname_r): Likewise.
19308 (__getprotobynumber_r): Likewise.
19309 (__getnetgrent_r): Likewise.
19310 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
19311 (__getrpcbynumber_r): Likewise.
19312 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
19313
19314 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19315
19316 [BZ #18822]
19317 * include/stdio.h (__fcloseall): Add attribute_hidden.
19318 (__getline): Likewise.
19319 (__path_search): Likewise.
19320 (__gen_tempname): Likewise.
19321 (__libc_message): Likewise.
19322 (__flockfile): Likewise.
19323 (__funlockfile): Likewise.
19324 (__fxprintf): Likewise.
19325 (__fxprintf_nocancel): Likewise.
19326
19327 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19328
19329 [BZ #18822]
19330 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
19331 (__sgetsgent_r): Likewise.
19332
19333 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19334
19335 [BZ #18822]
19336 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
19337 (__statfs64): Likewise.
19338 (__fstatfs64): Likewise.
19339 * include/sys/statvfs.h (__statvfs64): Likewise.
19340 (__fstatvfs64): Likewise.
19341 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
19342 (__statfs_filesize_max): Likewise.
19343 (__statfs_symlinks): Likewise.
19344 (__statfs_chown_restricted): Likewise.
19345
19346 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19347
19348 [BZ #18822]
19349 * include/time.h (__tzstring): Add attribute_hidden.
19350 (__tzfile_read): Likewise.
19351 (__tzfile_compute): Likewise.
19352 (__tzfile_default): Likewise.
19353 (__tzset_parse_tz): Likewise.
19354 (__offtime): Likewise.
19355 (__asctime_r): Likewise.
19356 (__tzset): Likewise.
19357 (__tz_convert): Likewise.
19358 (__getdate_r): Likewise.
19359 (__getclktck): Likewise.
19360
19361 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19362
19363 [BZ #18822]
19364 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
19365 (__nscd_unmap): Likewise.
19366 (__nscd_cache_search): Likewise.
19367 (__nscd_get_nl_timestamp): Likewise.
19368 (__nscd_getpwnam_r): Likewise.
19369 (__nscd_getpwuid_r): Likewise.
19370 (__nscd_getgrnam_r): Likewise.
19371 (__nscd_getgrgid_r): Likewise.
19372 (__nscd_gethostbyname_r): Likewise.
19373 (__nscd_gethostbyname2_r): Likewise.
19374 (__nscd_gethostbyaddr_r): Likewise.
19375 (__nscd_getai): Likewise.
19376 (__nscd_getgrouplist): Likewise.
19377 (__nscd_getservbyname_r): Likewise.
19378 (__nscd_getservbyport_r): Likewise.
19379 (__nscd_innetgr): Likewise.
19380 (__nscd_setnetgrent): Likewise.
19381
19382 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19383
19384 [BZ #18822]
19385 * include/gmp.h: Declare internal functions only if _ISOMAC is
19386 undefined.
19387 (__mpn_extract_double): Add attribute_hidden.
19388 (__mpn_extract_long_double): Likewise.
19389 (__mpn_extract_float128): Likewise.
19390 (__mpn_construct_float): Likewise.
19391 (__mpn_construct_double): Likewise.
19392 (__mpn_construct_long_double): Likewise.
19393 (__mpn_construct_float128): Likewise.
19394 (mpn_add_1): Likewise.
19395 (mpn_addmul_1): Likewise.
19396 (mpn_add_n): Likewise.
19397 (mpn_cmp): Likewise.
19398 (mpn_divrem): Likewise.
19399 (mpn_lshift): Likewise.
19400 (mpn_mul): Likewise.
19401 (mpn_mul_1): Likewise.
19402 (mpn_rshift): Likewise.
19403 (mpn_sub_1): Likewise.
19404 (mpn_submul_1): Likewise.
19405 (mpn_sub_n): Likewise.
19406
19407 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19408
19409 [BZ #18822]
19410 * include/wchar.h (__wcsnlen): Add attribute_hidden.
19411 (__wcscat): Likewise.
19412 (__btowc): Likewise.
19413 (__wcrtomb): Likewise.
19414 (__mbsrtowcs): Likewise.
19415 (__wcsrtombs): Likewise.
19416 (__mbsnrtowcs): Likewise.
19417 (__wcsnrtombs): Likewise.
19418 (__wcsncpy): Likewise.
19419 (__wcpncpy): Likewise.
19420 (__wmemcpy): Likewise.
19421 (__wmempcpy): Likewise.
19422 (__wmemmove): Likewise.
19423 (__wcschrnul): Likewise.
19424 (__vfwscanf): Likewise.
19425 (__vswprintf): Likewise.
19426 (__fwprintf): Likewise.
19427 (__vfwprintf): Likewise.
19428
19429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19430
19431 [BZ #18822]
19432 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
19433 (__getgrgid_r): Likewise.
19434 (__getgrnam_r): Likewise.
19435 * include/pwd.h (__getpwuid_r): Likewise.
19436 (__getpwnam_r): Likewise.
19437 (__fgetpwent_r): Likewise.
19438 * include/shadow.h (__getspnam_r): Likewise.
19439 (__sgetspent_r): Likewise.
19440 (__fgetspent_r): Likewise.
19441
19442 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19443
19444 [BZ #18822]
19445 * include/unistd.h (__access): Add attribute_hidden.
19446 (__lseek64): Likewise.
19447 (__libc_pread64): Likewise.
19448 (__pipe2): Likewise.
19449 (__sleep): Likewise.
19450 (__chdir): Likewise.
19451 (__fchdir): Likewise.
19452 (__getcwd): Likewise.
19453 (__rmdir): Likewise.
19454 (__execvpe): Likewise.
19455 (__execve): Likewise.
19456 (__setsid): Likewise.
19457 (__getuid): Likewise.
19458 (__geteuid): Likewise.
19459 (__getgid): Likewise.
19460 (__getegid): Likewise.
19461 (__getgroups): Likewise.
19462 (__group_member): Likewise.
19463 (__ttyname_r): Likewise.
19464 (__isatty): Likewise.
19465 (__readlink): Likewise.
19466 (__unlink): Likewise.
19467 (__gethostname): Likewise.
19468 (__profil): Likewise.
19469 (__getdtablesize): Likewise.
19470 (__brk): Likewise.
19471 (__ftruncate): Likewise.
19472 (__ftruncate64): Likewise.
19473
19474 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19475
19476 [BZ #18822]
19477 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
19478 * argp/argp-fs-xinl.c: Likewise.
19479 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
19480 * argp/argp-parse.c: Include <argp.h>.
19481 * argp/argp-xinl.c: Likewise.
19482 * include/argp-fmtstream.h: New file.
19483 * include/argp.h (__argp_error): Add attribute_hidden.
19484 (__argp_failure): Likewise.
19485 (__argp_input): Likewise.
19486 (__argp_state_help): Likewise.
19487
19488 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19489
19490 [BZ #18822]
19491 * include/wchar.h (____wcstof_l_internal): New prototype.
19492 (____wcstod_l_internal): Likewise.
19493 (____wcstold_l_internal): Likewise.
19494 (____wcstol_l_internal): Likewise.
19495 (____wcstoul_l_internal): Likewise.
19496 (____wcstoll_l_internal): Likewise.
19497 (____wcstoull_l_internal): Likewise.
19498 (____wcstof128_l_internal): Likewise.
19499 * sysdeps/ieee754/float128/wcstof128.c
19500 (____wcstof128_l_internal): Removed.
19501 * sysdeps/ieee754/float128/wcstof128_l.c
19502 (____wcstof128_l_internal): Likewise.
19503 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
19504 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
19505 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
19506 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
19507 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
19508 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
19509 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
19510 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
19511 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
19512 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
19513
19514 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19515
19516 [BZ #18822]
19517 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
19518 instead of <sys/statvfs.h>.
19519 (__internal_statvfs): Removed.
19520 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
19521 instead of <sys/statvfs.h>.
19522 (__internal_statvfs64): Removed.
19523 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
19524 "internal_statvfs.h" instead of <sys/statvfs.h>.
19525 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
19526 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
19527 instead of <sys/statvfs.h>.
19528 (__internal_statvfs): Removed.
19529 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
19530 instead of <sys/statvfs.h>.
19531 (__internal_statvfs64): Removed.
19532
19533 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19534
19535 [BZ #18822]
19536 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
19537 (__gconv_close): Likewise.
19538 (__gconv): Likewise.
19539 (__gconv_find_transform): Likewise.
19540 (__gconv_lookup_cache): Likewise.
19541 (__gconv_compare_alias_cache): Likewise.
19542 (__gconv_load_cache): Likewise.
19543 (__gconv_get_path): Likewise.
19544 (__gconv_close_transform): Likewise.
19545 (__gconv_release_cache): Likewise.
19546 (__gconv_find_shlib): Likewise.
19547 (__gconv_release_shlib): Likewise.
19548 (__gconv_get_builtin_trans): Likewise.
19549 (__gconv_compare_alias): Likewise.
19550 * include/dlfcn.h (_dlerror_run): Likewise.
19551 * include/stdio.h (__fortify_fail_abort): Likewise.
19552 * include/time.h (__tz_compute): Likewise.
19553 (__strptime_internal): Likewise.
19554 * intl/gettextP.h (_nl_find_domain): Likewise.
19555 (_nl_load_domain): Likewise.
19556 (_nl_find_msg): Likewise.
19557 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
19558 (EXTRACT_PLURAL_EXPRESSION): Likewise.
19559 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
19560 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
19561 (__gai_find_request): Likewise.
19562 (__gai_remove_request): Likewise.
19563 (__gai_notify): Likewise.
19564 (__gai_notify_only): Likewise.
19565 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
19566 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
19567 (_dl_non_dynamic_init): Likewise.
19568 (_dl_aux_init): Likewise.
19569 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
19570 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
19571 Likewise.
19572 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
19573 (__wcsmbs_clone_conv): Likewise.
19574 (__wcsmbs_named_conv): Likewise.
19575
19576 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19577
19578 [BZ #18822]
19579 * include/stdlib.h (__random): Add attribute_hidden.
19580 (__random_r): Likewise.
19581 (__srandom_r): Likewise.
19582 (__initstate_r): Likewise.
19583 (__setstate_r): Likewise.
19584 (__erand48_r): Likewise.
19585 (__nrand48_r): Likewise.
19586 (__jrand48_r): Likewise.
19587 (__srand48_r): Likewise.
19588 (__seed48_r): Likewise.
19589 (__lcong48_r): Likewise.
19590 (__drand48_iterate): Likewise.
19591 (__setenv): Likewise.
19592 (__unsetenv): Likewise.
19593 (__clearenv): Likewise.
19594 (__ptsname_r): Likewise.
19595 (__posix_openpt): Likewise.
19596 (__add_to_environ): Likewise.
19597 (__realpath): Add libc_hidden_proto.
19598 (__ecvt_r): Likewise.
19599 (__fcvt_r): Likewise.
19600 (__qecvt_r): Likewise.
19601 (__qfcvt_r): Likewise.
19602 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
19603 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
19604
19605 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
19606
19607 [BZ #18822]
19608 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
19609 * include/time.h (__mktime_internal): Likewise.
19610 * libio/iolibio.h (__fopen_internal): Likewise.
19611
19612 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
19613
19614 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
19615 pointer in frame.
19616 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
19617 Correct offset used to restore PIC register.
19618
19619 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
19620
19621 [BZ libc/22165]
19622 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
19623 code to load address of __getcontext_ret when generating PIC code.
19624
19625 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
19626
19627 * elf/Makefile (tests-static-internal): Add
19628 tst-tls1-static-non-pie.
19629 (LDFLAGS-tst-tls1-static-non-pie): New.
19630 * elf/tst-tls1-static-non-pie.c: New file.
19631
19632 2017-09-29 Joseph Myers <joseph@codesourcery.com>
19633
19634 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
19635 (asinh): Define using libm_alias_double.
19636 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
19637 (cbrt): Define using libm_alias_double.
19638 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
19639 <libm-alias-double.h>.
19640 (copysign): Define using libm_alias_double.
19641 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
19642 (erf): Define using libm_alias_double.
19643 (erfc): Likewise.
19644 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
19645 (expm1): Define using libm_alias_double.
19646 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
19647 (fabs): Define using libm_alias_double.
19648 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
19649 libm_alias_double.
19650 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
19651 <libm-alias-double.h>.
19652 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
19653 libm_alias_double.
19654 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
19655 <libm-alias-double.h>.
19656 (getpayload): Define using libm_alias_double.
19657 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
19658 <libm-alias-double.h>.
19659 (llrint): Define using libm_alias_double.
19660 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
19661 (lrint): Define using libm_alias_double.
19662 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
19663 <libm-alias-double.h>.
19664 (nextup): Define using libm_alias_double.
19665 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
19666 <libm-alias-double.h>.
19667 (roundeven): Define using libm_alias_double.
19668 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
19669 libm_alias_double.
19670 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
19671 <libm-alias-double.h>.
19672 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
19673 using libm_alias_double.
19674 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
19675 (cos): Define using libm_alias_double.
19676 (sin): Likewise.
19677 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
19678 <libm-alias-double.h>.
19679 (sincos): Define using libm_alias_double.
19680 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
19681 (tanh): Define using libm_alias_double.
19682 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
19683 <libm-alias-double.h>.
19684 (totalorder): Define using libm_alias_double.
19685 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
19686 <libm-alias-double.h>.
19687 (totalordermag): Define using libm_alias_double.
19688 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
19689 libm_alias_double.
19690 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
19691 libm_alias_double.
19692 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
19693 <libm-alias-double.h>.
19694 (getpayload): Define using libm_alias_double.
19695 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
19696 <libm-alias-double.h>.
19697 (roundeven): Define using libm_alias_double.
19698 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
19699 <libm-alias-double.h>.
19700 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
19701 <libm-alias-double.h>.
19702 (totalorder): Define using libm_alias_double.
19703 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
19704 <libm-alias-double.h>.
19705 (totalordermag): Define using libm_alias_double.
19706 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
19707 libc compat symbol here.
19708 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
19709 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
19710 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
19711 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
19712 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
19713 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
19714 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
19715 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
19716 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
19717 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
19718
19719 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
19720
19721 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
19722 _dl_relocate_static_pie instead of _dl_start to compute load
19723 address in static PIE. Return 0 if _DYNAMIC is undefined for
19724 static executable.
19725
19726 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
19727
19728 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
19729 _DYNAMIC is undefined for static executable.
19730
19731 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
19732
19733 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
19734
19735 2017-09-29 Joseph Myers <joseph@codesourcery.com>
19736
19737 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19738
19739 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
19740
19741 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
19742 (__ieee754_lgamma_r): Use fabs rather than __fabs.
19743 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
19744 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
19745 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
19746 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
19747 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
19748 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
19749 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
19750 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
19751 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
19752 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
19753 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
19754 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
19755 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
19756 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
19757 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
19758
19759 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
19760
19761 * math/bits/cmathcalls.h (cimag): Remove inline.
19762 (creal): Remove inline.
19763 (conj): Remove inline.
19764
19765 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
19766
19767 * math/Makefile (type-float-routines): Add e_powf_log2_data.
19768 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
19769 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
19770 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
19771 (issignalingf_inline): Likewise.
19772 (POWF_LOG2_TABLE_BITS): Likewise.
19773 (POWF_LOG2_POLY_ORDER): Likewise.
19774 (POWF_SCALE_BITS): Likewise.
19775 (POWF_SCALE): Likewise.
19776 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
19777 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
19778 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
19779
19780 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
19781
19782 * math/Makefile (type-float-routines): Add e_log2f_data.
19783 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
19784 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
19785 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
19786 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
19787 * sysdeps/i386/fpu/e_log2f_data.c: New file.
19788 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
19789 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
19790
19791 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
19792
19793 * math/Makefile (type-float-routines): Add e_logf_data.
19794 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
19795 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
19796 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
19797 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
19798 * sysdeps/i386/fpu/e_logf_data.c: New file.
19799 * sysdeps/ia64/fpu/e_logf_data.c: New file.
19800 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
19801
19802 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
19803
19804 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
19805 undefined _DYNAMIC in PIE libc.a.
19806 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
19807 Likewse.
19808
19809 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
19810
19811 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
19812 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
19813 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
19814 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
19815 (__signbit): Remove.
19816 (__signbitl): Remove.
19817 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
19818 (__signbit): Remove.
19819 (__signbitl): Remove.
19820 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
19821 (__signbit): Remove.
19822 (__signbitl): Remove.
19823 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
19824 (__signbit): Remove.
19825 (__signbitl): Remove.
19826 * sysdeps/tile/bits/mathinline.h: Delete file.
19827 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
19828 (__signbit): Remove.
19829 (__signbitl): Remove.
19830
19831 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
19832
19833 * math/math.h: Improve handling of C99 isgreater macros.
19834 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
19835 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
19836 * sysdeps/powerpc/bits/mathinline.h: Likewise.
19837 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
19838 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
19839
19840 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
19841
19842 * sysdeps/aarch64/libm-test-ulps: Update.
19843
19844 2017-09-28 Joseph Myers <joseph@codesourcery.com>
19845
19846 [BZ #22225]
19847 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
19848 math_opt_barrier on argument when doing arithmetic on it.
19849 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
19850 Likewise. Use math_force_eval not math_opt_barrier after
19851 arithmetic.
19852 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
19853 math_opt_barrier on argument when doing arithmetic on it.
19854 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
19855 Likewise.
19856
19857 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
19858
19859 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
19860 libc_hidden_def.
19861 (__freeifaddrs): Likewise.
19862
19863 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19864
19865 * include/dirent.h (__dirfd): New declaration.
19866 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
19867 alias.
19868 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
19869 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
19870 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
19871 * include/unistd.h (__revoke): New declaration.
19872 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
19873 alias.
19874 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
19875 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
19876 revoke.
19877 * include/dirent.h (__seekdir): New declaration.
19878 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
19879 redefine as weak alias.
19880 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
19881 of seekdir.
19882 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
19883 and use libc_hidden_def on them.
19884 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
19885 them.
19886 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
19887 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
19888 instead of getifaddrs and freeifaddrs.
19889
19890 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
19891
19892 [BZ #18822]
19893 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
19894 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
19895 (__dso_handle): Remove declaration.
19896 * dlfcn/tstatexit.c (__dso_handle): Removed.
19897 (main): Don't check __dso_handle.
19898 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
19899 (main): Don't check __dso_handle.
19900 * include/dso_handle.h: New file.
19901 * malloc/mtrace.c: Include <dso_handle.h>.
19902 (mtrace): Pass __dso_handle directly.
19903 * nptl/pthread_atfork.c: Include <dso_handle.h>.
19904 (__dso_handle): Remove declaration.
19905 (__pthread_atfork): Pass __dso_handle directly.
19906 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
19907 (__dso_handle): Removed.
19908 * posix/wordexp-test.c: Include <dso_handle.h>.
19909 (__dso_handle): Remove declaration.
19910 (__app_register_atfork): Pass __dso_handle directly.
19911 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
19912 (__dso_handle): Remove declaration.
19913 (at_quick_exit): Pass __dso_handle directly.
19914 * stdlib/atexit.c: Include <dso_handle.h>.
19915 (__dso_handle): Remove declaration.
19916 (atexit): Pass __dso_handle directly.
19917 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
19918 (__dso_handle): Removed.
19919
19920 2017-09-26 Joseph Myers <joseph@codesourcery.com>
19921
19922 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
19923 using VDSO.
19924
19925 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
19926
19927 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
19928 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
19929 values to correct default value for given type.
19930
19931 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
19932
19933 [BZ #22101]
19934 * elf/Makefile (tests): Add tst-debug1.
19935 ($(objpfx)tst-debug1): New.
19936 ($(objpfx)tst-debug1.out): Likewise.
19937 ($(objpfx)tst-debug1mod1.so): Likewise.
19938 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
19939 with p_filesz == 0.
19940 * elf/tst-debug1.c: New file.
19941
19942 2017-09-26 Joseph Myers <joseph@codesourcery.com>
19943
19944 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
19945 Define using __ifunc.
19946
19947 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19948
19949 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
19950 exp2f() values.
19951
19952 2017-09-26 Joseph Myers <joseph@codesourcery.com>
19953
19954 [BZ #22156]
19955 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
19956
19957 2017-09-26 Florian Weimer <fweimer@redhat.com>
19958
19959 * resolv/Makefile (tests-internal): Fix typo in comment.
19960
19961 2017-09-26 Florian Weimer <fweimer@redhat.com>
19962
19963 * resolv/nss_dns/dns-host.c: Fix typo in comment.
19964
19965 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19966
19967 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
19968 Use an union instead of a max_align_t array for __space,
19969 so that __space is the same size on all platforms.
19970 * malloc/scratch_buffer_grow_preserve.c
19971 (__libc_scratch_buffer_grow_preserve): Likewise.
19972
19973 [BZ #22183]
19974 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
19975 version to 2.
19976 * posix/Makefile (routines): Add glob-lstat-compat and
19977 glob64-lstat-compat.
19978 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
19979 * posix/glob-lstat-compat.c: New file.
19980 * posix/glob64-lstat-compat.c: Likewise.
19981 * posix/tst-glob_lstat_compat.c: Likewise.
19982 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
19983 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
19984 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
19985 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
19986 Likewise.
19987 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
19988 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
19989 * posix/glob.c (glob_lstat): New function.
19990 (glob): Rename to __glob and add versioned symbol to 2.27.
19991 (glob_in_dir): Use glob_lstat.
19992 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
19993 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19994 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
19995 2.27.
19996 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
19997 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
19998 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
19999 gl_lstat on glob call.
20000 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
20001 and glob64 symbols.
20002 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20003 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20004 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20005 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20006 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20007 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20008 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20009 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20010 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
20011 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20012 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20013 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20014 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20015 Likewise.
20016 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
20017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
20018 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20019 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20020 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20021 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20022 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20023 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
20024 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
20025 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20026 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20027 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20028
20029 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
20030
20031 * configure.ac (AS): Require binutils 2.25 or later.
20032 * configure: Regenerated.
20033
20034 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
20035
20036 [BZ #22207]
20037 * stdlib/test-atexit-race-common.c (do_test): Minimize required
20038 VM size.
20039
20040 2017-09-25 DJ Delorie <dj@redhat.com>
20041
20042 [BZ #22161]
20043 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
20044 resetting timeout.
20045
20046 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
20047
20048 * sysdeps/ieee754/dbl-64/sincos32.h
20049 [SINCCOS32_H]: Remove define.
20050 [SINCOS32_H]: Define.
20051
20052 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
20053
20054 * math/Versions (expf): New libm symbol at GLIBC_2.27.
20055 (exp2f): Likewise.
20056 * math/w_exp2f.c: New file.
20057 * math/w_expf.c: New file.
20058 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
20059 * math/w_expf_compat.c (__expf_compat): Likewise.
20060 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
20061 * sysdeps/ia64/fpu/e_expf.S: Likewise.
20062 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
20063 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20064 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20065 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20066 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20067 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20068 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20069 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20070 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20071 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20072 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20073 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20075 Likewise.
20076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20077 Likewise.
20078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20079 Likewise.
20080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20081 Likewise.
20082 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20083 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20084 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20085 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20086 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20087 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20088 Likewise.
20089 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20090 Likewise.
20091 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20092 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20093 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20094
20095 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
20096
20097 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
20098 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
20099 (roundtoint, converttoint): Likewise.
20100 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
20101 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
20102 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
20103 * sysdeps/ieee754/flt-32/math_config.h: New file.
20104 * sysdeps/ieee754/flt-32/math_errf.c: New file.
20105 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
20106 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
20107 * sysdeps/i386/fpu/math_errf.c: New file.
20108 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
20109 * sysdeps/ia64/fpu/math_errf.c: New file.
20110 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
20111 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
20112
20113 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
20114
20115 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
20116 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
20117 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
20118 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
20119 to make sure that these symbols are defined.
20120 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
20121 of <limits.h>
20122 (__need_NULL): Do not define.
20123 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
20124 alignment.
20125 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
20126 CMGROUP_MAX, cmsgcred): Do not define.
20127 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
20128 NULL.
20129 * bits/socket.h: Likewise.
20130 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
20131 __gettimeofday instead of gettimeofday.
20132 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
20133 instead of settimeofday.
20134
20135 2017-09-22 Joseph Myers <joseph@codesourcery.com>
20136
20137 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
20138 (asinhf): Define using libm_alias_float.
20139 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
20140 (atanf): Define using libm_alias_float.
20141 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
20142 (cbrtf): Define using libm_alias_float.
20143 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
20144 (ceilf): Define using libm_alias_float.
20145 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
20146 <libm-alias-float.h>.
20147 (copysignf): Define using libm_alias_float.
20148 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
20149 (cosf): Define using libm_alias_float.
20150 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
20151 (erff): Define using libm_alias_float.
20152 (erfcf): Likewise.
20153 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
20154 (expm1f): Define using libm_alias_float.
20155 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
20156 (fabsf): Define using libm_alias_float.
20157 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
20158 (floorf): Define using libm_alias_float.
20159 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
20160 (frexpf): Define using libm_alias_float.
20161 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
20162 libm_alias_float.
20163 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
20164 <libm-alias-float.h>.
20165 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
20166 libm_alias_float.
20167 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
20168 <libm-alias-float.h>.
20169 (getpayloadf): Define using libm_alias_float.
20170 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
20171 <libm-alias-float.h>.
20172 (llrintf): Define using libm_alias_float.
20173 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
20174 <libm-alias-float.h>.
20175 (llroundf): Define using libm_alias_float.
20176 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
20177 (logbf): Define using libm_alias_float.
20178 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
20179 (lrintf): Define using libm_alias_float.
20180 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
20181 (lroundf): Define using libm_alias_float.
20182 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
20183 (modff): Define using libm_alias_float.
20184 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
20185 <libm-alias-float.h>.
20186 (nearbyintf): Define using libm_alias_float.
20187 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
20188 <libm-alias-float.h>.
20189 (nextafterf): Define using libm_alias_float.
20190 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
20191 <libm-alias-float.h>.
20192 (nextupf): Define using libm_alias_float.
20193 * sysdeps/ieee754/flt-32/s_remquof.c: Include
20194 <libm-alias-float.h>.
20195 (remquof): Define using libm_alias_float.
20196 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
20197 (rintf): Define using libm_alias_float.
20198 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
20199 <libm-alias-float.h>.
20200 (roundevenf): Define using libm_alias_float.
20201 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
20202 (roundf): Define using libm_alias_float.
20203 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
20204 using libm_alias_float.
20205 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
20206 <libm-alias-float.h>.
20207 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
20208 Define using libm_alias_float.
20209 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
20210 <libm-alias-float.h>.
20211 (sincosf): Define using libm_alias_float.
20212 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
20213 (sinf): Define using libm_alias_float.
20214 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
20215 (tanf): Define using libm_alias_float.
20216 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
20217 (tanhf): Define using libm_alias_float.
20218 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
20219 <libm-alias-float.h>.
20220 (totalorderf): Define using libm_alias_float.
20221 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
20222 <libm-alias-float.h>.
20223 (totalordermagf): Define using libm_alias_float.
20224 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
20225 (truncf): Define using libm_alias_float.
20226 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
20227 libm_alias_float.
20228 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
20229 libm_alias_float.
20230
20231 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20232
20233 [BZ #22146]
20234 math/math.h: Let fpclassify use the builtin in C++ mode, even
20235 when optimazing for size.
20236
20237 2017-09-22 Joseph Myers <joseph@codesourcery.com>
20238
20239 * csu/Makefile (generated): Do not add version-info.h.
20240 (before-compile): Likewise.
20241 (all-Banner-files): Remove variable.
20242 ($(objpfx)version-info.h): Remove rule.
20243 * csu/version.c (banner): Do not include "version-info.h".
20244 * libidn/Banner: Remove.
20245 * manual/contrib.texi (Simon Josefsson): New entry.
20246
20247 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20248
20249 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
20250 Remove conditionals on LDBL_MANT_DIG.
20251 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
20252 (__ieee754_lgammal_r): Likewise.
20253
20254 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20255
20256 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
20257 _Float128 and L().
20258 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
20259 _Float128 and L(). Replace _Float128 with long double and L(x)
20260 with xL, throughout the file.
20261 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
20262 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
20263 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
20264 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
20265
20266 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20267
20268 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
20269 sysdeps/ieee754/ldbl-128ibm.
20270 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
20271 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
20272 of including it. Keep _Float128 and L() intact. These will be
20273 reviewed by a separate patch.
20274 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
20275 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
20276 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
20277 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
20278
20279 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20280
20281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
20282 (__finitef128): Define to __redirect___finitef128.
20283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
20284 (__isinff128): Define to __redirect___isinff128.
20285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
20286 (__isnanf128): Define to __redirect___isnanf128.
20287
20288 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20289
20290 * sysdeps/powerpc/powerpc64le/Makefile
20291 (CFLAGS-tst-strtod-nan-locale.c): New variable.
20292 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
20293
20294 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
20295 Carlos O'Donell <carlos@redhat.com>
20296
20297 [BZ #22180]
20298 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
20299 * stdlib/test-dlclose-exit-race.c: New file.
20300 * stdlib/test-dlclose-exit-race-helper.c: New file.
20301 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
20302
20303 2017-09-21 Joseph Myers <joseph@codesourcery.com>
20304
20305 * crypt/Banner: Remove file.
20306 * nptl/Banner: Likewise.
20307 * resolv/Banner: Likewise.
20308 * soft-fp/Banner: Likewise.
20309 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
20310 ($(objpfx)version.d): Remove dependency on banner.h.
20311 ($(objpfx)version.os): Likewise.
20312 * nptl/version.c (banner): Do not include banner.h.
20313 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
20314 Jelinek and BIND code.
20315
20316 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
20317 Carlos O'Donell <carlos@redhat.com>
20318
20319 * support/xdlfcn.h: New file.
20320 * support/xdlfcn.c: New file.
20321 * support/Makefile (libsupport-routines): Add xdlfcn.
20322 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
20323
20324 2017-09-20 Joseph Myers <joseph@codesourcery.com>
20325
20326 [BZ #20142]
20327 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20328 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
20329 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
20330 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
20331 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
20332 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
20333 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
20334 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
20335
20336 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
20337 Ricky Zhou <rickyz@google.com>
20338 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
20339
20340 [BZ #14333]
20341 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
20342 Remove atomics.
20343 (__new_exitfn): Fail registration when we finished at_exit processing.
20344 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
20345 * stdlib/on_exit.c (__on_exit): Likewise.
20346 * stdlib/exit.c (__exit_funcs_done): New variable.
20347 (__run_exit_handlers): Use __exit_funcs_lock.
20348 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
20349 declarations.
20350 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
20351 (test-cxa_atexit-race, test-on_exit-race): New tests.
20352 * stdlib/test-atexit-race-common.c: New file.
20353 * stdlib/test-atexit-race.c: New file.
20354 * stdlib/test-at_quick_exit-race.c: New file.
20355 * stdlib/test-cxa_atexit-race.c: New file.
20356 * stdlib/test-on_exit-race.c: New file.
20357
20358 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20359
20360 * benchtests/Makefile: Add exp2f and log2f benchmarks.
20361 * benchtests/exp2f-inputs: Copy of expf-inputs.
20362 * benchtests/log2f-inputs: Copy of logf-inputs.
20363
20364 2017-09-19 Joseph Myers <joseph@codesourcery.com>
20365
20366 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
20367 Explicitly take address of first element of array arguments in
20368 call to INLINE_SYSCALL.
20369
20370 2017-09-19 Andreas Schwab <schwab@suse.de>
20371
20372 [BZ #22134]
20373 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
20374 execveat first.
20375 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
20376 unimplemented.
20377 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
20378 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
20379 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
20380 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
20381 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20382 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
20383 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20384 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
20385 * posix/Makefile (tests): Add tst-fexecve.
20386 * posix/tst-fexecve.c: New file.
20387
20388 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
20389
20390 * benchtests/Makefile: Add logf benchmark.
20391 * benchtests/logf-inputs: Add reduced trace from wrf_r.
20392
20393 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
20394
20395 * benchtests/Makefile: Add expf benchmark.
20396 * benchtests/expf-inputs: Add reduced trace from wrf_r.
20397
20398 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
20399
20400 * csu/Makefile: Add -funwind-tables to libc-start.c.
20401 * debug/Makefile: Add -funwind-tables to backtrace.c.
20402 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
20403 * sysdeps/arm/Makefile: Likewise.
20404 * sysdeps/i386/Makefile: Likewise.
20405 * sysdeps/m68k/Makefile: Likewise.
20406 * sysdeps/mips/Makefile: Likewise.
20407 * sysdeps/nios2/Makefile: Likewise.
20408 * sysdeps/sh/Makefile: Likewise.
20409 * sysdeps/sparc/Makefile: Likewise.
20410
20411 2017-09-19 Joseph Myers <joseph@codesourcery.com>
20412
20413 * benchtests/Makefile (bench-math): Add trunc and truncf.
20414 (CFLAGS-bench-trunc.c): New variable.
20415 (CFLAGS-bench-truncf.c): Likewise.
20416 * benchtests/trunc-inputs: New file.
20417 * benchtests/truncf-inputs: Likewise.
20418
20419 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20420
20421 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
20422
20423 2017-09-18 Joseph Myers <joseph@codesourcery.com>
20424
20425 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
20426 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
20427 redefine.
20428 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
20429 (exp10l): Define as weak alias.
20430 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
20431 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
20432 and redefine.
20433 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
20434 (remainderl): Define as weak alias.
20435
20436 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
20437 (fmal): Define using libm_alias_ldouble.
20438 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
20439 (acoshl): Define using libm_alias_ldouble.
20440 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
20441 (acosl): Define using libm_alias_ldouble.
20442 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
20443 (asinl): Define using libm_alias_ldouble.
20444 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
20445 (atan2l): Define using libm_alias_ldouble.
20446 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
20447 (atanhl): Define using libm_alias_ldouble.
20448 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
20449 (coshl): Define using libm_alias_ldouble.
20450 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
20451 (exp10l): Define using libm_alias_ldouble.
20452 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
20453 (exp2l): Define using libm_alias_ldouble.
20454 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
20455 (expl): Define using libm_alias_ldouble.
20456 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
20457 (fmodl): Define using libm_alias_ldouble.
20458 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
20459 (hypotl): Define using libm_alias_ldouble.
20460 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
20461 (j0l): Define using libm_alias_ldouble.
20462 (y0l): Likewise.
20463 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
20464 (j1l): Define using libm_alias_ldouble.
20465 (y1l): Likewise.
20466 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
20467 (jnl): Define using libm_alias_ldouble.
20468 (ynl): Likewise.
20469 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
20470 (log10l): Define using libm_alias_ldouble.
20471 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
20472 (log2l): Define using libm_alias_ldouble.
20473 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
20474 (logl): Define using libm_alias_ldouble.
20475 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
20476 (powl): Define using libm_alias_ldouble.
20477 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
20478 (remainderl): Define using libm_alias_ldouble.
20479 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
20480 (sinhl): Define using libm_alias_ldouble.
20481 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
20482 (sqrtl): Define using libm_alias_ldouble.
20483 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
20484 (tgammal): Define using libm_alias_ldouble.
20485 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
20486 (exp10l): Do not use long_double_symbol here.
20487 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
20488 [LIBM_SVID_COMPAT] (remainderl): Likewise.
20489 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
20490 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
20491 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
20492 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
20493 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
20494 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
20495 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
20496 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
20497 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
20498 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
20499 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
20500 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
20501 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
20502 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
20503 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
20504 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
20505 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
20506 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
20507 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
20508 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
20509
20510 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
20511
20512 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
20513 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
20514
20515 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20516
20517 * io/read.c (read): Add libc_hidden_weak.
20518 * sysdeps/mach/hurd/read.c (read): Likewise.
20519 * io/write.c (write): Likewise.
20520 * sysdeps/mach/hurd/write.c (write): Likewise.
20521 * io/pread64.c (__pread64): Likewise.
20522 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
20523 * posix/pread64.c (__pread64): Add libc_hidden_def.
20524
20525 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
20526
20527 * benchtests/scripts/compare_strings.py: New option -g.
20528 (draw_graph): Print a message that a graph is being generated.
20529 (process_results): Generate graph only if -g is passed.
20530 (main): Process option -g.
20531
20532 * benchtests/scripts/compare_strings.py (process_results):
20533 Better spacing for output.
20534
20535 * benchtests/scripts/compare_strings.py: Use argparse.
20536 * benchtests/README: Document existence of compare_strings.py.
20537
20538 2017-09-15 Joseph Myers <joseph@codesourcery.com>
20539
20540 * math/s_fma.c: Include <libm-alias-double.h>.
20541 (fma): Define using libm_alias_double.
20542 * math/s_nextafter.c: Include <libm-alias-double.h>.
20543 (nextafter): Define using libm_alias_double.
20544 * math/w_acos_compat.c: Include <libm-alias-double.h>.
20545 (acos): Define using libm_alias_double.
20546 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
20547 (aocsh): Define using libm_alias_double.
20548 * math/w_asin_compat.c: Include <libm-alias-double.h>.
20549 (asin): Define using libm_alias_double.
20550 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
20551 (atan2): Define using libm_alias_double.
20552 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
20553 (atanh): Define using libm_alias_double.
20554 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
20555 (cosh): Define using libm_alias_double.
20556 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
20557 (exp10): Define using libm_alias_double.
20558 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
20559 (exp2): Define using libm_alias_double.
20560 * math/w_exp_compat.c: Include <libm-alias-double.h>.
20561 (exp): Define using libm_alias_double.
20562 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
20563 (fmod): Define using libm_alias_double.
20564 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
20565 (hypot): Define using libm_alias_double.
20566 * math/w_j0_compat.c: Include <libm-alias-double.h>.
20567 (j0): Define using libm_alias_double.
20568 (y0): Likewise.
20569 * math/w_j1_compat.c: Include <libm-alias-double.h>.
20570 (j1): Define using libm_alias_double.
20571 (y1): Likewise.
20572 * math/w_jn_compat.c: Include <libm-alias-double.h>.
20573 (jn): Define using libm_alias_double.
20574 (yn): Likewise.
20575 * math/w_log10_compat.c: Include <libm-alias-double.h>.
20576 (log10): Define using libm_alias_double.
20577 * math/w_log2_compat.c: Include <libm-alias-double.h>.
20578 (log2): Define using libm_alias_double.
20579 * math/w_log_compat.c: Include <libm-alias-double.h>.
20580 (log): Define using libm_alias_double.
20581 * math/w_pow_compat.c: Include <libm-alias-double.h>.
20582 (pow): Define using libm_alias_double.
20583 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
20584 (remainder): Define using libm_alias_double.
20585 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
20586 (sinh): Define using libm_alias_double.
20587 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
20588 (sqrt): Define using libm_alias_double.
20589 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
20590 (tgamma): Define using libm_alias_double.
20591 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
20592 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
20593 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
20594 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
20595 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
20596 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
20597 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
20598 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
20599 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
20600 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
20601 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
20602 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
20603 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
20604 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
20605 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
20606 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
20607 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
20608 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
20609 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
20610 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
20611 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
20612 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
20613 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
20614 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
20615 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
20616
20617 * math/e_acoshl.c: Remove.
20618 * math/e_acosl.c: Likewise.
20619 * math/e_asinl.c: Likewise.
20620 * math/e_atan2l.c: Likewise.
20621 * math/e_atanhl.c: Likewise.
20622 * math/e_coshl.c: Likewise.
20623 * math/e_expl.c: Likewise.
20624 * math/e_fmodl.c: Likewise.
20625 * math/e_gammal_r.c: Likewise.
20626 * math/e_hypotl.c: Likewise.
20627 * math/e_j0l.c: Likewise.
20628 * math/e_j1l.c: Likewise.
20629 * math/e_jnl.c: Likewise.
20630 * math/e_lgammal_r.c: Likewise.
20631 * math/e_log10l.c: Likewise.
20632 * math/e_log2l.c: Likewise.
20633 * math/e_logl.c: Likewise.
20634 * math/e_powl.c: Likewise.
20635 * math/e_rem_pio2l.c: Likewise.
20636 * math/e_sinhl.c: Likewise.
20637 * math/e_sqrtf128.c: Likewise.
20638 * math/e_sqrtl.c: Likewise.
20639 * math/k_cosl.c: Likewise.
20640 * math/k_sinl.c: Likewise.
20641 * math/k_tanl.c: Likewise.
20642 * math/s_asinhl.c: Likewise.
20643 * math/s_atanl.c: Likewise.
20644 * math/s_cbrtl.c: Likewise.
20645 * math/s_erfl.c: Likewise.
20646 * math/s_expm1l.c: Likewise.
20647 * math/s_log1pl.c: Likewise.
20648 * math/s_tanhl.c: Likewise.
20649
20650 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20651
20652 [BZ #21745]
20653 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
20654 [$(subdir) = math] (sysdep_calls): New variable. Has the
20655 previous contents of sysdep_routines, but re-sorted..
20656 [$(subdir) = math] (sysdep_routines): Re-use the contents from
20657 sysdep_calls.
20658 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
20659 defined in sysdep_calls and replace by the respective m_* names.
20660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
20661 (compat_symbol): Undefine to avoid duplicated compat symbols in
20662 libc.
20663
20664 2017-09-15 Joseph Myers <joseph@codesourcery.com>
20665
20666 * math/s_fmaf.c: Include <libm-alias-float.h>.
20667 (fmaf): Define using libm_alias_float.
20668 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
20669 (acosf): Define using libm_alias_float.
20670 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
20671 (acoshf): Define using libm_alias_float.
20672 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
20673 (asinf): Define using libm_alias_float.
20674 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
20675 (atan2f): Define using libm_alias_float.
20676 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
20677 (atanhf): Define using libm_alias_float.
20678 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
20679 (coshf): Define using libm_alias_float.
20680 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
20681 (exp10f): Define using libm_alias_float.
20682 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
20683 (fmodf): Define using libm_alias_float.
20684 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
20685 (hypotf): Define using libm_alias_float.
20686 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
20687 (j0f): Define using libm_alias_float.
20688 (y0f): Likewise.
20689 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
20690 (j1f): Define using libm_alias_float.
20691 (y1f): Likewise.
20692 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
20693 (jnf): Define using libm_alias_float.
20694 (ynf): Likewise.
20695 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
20696 (log10f): Define using libm_alias_float.
20697 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
20698 (log2f): Define using libm_alias_float.
20699 * math/w_logf_compat.c: Include <libm-alias-float.h>.
20700 (logf): Define using libm_alias_float.
20701 * math/w_powf_compat.c: Include <libm-alias-float.h>.
20702 (powf): Define using libm_alias_float.
20703 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
20704 (remainderf): Define using libm_alias_float.
20705 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
20706 (sinhf): Define using libm_alias_float.
20707 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
20708 (sqrtf): Define using libm_alias_float.
20709 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
20710 (tgammaf): Define using libm_alias_float.
20711
20712 2017-09-14 Joseph Myers <joseph@codesourcery.com>
20713
20714 * include/math.h (roundeven): Change hidden_proto call to
20715 __roundeven.
20716 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
20717 alias.
20718 [NO_LONG_DOUBLE] (__j0l): New strong alias.
20719 (y0): Rename to __y0 and define as weak alias.
20720 [NO_LONG_DOUBLE] (__y0l): New strong alias.
20721 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
20722 alias.
20723 (y0f): Rename to __y0f and define as weak alias.
20724 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
20725 alias.
20726 [NO_LONG_DOUBLE] (__j1l): New strong alias.
20727 (y1): Rename to __y1 and define as weak alias.
20728 [NO_LONG_DOUBLE] (__y1l): New strong alias.
20729 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
20730 alias.
20731 (y1f): Rename to __y1f and define as weak alias.
20732 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
20733 alias.
20734 [NO_LONG_DOUBLE] (__jnl): New strong alias.
20735 (yn): Rename to __yn and define as weak alias.
20736 [NO_LONG_DOUBLE] (__ynl): New strong alias.
20737 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
20738 alias.
20739 (ynf): Rename to __ynf and define as weak alias.
20740 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
20741 (fromfp): Define as weak alias.
20742 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
20743 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
20744 (fromfpx): Define as weak alias.
20745 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
20746 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
20747 __getpayload and define as weak alias.
20748 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
20749 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
20750 __roundeven and define as weak alias.
20751 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
20752 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
20753 __setpayload.
20754 (setpayload): Define as weak alias.
20755 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
20756 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
20757 __setpayloadsig.
20758 (setpayloadsig): Define as weak alias.
20759 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
20760 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
20761 __totalorder and define as weak alias.
20762 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
20763 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
20764 to __totalordermag and define as weak alias.
20765 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
20766 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
20767 (ufromfp): Define as weak alias.
20768 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
20769 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
20770 __ufromfpx.
20771 (ufromfpx): Define as weak alias.
20772 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
20773 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
20774 Rename to __getpayload and define as weak alias.
20775 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
20776 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
20777 Rename to __roundeven and define as weak alias.
20778 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
20779 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
20780 Rename to __totalorder and define as weak alias.
20781 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
20782 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
20783 (totalordermag): Rename to __totalordermag and define as weak
20784 alias.
20785 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
20786 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
20787 macro.
20788 (__roundevenl): Likewise.
20789 (__totalorderl): Likewise.
20790 (__totalordermagl): Likewise
20791 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
20792 __fromfpf128.
20793 (fromfpf128): Define as weak alias.
20794 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
20795 __fromfpxf128.
20796 (fromfpxf128): Define as weak alias.
20797 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
20798 __setpayloadf128.
20799 (setpayloadf128): Define as weak alias.
20800 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
20801 __setpayloadsigf128.
20802 (setpayloadsigf128): Define as weak alias.
20803 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
20804 __ufromfpf128.
20805 (ufromfpf128): Define as weak alias.
20806 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
20807 __ufromfpxf128.
20808 (ufromfpxf128): Define as weak alias.
20809 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
20810 (fromfpf): Define as weak alias.
20811 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
20812 __fromfpxf.
20813 (fromfpxf): Define as weak alias.
20814 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
20815 __getpayloadf and define as weak alias.
20816 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
20817 __roundevenf and define as weak alias.
20818 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
20819 __setpayloadf.
20820 (setpayloadf): Define as weak alias.
20821 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
20822 __setpayloadsigf.
20823 (setpayloadsigf): Define as weak alias.
20824 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
20825 __totalorderf and define as weak alias.
20826 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
20827 Rename to __totalordermagf and define as weak alias.
20828 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
20829 __ufromfpf.
20830 (ufromfpf): Define as weak alias.
20831 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
20832 __ufromfpxf.
20833 (ufromfpxf): Define as weak alias.
20834 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
20835 __fromfpl.
20836 (fromfpl): Define as weak alias.
20837 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
20838 __fromfpxl.
20839 (fromfpxl): Define as weak alias.
20840 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
20841 to __getpayloadl and define as weak alias.
20842 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
20843 __roundevenl and define as weak alias.
20844 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
20845 __setpayloadl.
20846 (setpayloadl): Define as weak alias.
20847 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
20848 __setpayloadsigl.
20849 (setpayloadsigl): Define as weak alias.
20850 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
20851 to __totalorderl and define as weak alias.
20852 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
20853 Rename to __totalordermagl and define as weak alias.
20854 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
20855 __ufromfpl.
20856 (ufromfpl): Define as weak alias.
20857 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
20858 __ufromfpxl.
20859 (ufromfpxl): Define as weak alias.
20860 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
20861 __fromfpl.
20862 (fromfpl): Define as weak alias.
20863 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
20864 __fromfpxl.
20865 (fromfpxl): Define as weak alias.
20866 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
20867 Rename to __getpayloadl and define as weak alias.
20868 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
20869 to __roundevenl and define as weak alias. Call __roundeven
20870 instead of roundeven.
20871 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
20872 __setpayloadl.
20873 (setpayloadl): Define as weak alias.
20874 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
20875 __setpayloadsigl.
20876 (setpayloadsigl): Define as weak alias.
20877 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
20878 Rename to __totalorderl and define as weak alias.
20879 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
20880 Rename to __totalordermagl and define as weak alias.
20881 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
20882 __ufromfpl.
20883 (ufromfpl): Define as weak alias.
20884 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
20885 __ufromfpxl.
20886 (ufromfpxl): Define as weak alias.
20887 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
20888 __fromfpl.
20889 (fromfpl): Define as weak alias.
20890 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
20891 __fromfpxl.
20892 (fromfpxl): Define as weak alias.
20893 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
20894 __getpayloadl and define as weak alias.
20895 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
20896 __roundevenl and define as weak alias.
20897 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
20898 __setpayloadl.
20899 (setpayloadl): Define as weak alias.
20900 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
20901 __setpayloadsigl.
20902 (setpayloadsigl): Define as weak alias.
20903 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
20904 __totalorderl and define as weak alias.
20905 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
20906 Rename to __totalordermagl and define as weak alias.
20907 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
20908 __ufromfpl.
20909 (ufromfpl): Define as weak alias.
20910 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
20911 __ufromfpxl.
20912 (ufromfpxl): Define as weak alias.
20913
20914 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20915
20916 * benchtests/bench-string.h (realloc_bufs): New function.
20917 (test_init): Call it.
20918 * benchtests/bench-memset-large.c (do_test): Likewise.
20919 * benchtests/bench-memset.c (do_test): Likewise.
20920
20921 * benchtests/bench-memset-large.c: Print output in JSON
20922 format.
20923 * benchtests/bench-memset.c: Likewise.
20924
20925 2017-09-14 Mike FABIAN <mfabian@redhat.com>
20926
20927 [BZ #21084]
20928 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
20929 * iconvdata/Makefile: Add IBM858.
20930 * iconvdata/gconv-modules: Likewise.
20931 * iconvdata/tst-tables.sh: Likewise.
20932 * iconvdata/ibm858.c: New file.
20933 * localedata/charmaps/IBM858: Likewise.
20934
20935 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
20936
20937 [BZ #22023]
20938 * locales/niu_NZ (LC_TIME): copy "niu_NU".
20939 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
20940
20941 2017-09-14 Mike FABIAN <mfabian@redhat.com>
20942
20943 [BZ #22112]
20944 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
20945 and add tel_int_fmt.
20946
20947 2017-09-14 Joseph Myers <joseph@codesourcery.com>
20948
20949 * sysdeps/generic/libm-alias-float128.h: New file.
20950 * sysdeps/generic/math-type-macros-float128.h: Include
20951 <libm-alias-float128.h>.
20952 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
20953
20954 2017-09-13 Joseph Myers <joseph@codesourcery.com>
20955
20956 * sysdeps/generic/libm-alias-ldouble.h: New file.
20957 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
20958 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
20959 * sysdeps/generic/math-type-macros-ldouble.h: Include
20960 <libm-alias-ldouble.h>.
20961 [!declare_mgen_alias] (declare_mgen_alias): Define to use
20962 libm_alias_ldouble.
20963
20964 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
20965
20966 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
20967 * math/w_exp_compat.c: ... here.
20968 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
20969 * math/w_expf_compat.c: ... here.
20970 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
20971 * math/w_expl_compat.c: ... here.
20972 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
20973 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
20974 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
20975 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
20976
20977 2017-09-13 Joseph Myers <joseph@codesourcery.com>
20978
20979 * math/w_scalbln_template.c (strong_alias): Do not undefine and
20980 redefine.
20981 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
20982 macro.
20983 (ldexpl): Only define as compat symbol for libc, not libm.
20984 (scalbnl): Define as compat symbol for libc here.
20985 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
20986 define for [IS_IN (libc)].
20987 (__ldexpl_2): Remove alias.
20988 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
20989 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
20990 name in long_double_symbol call.
20991 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
20992 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
20993 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
20994 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
20995 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
20996 Remove macro.
20997 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
20998 Define as compat symbol.
20999
21000 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21001
21002 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
21003 * sysdeps/unix/sysv/linux/alpha/Makefile
21004 [$(subdir) = csu] (sysdep_routines): Remove rule.
21005
21006 2017-09-13 Joseph Myers <joseph@codesourcery.com>
21007
21008 * sysdeps/generic/libm-alias-double.h: New file.
21009 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
21010 * sysdeps/generic/math-type-macros-double.h: Include
21011 <libm-alias-double.h>.
21012 [declare_mgen_alias] (declare_mgen_alias): Define to use
21013 libm_alias_double.
21014 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
21015 (M_LIBM_NEED_COMPAT): Remove macro.
21016 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
21017 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
21018 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
21019 code.
21020 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21021 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21022 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21023 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21024 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21025 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21026 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21027 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21028 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21029 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21030 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21031 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21032 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21033 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21034 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21035 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21036 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21037 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21038 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21039 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21040 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21041 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21042 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21043 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21044 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21045 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21046 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
21047 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
21048 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
21049 macro.
21050 (declare_mgen_alias): New macro.
21051 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
21052 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
21053 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
21054 (M_LIBM_NEED_COMPAT): Remove macro.
21055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
21056 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
21057 <first-versions.h>.
21058 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
21059 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
21060
21061 2017-09-12 Joseph Myers <joseph@codesourcery.com>
21062
21063 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
21064 (declare_mgen_alias_2): Remove.
21065 * sysdeps/generic/math-type-macros-double.h
21066 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
21067 Likewise.
21068 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
21069 alias.
21070 (ldexp): Define with declare_mgen_alias.
21071 (scalbn): Likewise.
21072
21073 2017-09-12 Steve Ellcey <sellcey@cavium.com>
21074
21075 * grp/initgroups.c: Include config.h.
21076 (DEFAULT_CONFIG): New macro.
21077 (internal_getgrouplist): Use DEFAULT_CONFIG.
21078 * nscd/initgrcache.c (addinitgroupsX): Likewise.
21079 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
21080 (DEFAULT_DEFCONFIG): New macro.
21081 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
21082 * nss/grp-lookup.c: Include config.h
21083 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
21084 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
21085 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
21086 * manual/nss.texi: Update default values section.
21087
21088 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
21089
21090 [BZ #21967]
21091 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
21092 New.
21093 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
21094 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
21095 Handle MathVec_Prefer_No_AVX512.
21096 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
21097 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
21098 is set.
21099
21100 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
21101
21102 * posix/sched_primax.c (__sched_get_priority_max): Add
21103 libc_hidden_def.
21104 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
21105 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
21106 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
21107 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
21108 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
21109 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
21110 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
21111 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
21112 Add aliases.
21113
21114 2017-09-11 Joseph Myers <joseph@codesourcery.com>
21115
21116 * sysdeps/generic/libm-alias-float.h: New file.
21117 * sysdeps/generic/math-type-macros-float.h: Include
21118 <libm-alias-float.h>.
21119 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
21120
21121 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
21122
21123 [BZ #22093]
21124 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
21125 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
21126 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
21127 (HWCAP_IMPORTANT): Likewise.
21128 (HWCAP_X86_64): New enum.
21129 (HWCAP_X86_AVX512_1): Updated.
21130 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
21131 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
21132 (modules-names): Add x86_64/tst-x86_64mod-1.
21133 (LDFLAGS-tst-x86_64mod-1.so): New.
21134 ($(objpfx)tst-x86_64-1): Likewise.
21135 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
21136 (tst-x86_64-1-clean): Likewise.
21137 * sysdeps/x86_64/tst-x86_64-1.c: New file.
21138 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
21139
21140 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
21141
21142 * po/sv.po: Update translations.
21143 * po/fr.po: Likewise.
21144
21145 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
21146
21147 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
21148 seconds.
21149 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
21150 seconds.
21151 * elf/rtld-Rules: Fix $(error) use.
21152
21153 2017-09-09 Mike FABIAN <mfabian@redhat.com>
21154
21155 [BZ #14925]
21156 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
21157 * locale/iso-639.def: Change “Bengali” to “Bangla”.
21158 * localedata/locales/bn_BD: “Bengali” was still used in some
21159 comments. Change it to “Bangla”.
21160
21161 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
21162
21163 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
21164
21165 2017-09-08 Steve Ellcey <sellcey@cavium.com>
21166
21167 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
21168 thunderx2t99p1 to list of cpu names.
21169 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
21170 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
21171
21172 2017-09-08 Steve Ellcey <sellcey@cavium.com>
21173
21174 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
21175 Use strcmp instead of tunable_is_name.
21176
21177 2017-09-08 Joseph Myers <joseph@codesourcery.com>
21178
21179 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
21180 (F_GET_RW_HINT): New macro.
21181 [__USE_GNU] (F_SET_RW_HINT): Likewise.
21182 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
21183 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
21184 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
21185 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
21186 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
21187 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
21188 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
21189 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
21190
21191 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
21192 (F_ADD_SEALS): New macro.
21193 [__USE_GNU] (F_GET_SEALS): Likewise.
21194 [__USE_GNU] (F_SEAL_SEAL): Likewise.
21195 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
21196 [__USE_GNU] (F_SEAL_GROW): Likewise.
21197 [__USE_GNU] (F_SEAL_WRITE): Likewise.
21198
21199 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21200
21201 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21202 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21203 * posix/glob_internal.h (__glob_pattern_type):
21204 * posix/glob.c (glob):
21205 * posix/glob_pattern_p.c (__glob_pattern_p):
21206 Use them.
21207
21208 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
21209 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
21210 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
21211 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
21212 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
21213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
21214 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
21215 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
21216 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
21217 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
21218 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
21219 * sysdeps/wordsize-64/glob.c: Likewise.
21220 * sysdeps/wordsize-64/glob64.c: Likewise.
21221 * sysdeps/wordsize-64/globfree.c: Likewise.
21222 * sysdeps/wordsize-64/globfree64.c: Likewise.
21223 * sysdeps/unix/sysv/linux/glob.c: New file.
21224 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
21225 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
21226 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
21227 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
21228 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
21229 adds !GLOB_NO_OLD_VERSION as an extra condition.
21230 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
21231 using relative path instead of absolute one.
21232 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
21233 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
21234 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
21235 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
21236 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
21237 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
21238
21239 [BZ #1062]
21240 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
21241 (glob): Use the same scratch buffer for both getlogin_r and
21242 getpwnam_r. Don’t require preallocation of the login name. This
21243 simplifies storage allocation, and corrects the handling of
21244 long login names.
21245
21246 [BZ #1062]
21247 * posix/glob.c (glob): Port recent patches to platforms
21248 lacking getpwnam_r.
21249 (glob): Fix longstanding misuse of errno after getpwnam_r, which
21250 returns an error number rather than setting errno.
21251
21252 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
21253 instead of GCC extension.
21254 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
21255 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
21256 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
21257
21258 [BZ #866]
21259 [BZ #1062]
21260 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
21261 * posix/bug-glob1.c: Remove file.
21262 * posix/tst-glob_symlinks.c: New file.
21263 * posix/glob.c (__lstat64): New macro.
21264 (is_dir): New function.
21265 (glob, glob_in_dir): Match symlinks even if they are dangling.
21266 (link_stat, link_exists_p): Remove. All uses removed.
21267
21268 [BZ #1062]
21269 [BZ #19971]
21270 * posix/glob.c (struct readdir_result): Remove skip_entry member.
21271 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21272 All uses removed.
21273
21274 [BZ #1062]
21275 CVE-2017-15671
21276 * posix/Makefile (routines): Add globfree, globfree64, and
21277 glob_pattern_p.
21278 * posix/flexmember.h: New file.
21279 * posix/glob_internal.h: Likewise.
21280 * posix/glob_pattern_p.c: Likewise.
21281 * posix/globfree.c: Likewise.
21282 * posix/globfree64.c: Likewise.
21283 * sysdeps/gnu/globfree64.c: Likewise.
21284 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
21285 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
21286 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
21287 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
21288 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
21289 * sysdeps/wordsize-64/globfree.c: Likewise.
21290 * sysdeps/wordsize-64/globfree64.c: Likewise.
21291 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
21292 [NDEBUG): Remove comments.
21293 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
21294 (dirent_type): New type. Use uint_fast8_t not
21295 uint8_t, as C99 does not require uint8_t.
21296 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
21297 (struct readdir_result): Use dirent_type. Do not define skip_entry
21298 unless it is needed; this saves a byte on platforms lacking d_ino.
21299 (readdir_result_type, readdir_result_skip_entry):
21300 New functions, replacing ...
21301 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21302 these functions, which were removed. This makes the callers
21303 easier to read. All callers changed.
21304 (D_INO_TO_RESULT): Now empty if there is no d_ino.
21305 (size_add_wrapv, glob_use_alloca): New static functions.
21306 (glob, glob_in_dir): Check for size_t overflow in several places,
21307 and fix some size_t checks that were not quite right.
21308 Remove old code using SHELL since Bash no longer
21309 uses this.
21310 (glob, prefix_array): Separate MS code better.
21311 (glob_in_dir): Remove old Amiga and VMS code.
21312 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21313 separate files.
21314 (glob_in_dir): Do not rely on undefined behavior in accessing
21315 struct members beyond their bounds. Use a flexible array member
21316 instead
21317 (link_stat): Rename from link_exists2_p and return -1/0 instead of
21318 0/1. Caller changed.
21319 (glob): Fix memory leaks.
21320 * posix/glob64 (globfree64): Move to separate file.
21321 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
21322 (globfree64): Remove hidden alias.
21323 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
21324 oldglob.
21325 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
21326 separate file.
21327 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
21328 define.
21329 Move compat code to separate file.
21330 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
21331 separate file.
21332
21333 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
21334
21335 * resolv/tst-resolv-qtypes.c (domain): Changed to
21336 "const char domain[] =".
21337
21338 2017-09-07 Joseph Myers <joseph@codesourcery.com>
21339
21340 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21341 version to 3.1.6.
21342
21343 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
21344 (TCP_MD5SIG_EXT): Likewise.
21345 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
21346 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
21347 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
21348
21349 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
21350
21351 2017-09-07 Mike FABIAN <mfabian@redhat.com>
21352
21353 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
21354
21355 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
21356
21357 [BZ #22100]
21358 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
21359
21360 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
21361
21362 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
21363 before assuming that the file is empty. Avoid testing buffer content
21364 when nread == 0.
21365
21366 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21367
21368 [BZ #18858]
21369 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
21370 Remove define.
21371 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
21372 Likewise.
21373 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
21374 Likewise.
21375 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
21376 Likewise.
21377 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
21378 Likewise.
21379 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
21380 Likewise.
21381 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
21382 Likewise.
21383
21384 2017-09-06 Florian Weimer <fweimer@redhat.com>
21385
21386 * malloc/dynarray_emplace_enlarge.c
21387 (__libc_dynarray_emplace_enlarge): Add missing else.
21388
21389 2017-09-06 Florian Weimer <fweimer@redhat.com>
21390
21391 [BZ #22096]
21392 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
21393 case of failure to obtain the global conf object.
21394
21395 2017-09-06 Florian Weimer <fweimer@redhat.com>
21396
21397 [BZ #22095]
21398 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
21399 dynarray allocation failure.
21400
21401 2017-09-06 Florian Weimer <fweimer@redhat.com>
21402
21403 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
21404 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
21405 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
21406 New functions.
21407 (response): Call them. Add 'p', '6' flag processing.
21408 (test_reverse): New function.
21409 (test_get2_any): Call it.
21410 (test_no_inet6): Add 'p' test.
21411 (test_inet6): Likewise.
21412
21413 2017-09-06 Florian Weimer <fweimer@redhat.com>
21414
21415 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
21416 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
21417 the QNAME.
21418 (test_gai): Adjust query names. Add additional tests.
21419 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
21420 test_get2. Adjust query names. Add additional tests.
21421 (test_no_inet6): New function, extracted from threadfunc.
21422 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
21423 Add additional tests.
21424
21425 2017-09-06 Mike FABIAN <mfabian@redhat.com>
21426
21427 [BZ #22070]
21428 * localedata/unicode-gen/utf8_gen.py: Set the width for
21429 characters with Prepended_Concatenation_Mark property to 1
21430 * localedata/charmaps/UTF-8: Updated using the improved script.
21431
21432 2017-09-06 Mike FABIAN <mfabian@redhat.com>
21433
21434 [BZ #21750]
21435 * localedata/unicode-gen/utf8_gen.py: Improve the script to
21436 use the range notation for all ranges of neighbouring characters
21437 with the same width.
21438
21439 2017-09-05 Joseph Myers <joseph@codesourcery.com>
21440
21441 * sysdeps/generic/math-type-macros-double.h: Include
21442 <math-svid-compat.h>.
21443 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21444 * sysdeps/generic/math-type-macros-float.h: Include
21445 <math-svid-compat.h>.
21446 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21447 * sysdeps/generic/math-type-macros-ldouble.h: Include
21448 <math-svid-compat.h>.
21449 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
21450 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
21451 condition.
21452 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
21453 * math/w_acosf_compat.c: Likewise.
21454 * math/w_acosh_compat.c: Likewise.
21455 * math/w_acoshf_compat.c: Likewise.
21456 * math/w_acoshl_compat.c: Likewise.
21457 * math/w_acosl_compat.c: Likewise.
21458 * math/w_asin_compat.c: Likewise.
21459 * math/w_asinf_compat.c: Likewise.
21460 * math/w_asinl_compat.c: Likewise.
21461 * math/w_atan2_compat.c: Likewise.
21462 * math/w_atan2f_compat.c: Likewise.
21463 * math/w_atan2l_compat.c: Likewise.
21464 * math/w_atanh_compat.c: Likewise.
21465 * math/w_atanhf_compat.c: Likewise.
21466 * math/w_atanhl_compat.c: Likewise.
21467 * math/w_cosh_compat.c: Likewise.
21468 * math/w_coshf_compat.c: Likewise.
21469 * math/w_coshl_compat.c: Likewise.
21470 * math/w_exp10_compat.c: Likewise.
21471 * math/w_exp10f_compat.c: Likewise.
21472 * math/w_exp10l_compat.c: Likewise.
21473 * math/w_exp2_compat.c: Likewise.
21474 * math/w_exp2f_compat.c: Likewise.
21475 * math/w_exp2l_compat.c: Likewise.
21476 * math/w_fmod_compat.c: Likewise.
21477 * math/w_fmodf_compat.c: Likewise.
21478 * math/w_fmodl_compat.c: Likewise.
21479 * math/w_hypot_compat.c: Likewise.
21480 * math/w_hypotf_compat.c: Likewise.
21481 * math/w_hypotl_compat.c: Likewise.
21482 * math/w_j0_compat.c: Likewise.
21483 * math/w_j0f_compat.c: Likewise.
21484 * math/w_j0l_compat.c: Likewise.
21485 * math/w_j1_compat.c: Likewise.
21486 * math/w_j1f_compat.c: Likewise.
21487 * math/w_j1l_compat.c: Likewise.
21488 * math/w_jn_compat.c: Likewise.
21489 * math/w_jnf_compat.c: Likewise.
21490 * math/w_jnl_compat.c: Likewise.
21491 * math/w_lgamma_r_compat.c: Likewise.
21492 * math/w_lgammaf_r_compat.c: Likewise.
21493 * math/w_lgammal_r_compat.c: Likewise.
21494 * math/w_log10_compat.c: Likewise.
21495 * math/w_log10f_compat.c: Likewise.
21496 * math/w_log10l_compat.c: Likewise.
21497 * math/w_log2_compat.c: Likewise.
21498 * math/w_log2f_compat.c: Likewise.
21499 * math/w_log2l_compat.c: Likewise.
21500 * math/w_log_compat.c: Likewise.
21501 * math/w_logf_compat.c: Likewise.
21502 * math/w_logl_compat.c: Likewise.
21503 * math/w_pow_compat.c: Likewise.
21504 * math/w_powf_compat.c: Likewise.
21505 * math/w_powl_compat.c: Likewise.
21506 * math/w_remainder_compat.c: Likewise.
21507 * math/w_remainderf_compat.c: Likewise.
21508 * math/w_remainderl_compat.c: Likewise.
21509 * math/w_sinh_compat.c: Likewise.
21510 * math/w_sinhf_compat.c: Likewise.
21511 * math/w_sinhl_compat.c: Likewise.
21512 * math/w_sqrt_compat.c: Likewise.
21513 * math/w_sqrtf_compat.c: Likewise.
21514 * math/w_sqrtl_compat.c: Likewise.
21515 * math/w_tgamma_compat.c: Likewise.
21516 * math/w_tgammaf_compat.c: Likewise.
21517 * math/w_tgammal_compat.c: Likewise.
21518 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
21519 [LIBM_SVID_COMPAT].
21520 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
21521 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
21522 [LIBM_SVID_COMPAT].
21523 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
21524 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
21525 [LIBM_SVID_COMPAT].
21526 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
21527 * sysdeps/i386/fpu/w_sqrt.c: New file.
21528 * sysdeps/ia64/fpu/w_acos.c: Likewise.
21529 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
21530 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
21531 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
21532 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
21533 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
21534 * sysdeps/ia64/fpu/w_asin.c: Likewise.
21535 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
21536 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
21537 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
21538 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
21539 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
21540 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
21541 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
21542 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
21543 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
21544 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
21545 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
21546 * sysdeps/ia64/fpu/w_exp.c: Likewise.
21547 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
21548 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
21549 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
21550 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
21551 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
21552 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
21553 * sysdeps/ia64/fpu/w_expf.c: Likewise.
21554 * sysdeps/ia64/fpu/w_expl.c: Likewise.
21555 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
21556 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
21557 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
21558 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
21559 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
21560 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
21561 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
21562 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
21563 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
21564 * sysdeps/ia64/fpu/w_log.c: Likewise.
21565 * sysdeps/ia64/fpu/w_log10.c: Likewise.
21566 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
21567 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
21568 * sysdeps/ia64/fpu/w_log2.c: Likewise.
21569 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
21570 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
21571 * sysdeps/ia64/fpu/w_logf.c: Likewise.
21572 * sysdeps/ia64/fpu/w_logl.c: Likewise.
21573 * sysdeps/ia64/fpu/w_pow.c: Likewise.
21574 * sysdeps/ia64/fpu/w_powf.c: Likewise.
21575 * sysdeps/ia64/fpu/w_powl.c: Likewise.
21576 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
21577 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
21578 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
21579 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
21580 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
21581 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
21582 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
21583 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
21584 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
21585 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
21586 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
21587 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
21588 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
21589 [LIBM_SVID_COMPAT].
21590 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
21591 * sysdeps/ieee754/k_standard.c: Likewise.
21592 * sysdeps/ieee754/k_standardf.c: Likewise.
21593 * sysdeps/ieee754/k_standardl.c: Likewise.
21594 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
21595 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
21596 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
21597 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
21598 long_double_symbol call on [LIBM_SVID_COMPAT].
21599 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
21600 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
21601 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
21602 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
21603 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
21604 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
21605 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
21606 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
21607 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
21608 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
21609 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
21610 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
21611 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
21612 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
21613 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
21614 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
21615 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
21616 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
21617 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
21618 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
21619 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
21620 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
21621
21622 2017-09-05 Steve Ellcey <sellcey@cavium.com>
21623
21624 * include/shlib-compat.h (TEST_COMPAT): New Macro.
21625 * malloc/tst-mallocstate.c: Convert from test-skeleton
21626 to test-driver. Ifdef code using TEST_COMPAT macro.
21627 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
21628 * math/test-matherr.c: Likewise.
21629
21630 2017-09-05 Joseph Myers <joseph@codesourcery.com>
21631
21632 [BZ #22086]
21633 * debug/pcprofiledump.c (main): Use byte-swapped mask when
21634 comparing word with byte-swapped constant.
21635
21636 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
21637
21638 [BZ #20498]
21639 * locale/iso-639.def: add Miskito.
21640 * localedata/SUPPORTED: Add miq_NI/UTF-8.
21641 * localedata/locales/miq_NI: New file.
21642
21643 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
21644
21645 [BZ #18822]
21646 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
21647 (__mkdir): Likewise.
21648 * io/chmod.c (__chmod): Add libc_hidden_def.
21649 * io/mkdir.c (__mkdir): Likewise.
21650 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
21651 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
21652 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
21653 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
21654
21655 2017-09-04 Joseph Myers <joseph@codesourcery.com>
21656
21657 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21658 version to 4.13.
21659
21660 [BZ #22082]
21661 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
21662 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
21663
21664 2017-09-04 Florian Weimer <fweimer@redhat.com>
21665
21666 * math/math.h: Issue warning if log is defined.
21667
21668 2017-09-04 Joseph Myers <joseph@codesourcery.com>
21669
21670 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21671 kernel version to 4.13.
21672
21673 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
21674
21675 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
21676 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
21677 parameter.
21678 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
21679 just <bits/types.h>.
21680 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
21681 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
21682 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
21683 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
21684 * misc/preadv2.c: Include <errno.h>.
21685 * misc/preadv64v2.c: Include <errno.h>.
21686 * misc/pwritev2.c: Include <errno.h>.
21687 * misc/pwritev64v2.c: Include <errno.h>.
21688 * sysdeps/posix/preadv2.c: Include <errno.h>.
21689 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
21690 Fix <unistd.h> inclusion.
21691 * sysdeps/posix/pwritev2.c: Include <errno.h>.
21692 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
21693 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
21694 __strtoul_internal): New functions.
21695 * sysdeps/posix/pause.c: Include <sigsetops.h>.
21696 * sysdeps/posix/system.c: Include <sigsetops.h>.
21697 * sysdeps/mach/hurd/i386/Makefile
21698 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
21699 [$(subdir) = csu] (sysdep-only-routines): Likewise.
21700 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
21701 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
21702 __feraiseexcept_renamed to feraiseexcept instead of
21703 __GI_feraiseexcept.
21704 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
21705 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
21706 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
21707 RWF_NOWAIT): Define to 0 if undefined already.
21708 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
21709 boils down to 0.
21710 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
21711 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
21712
21713 2017-09-01 Joseph Myers <joseph@codesourcery.com>
21714
21715 * manual/math.texi (pow10): Do not document.
21716 (pow10f): Likewise.
21717 (pow10l): Likewise.
21718 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
21719 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
21720 * math/libm-test-exp10.inc (pow10_test): Remove.
21721 (do_test): Do not call pow10.
21722 * math/w_exp10_compat.c (pow10): Make into compat symbol.
21723 [NO_LONG_DOUBLE] (pow10l): Likewise.
21724 * math/w_exp10f_compat.c (pow10f): Likewise.
21725 * math/w_exp10l_compat.c (pow10l): Likewise.
21726 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
21727 (pow10): Make into compat symbol.
21728 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
21729 (pow10f): Make into compat symbol.
21730 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
21731 (pow10l): Make into compat symbol.
21732 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
21733 pow10.
21734 (CFLAGS-nldbl-pow10.c): Remove variable..
21735 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
21736 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
21737 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
21738 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
21739 Undefine and redefine.
21740 (pow10l): Make into compat symbol.
21741 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
21742 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
21743 * sysdeps/arm/libm-test-ulps: Likewise.
21744 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
21745 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21746 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21747 * sysdeps/microblaze/libm-test-ulps: Likewise.
21748 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
21749 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
21750 * sysdeps/nios2/libm-test-ulps: Likewise.
21751 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
21752 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
21753 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
21754 * sysdeps/sh/libm-test-ulps: Likewise.
21755 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
21756 * sysdeps/tile/libm-test-ulps: Likewise.
21757 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21758
21759 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
21760
21761 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
21762
21763 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
21764
21765 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
21766 "../ChangeLog.old/ChangeLog.8".
21767 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
21768 "../ChangeLog.old/ChangeLog.14".
21769
21770 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
21771
21772 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
21773 Threads Library.
21774
21775 2017-09-01 Joseph Myers <joseph@codesourcery.com>
21776
21777 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
21778
21779 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
21780
21781 * csu/version.c (banner): Remove "by Roland McGrath et al.".
21782 * nptl/Banner: Remove "by Ulrich Drepper et al.".
21783
21784 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
21785
21786 * stdlib/tst-atexit-common.c (do_test): Test support for at least
21787 32 atexit handlers.
21788
21789 2017-09-01 Zack Weinberg <zackw@panix.com>
21790
21791 * math/math.h (HUGE_VAL): Improve commentary.
21792
21793 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21794 Andreas Schwab <schwab@suse.de>
21795
21796 [BZ #21530]
21797 * include/stdio.h (__gen_tempfd): New function.
21798 * stdio-common/Makefile (routines): Add gentempfd.
21799 * stdio-common/gentempfd.c: New file.
21800 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
21801 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
21802 unnamed file first.
21803
21804 2017-09-01 Florian Weimer <fweimer@redhat.com>
21805
21806 [BZ #21915]
21807 [BZ #21922]
21808 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
21809 result to determine success or failure, not the errno value.
21810 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
21811 (tst-nss-files-hosts-erange): Link with -ldl.
21812 * nss/tst-nss-files-hosts-erange.c: New file.
21813 * nss/tst-resolv-basic.c (response): Handle nodata.example.
21814 (do_test): Add NO_DATA tests.
21815 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
21816 (do_test): Call it.
21817
21818 2017-09-01 Florian Weimer <fweimer@redhat.com>
21819
21820 [BZ #21922]
21821 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
21822 coming from gethostbyname2_r.
21823
21824 2017-09-01 Florian Weimer <fweimer@redhat.com>
21825
21826 * support/namespace.h (struct support_chroot_configuration): Add
21827 hosts, host_conf.
21828 (struct support_chroot): Add path_hosts, path_host_conf.
21829 * support/support_chroot.c (write_file): New function.
21830 (support_chroot_create): Call it to process /etc/resolv.conf,
21831 /etc/hosts, /etc/host.conf.
21832 (support_chroot_free): Update.
21833
21834 2017-09-01 Florian Weimer <fweimer@redhat.com>
21835
21836 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
21837 status indicates it is set.
21838
21839 2017-09-01 Florian Weimer <fweimer@redhat.com>
21840
21841 [BZ #20532]
21842 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
21843 function lookup failures more reliable.
21844
21845 2017-09-01 Florian Weimer <fweimer@redhat.com>
21846
21847 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
21848 (getcanonname): Likewise.
21849 (gaih_inet): Likewise.
21850
21851 2017-09-01 Florian Weimer <fweimer@redhat.com>
21852
21853 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
21854 (getcanonname): Likewise.
21855 (gaih_inet): Likewise.
21856
21857 2017-08-31 Steve Ellcey <sellcey@cavium.com>
21858 Richard Henderson <rth@twiddle.net>
21859
21860 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
21861 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
21862 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
21863 (IREG_SIZE, OREG_SIZE): New macros.
21864 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
21865 (IREG_SIZE, OREG_SIZE): New macros.
21866 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
21867 (IREG_SIZE): New macro.
21868 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
21869 (IREG_SIZE): New macro.
21870 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
21871 New includes.
21872 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
21873 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
21874 (__CONCATX): Handle exceptions correctly on large values that may
21875 set FE_INVALID.
21876 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
21877 Initialize if not already set.
21878 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
21879
21880 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21881
21882 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
21883 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
21884 Likewise.
21885 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
21886 Likewise.
21887 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
21888 Likewise.
21889 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
21890 Likewise.
21891 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
21892 Likewise.
21893 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
21894 Likewise.
21895 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
21896 Likewise.
21897 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
21898 (NO_CANCELLATION): Likewise.
21899 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
21900 Likewise.
21901 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
21902 Likewise.
21903 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
21904 Likewise.
21905 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
21906 (NO_CANCELLATION): Likewise.
21907 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
21908 (NO_CANCELLATION): Likewise.
21909 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
21910 Likewise
21911 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
21912 Likewise.
21913 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
21914 Likewise.
21915 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
21916 Likewise.
21917 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
21918 hidden prototype.
21919 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
21920 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
21921
21922 2017-08-31 Steve Ellcey <sellcey@cavium.com>
21923
21924 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
21925 in resolver call.
21926
21927 2017-08-31 Florian Weimer <fweimer@redhat.com>
21928
21929 * include/libc-symbols.h (internal_function): Remove.
21930
21931 2017-08-31 Florian Weimer <fweimer@redhat.com>
21932
21933 * stdlib/fmtmsg.c (internal_addseverity): Remove
21934 internal_function.
21935
21936 2017-08-31 Florian Weimer <fweimer@redhat.com>
21937
21938 * stdio-common/printf_fp.c (group_number): Remove
21939 internal_function.
21940 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
21941
21942 2017-08-31 Florian Weimer <fweimer@redhat.com>
21943
21944 * posix/fnmatch.c (internal_function): Remove definition.
21945 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
21946 * posix/regcomp.c (peek_token, init_word_char)
21947 (duplicate_node_closure, fetch_token, peek_token)
21948 (peek_token_bracket, build_range_exp, build_collating_symbol):
21949 Likewise.
21950 * posix/regex_internal.c (re_string_construct_common)
21951 (create_ci_newstate, create_cd_newstate, re_string_allocate)
21952 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
21953 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
21954 (re_string_translate_buffer, re_string_reconstruct)
21955 (re_string_peek_byte_case, re_string_fetch_byte_case)
21956 (re_string_destruct, re_string_context_at, re_node_set_alloc)
21957 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
21958 (re_node_set_add_intersect, re_node_set_init_union)
21959 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
21960 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
21961 (re_dfa_add_node, calc_state_hash, re_acquire_state)
21962 (re_acquire_state_context): Likewise.
21963 * posix/regex_internal.h (internal_function): Remove definition.
21964 (re_string_realloc_buffers, build_wcs_buffer)
21965 (build_wcs_upper_buffer, build_upper_buffer)
21966 (re_string_translate_buffer, re_string_context_at)
21967 (re_string_char_size_at, re_string_wchar_at)
21968 (re_string_elem_size_at): Likewise.
21969 * posix/regexec.c (match_ctx_init, match_ctx_clean)
21970 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
21971 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
21972 (re_search_internal, re_search_2_stub, re_search_stub)
21973 (re_copy_regs, prune_impossible_nodes, check_matching)
21974 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
21975 (free_fail_stack_return, sift_states_iter_mb)
21976 (sift_states_backward, build_sifted_states)
21977 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
21978 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
21979 (check_subexp_limits, sift_states_bkref, merge_state_array)
21980 (find_recover_state, transit_state, merge_state_with_log)
21981 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
21982 (transit_state_mb, transit_state_bkref, get_subexp)
21983 (get_subexp_sub, find_subexp_node, check_arrival)
21984 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
21985 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
21986 (check_node_accept_bytes, find_collation_sequence_value)
21987 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
21988 (acquire_init_state_context, check_halt_node_context)
21989 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
21990 (sub_epsilon_src_nodes): Likewise.
21991 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
21992 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
21993 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
21994 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
21995 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
21996 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
21997 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
21998 * sysdeps/posix/ttyname.c (getttyname): Likewise.
21999 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
22000 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
22001 (PREADV): Likewise.
22002 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
22003 (PREADV): Likewise.
22004 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
22005 (PWRITEV): Likewise.
22006 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
22007 (PWRITEV): Likewise.
22008 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
22009 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22010
22011 2017-08-31 Florian Weimer <fweimer@redhat.com>
22012
22013 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
22014 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
22015 Remove internal_function.
22016 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
22017 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
22018 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
22019 (__deallocate_stack, __libc_pthread_init)
22020 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
22021 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
22022 (__libc_disable_asynccancel, __librt_disable_asynccancel):
22023 Likewise.
22024 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
22025 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
22026 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
22027 Likewise.
22028 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
22029 (__pthread_mutex_unlock_usercnt): Likewise.
22030
22031 2017-08-31 Florian Weimer <fweimer@redhat.com>
22032
22033 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
22034 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
22035 (fts_safe_changedir): Remove internal_function.
22036 * io/ftw.c (internal_function): Remove definition.
22037 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
22038
22039 2017-08-31 Florian Weimer <fweimer@redhat.com>
22040
22041 * inet/deadline.c (__deadline_current_time)
22042 (__deadline_from_timeval, __deadline_to_ms): Remove
22043 internal_function.
22044 * inet/getnameinfo.c (nrl_domainname): Likewise.
22045 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
22046 * inet/inet6_option.c (add_pad): Likewise.
22047 * inet/net-internal.h (__deadline_current_time)
22048 (__deadline_from_timeval, __deadline_to_ms): Likewise.
22049 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
22050 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
22051 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
22052
22053 2017-08-31 Joseph Myers <joseph@codesourcery.com>
22054
22055 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
22056 include <bits/nan.h>.
22057 * math/Makefile (headers): Remove bits/nan.h.
22058 * bits/nan.h: Remove.
22059 * sysdeps/ieee754/bits/nan.h: Likewise.
22060 * sysdeps/mips/bits/nan.h: Likewise.
22061
22062 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
22063 not include <bits/inf.h>.
22064 * math/Makefile (headers): Remove bits/inf.h.
22065 * bits/inf.h: Remove.
22066 * sysdeps/ieee754/bits/inf.h: Likewise.
22067
22068 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
22069 bits/huge_vall.h or bits/huge_val_flt128.h.
22070 (HUGE_VAL): Define directly here.
22071 [__USE_ISOC99] (HUGE_VALF): Likewise.
22072 [__USE_ISOC99] (HUGE_VALL): Likewise.
22073 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22074 (HUGE_VAL_F128): Likewise.
22075 * math/Makefile (headers): Remove bits/huge_val.h,
22076 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
22077 * bits/huge_val.h: Remove.
22078 * bits/huge_val_flt128.h: Likewise.
22079 * bits/huge_valf.h: Likewise.
22080 * bits/huge_vall.h: Likewise.
22081 * sysdeps/ia64/bits/huge_vall.h: Likewise.
22082 * sysdeps/ieee754/bits/huge_val.h: Likewise.
22083 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
22084 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
22085 * sysdeps/sh/bits/huge_val.h: Likewise.
22086 * sysdeps/sparc/bits/huge_vall.h: Likewise.
22087 * sysdeps/x86/bits/huge_vall.h: Likewise.
22088
22089 2017-08-31 Florian Weimer <fweimer@redhat.com>
22090
22091 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
22092 internal_function.
22093 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
22094 Likewise.
22095 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
22096 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
22097 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
22098 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
22099 * elf/dl-fini.c (_dl_sort_fini): Likewise.
22100 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
22101 * elf/dl-libc.c (dlerror_run): Likewise.
22102 * elf/dl-load.c (add_name_to_object, decompose_rpath)
22103 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
22104 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
22105 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
22106 Likewise.
22107 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
22108 (_dl_higher_prime_number, _dl_strtoul): Likewise.
22109 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
22110 * elf/dl-profile.c (_dl_start_profile): Likewise.
22111 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
22112 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
22113 Likewise.
22114 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
22115 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
22116 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
22117 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
22118 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
22119 (_dl_allocate_tls_storage): Likewise.
22120 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
22121 (_dl_check_all_versions): Likewise.
22122 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
22123 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
22124 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
22125 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22126 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
22127 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
22128 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
22129 internal_function from __dl_start.
22130 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
22131 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
22132 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
22133 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
22134 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
22135 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
22136 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
22137 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
22138 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
22139 (_dl_next_ld_env_entry, _dl_important_hwcaps)
22140 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
22141 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
22142 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
22143 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
22144 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
22145 Likewise.
22146 (struct rtld_global_ro): Remove internal_function from the
22147 _dl_lookup_symbol_x member.
22148 (_dl_symbol_value): Remove. No longer defined anywhere.
22149 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
22150 internal_function.
22151 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22152 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
22153 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
22154 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
22155 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
22156 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
22157 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
22158 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
22159 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
22160 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
22161 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
22162 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
22163
22164 2017-08-31 Florian Weimer <fweimer@redhat.com>
22165
22166 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
22167 Remove internal_function.
22168 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
22169 Likewise.
22170 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
22171 Likewise.
22172
22173 2017-08-31 Florian Weimer <fweimer@redhat.com>
22174
22175 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
22176 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
22177 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
22178
22179 2017-08-31 Florian Weimer <fweimer@redhat.com>
22180
22181 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
22182 (__gai_enqueue_request): Remove internal_function.
22183 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
22184 (__gai_remove_request, __gai_notify, __gai_notify_only)
22185 (__gai_sigqueue): Likewise.
22186 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
22187 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
22188 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
22189 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22190 Likewise.
22191
22192 2017-08-31 Florian Weimer <fweimer@redhat.com>
22193
22194 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
22195 * include/dirent.h (__opendirat, __getdents, __getdents64)
22196 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
22197 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
22198 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
22199 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
22200 Likewise.
22201 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
22202
22203 2017-08-31 Florian Weimer <fweimer@redhat.com>
22204
22205 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
22206 internal_function.
22207 (GETCWD_RETURN_TYPE): Likewise.
22208
22209 2017-08-31 Florian Weimer <fweimer@redhat.com>
22210
22211 * include/time.h (__tz_compute, __strptime_internal): Remove
22212 internal_function.
22213 * time/strptime_l.c (__strptime_internal): Likewise.
22214 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
22215
22216 2017-08-31 Florian Weimer <fweimer@redhat.com>
22217
22218 * iconv/gconv.c (__gconv): Remove internal_function.
22219 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
22220 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
22221 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
22222 (__gconv_release_cache): Likewise.
22223 * iconv/gconv_close.c (__gconv_close): Likewise.
22224 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
22225 (read_conf_file, __gconv_get_path): Likewise.
22226 * iconv/gconv_db.c (derivation_lookup, add_derivation)
22227 (__gconv_release_step, gen_steps, increment_counter)
22228 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
22229 (__gconv_close_transform, free_modules_db): Likewise.
22230 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
22231 Likewise.
22232 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
22233 (__gconv_find_transform, __gconv_lookup_cache)
22234 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
22235 (__gconv_close_transform, __gconv_release_cache)
22236 (__gconv_loaded_object, __gconv_release_shlib)
22237 (__gconv_compare_alias): Likewise.
22238 * iconv/gconv_open.c (__gconv_open): Likewise.
22239 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
22240 * iconv/iconvconfig.c (add_module): Likewise.
22241 * intl/dcigettext.c (plural_lookup, guess_category_value)
22242 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
22243 * intl/eval-plural.h (plural_eval): Likewise.
22244 * intl/finddomain.c (_nl_find_domain): Likewise.
22245 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
22246 (_nl_load_domain, _nl_find_msg): Likewise.
22247 (internal_function): Remove definition.
22248 * intl/loadinfo.h (internal_function): Likewise.
22249 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
22250 internal_function.
22251 * intl/localealias.c (internal_function): Remove definition.
22252 (read_alias_file): Remove internal_function.
22253 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
22254 * intl/plural-exp.h (internal_function): Remove definition.
22255 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
22256 internal_function.
22257 * intl/plural.c: Regenerate.
22258 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
22259 * locale/coll-lookup.c (__collidx_table_lookup)
22260 (__collseq_table_lookup): Likewise.
22261 * locale/coll-lookup.h (__collidx_table_lookup)
22262 (__collseq_table_lookup): Likewise.
22263 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
22264 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
22265 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
22266 (_nl_unload_locale): Likewise.
22267 * locale/localeinfo.h (struct __locale_data): Remove
22268 internal_function from cleanup member.
22269 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
22270 (_nl_remove_locale, _nl_load_locale_from_archive)
22271 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
22272 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
22273 (_nl_cleanup_time): Remove internal_function.
22274 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
22275 (_nl_parse_alt_digit): Likewise.
22276 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
22277 (_nl_select_era_entry): Likewise.
22278 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
22279 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
22280 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
22281 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
22282 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
22283
22284 2017-08-31 Florian Weimer <fweimer@redhat.com>
22285
22286 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
22287 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
22288 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
22289 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
22290 Likewise.
22291 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
22292 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
22293 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
22294 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
22295 Likewise.
22296 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
22297
22298 2017-08-31 Florian Weimer <fweimer@redhat.com>
22299
22300 * misc/getttyent.c (skip, value): Remove internal_function.
22301 * misc/syslog.c (openlog_internal): Likewise.
22302 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
22303
22304 2017-08-31 Florian Weimer <fweimer@redhat.com>
22305
22306 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
22307 (__nss_rewrite_field): Remove internal_function.
22308 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
22309 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
22310 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
22311 * nss/nsswitch.c (nss_parse_file, nss_getline)
22312 (nss_parse_service_list, nss_new_service): Likewise.
22313 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
22314 * nss/valid_field.c (__nss_valid_field): Likewise.
22315 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
22316
22317 2017-08-31 Florian Weimer <fweimer@redhat.com>
22318
22319 * malloc/arena.c (__malloc_fork_lock_parent)
22320 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
22321 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
22322 internal_function from defintions.
22323 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
22324 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
22325 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
22326 internal_function from declarations.
22327 * malloc/malloc.c (internal_function): Do not define.
22328 (mem2mem_check): Remove internal_function from declaration.
22329 (munmap_chunk, mremap_chunk): Remove internal_function.
22330 * malloc/mtrace.c (tr_where): Likewise.
22331
22332 2017-08-31 Florian Weimer <fweimer@redhat.com>
22333
22334 * include/rpc/pmap_clnt.h (__get_socket): Remove
22335 internal_function.
22336 * sunrpc/auth_des.c (synchronize): Likewise.
22337 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
22338 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
22339 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
22340 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
22341 (key_call): Likewise.
22342 * sunrpc/pm_getport.c (__get_socket): Likewise.
22343 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
22344 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
22345 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
22346 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
22347 (invalidate): Likewise.
22348 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
22349 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
22350 (set_input_fragment, get_input_bytes): Likewise.
22351
22352 2017-08-31 Florian Weimer <fweimer@redhat.com>
22353
22354 * malloc/malloc.c (_int_free): Remove locked variable and related
22355 asserts.
22356
22357 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
22358
22359 [BZ #22051]
22360 * Makerules (build-module-helper-objlist): Filter out
22361 $(elf-objpfx)sofini.os.
22362 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
22363 needed.
22364
22365 2017-08-31 Florian Weimer <fweimer@redhat.com>
22366
22367 * libio/fcloseall.c: Assume weak_alias is defined.
22368 * libio/feof.c: Likewise.
22369 * libio/fileno.c: Likewise.
22370 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
22371 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
22372 definitions.
22373 (_IO_file_open): Call __open directly.
22374 (_IO_new_file_sync): Assume ESPIPE is defined.
22375 (_IO_file_seekoff_maybe_mmap): Call __read directly.
22376 (_IO_new_file_write): Call __write directly.
22377 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
22378 * libio/ftello64.c (__ftello64): Assume EIO is defined.
22379 * libio/genops.c: Assume _LIBC is defined.
22380 (save_for_backup): Remove internal_function.
22381 * libio/getc.c: Assume weak_alias is defined.
22382 * libio/getwc.c: Likewise.
22383 * libio/iofclose.c: Assume _LIBC is defined.
22384 * libio/iofdopen.c: Likewise.
22385 (_IO_fcntl): Remove macro definition.
22386 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
22387 Call __fcntl directly.
22388 * libio/iofflush.c: Assume weak_alias is defined.
22389 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
22390 defined.
22391 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
22392 * libio/iofgets.c: Likewise.
22393 * libio/iofopen.c: Assume _LIBC is defined.
22394 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
22395 * libio/iofputs.c: Assume weak_alias is defined.
22396 * libio/iofread.c: Likewise.
22397 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
22398 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
22399 * libio/ioftell.c: Assume weak_alias is defined.
22400 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
22401 * libio/iofwide.c: Assume _LIBC is defined.
22402 (_IO_fwide): Drop SHARED conditional because it is implied by
22403 SHLIB_COMPAT.
22404 * libio/iofwrite.c: Assume weak_alias is defined.
22405 * libio/iogetdelim.c: Likewise.
22406 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
22407 * libio/iogetwline.c (wmemcpy): Remove macro definition.
22408 (_IO_getwline): Call __wmemcpy directly.
22409 * libio/iopopen.c: Assume _LIBC is defined.
22410 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
22411 (_IO_close): Remove macro definitions.
22412 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
22413 _exit directly.
22414 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
22415 directly.
22416 * libio/ioputs.c: Assume weak_alias is defined.
22417 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
22418 * libio/iosetbuffer.c: Assume weak_alias is defined.
22419 * libio/iosetvbuf.c: Likewise.
22420 * libio/ioungetc.c: Likewise.
22421 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
22422 libc_hidden_def, libc_hidden_weak, NULL are defined.
22423 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
22424 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
22425 defined.
22426 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
22427 definitions.
22428 (_IO_old_file_init_internal): Drop SHARED conditional because it
22429 is implied by SHLIB_COMPAT.
22430 (_IO_old_file_fopen): Call __open directly.
22431 (_IO_old_file_sync): Assume ESPIPE is defined.
22432 (_IO_old_file_write): Call __write directly.
22433 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
22434 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
22435 Call __fcntl directly.
22436 * libio/oldiofgetpos.c: Assume weak_alias is defined.
22437 (_IO_old_fgetpos): Assume EIO is defined.
22438 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
22439 (_IO_old_fgetpos64): Assume EIO is defined.
22440 * libio/oldiofsetpos.c: Assume weak_alias is defined.
22441 (_IO_old_fsetpos): Assume EIO is defined.
22442 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
22443 (_IO_old_fsetpos64): Assume EIO is defined.
22444 * libio/oldiopopen.c: Assume _LIBC is defined.
22445 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
22446 (_IO_close): Remove macro definitions.
22447 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
22448 directly.
22449 (_IO_old_proc_close): Call __close, __waitpid directly.
22450 * libio/put.c: Assume weak_alias is defined.
22451 * libio/stdfiles.c: Assume _LIBC is defined.
22452 * libio/stdio.c: Likewise.
22453 * libio/wfileops.c: Likewise.
22454 (_IO_wfile_sync): Assume ESPIPE is defined.
22455 * libio/wgenops.c: Assume _LIBC is defined.
22456 (save_for_wbackup): Remove internal_function.
22457
22458 2017-08-31 Florian Weimer <fweimer@redhat.com>
22459
22460 * malloc/malloc.c (top_check): Change return type to void. Remove
22461 internal_function.
22462 * malloc/hooks.c (top_check): Likewise.
22463 (malloc_check, realloc_check, memalign_check): Adjust.
22464
22465 2017-08-30 Joseph Myers <joseph@codesourcery.com>
22466
22467 [BZ #21457]
22468 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
22469 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
22470 sigcontext and namespace requirements.
22471 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
22472 * sysdeps/m68k/sys/ucontext.h: Likewise.
22473 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
22474 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
22475 <bits/sigcontext.h>.
22476 (__ctx): Define earlier.
22477 (mcontext_t): Define structure contents rather than using struct
22478 sigcontext.
22479 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
22480 __glibc_reserved1 instead of __reserved.
22481 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
22482 <bits/sigcontext.h>.
22483 (__ctx): Define earlier.
22484 (mcontext_t): Define structure contents rather than using struct
22485 sigcontext.
22486 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
22487 mcontext_t instead of struct sigcontext.
22488 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
22489 <bits/sigcontext.h>.
22490 (__ctx): Define earlier.
22491 (mcontext_t): Define structure contents rather than using struct
22492 sigcontext.
22493 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
22494 <bits/sigcontext.h>.
22495 (__ctx): Define earlier.
22496 (mcontext_t): Define structure contents rather than using struct
22497 sigcontext.
22498 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
22499 mcontext_t instead of struct sigcontext.
22500 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
22501 mcontext_t instead of struct sigcontext.
22502 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
22503 <bits/sigcontext.h>.
22504 (__ctx): New macro.
22505 (struct __ia64_fpreg_mcontext): New type.
22506 (mcontext_t): Define structure contents rather than using struct
22507 sigcontext.
22508 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
22509 (uc_sigmask): Define using __ctx.
22510 (uc_stack): Likewise.
22511 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
22512 <bits/sigcontext.h>.
22513 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
22514 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
22515 <bits/sigcontext.h>.
22516 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
22517 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
22518 <bits/sigcontext.h>.
22519 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
22520 <bits/sigcontext.h>.
22521 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
22522 <bits/sigcontext.h>.
22523 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
22524 <bits/sigcontext.h>.
22525 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
22526 <bits/sigcontext.h>.
22527 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
22528 <bits/sigcontext.h>.
22529 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
22530 <bits/sigcontext.h>.
22531 (__ctx): Define earlier.
22532 (mcontext_t): Define structure contents rather than using struct
22533 sigcontext.
22534 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
22535 <bits/sigcontext.h>. Include <bits/types.h>.
22536 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
22537 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
22538 (test-xfail-XPG42/ucontext.h/conform): Likewise.
22539 (test-xfail-UNIX98/signal.h/conform): Likewise.
22540 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
22541 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
22542 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
22543 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
22544 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
22545 (test-xfail-POSIX2008/signal.h/conform): Likewise.
22546 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
22547 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
22548 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
22549
22550 2017-08-30 Florian Weimer <fweimer@redhat.com>
22551
22552 * malloc/dynarray_emplace_enlarge.c
22553 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
22554 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
22555 * malloc/tst-dynarray.c (test_long_overflow): New function.
22556 (do_test): Call it.
22557
22558 2017-08-30 Florian Weimer <fweimer@redhat.com>
22559
22560 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
22561 (set_arena_corrupt): Remove definitions.
22562 (mtrim): Do not check for corrupt arena.
22563 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
22564 Likewise.
22565
22566 2017-08-30 Florian Weimer <fweimer@redhat.com>
22567
22568 [BZ #21754]
22569 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
22570 check_action.
22571 (ptmalloc_init): Do not set or use check_action.
22572 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
22573 call to malloc_printerr. Remove return statement.
22574 (free_check): Likewise. Remove arena unlock.
22575 (top_check): Update comment. Adjust call to malloc_printerr.
22576 Remove heap repair code.
22577 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
22578 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
22579 (sysmalloc): Adjust call to malloc_printerr.
22580 (munmap_chunk, __libc_realloc): Likewise. Remove return
22581 statement.
22582 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
22583 Remove errout label and corresponding gotos.
22584 (_int_free): Likewise. Remove arena unlock.
22585 (do_set_mallopt_check): Do not set check_action.
22586 (malloc_printerr): Adjust parameter list. Do not mark arena as
22587 corrupt.
22588 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
22589 comment.
22590 * manual/probes.texi (Memory Allocation Probes): Remove
22591 memory_mallopt_check_action.
22592
22593 2017-08-30 Steve Ellcey <sellcey@cavium.com>
22594
22595 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
22596 Use pointer to uint64_t instead of long int for sp.
22597
22598 2017-08-30 Florian Weimer <fweimer@redhat.com>
22599
22600 [BZ #21754]
22601 * malloc/malloc.c (malloc_printerr): Always terminate the process,
22602 without printing a backtrace. Do not leak any information in the
22603 error message.
22604 * manual/memory.texi (Heap Consistency Checking): Update.
22605 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
22606
22607 2017-08-30 Florian Weimer <fweimer@redhat.com>
22608
22609 Do not scale NPTL tests with available number of CPUs.
22610 * nptl/tst-cond16.c (count): Set to constant value of 8.
22611 * nptl/tst-cond18.c (count): Likewise.
22612
22613 2017-08-29 Joseph Myers <joseph@codesourcery.com>
22614
22615 [BZ #22035]
22616 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
22617 Define to take a second argument that is a macro that
22618 concatentates a suffix, not the suffix itself.
22619 (__CONCAT_d): New macro.
22620 (__CONCAT_f): Likewise.
22621 (__CONCAT_l): Likewise.
22622
22623 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
22624
22625 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
22626 by child.
22627
22628 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22629 Aurelien Jarno <aurelien@aurel32.net>
22630 Maciej W. Rozycki <macro@imgtec.com>
22631
22632 [BZ #21956]
22633 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
22634 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
22635 `mips16-syscall6' and `mips16-syscall7'.
22636 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
22637 (CFLAGS-mips16-syscall7.c): Remove.
22638 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
22639 Remove `__mips16_syscall5', `__mips16_syscall6' and
22640 `__mips16_syscall7'.
22641 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
22642 (__mips16_syscall0): Rename `__mips16_syscall_return' to
22643 `__mips_syscall_return'.
22644 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
22645 (__mips16_syscall1): Likewise.
22646 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
22647 (__mips16_syscall2): Likewise.
22648 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
22649 (__mips16_syscall3): Likewise.
22650 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
22651 (__mips16_syscall4): Likewise.
22652 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
22653 Remove.
22654 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
22655 Remove.
22656 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
22657 Remove.
22658 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
22659 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
22660 `__mips16_syscall5'. Remove prototype.
22661 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
22662 `__mips16_syscall6'. Remove prototype.
22663 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
22664 `__mips16_syscall7'. Remove prototype.
22665 (__nomips16, __mips16_syscall_return): Move to...
22666 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
22667 (__nomips16, __mips_syscall_return): ... here.
22668 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
22669 `__mips16_syscall_return' to `__mips_syscall_return'.
22670 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
22671 `internal_syscall##nr'.
22672 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
22673 `internal_syscall##nr'.
22674 (FORCE_FRAME_POINTER): Remove.
22675 (__mips_syscall5): New prototype.
22676 (internal_syscall5): Rewrite to call `__mips_syscall5'.
22677 (__mips_syscall6): New prototype.
22678 (internal_syscall6): Rewrite to call `__mips_syscall6'.
22679 (__mips_syscall7): New prototype.
22680 (internal_syscall7): Rewrite to call `__mips_syscall7'.
22681 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
22682 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
22683 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
22684 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
22685 (sysdep_routines): Add libc-do-syscall.
22686 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
22687 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
22688
22689 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22690
22691 [BZ #21672]
22692 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
22693 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
22694 (advise_stack_range): New function.
22695 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
22696 stack non required to advise_stack_range at allocatestack.c
22697
22698 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
22699
22700 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
22701
22702 2017-08-29 Florian Weimer <fweimer@redhat.com>
22703
22704 [BZ #22026]
22705 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
22706 __end_fct. Mangle __end_fct after setting it to NULL.
22707 * iconv/Makefile (tests): Add tst-gconv-init-failure.
22708 (modules-names, modules-names-tests): Add
22709 tst-gconv-init-failure-mod.
22710 (gconv-modules): New target.
22711 (tst-gconv-init-failure-mod.so): Link against libsupport.
22712 (tst-gconv-init-failure): Depend on gconv-modules,
22713 tst-gconv-init-failure-mod.so.
22714 * iconv/tst-gconv-init-failure-mod.c: New file.
22715 * iconv/tst-gconv-init-failure.c: Likewise.
22716 * iconv/test-gconv-modules: Likewise.
22717
22718 2017-08-29 Florian Weimer <fweimer@redhat.com>
22719
22720 [BZ #22025]
22721 * iconv/gconv_db.c (free_derivation): Remove redundant
22722 parentheses.
22723 (gen_steps): Unconditionally mangle __btowc_fct after
22724 initialization.
22725 (increment_counter): Likewise. Do not call init_fct for internal
22726 modules.
22727
22728 2017-08-29 Joseph Myers <joseph@codesourcery.com>
22729
22730 [BZ #22028]
22731 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
22732 (_MSUF_): Remove macro.
22733 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
22734 Likewise.
22735 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
22736 (__REDIRFROM_X): New macro.
22737 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
22738 Likewise.
22739 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
22740 (__REDIRTO_X): Likewise.
22741 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
22742 arguments.
22743 (__MATH_REDIRCALL_2): Likewise.
22744 (__MATH_REDIRCALL_INTERNAL): Likewise.
22745 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
22746 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
22747 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
22748 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
22749 * math/test-finite-macros.c: New file.
22750 * math/Makefile (tests): Add test-finite-macros.
22751 (CFLAGS-test-finite-macros.c): New variable.
22752
22753 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
22754 Jeff Law <law@redhat.com>
22755
22756 [BZ #22025]
22757 Mangle NULL pointers in iconv/gconv.
22758 * iconv/gconv_cache.c (find_module): Demangle init_fct before
22759 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
22760 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
22761 is non-NULL before demangling the end_fct. Check for NULL
22762 end_fct after demangling.
22763 (__gconv_release_step): Demangle the end_fct before checking
22764 it for NULL. Remove assert on __shlibc_handle != NULL.
22765 (gen_steps): Don't check btowc_fct for NULL before mangling.
22766 Demangle init_fct before checking for NULL.
22767 (increment_counter): Likewise.
22768 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
22769 end_fct for NULL before mangling.
22770 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
22771 for NULL.
22772
22773 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
22774
22775 [BZ #21971]
22776 * locale/iso-639.def: add Morisyen.
22777
22778 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
22779
22780 [BZ #21930]
22781 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
22782 (iszero): New C++ implementation that does not use
22783 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
22784 signaling nans are enabled, since __builtin_types_compatible_p
22785 is a C-only feature.
22786 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
22787 defined, include ieee754_float128.h for access to the union and
22788 member ieee854_float128.ieee.
22789 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
22790 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
22791 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
22792 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
22793 options of test-math-zero on powerpc64le.
22794
22795 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
22796
22797 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
22798 Change double to float.
22799
22800 2017-08-28 Joseph Myers <joseph@codesourcery.com>
22801
22802 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
22803 unconditional.
22804 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
22805 conditional code; define contents only for [LIBM_SVID_COMPAT].
22806
22807 2017-08-28 Florian Weimer <fweimer@redhat.com>
22808
22809 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
22810 (abi-lp64_be-options): Remove.
22811 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
22812 (abi-hard-options): Likewise.
22813 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
22814 (abi-o32_hard-options, abi-o32_soft_2008-options)
22815 (abi-o32_hard_2008-options, abi-n32_soft-options)
22816 (abi-n32_hard-options, abi-n32_soft_2008-options)
22817 (abi-n32_hard_2008-options, abi-n64_soft-options)
22818 (abi-n64_hard-options, abi-n64_soft_2008-options)
22819 (abi-n64_hard_2008-options): Likewise.
22820 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
22821 (abi-64-v1-options, abi-64-v2-options): Likewise.
22822 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
22823 (abi-64-options): Likewise.
22824 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
22825 (abi-64-options): Likewise.
22826 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
22827 (abi-64-options): Likewise.
22828 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
22829 (abi-64-options, abi-x32-options): Likewise.
22830
22831 2017-08-28 Florian Weimer <fweimer@redhat.com>
22832
22833 Store supported list of SYS_* system calls in the source tree.
22834 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
22835 (bits/syscall.h): Generate from list file.
22836 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
22837 [$(subdir) = misc] (tests): Add tst-syscall-list.
22838 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
22839 [$(subdir) = misc] (tst-syscall-list-macros.list)
22840 [$(subdir) = misc] (tst-syscall-list-nr.list)
22841 (tst-syscall-list-sys.list): Helper targets for new
22842 tst-syscall-list test.
22843 [$(subdir) = misc] (tst-syscall-list.out): Run test script
22844 tst-syscall-list.sh.
22845 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
22846 target. Do not include bits/syscall.d.
22847 [$(subdir) = misc] (generated): Do not update.
22848 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
22849 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
22850 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
22851 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
22852
22853 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
22854
22855 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
22856 (tst-cxa_atexit, tst-on_exit): Likewise.
22857 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
22858 tst-cxa_atexit, and tst-on_exit.
22859 * stdlib/tst-atexit-common.c: New file.
22860 * stdlib/tst-atexit.c: New file.
22861 * stdlib/tst-at_quick_exit.c: New file.
22862 * stdlib/tst-cxa_atexit.c: New file.
22863 * stdlib/tst-on_exit.c: New file.
22864
22865 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22866
22867 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
22868 * mach/stack_chk_fail_local.c: New file.
22869 * hurd/stack_chk_fail_local.c: New file.
22870 * mach/Machrules ($(interface-library)-routines): Add
22871 stack_chk_fail_local.
22872 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
22873 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
22874 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
22875 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
22876 * hurd/Makefile (CFLAGS-hurdstartup.o,
22877 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
22878
22879 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
22880
22881 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
22882 (index_cpu_*, index_arch_*): Removed.
22883
22884 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
22885
22886 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
22887 Use uint64_t instead of unsigned long.
22888
22889 2017-08-25 Joseph Myers <joseph@codesourcery.com>
22890
22891 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
22892 [__HAVE_DISTINCT_FLOAT128].
22893
22894 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
22895 of <bits/math-finite.h>.
22896 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
22897 inclusion of <bits/math-finite.h>.
22898 * math/bits/math-finite.h (__REDIRTO_X): Do not define
22899 conditionally on [__MATH_DECLARING_LDOUBLE && defined
22900 __NO_LONG_DOUBLE_MATH].
22901 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
22902 (__MATH_REDIRCALL_2): Likewise.
22903 (__MATH_REDIRCALL_INTERNAL): Likewise.
22904 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
22905 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
22906 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
22907
22908 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
22909 Remove file.
22910 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
22911 Likewise.
22912 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
22913 Likewise.
22914 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
22915 Likewise.
22916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
22917 Likewise.
22918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
22919 Likewise.
22920 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
22921 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
22922 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
22923 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
22924 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
22925 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
22926 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
22927 w_sqrtf_compat-ppc32.
22928
22929 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
22930
22931 * math/math.h [defined __cplusplus] (issignaling): In the long
22932 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
22933 is not defined. Call __issignaling, otherwise.
22934
22935 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22936
22937 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
22938 syscall definitions and replace __builtin_expect with __glibc_likely.
22939 * sysdeps/unix/syscall-template.S: Update comment about cancellable
22940 syscall.
22941 (SYSCALL_CANCELLABLE): Removedefinition
22942 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
22943 definition.
22944 (PSEUDO_END): Likewise.
22945 [IS_IN (libpthread)] (CENABLE): Likewise.
22946 [IS_IN (libpthread)] (CDISABLE): Likewise.
22947 [IS_IN (libc)] (CENABLE): Likewise.
22948 [IS_IN (libc)] (CENABLE): Likewise.
22949 [IS_IN (librt)] (CDISABLE): Likewise.
22950 [IS_IN (librt)] (CDISABLE): Likewise.
22951 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22952 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
22953 definition.
22954 (PSEUDO_END): Likewise.
22955 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
22956 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
22957 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
22958 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
22959 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
22960 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
22961 (CENABLE): Likewise.
22962 (CDISABLE): Likewise.
22963 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
22964 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
22965 defintion.
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/hppa/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/i386/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/ia64/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/m68k/sysdep-cancel.h (PSEUDO): Remove
23005 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 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23014 * sysdeps/unix/sysv/linux/microblaze/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/mips/mips64/sysdep-cancel.h (PSEUDO):
23025 Remove 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 (SINGLE_THREAD_P): Likewise.
23034 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
23035 definition.
23036 (PSEUDO_END): Likewise.
23037 [IS_IN (libpthread)] (CENABLE): Likewise.
23038 [IS_IN (libpthread)] (CDISABLE): Likewise.
23039 [IS_IN (libc)] (CENABLE): Likewise.
23040 [IS_IN (libc)] (CENABLE): Likewise.
23041 [IS_IN (librt)] (CDISABLE): Likewise.
23042 [IS_IN (librt)] (CDISABLE): Likewise.
23043 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23044 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
23045 definition.
23046 (PSEUDO_END): Likewise.
23047 [IS_IN (libpthread)] (CENABLE): Likewise.
23048 [IS_IN (libpthread)] (CDISABLE): Likewise.
23049 [IS_IN (libc)] (CENABLE): Likewise.
23050 [IS_IN (libc)] (CENABLE): Likewise.
23051 [IS_IN (librt)] (CDISABLE): Likewise.
23052 [IS_IN (librt)] (CDISABLE): Likewise.
23053 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23054 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
23055 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
23056 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
23057 * sysdeps/unix/sysv/linux/s390/s390-32/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/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
23068 definition.
23069 (PSEUDO_END): Likewise.
23070 [IS_IN (libpthread)] (CENABLE): Likewise.
23071 [IS_IN (libpthread)] (CDISABLE): Likewise.
23072 [IS_IN (libc)] (CENABLE): Likewise.
23073 [IS_IN (libc)] (CENABLE): Likewise.
23074 [IS_IN (librt)] (CDISABLE): Likewise.
23075 [IS_IN (librt)] (CDISABLE): Likewise.
23076 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23077 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
23078 definition.
23079 (PSEUDO_END): Likewise.
23080 [IS_IN (libpthread)] (CENABLE): Likewise.
23081 [IS_IN (libpthread)] (CDISABLE): Likewise.
23082 [IS_IN (libc)] (CENABLE): Likewise.
23083 [IS_IN (libc)] (CENABLE): Likewise.
23084 [IS_IN (librt)] (CDISABLE): Likewise.
23085 [IS_IN (librt)] (CDISABLE): Likewise.
23086 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23087 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
23088 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
23089 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
23090 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
23091 definition.
23092 (PSEUDO_END): Likewise.
23093 [IS_IN (libpthread)] (CENABLE): Likewise.
23094 [IS_IN (libpthread)] (CDISABLE): Likewise.
23095 [IS_IN (libc)] (CENABLE): Likewise.
23096 [IS_IN (libc)] (CENABLE): Likewise.
23097 [IS_IN (librt)] (CDISABLE): Likewise.
23098 [IS_IN (librt)] (CDISABLE): Likewise.
23099 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23100 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
23101 definition.
23102 (PSEUDO_END): Likewise.
23103 [IS_IN (libpthread)] (CENABLE): Likewise.
23104 [IS_IN (libpthread)] (CDISABLE): Likewise.
23105 [IS_IN (libc)] (CENABLE): Likewise.
23106 [IS_IN (libc)] (CENABLE): Likewise.
23107 [IS_IN (librt)] (CDISABLE): Likewise.
23108 [IS_IN (librt)] (CDISABLE): Likewise.
23109 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
23110
23111 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
23112
23113 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
23114
23115 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
23116
23117 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
23118
23119 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
23120
23121 [BZ #21982]
23122 * string/stratcliff.c (do_test): Declare size, nchars, inner,
23123 middle and outer with size_t instead of int. Repleace %d and
23124 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
23125 "MAX (outer, nchars - 64)" to support unsigned outer and
23126 nchars. Also exit loop when outer == 0.
23127
23128 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23129
23130 * include/fcntl.h (__fcntl_nocancel): Remove definition.
23131 * include/signal.h (__sigsuspend_nocancel): Likewise.
23132 * include/time.h (__nanosleep_nocancel): Likewise.
23133 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
23134 * login/utmp_file.c: Include non cancellable syscall header.
23135 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
23136 prototype.
23137
23138 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
23139
23140 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
23141 .byte sequences with AVX512F instructions.
23142 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
23143 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
23144 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
23145 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
23146 Likewise.
23147 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23148 Likewise.
23149
23150 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
23151 Steve Ellcey <sellcey@cavium.com>
23152
23153 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
23154 Use PTR_REG macro in cmp instruction.
23155
23156 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23157
23158 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
23159 Change the return type of the ifunc resolver to match the return
23160 type of the target function.
23161
23162 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23163
23164 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
23165 (preadv64): Likewise.
23166 (pwrite64(: Likewise.
23167 (pwritev64): Likewise.
23168
23169 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
23170 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
23171 (LOAD_ARGS_0): Likewise.
23172 (LOAD_ARGS_1): Likewise.
23173 (LOAD_ARGS_2): Likewise.
23174 (LOAD_ARGS_3): Likewise.
23175 (LOAD_ARGS_4): Likewise.
23176 (LOAD_ARGS_5): Likewise.
23177 (LOAD_ARGS_6): Likewise.
23178 (LOAD_REGS_0): Likewise.
23179 (LOAD_REGS_1): Likewise.
23180 (LOAD_REGS_2): Likewise.
23181 (LOAD_REGS_3): Likewise.
23182 (LOAD_REGS_4): Likewise.
23183 (LOAD_REGS_5): Likewise.
23184 (LOAD_REGS_6): Likewise.
23185 (ASM_ARGS_0): Likewise.
23186 (ASM_ARGS_1): Likewise.
23187 (ASM_ARGS_2): Likewise.
23188 (ASM_ARGS_3): Likewise.
23189 (ASM_ARGS_4): Likewise.
23190 (ASM_ARGS_5): Likewise.
23191 (ASM_ARGS_6): Likewise.
23192 (LOAD_ARGS_TYPES_1): Likewise.
23193 (LOAD_ARGS_TYPES_2): Likewise.
23194 (LOAD_ARGS_TYPES_3): Likewise.
23195 (LOAD_ARGS_TYPES_4): Likewise.
23196 (LOAD_ARGS_TYPES_5): Likewise.
23197 (LOAD_ARGS_TYPES_6): Likewise.
23198 (LOAD_REGS_TYPES_1): Likewise.
23199 (LOAD_REGS_TYPES_2): Likewise.
23200 (LOAD_REGS_TYPES_3): Likewise.
23201 (LOAD_REGS_TYPES_4): Likewise.
23202 (LOAD_REGS_TYPES_5): Likewise.
23203 (LOAD_REGS_TYPES_6): Likewise.
23204 (TYPEFY): New define.
23205 (ARGIFY): Likewise.
23206 (internal_syscall0): Likewise.
23207 (internal_syscall1): Likewise.
23208 (internal_syscall2): Likewise.
23209 (internal_syscall3): Likewise.
23210 (internal_syscall4): Likewise.
23211 (internal_syscall5): Likewise.
23212 (internal_syscall6): Likewise.
23213 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
23214 (INTERNAL_SYSCALL_NCS): Remove define.
23215 (internal_syscall1): Add define.
23216
23217 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23218
23219 * math/w_remainder_compat.c: Remove duplicate inclusion of
23220 math-svid-compat.h.
23221 * math/w_remainderf_compat.c: Likewise.
23222 * math/w_remainderl_compat.c: Likewise.
23223
23224 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23225
23226 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23227
23228 2017-08-22 Joseph Myers <joseph@codesourcery.com>
23229
23230 [BZ #21684]
23231 * math/tgmath.h (__floating_type): Simplify definitions.
23232 (__real_integer_type): New macro.
23233 (__complex_integer_type): Likewise.
23234 (__expr_is_real): Likewise.
23235 (__tgmath_real_type_sub): Update comment to describe handling of
23236 complex types.
23237 (__tgmath_complex_type_sub): New macro.
23238 (__tgmath_complex_type): Likewise.
23239 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23240 (__TGMATH_CF128): Use __expr_is_real.
23241 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
23242 __expr_is_real.
23243 (__TGMATH_BINARY_REAL_IMAG): Likewise.
23244 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
23245 * math/gen-tgmath-tests.py (Type.create_type): Create complex
23246 integer types.
23247
23248 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23249
23250 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
23251 macro.
23252 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
23253 alias.
23254 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
23255 Likewise.
23256
23257 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
23258 nanosleep_not_cancel with __nanosleep_nocancel.
23259 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
23260 (__nanosleep_nocancel): New macro.
23261 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
23262 function.
23263 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
23264 macro.
23265 (__nanosleep_nocancel): New prototype.
23266
23267 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
23268 pause_not_cancel with __pause_nocancel.
23269 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
23270 (__pause_nocancel): New macro.
23271 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
23272 macro.
23273 (__pause_nocancel): New prototype.
23274 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
23275
23276 2017-08-22 Martin Sebor <msebor@redhat.com>
23277
23278 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
23279 to return a pointer to the same type as the target function.
23280
23281 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
23282
23283 [BZ #18822]
23284 [BZ #21986]
23285 * include/printf.h (__printf_fphex): Add attribute_hidden.
23286 (__guess_grouping): New prototype.
23287 * stdio-common/printf_fp.c (__guess_grouping): Removed.
23288 * stdio-common/reg-printf.c (__register_printf_specifier): Add
23289 libc_hidden_proto and libc_hidden_def.
23290 * stdlib/strfmon_l.c (__guess_grouping): Removed.
23291 (__vstrfmon_l): Remove the third argument passed to
23292 __guess_grouping.
23293
23294 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23295
23296 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
23297 definition for issignaling that does not rely on __MATH_TG,
23298 since __MATH_TG uses __builtin_types_compatible_p, which is only
23299 available in C mode.
23300 (CFLAGS-test-math-issignaling.cc): New variable.
23301 * math/Makefile [CXX] (tests): Add test-math-issignaling.
23302 * math/test-math-issignaling.cc: New test for C++ implementation
23303 of type-generic issignaling.
23304 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
23305 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
23306 options of test-math-issignaling on powerpc64le.
23307
23308 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
23309
23310 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23311 building libc.a.
23312 (hidden_proto): Likewise.
23313 (hidden_tls_proto): Likewise.
23314 (__hidden_proto): Likewise.
23315
23316 2017-08-22 Florian Weimer <fweimer@redhat.com>
23317
23318 math: Statically link tests of internal functionality.
23319 * math/Makefile (tests): Remove atest-exp, atest-sincos,
23320 atest-exp2.
23321 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
23322 (gmp-objs): Remove assignment.
23323 (atest-exp, atest-sincos, atest-exp2): Remove targets.
23324
23325 2017-08-22 Joseph Myers <joseph@codesourcery.com>
23326
23327 [BZ #21987]
23328 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
23329 and copy to ...
23330 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
23331 ... here.
23332 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
23333 ... and here.
23334
23335 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
23336 variable definitions above inclusion of ../Rules.
23337
23338 2017-08-21 Joseph Myers <joseph@codesourcery.com>
23339
23340 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
23341 case calling __builtin_unreachable.
23342
23343 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23344
23345 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
23346 __waitpid_nocancel.
23347 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
23348 (__waitpid_nocancel): New macro.
23349 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
23350 macro.
23351 (__waitpid_nocancel): Replace macro with a function.
23352 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
23353 function.
23354
23355 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
23356 __fcntl_nocancel.
23357 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
23358 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
23359
23360 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
23361 __writev_nocancel_nostatus.
23362 (write_call_graph): Likewise.
23363 (write_bb_counts): Likewise.
23364 * resolv/herror.c (herror): Likewise.
23365 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
23366 macro.
23367 (__writev_nocancel_nostatus): New macro.
23368 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
23369 Remove macro.
23370 (__writev_nocancel_nostatus): New function.
23371
23372 2017-08-21 Joseph Myers <joseph@codesourcery.com>
23373
23374 Revert:
23375 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23376
23377 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23378 building libc.a.
23379 (hidden_proto): Likewise.
23380 (hidden_tls_proto): Likewise.
23381 (__hidden_proto): Likewise.
23382
23383 [BZ #21973]
23384 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
23385 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
23386 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
23387 Likewise.
23388 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
23389 Likewise.
23390 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
23391 Likewise.
23392 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
23393 Likewise.
23394 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
23395 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
23396 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
23397 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
23398 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
23399 GLIBC_2.0 sqrtl symbol.
23400
23401 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
23402 [__USE_MISC] (_LIB_VERSION): Likewise.
23403 [__USE_MISC] (struct exception): Likewise.
23404 [__USE_MISC] (matherr): Likewise.
23405 [__USE_MISC] (DOMAIN): Likewise.
23406 [__USE_MISC] (SING): Likewise.
23407 [__USE_MISC] (OVERFLOW): Likewise.
23408 [__USE_MISC] (UNDERFLOW): Likewise.
23409 [__USE_MISC] (TLOSS): Likewise.
23410 [__USE_MISC] (PLOSS): Likewise.
23411 [__USE_MISC] (HUGE): Likewise.
23412 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
23413 * math/math-svid-compat.h: New file.
23414 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
23415 and matherrl.
23416 * include/math.h [!_ISOMAC] (__matherr): Remove.
23417 * manual/arith.texi (FP Exceptions): Do not document matherr.
23418 * math/Makefile (tests): Change test-matherr to test-matherr-3.
23419 (tests-internal): New variable.
23420 (install-lib): Do not add libieee.a.
23421 (non-lib.a): Likewise.
23422 (extra-objs): Do not add libieee.a and ieee-math.o.
23423 (CPPFLAGS-s_lib_version.c): Remove variable.
23424 ($(objpfx)libieee.a): Remove rule.
23425 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
23426 * math/ieee-math.c: Remove.
23427 * math/libm-test-support.c (matherr): Remove.
23428 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
23429 and license notices. Include <math-svid-compat.h> and
23430 <shlib-compat.h>.
23431 (matherr): Undefine as macro. Use compat_symbol_reference.
23432 (_LIB_VERSION): Likewise.
23433 * math/test-matherr-2.c: New file.
23434 * math/test-matherr-3.c: Likewise.
23435 * sysdeps/generic/math_private.h (__kernel_standard): Remove
23436 declaration.
23437 (__kernel_standard_f): Likewise.
23438 (__kernel_standard_l): Likewise.
23439 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
23440 <math_private.h>. Include <math-svid-compat.h>.
23441 (_LIB_VERSION): Undefine as macro.
23442 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
23443 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
23444 [LIBM_SVID_COMPAT], use compat_symbol.
23445 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
23446 <math_private.h>. Include <math-svid-compat.h>.
23447 (matherr): Undefine as macro.
23448 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
23449 compat_symbol.
23450 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
23451 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
23452 compat_symbol_reference.
23453 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
23454 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
23455 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
23456 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
23457 (MATHERR_D): Remove declaration.
23458 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
23459 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
23460 [LIBM_BUILD] (pmatherrf): Likewise.
23461 [LIBM_BUILD] (pmatherr): Likewise.
23462 [LIBM_BUILD] (pmatherrl): Likewise.
23463 (DOMAIN): Likewise.
23464 (SING): Likewise.
23465 (OVERFLOW): Likewise.
23466 (UNDERFLOW): Likewise.
23467 (TLOSS): Likewise.
23468 (PLOSS): Likewise.
23469 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
23470 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
23471 compat_symbol.
23472 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
23473 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
23474 compat_symbol.
23475 * math/lgamma-compat.h: Include <math-svid-compat.h>.
23476 * math/w_acos_compat.c: Likewise.
23477 * math/w_acosf_compat.c: Likewise.
23478 * math/w_acosh_compat.c: Likewise.
23479 * math/w_acoshf_compat.c: Likewise.
23480 * math/w_acoshl_compat.c: Likewise.
23481 * math/w_acosl_compat.c: Likewise.
23482 * math/w_asin_compat.c: Likewise.
23483 * math/w_asinf_compat.c: Likewise.
23484 * math/w_asinl_compat.c: Likewise.
23485 * math/w_atan2_compat.c: Likewise.
23486 * math/w_atan2f_compat.c: Likewise.
23487 * math/w_atan2l_compat.c: Likewise.
23488 * math/w_atanh_compat.c: Likewise.
23489 * math/w_atanhf_compat.c: Likewise.
23490 * math/w_atanhl_compat.c: Likewise.
23491 * math/w_cosh_compat.c: Likewise.
23492 * math/w_coshf_compat.c: Likewise.
23493 * math/w_coshl_compat.c: Likewise.
23494 * math/w_exp10_compat.c: Likewise.
23495 * math/w_exp10f_compat.c: Likewise.
23496 * math/w_exp10l_compat.c: Likewise.
23497 * math/w_exp2_compat.c: Likewise.
23498 * math/w_exp2f_compat.c: Likewise.
23499 * math/w_exp2l_compat.c: Likewise.
23500 * math/w_fmod_compat.c: Likewise.
23501 * math/w_fmodf_compat.c: Likewise.
23502 * math/w_fmodl_compat.c: Likewise.
23503 * math/w_hypot_compat.c: Likewise.
23504 * math/w_hypotf_compat.c: Likewise.
23505 * math/w_hypotl_compat.c: Likewise.
23506 * math/w_j0_compat.c: Likewise.
23507 * math/w_j0f_compat.c: Likewise.
23508 * math/w_j0l_compat.c: Likewise.
23509 * math/w_j1_compat.c: Likewise.
23510 * math/w_j1f_compat.c: Likewise.
23511 * math/w_j1l_compat.c: Likewise.
23512 * math/w_jn_compat.c: Likewise.
23513 * math/w_jnf_compat.c: Likewise.
23514 * math/w_jnl_compat.c: Likewise.
23515 * math/w_lgamma_main.c: Likewise.
23516 * math/w_lgamma_r_compat.c: Likewise.
23517 * math/w_lgammaf_main.c: Likewise.
23518 * math/w_lgammaf_r_compat.c: Likewise.
23519 * math/w_lgammal_main.c: Likewise.
23520 * math/w_lgammal_r_compat.c: Likewise.
23521 * math/w_log10_compat.c: Likewise.
23522 * math/w_log10f_compat.c: Likewise.
23523 * math/w_log10l_compat.c: Likewise.
23524 * math/w_log2_compat.c: Likewise.
23525 * math/w_log2f_compat.c: Likewise.
23526 * math/w_log2l_compat.c: Likewise.
23527 * math/w_log_compat.c: Likewise.
23528 * math/w_logf_compat.c: Likewise.
23529 * math/w_logl_compat.c: Likewise.
23530 * math/w_pow_compat.c: Likewise.
23531 * math/w_powf_compat.c: Likewise.
23532 * math/w_powl_compat.c: Likewise.
23533 * math/w_remainder_compat.c: Likewise.
23534 * math/w_remainderf_compat.c: Likewise.
23535 * math/w_remainderl_compat.c: Likewise.
23536 * math/w_scalb_compat.c: Likewise.
23537 * math/w_scalbf_compat.c: Likewise.
23538 * math/w_scalbl_compat.c: Likewise.
23539 * math/w_sinh_compat.c: Likewise.
23540 * math/w_sinhf_compat.c: Likewise.
23541 * math/w_sinhl_compat.c: Likewise.
23542 * math/w_sqrt_compat.c: Likewise.
23543 * math/w_sqrtf_compat.c: Likewise.
23544 * math/w_sqrtl_compat.c: Likewise.
23545 * math/w_tgamma_compat.c: Likewise.
23546 * math/w_tgammaf_compat.c: Likewise.
23547 * math/w_tgammal_compat.c: Likewise.
23548 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
23549 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
23550 * sysdeps/ieee754/k_standard.c: Likewise.
23551 * sysdeps/ieee754/k_standardf.c: Likewise.
23552 * sysdeps/ieee754/k_standardl.c: Likewise.
23553 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
23554 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
23555 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
23556 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
23557 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
23558 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
23559 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
23560 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
23561 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
23562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
23563 Likewise.
23564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
23565 Likewise.
23566 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
23567 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
23568 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
23569 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
23570
23571 2017-08-21 Florian Weimer <fweimer@redhat.com>
23572
23573 [BZ #21864]
23574 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
23575 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
23576 Move before inclusion of ../Rules.
23577
23578 2017-08-21 Florian Weimer <fweimer@redhat.com>
23579
23580 [BZ #21972]
23581 * assert/assert.h (assert): Use static_cast (bool) for C++.
23582 Use the ternary operator in the warning branch for GNU C.
23583 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
23584 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
23585 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
23586 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
23587 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
23588
23589 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23590
23591 [BZ #18822]
23592 * sysdeps/unix/sysv/linux/x86_64/init-first.c
23593 (__syscall_clock_gettime): Add attribute_hidden.
23594 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
23595 (__start_context): Likewise.
23596
23597 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23598
23599 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
23600 building libc.a.
23601 (hidden_proto): Likewise.
23602 (hidden_tls_proto): Likewise.
23603 (__hidden_proto): Likewise.
23604
23605 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23606
23607 * include/libc-symbols.h (attribute_hidden): Enable hidden
23608 visibility in libc.a compiled with PIE.
23609
23610 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23611
23612 [BZ #18822]
23613 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
23614 Add attribute_hidden.
23615
23616 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23617
23618 [BZ #21864]
23619 * Makerules (all-nonlib): Add $(others-extras).
23620 * catgets/Makefile (others-extras): New.
23621 * elf/Makefile (others-extras): Likewise.
23622 * nss/Makefile (others-extras): Likewise.
23623
23624 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23625
23626 [BZ #18822]
23627 * csu/libc-start.c (__libc_multiple_libcs): Removed.
23628 * elf/dl-open.c: Include <libc-internal.h>.
23629 (__libc_multiple_libcs): Removed.
23630 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
23631 <hp-timing.h>.
23632 * include/libc-internal.h (__libc_multiple_libcs): New.
23633 * misc/sbrk.c: Include <libc-internal.h>.
23634 (__libc_multiple_libcs): Removed.
23635
23636 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
23637
23638 [BZ #18822]
23639 * grp/initgroups.c (__nss_group_database): Removed.
23640 (__nss_initgroups_database): Likewise.
23641 * nscd/gai.c (__nss_hosts_database): Likewise.
23642 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
23643 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
23644 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
23645 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
23646 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
23647 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
23648 attribute_hidden.
23649 * nss/nsswitch.c (__nss_database_custom): Define only if
23650 USE_NSCD is defined.
23651 (__nss_configure_lookup): Use __nss_database_custom only if
23652 USE_NSCD is defined.
23653 * nss/nsswitch.h (__nss_database_custom): Declare only if
23654 USE_NSCD is defined. Add attribute_hidden.
23655 (__nss_setent): Add attribute_hidden.
23656 (__nss_endent): Likewise.
23657 (__nss_getent_r): Likewise.
23658 (__nss_getent): Likewise.
23659 (DEFINE_DATABASE): Declare __nss_##arg##_database.
23660
23661 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23662
23663 [BZ #18822]
23664 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
23665 libc_hidden_proto and libc_hidden_def.
23666
23667 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23668
23669 [BZ #18822]
23670 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
23671 Add libc_hidden_proto.
23672 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
23673 Add libc_hidden_def.
23674
23675 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23676
23677 [BZ #21974]
23678 * gmon/Makefile (routines): Remove bb_init_func and
23679 bb_exit_func.
23680 (elide-routines.os): Removed.
23681 * gmon/bb_exit_func.c: Likewise.
23682 * gmon/bb_init_func.c: Likewise.
23683 * include/sys/gmon.h (__bb): Likewise.
23684 (__bb_init_func): Likewise.
23685 (__bb_exit_func): Likewise.
23686 * sysdeps/alpha/bb_init_func.S: Likewise.
23687
23688 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
23689
23690 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
23691 * include/setjmp.h (____longjmp_chk): Here. Add
23692 attribute_hidden.
23693
23694 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
23695
23696 [BZ #18822]
23697 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
23698 attribute_hidden.
23699 (__strspn_sse2): Likewise.
23700
23701 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23702
23703 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
23704 (close_not_cancel_no_status): Likewise.
23705 (__close_nocancel): New macro.
23706 (__close_nocancel_nostatus): Likewise.
23707 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
23708 macro.
23709 (close_not_cancel): Likewise.
23710 (close_not_cancel_no_status): Likewise.
23711 (__close_nocancel): New prototype.
23712 (__close_nocancel_nostatus): New function.
23713 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
23714 * catgets/open_catalog.c (__open_catalog): Replace
23715 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
23716 * gmon/gmon.c (write_gmon): Likewise.
23717 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
23718 * intl/loadmsgcat.c (close): Likewise.
23719 * io/ftw.c (open_dir_stream): Likewise.
23720 (ftw_startup): Likewise.
23721 * libio/fileops.c (_IO_file_open): Likewise.
23722 (_IO_file_close_mmap): Likewise.
23723 (_IO_file_close): Likewise.
23724 * libio/iopopen.c (_IO_dup2): Likewise.
23725 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
23726 * locale/loadlocale.c (_nl_load_locale): Likewise.
23727 * login/utmp_file.c (pututline_file): Likewise.
23728 (endutent_file): Likewise.
23729 * misc/daemon.c (daemon): Likewise.
23730 * nscd/nscd_getai.c (__nscd_getai): Likewise.
23731 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
23732 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
23733 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
23734 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
23735 * nscd/nscd_helper.c (open_socket): Likewise.
23736 (__nscd_open_socket): Likewise.
23737 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
23738 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
23739 (__nscd_innetgr): Likewise.
23740 * nss/nss_db/db-open.c (internal_setent): Likewise.
23741 * resolv/res-close.c (__res_iclose): Likewise.
23742 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
23743 * sysdeps/posix/closedir.c (__closedir): Likewise.
23744 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
23745 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
23746 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
23747 (opendir_tail): Likewise.
23748 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23749 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
23750 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
23751 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
23752 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23753 (gethostid): Likewise.
23754 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23755 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23756 Likewise.
23757 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
23758 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
23759 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23760 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23761 Likewise.
23762 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
23763 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
23764 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23765 Likewise.
23766 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
23767 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23768 Likewise.
23769 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23770 Likewise.
23771 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
23772 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23773 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23774 __close_nocancel.
23775
23776 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
23777 (openat_not_cancel_3): Likewise.
23778 (openat64_not_cancel_3): Likewise).
23779 (openat_not_cancel_3): Likewise).
23780 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
23781 macro.
23782 (openat_not_cancel_3): Likewise.
23783 (openat64_not_cancel): Likewise.
23784 (openat64_not_cancel_3): Likewise.
23785 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
23786 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
23787 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
23788 __open{64}_nocancel.
23789 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
23790 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
23791 * sysdeps/posix/opendir.c (__opendirat): Likewise.
23792
23793 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
23794
23795 [BZ #18822]
23796 * include/argz.h (__argz_create_sep): New function prototype.
23797 (__argz_append): Likewise.
23798 (__argz_add): Likewise.
23799 (__argz_add_sep): Likewise.
23800 (__argz_delete): Likewise.
23801 (__argz_insert): Likewise.
23802 (__argz_replace): Likewise.
23803 * string/argz.h (__argz_create_sep): Removed.
23804 (__argz_append): Likewise.
23805 (__argz_add): Likewise.
23806 (__argz_add_sep): Likewise.
23807 (__argz_delete): Likewise.
23808 (__argz_insert): Likewise.
23809 (__argz_replace): Likewise.
23810
23811 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
23812
23813 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
23814 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
23815 (GNU_PROPERTY_STACK_SIZE): Likewie.
23816 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
23817 (GNU_PROPERTY_LOPROC): Likewise.
23818 (GNU_PROPERTY_HIPROC): Likewise.
23819 (GNU_PROPERTY_LOUSER): Likewise.
23820 (GNU_PROPERTY_HIUSER): Likewise.
23821 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
23822 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
23823 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
23824 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
23825 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
23826 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
23827 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
23828 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
23829 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
23830 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
23831 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
23832 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
23833 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
23834 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
23835 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
23836 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
23837 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
23838 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
23839 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
23840 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
23841 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
23842 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
23843 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
23844
23845 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23846
23847 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
23848 in C++ mode.
23849
23850 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
23851
23852 [BZ #21930]
23853 * math/math.h (isinf): Check if in C or C++ mode before using
23854 __builtin_types_compatible_p, since this is a C mode feature.
23855
23856 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23857
23858 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
23859 (__write_nocancel): New macro.
23860 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
23861 Rewrite as a function prototype.
23862 (write_not_cancel): Remove macro.
23863 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
23864 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
23865 (write_gmon): Likewise.
23866 * libio/fileops.c (_IO_new_file_write): Likewise.
23867 * login/utmp_file.c (pututline_file): Likewise.
23868 (updwtmp_file): Likewise.
23869 * stdio-common/psiginfo.c (psiginfo): Likewise.
23870 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23871 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23872 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23873 Likewise.
23874 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23875 Likewise.
23876
23877 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
23878 (__read_nocancel): New macro.
23879 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23880 __read_nocancel.
23881 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
23882 macro.
23883 (__read_nocancel): New prototype.
23884 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
23885 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
23886 with __read_nocancel.
23887 * intl/loadmsgcat.c (read): Likewise.
23888 * libio/fileops.c (_IO_file_read): Likewise.
23889 * locale/loadlocale.c (_nl_load_locale): Likewise.
23890 * login/utmp_file.c (getutent_r_file): Likewise.
23891 (internal_getut_r): Likewise.
23892 (getutline_r_file): Likewise.
23893 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
23894 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
23895 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23896 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23897 Likewise.
23898 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
23899 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23900 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23901 Likewise.
23902 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23903 Likewise.
23904 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23905 Likewise.
23906 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23907 Likewise.
23908 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23909
23910 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
23911
23912 [BZ #21966]
23913 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
23914 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
23915 usable.
23916
23917 2017-08-17 DJ Delorie <dj@redhat.com>
23918
23919 * bug17079.c: Update to new test harness.
23920 * test-digits-dots.c: Likewise.
23921 * test-netdb.c: Likewise.
23922 * tst-field.c: Likewise.
23923 * tst-nss-getpwent.c: Likewise.
23924 * tst-nss-static.c: Likewise.
23925 * tst-nss-test1.c: Likewise.
23926 * tst-nss-test2.c: Likewise.
23927 * tst-nss-test3.c: Likewise.
23928 * tst-nss-test4.c: Likewise.
23929 * tst-nss-test5.c: Likewise.
23930
23931 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23932
23933 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
23934 (open_not_cancel_2): Likewise.
23935 (open_nocancel): New macro.
23936 (open64_nocancel): Likewise.
23937 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
23938 (open_not_cancel_2): Likewise.
23939 (__open_nocancel): New prototype.
23940 (__open64_nocancel): Likewise.
23941 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23942 __open_nocancel.
23943 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
23944 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
23945 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
23946 with __open_nocancel.
23947 * csu/check_fds.c (check_one_fd): Likewise.
23948 * gmon/gmon.c (write_gmon): Likewise.
23949 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
23950 * intl/loadmsgcat.c (open): Likewise.
23951 * libio/fileops.c (_IO_file_open): Likewise.
23952 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
23953 * locale/loadlocale.c (_nl_load_locale): Likewise.
23954 * login/utmp_file.c (setutent_file): Likewise.
23955 * misc/daemon.c (daemon): Likewise.
23956 * nss/nss_db/db-open.c (internal_setent): Likewise.
23957 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
23958 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
23959 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
23960 (__opendir): Likewise.
23961 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
23962 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
23963 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
23964 (gethostid): Likewise.
23965 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
23966 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
23967 Likewise.
23968 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
23969 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
23970 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
23971 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
23972 Likewise.
23973 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
23974 Likewise.
23975 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
23976 Likewise.
23977 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
23978 Likewise.
23979 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
23980 Likewise.
23981 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
23982 Likewise.
23983 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
23984 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
23985
23986 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
23987
23988 * benchtests/bench-skeleton.c (main): Add support for
23989 latency benchmarking.
23990 * benchtests/scripts/bench.py: Add support for latency benchmarking.
23991
23992 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
23993
23994 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
23995 the startup object.
23996
23997 2017-08-17 Florian Weimer <fweimer@redhat.com>
23998
23999 * include/sys/socket.h (__opensock): Remove internal_function.
24000 * socket/opensock.c (__opensock): Likewise.
24001 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
24002
24003 2017-08-16 Joseph Myers <joseph@codesourcery.com>
24004
24005 [BZ #21944]
24006 * signal/bits/types/__sigval_t.h: New file.
24007 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
24008 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
24009 and define sigval_t using __sigval_t.
24010 * include/bits/types/__sigval_t.h: New file.
24011 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
24012 instead of <bits/types/__sigval_t.h>.
24013 (struct sigevent): Use __sigval_t instead of sigval_t.
24014 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
24015 instead of <bits/types/__sigval_t.h>.
24016 (siginfo_t): Use __sigval_t instead of sigval_t.
24017 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
24018 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
24019 (struct sigevent): Use __sigval_t instead of sigval_t.
24020 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
24021 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
24022 (siginfo_t): Use __sigval_t instead of sigval_t.
24023 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
24024
24025 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
24026
24027 * NEWS: Remove "[Add new features here]" for 2.27.
24028
24029 2017-08-16 Joseph Myers <joseph@codesourcery.com>
24030
24031 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
24032 libc.so.
24033
24034 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
24035
24036 * NEWS: Mention x86-64 FMA optimization.
24037
24038 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
24039
24040 [BZ #21912]
24041 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24042 Add e_expf-fma.
24043 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
24044 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
24045 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
24046
24047 2017-08-16 Andreas Schwab <schwab@suse.de>
24048
24049 [BZ #16750]
24050 CVE-2009-5064
24051 * elf/ldd.bash.in: Never run file directly.
24052
24053 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
24054
24055 [BZ #21955]
24056 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
24057 (L(SP_INF_0)): Likewise.
24058
24059 2017-08-15 Florian Weimer <fweimer@redhat.com>
24060
24061 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
24062 run-built-tests.
24063
24064 2017-08-15 Florian Weimer <fweimer@redhat.com>
24065
24066 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
24067 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
24068 BROKEN_THREAD_SIGNALS code.
24069 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
24070 request_list): Remove caller_pid member used for
24071 BROKEN_THREAD_SIGNALS.
24072 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
24073 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
24074 Remove BROKEN_THREAD_SIGNALS support.
24075 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
24076 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
24077
24078 2017-08-15 Florian Weimer <fweimer@redhat.com>
24079
24080 * gmon/Makefile (tests): Add tst-gmon.
24081 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
24082 Set.
24083 (tests-special): Add tst-gmon-prof.out.
24084 (tst-gmon.out): Depend on clean-tst-gmon-data.
24085 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
24086 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
24087 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
24088 startup object.
24089 * aclocal.m4 (GPROF): Set and substitute.
24090 * config.amke.in (GPROF): Set.
24091 * configure: Regenerate.
24092
24093 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
24094
24095 * elf/elf.h A (NT_PPC_TAR): New macro.
24096 (NT_PPC_PPR): Likewise.
24097 (NT_PPC_DSCR): Likewise.
24098 (NT_PPC_EBB): Likewise.
24099 (NT_PPC_PMU): Likewise.
24100 (NT_PPC_TM_CGPR): Likewise.
24101 (NT_PPC_TM_CFPR): Likewise.
24102 (NT_PPC_TM_CVMX): Likewise.
24103 (NT_PPC_TM_CVSX): Likewise.
24104 (NT_PPC_TM_SPR): Likewise.
24105 (NT_PPC_TM_CTAR): Likewise.
24106 (NT_PPC_TM_CPPR): Likewise.
24107 (NT_PPC_TM_CDSCR): Likewise.
24108
24109 2017-08-15 Florian Weimer <fweimer@redhat.com>
24110
24111 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
24112 regparm (2) instead of internal_function.
24113 (_MCOUNT_DECL): Adjust.
24114
24115 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
24116
24117 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
24118 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
24119
24120 2017-08-14 Joseph Myers <joseph@codesourcery.com>
24121
24122 * conform/data/sys/wait.h-data (si_value): Do not expect for
24123 XPG42.
24124
24125 2017-08-14 Florian Weimer <fweimer@redhat.com>
24126
24127 [BZ #21962]
24128 NSS: Create stubs for accidentally exported lookup functions.
24129 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
24130 Remove declaration.
24131 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
24132 (ether_hostton): Call __nss_ethers_lookup2 instead.
24133 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
24134 (ether_ntohost): Call __nss_ethers_lookup2 instead.
24135 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
24136 (setup): Call __nss_netgroup_lookup2 instead.
24137 * nss/Makefile (routines): Add compat-lookup.
24138 * nss/Versions (GLIBC_2.27): Add symbol version.
24139 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
24140 (DB_COMPAT_FCT): Remove.
24141 * nss/compat-lookup.c: New file.
24142 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
24143 from databases.def.
24144 * nss/service-lookup.c (NO_COMPAT): Remove definition.
24145 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
24146 (netname2user): Call __nss_publickey_lookup2 instead.
24147 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
24148 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
24149 instead.
24150
24151 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24152 Sergei Trofimovich <slyfox@inbox.ru>
24153
24154 [BZ #21908]
24155 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
24156 Rename to MMAP2_PAGE_UNIT.
24157 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
24158 __OFF_T_MATCHES_OFF64_T is not defined.
24159 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
24160 uint64_t.
24161 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
24162 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
24163
24164 2017-08-14 Florian Weimer <fweimer@redhat.com>
24165
24166 i386: Do not set internal_function.
24167 * config.h.in (USE_REGPARMS, internal_function): Remove.
24168 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
24169 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
24170
24171 2017-08-14 Florian Weimer <fweimer@redhat.com>
24172
24173 * elf/dl-init.c (_dl_init): Remove internal_function.
24174 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
24175 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
24176
24177 2017-08-14 Florian Weimer <fweimer@redhat.com>
24178
24179 * elf/rtld.c (_dl_start): Remove internal_function.
24180 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
24181 _dl_start.
24182
24183 2017-08-14 Florian Weimer <fweimer@redhat.com>
24184
24185 * elf/dl-fini.c (_dl_fini): Remove internal_function
24186 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
24187
24188 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
24189
24190 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
24191 (bit_cpu_SHSTK): Likewise.
24192 (index_cpu_IBT): Likewise.
24193 (index_cpu_SHSTK): Likewise.
24194 (reg_IBT): Likewise.
24195 (reg_SHSTK): Likewise.
24196 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24197 Handle index_cpu_IBT and index_cpu_SHSTK.
24198
24199 2017-08-14 Mike FABIAN <mfabian@redhat.com>
24200
24201 [BZ #19982]
24202 * po/fr.po: Fix spelling mistake.
24203
24204 2017-08-13 Florian Weimer <fweimer@redhat.com>
24205
24206 * elf/dl-addr.c (_dl_addr): Remove internal_function.
24207 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
24208 (_dl_catch_error, _dl_receive_error): Likewise.
24209 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
24210 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
24211 (_dl_deallocate_tls): Likewise.
24212 * include/dlfcn.h (_dl_addr): Likewise.
24213 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
24214 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
24215 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
24216 Likewise.
24217
24218 2017-08-13 Florian Weimer <fweimer@redhat.com>
24219
24220 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
24221 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
24222 internal_function.
24223 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
24224
24225 2017-08-13 Florian Weimer <fweimer@redhat.com>
24226
24227 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
24228 internal_function.
24229 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
24230 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
24231 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
24232 internal_function from _dl_make_stack_executable_hook member.
24233 (_dl_make_stack_executable): Remove internal_function.
24234 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
24235 Likewise.
24236 * sysdeps/unix/sysv/linux/dl-execstack.c
24237 (_dl_make_stack_executable): Likewise.
24238
24239 2017-08-13 Florian Weimer <fweimer@redhat.com>
24240
24241 * sysdeps/unix/sysv/linux/netlinkaccess.h
24242 (__netlink_assert_response): Remove internal_function.
24243 * sysdeps/unix/sysv/linux/netlink_assert_response.c
24244 (__netlink_assert_response): Likewise.
24245
24246 2017-08-13 Florian Weimer <fweimer@redhat.com>
24247
24248 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
24249 internal_function.
24250 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
24251
24252 2017-08-13 Florian Weimer <fweimer@redhat.com>
24253
24254 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
24255 internal_function.
24256 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
24257 * inet/netgroup.h (__internal_setnetgrent)
24258 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
24259 * inet/getnetgrent_r.c (__internal_setnetgrent)
24260 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
24261 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
24262 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
24263 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
24264 * nss/nsswitch.h (db_lookup_function): Likewise.
24265
24266 2017-08-13 Florian Weimer <fweimer@redhat.com>
24267
24268 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
24269 Remove internal_function.
24270 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
24271 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
24272 message argument on the stack.
24273 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
24274 Likeweise.
24275
24276 2017-08-12 Mike FABIAN <mfabian@redhat.com>
24277
24278 Adapt test case data to the changes in the thousands
24279 separators.
24280
24281 [BZ #20756]
24282 * localedata/tst-langinfo.sh: Adapt test case data.
24283 * stdlib/tst-strfmon_l.c: Likewise.
24284 * stdlib/tst-strtod4.c: Likewise.
24285 * stdlib/tst-strtod5i.c: Likewise.
24286
24287 2017-08-11 Florian Weimer <fweimer@redhat.com>
24288
24289 [BZ #21242]
24290 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
24291 Suppress pedantic warning resulting from statement expression.
24292 (__ASSERT_FUNCTION): Add missing __extension__.
24293
24294 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
24295
24296 * benchtests/bench-memmove-large.c: Print output in JSON
24297 format.
24298 * benchtests/bench-memmove.c: Likewise.
24299
24300 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
24301 * benchtests/bench-memchr.c (do_one_test): Likewise.
24302 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
24303 * benchtests/bench-memcpy.c (do_one_test): Likewise.
24304 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
24305 * benchtests/bench-memmove.c (do_one_test): Likewise.
24306 * benchtests/bench-memset-large.c (do_one_test): Likewise.
24307 * benchtests/bench-memset.c (do_one_test): Likewise.
24308 * benchtests/bench-string.h (test_init): Remove memsets.
24309
24310 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
24311
24312 * manual/lang.texi
24313 (Computing the Width of an Integer Data Type): Rename section to
24314 "Width of an Integer Type". Remove inaccurate statement regarding
24315 lack of C language facilities for determining width of integer
24316 types, and reorder content to improve flow and context of
24317 discussion.
24318
24319 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
24320
24321 * lang.texi (va_copy): Change standard from ISO to C99.
24322 (__va_copy): Add standard and header annotation.
24323 Update description for clarity of origins and current use.
24324
24325 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
24326
24327 [BZ #21941]
24328 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
24329 xssqrtqp requires operands to be in Vector Registers
24330 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
24331 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
24332 (__ieee754_sqrtf128): Likewise.
24333
24334 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
24335
24336 * sysdeps/aarch64/memcmp.S (memcmp):
24337 Rewrite of optimized memcmp.
24338
24339 2017-08-10 Florian Weimer <fweimer@redhat.com>
24340
24341 Introduce ld.so exceptions.
24342 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
24343 (_dl_exception_create, _dl_exception_create_format)
24344 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
24345 (_dl_catch_exception): Declare.
24346 (_dl_catch_error): Update comment.
24347 * elf/dl-error-skeleton.c (struct catch): Replace objname,
24348 errstring, malloced members with exception member.
24349 (_dl_out_of_memory): Remove.
24350 (fatal_error): New function, extracted from _dl_signal_error.
24351 (_dl_signal_exception, _dl_signal_cexception): New functions.
24352 (_dl_signal_error): Call _dl_exception_create to allocate an
24353 exception object.
24354 (_dl_catch_exception): New function, based on _dl_catch_error.
24355 (_dl_catch_error): Implement using _dl_catch_exception.
24356 * elf/dl-exception.c: New file.
24357 * elf/Makefile (dl-routines): Add dl-exception.
24358 (elide-routines.os): Likewise.
24359 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
24360 _dl_exception_create_format, _dl_exception_free.
24361 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
24362 _dl_signal_exception.
24363 * elf/dl-lookup.c (make_string): Remove.
24364 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
24365 _dl_signal_cexception, _dl_exception_free.
24366 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
24367 _dl_signal_exception.
24368 * elf/dl-sym.c (do_sym): Likewise.
24369 * elf/dl-version.c (make_string): Remove.
24370 (match_symbol): Use _dl_exception_create_format,
24371 _dl_signal_cexception, _dl_exception_free.
24372 (_dl_check_map_versions): Likewise.
24373 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
24374 _dl_catch_exception.
24375 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
24376 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
24377 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
24378 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
24379 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
24380 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
24381 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
24382 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
24383 Likewise.
24384 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
24385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
24386 (ld.so): Likewise.
24387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
24388 (ld.so): Likewise.
24389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
24390 Likewise.
24391 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
24392 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
24393 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
24394 Likewise.
24395 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
24396 Likewise.
24397 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
24398
24399 2017-08-10 Florian Weimer <fweimer@redhat.com>
24400
24401 * inet/net-internal.h (__inet6_scopeid_pton): Remove
24402 attribute_hidden, internal_function.
24403 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
24404 internal_function.
24405
24406 2017-08-10 Florian Weimer <fweimer@redhat.com>
24407
24408 * malloc/malloc.c (get_max_fast): Reimplement as an inline
24409 function which calls __builtin_unreachable.
24410
24411 2017-08-10 Mike FABIAN <mfabian@redhat.com>
24412
24413 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
24414 Indian monetary formatting
24415 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
24416 test cases.
24417
24418 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
24419
24420 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
24421 Fix typo in comment.
24422
24423 [BZ #21928]
24424 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
24425 PTRACE_SEIZE_DEVEL): Remove.
24426 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
24427 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24428 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
24429 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
24430 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
24431
24432 2017-08-09 Joseph Myers <joseph@codesourcery.com>
24433
24434 * posix/bits/types.h (__qaddr_t): Remove.
24435
24436 [BZ #21457]
24437 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
24438 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24439 __glibc_reserved1.
24440 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
24441 (ucontext_t): Use __ctx with uc_flags.
24442 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
24443 (__ctxt): Likewise.
24444 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24445 __glibc_reserved1.
24446 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
24447 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24448 __glibc_reserved1.
24449 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
24450 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24451 __glibc_reserved1.
24452 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
24453 macro.
24454 (ucontext_t): Use __ctx with uc_flags.
24455 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
24456 (ucontext_t): Use __ctx with uc_flags.
24457 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
24458 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
24459 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
24460 (ucontext_t): Use __ctx with uc_flags.
24461 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
24462 undefine further down.
24463 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
24464 __glibc_reserved1.
24465 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
24466 undefine further down.
24467 (ucontext_t): Use __ctx with uc_flags.
24468 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
24469 undefine further down.
24470 (ucontext_t): Use __ctx with uc_flags.
24471 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
24472 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
24473 Rename uc_pad to __glibc_reserved1.
24474 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
24475 undefine further down.
24476 (ucontext_t): Use __ctx with uc_flags.
24477 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
24478 further down.
24479 (ucontext_t): Use __ctx with uc_flags.
24480 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
24481 __ctx with uc_flags.
24482 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
24483 (ucontext_t): Use __ctx with uc_flags.
24484 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
24485 __ctx with uc_flags.
24486
24487 2017-08-09 Florian Weimer <fweimer@redhat.com>
24488
24489 [BZ #21932]
24490 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
24491 before early return.
24492
24493 2017-08-09 Andreas Schwab <schwab@suse.de>
24494
24495 [BZ #21041]
24496 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
24497 renamed alias.
24498
24499 [BZ #21041]
24500 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
24501 tst-compat-forwarder.
24502 (modules-names): Add tst-compat-forwarder-mod.
24503 ($(objpfx)tst-compat-forwarder): Depend on
24504 $(objpfx)tst-compat-forwarder-mod.so.
24505 * nptl/tst-compat-forwarder.c: New file.
24506 * nptl/tst-compat-forwarder-mod.c: New file.
24507
24508 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
24509
24510 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
24511 comments.
24512
24513 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
24514 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24515 memcpy_falkor.
24516 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
24517 Bump.
24518 (__libc_ifunc_impl_list): Add __memcpy_falkor.
24519 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
24520 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
24521 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
24522 Add falkor.
24523 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
24524 New macro.
24525
24526 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24527
24528 [BZ #759]
24529 * manual/setjmp.texi (getcontex): Document uc_stack value
24530 compatibility differences.
24531
24532 2017-08-08 Joseph Myers <joseph@codesourcery.com>
24533
24534 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
24535 (old_malloc_hook): Likewise.
24536 (old_memalign_hook): Likewise.
24537 (old_realloc_hook): Likewise.
24538 (struct hdr): Likewise.
24539 (flood): Likewise.
24540 (freehook): Likewise.
24541 (mallochook): Likewise.
24542 (memalignhook): Likewise.
24543 (reallochook): Likewise.
24544 (mprobe): Likewise.
24545 * malloc/mtrace.c (mallwatch): Likewise.
24546 (tr_old_free_hook): Likewise.
24547 (tr_old_malloc_hook): Likewise.
24548 (tr_old_realloc_hook): Likewise.
24549 (tr_old_memalign_hook): Likewise.
24550 (tr_where): Likewise.
24551 (lock_and_info): Likewise.
24552 (tr_freehook): Likewise.
24553 (tr_mallochook): Likewise.
24554 (tr_reallochook): Likewise.
24555 (tr_memalignhook): Likewise.
24556 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
24557 * misc/mmap.c (__mmap): Likewise.
24558 * misc/mmap64.c (__mmap64): Likewise.
24559 * misc/mprotect.c (__mprotect): Likewise.
24560 * misc/msync.c (msync): Likewise.
24561 * misc/munmap.c (__munmap): Likewise.
24562 * posix/posix_madvise.c (posix_madvise): Likewise.
24563 * socket/send.c (__send): Likewise.
24564 * socket/sendto.c (__sendto): Likewise.
24565 * socket/setsockopt.c (__setsockopt): Likewise.
24566 * string/memcmp.c (__ptr_t): Remove macro.
24567 (MEMCMP): Use void * instead of ptr_t.
24568 * string/memrchr.c (__ptr_t): Remove macro.
24569 (__memrchr): Use void * instead of ptr_t.
24570 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
24571 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
24572 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
24573 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
24574 * sysdeps/mach/msync.c (msync): Likewise.
24575 * sysdeps/mach/munmap.c (__munmap): Likewise.
24576 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
24577 Likewise.
24578 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
24579 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
24580 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
24581 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
24582 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
24583 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
24584 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
24585 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
24586 Likewise.
24587 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
24588 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
24589 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
24590 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
24591 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
24592 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
24593 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
24594 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
24595 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
24596 Likewise.
24597 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
24598 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
24599 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
24600 (MEMCMP): Use void * instead of ptr_t.
24601 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
24602 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
24603
24604 2017-08-08 Florian Weimer <fweimer@redhat.com>
24605
24606 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
24607 return statement.
24608
24609 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
24610
24611 [BZ #21913]
24612 * csu/libc-tls.c: Include <startup.h> first.
24613 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
24614 * elf/dl-tunables.c: Include <startup.h> first.
24615 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
24616 * sysdeps/generic/startup.h: New file.
24617 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
24618 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
24619 (I386_USE_SYSENTER): New. Defined to 0.
24620
24621 2017-08-08 Andreas Schwab <schwab@suse.de>
24622
24623 [BZ #21041]
24624 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
24625 * nptl/pt-system.c (system): Likewise.
24626
24627 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24628
24629 [BZ #21780]
24630 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
24631 EOPNOTSUPP.
24632 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
24633 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
24634 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
24635 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
24636 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
24637 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
24638 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
24639
24640 2017-08-07 Joseph Myers <joseph@codesourcery.com>
24641
24642 [BZ #21899]
24643 * bits/sigaction.h (struct sigaction): Define sa_handler and
24644 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
24645 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24646 [__USE_XOPEN_EXTENDED].
24647 (SA_RESTART): Likewise.
24648 (SA_NODEFER): Likewise.
24649 (SA_RESETHAND): Likewise.
24650 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
24651 (struct sigaction): Define sa_handler and sa_sigaction using union
24652 also for [__USE_XOPEN_EXTENDED].
24653 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24654 [__USE_XOPEN_EXTENDED].
24655 (SA_RESTART): Likewise.
24656 (SA_NODEFER): Likewise.
24657 (SA_RESETHAND): Likewise.
24658 * sysdeps/unix/sysv/linux/bits/sigaction.h
24659 (struct sigaction): Define sa_handler and sa_sigaction using union
24660 also for [__USE_XOPEN_EXTENDED].
24661 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24662 [__USE_XOPEN_EXTENDED].
24663 (SA_RESTART): Likewise.
24664 (SA_NODEFER): Likewise.
24665 (SA_RESETHAND): Likewise.
24666 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
24667 (struct sigaction): Define sa_handler and sa_sigaction using union
24668 also for [__USE_XOPEN_EXTENDED].
24669 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24670 [__USE_XOPEN_EXTENDED].
24671 (SA_RESTART): Likewise.
24672 (SA_NODEFER): Likewise.
24673 (SA_RESETHAND): Likewise.
24674 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
24675 (struct sigaction): Define sa_handler and sa_sigaction using union
24676 also for [__USE_XOPEN_EXTENDED].
24677 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24678 [__USE_XOPEN_EXTENDED].
24679 (SA_RESTART): Likewise.
24680 (SA_NODEFER): Likewise.
24681 (SA_RESETHAND): Likewise.
24682 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
24683 (struct sigaction): Define sa_handler and sa_sigaction using union
24684 also for [__USE_XOPEN_EXTENDED].
24685 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24686 [__USE_XOPEN_EXTENDED].
24687 (SA_RESTART): Likewise.
24688 (SA_NODEFER): Likewise.
24689 (SA_RESETHAND): Likewise.
24690 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
24691 (struct sigaction): Define sa_handler and sa_sigaction using union
24692 also for [__USE_XOPEN_EXTENDED].
24693 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24694 [__USE_XOPEN_EXTENDED].
24695 (SA_RESTART): Likewise.
24696 (SA_NODEFER): Likewise.
24697 (SA_RESETHAND): Likewise.
24698 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
24699 (struct sigaction): Define sa_handler and sa_sigaction using union
24700 also for [__USE_XOPEN_EXTENDED].
24701 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24702 [__USE_XOPEN_EXTENDED].
24703 (SA_RESTART): Likewise.
24704 (SA_NODEFER): Likewise. Define directly rather than as alias.
24705 (SA_RESETHAND): Likewise.
24706 (SA_INTERRUPT): Define only for [__USE_MISC].
24707 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
24708 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
24709 [__USE_MISC].
24710 (SA_STACK): Define only for [__USE_MISC].
24711 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
24712 (struct sigaction): Define sa_handler and sa_sigaction using union
24713 also for [__USE_XOPEN_EXTENDED].
24714 (SA_ONSTACK): Change [__USE_UNIX98] condition to
24715 [__USE_XOPEN_EXTENDED].
24716 (SA_RESTART): Likewise.
24717 (SA_NODEFER): Likewise.
24718 (SA_RESETHAND): Likewise.
24719 (SA_NOPTRACE): Define only for [__USE_MISC].
24720
24721 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
24722 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
24723 (struct catalog_info): Likewise.
24724 * inet/htontest.c (lo): Likewise.
24725 (foo): Likewise.
24726 * inet/inet_lnaof.c (inet_lnaof): Likewise.
24727 * inet/inet_net.c (inet_network): Likewise.
24728 * inet/inet_netof.c (inet_netof): Likewise.
24729 * inet/rcmd.c (__ivaliduser): Likewise.
24730 (iruserok): Likewise.
24731 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
24732 * locale/programs/locale-spec.c (locale_special): Likewise.
24733 * nis/nis_findserv.c (struct findserv_req): Likewise.
24734 (__nis_findfastest_with_timeout): Likewise.
24735 * nss/test-netdb.c (test_network): Likewise.
24736 * resolv/inet_neta.c (inet_neta): Likewise.
24737 * resolv/ns_date.c (ns_datetosecs): Likewise.
24738 (SECS_PER_DAY): Likewise.
24739 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
24740 Likewise.
24741 * resolv/res_comp.c (__putlong): Likewise.
24742 (__putshort): Likewise.
24743 (_getlong): Likewise.
24744 (_getshort): Likewise.
24745 * resolv/res_debug.c (p_time): Likewise.
24746 (precsize_ntoa): Likewise.
24747 (precsize_aton): Likewise.
24748 (latlon2ul): Likewise.
24749 (loc_aton): Likewise.
24750 (loc_ntoa): Likewise.
24751 * resolv/res_hconf.c (struct netaddr): Likewise.
24752 (_res_hconf_reorder_addrs): Likewise.
24753 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
24754 (clnttcp_control): Likewise.
24755 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
24756 (clntudp_control): Likewise.
24757 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
24758 (clntunix_control): Likewise.
24759 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
24760 * sunrpc/rpc/auth.h (union des_block): Likewise.
24761 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
24762 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
24763 (xdrrec_create): Likewise.
24764 (xdrrec_endofrecord): Likewise.
24765 (flush_out): Likewise.
24766 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
24767 (xdrstdio_putlong): Likewise.
24768 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
24769 Likewise.
24770
24771 * misc/sys/cdefs.h (__long_double_t): Remove.
24772 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
24773 instead of __long_double_t,
24774 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
24775
24776 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
24777
24778 * benchtests/scripts/compare_strings.py: Avoid display error when
24779 running on a text terminal.
24780
24781 * benchtests/scripts/compare_strings.py (main): Add an
24782 optional -base option.
24783 (process_results): New argument base_func.
24784
24785 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
24786 hardcoding memcpy.
24787 * benchtests/bench-memcpy-large.c (test_name): Likewise.
24788 * benchtests/bench-memcpy-random.c (test_name): Likewise.
24789
24790 2017-08-07 Andreas Schwab <schwab@suse.de>
24791
24792 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
24793 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
24794 * intl/Makefile ($(objpfx)tst-gettext.out)
24795 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
24796 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
24797 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
24798 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
24799 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
24800 * posix/Makefile ($(objpfx)globtest.out)
24801 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
24802 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
24803 ($(objpfx)tst-printf.out): Likewise.
24804 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
24805 ($(objpfx)tst-setcontext3.out): Likewise.
24806
24807 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
24808
24809 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24810 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
24811 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
24812 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
24813 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
24814 and mptan-fma.
24815 (CFLAGS-doasin-fma.c): New.
24816 (CFLAGS-dosincos-fma.c): Likewise.
24817 (CFLAGS-e_asin-fma.c): Likewise.
24818 (CFLAGS-e_atan2-fma.c): Likewise.
24819 (CFLAGS-e_exp-fma.c): Likewise.
24820 (CFLAGS-e_log-fma.c): Likewise.
24821 (CFLAGS-e_pow-fma.c): Likewise.
24822 (CFLAGS-halfulp-fma.c): Likewise.
24823 (CFLAGS-mpa-fma.c): Likewise.
24824 (CFLAGS-mpatan-fma.c): Likewise.
24825 (CFLAGS-mpatan2-fma.c): Likewise.
24826 (CFLAGS-mpexp-fma.c): Likewise.
24827 (CFLAGS-mplog-fma.c): Likewise.
24828 (CFLAGS-mpsqrt-fma.c): Likewise.
24829 (CFLAGS-mptan-fma.c): Likewise.
24830 (CFLAGS-s_atan-fma.c): Likewise.
24831 (CFLAGS-sincos32-fma.c): Likewise.
24832 (CFLAGS-slowexp-fma.c): Likewise.
24833 (CFLAGS-slowpow-fma.c): Likewise.
24834 (CFLAGS-s_sin-fma.c): Likewise.
24835 (CFLAGS-s_tan-fma.c): Likewise.
24836 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
24837 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
24838 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
24839 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
24840 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
24841 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
24842 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
24843 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
24844 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
24845 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
24846 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
24847 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
24848 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
24849 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
24850 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
24851 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
24852 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
24853 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
24854 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
24855 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
24856 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
24857 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24858 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
24859 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
24860 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
24861 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
24862 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
24863 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
24864 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
24865 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
24866 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
24867
24868 2017-08-04 Joseph Myers <joseph@codesourcery.com>
24869
24870 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
24871 (min_of_type_f): New macro.
24872 (min_of_type_): Likewise.
24873 (min_of_type_l): Likewise.
24874 (min_of_type_f128): Likewise.
24875 (min_of_type): Define using __MATH_TG and taking an expression
24876 argument.
24877 (math_check_force_underflow): Pass expression instead of type to
24878 min_of_type.
24879 (math_check_force_underflow_nonneg): Likewise.
24880
24881 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
24882
24883 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
24884 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
24885 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
24886
24887 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
24888
24889 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
24890 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
24891 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
24892 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
24893 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
24894 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
24895 memcpy_chk-nonshared, mempcpy_chk-nonshared,
24896 memmove_chk-nonshared and memset_chk-nonshared
24897 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
24898 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
24899 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
24900 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
24901 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
24902 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
24903 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
24904 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
24905 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
24906 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
24907 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
24908 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
24909 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
24910 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
24911 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
24912 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
24913 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
24914 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
24915 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
24916 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
24917 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
24918 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
24919 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
24920 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
24921 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
24922 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
24923 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
24924 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
24925 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
24926 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
24927 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
24928 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
24929 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
24930 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
24931 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
24932 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
24933 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
24934 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
24935 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
24936 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
24937 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
24938 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
24939 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
24940 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
24941 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
24942 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
24943 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
24944 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
24945 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
24946 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
24947 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
24948 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
24949 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
24950 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
24951 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
24952 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
24953 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
24954 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
24955 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
24956 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
24957 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
24958 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
24959 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
24960 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
24961 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
24962 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
24963 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
24964 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
24965 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
24966 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
24967 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
24968 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24969 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24970 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24971 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24972 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24973 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24974 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24975 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24976 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24977 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24978 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24979 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24980 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24981 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
24982 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
24983 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
24984 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
24985 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24986 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24987 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24988 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24989 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24990 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
24991 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
24992 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
24993 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
24994 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
24995 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24996 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
24997 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24998 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24999 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
25000 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
25001 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
25002 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
25003 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
25004 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
25005
25006 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25007
25008 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
25009 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
25010 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
25011 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
25012 svml_d_log2_core-sse2, svml_d_log4_core-sse,
25013 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
25014 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
25015 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
25016 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
25017 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
25018 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
25019 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
25020 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
25021 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
25022 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
25023 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
25024 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
25025 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
25026 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
25027 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
25028 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
25029 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
25030 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
25031 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
25032 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
25033 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
25034 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
25035 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
25036 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
25037 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
25038 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
25039 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
25040 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
25041 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
25042 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
25043 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
25044 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
25045 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
25046 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
25047 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
25048 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
25049 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
25050 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
25051 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
25052 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
25053 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
25054 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
25055 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
25056 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
25057 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
25058 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
25059 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
25060 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
25061 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
25062 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
25063 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
25064 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
25065 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
25066 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
25067 ...
25068 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
25069 Don't include <sysdep.h> nor <init-arch.h>.
25070 (_ZGVbN2v_cos): Removed.
25071 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
25072 ...
25073 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
25074 Don't include <sysdep.h> nor <init-arch.h>.
25075 (_ZGVdN4v_cos): Removed.
25076 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
25077 ...
25078 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
25079 Don't include <sysdep.h> nor <init-arch.h>.
25080 (_ZGVeN8v_cos): Removed.
25081 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
25082 ...
25083 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
25084 Don't include <sysdep.h> nor <init-arch.h>.
25085 (_ZGVbN2v_exp): Removed.
25086 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
25087 ...
25088 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
25089 Don't include <sysdep.h> nor <init-arch.h>.
25090 (_ZGVdN4v_exp): Removed.
25091 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
25092 ...
25093 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
25094 Don't include <sysdep.h> nor <init-arch.h>.
25095 (_ZGVeN8v_exp): Removed.
25096 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
25097 ...
25098 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
25099 Don't include <sysdep.h> nor <init-arch.h>.
25100 (_ZGVbN2v_log): Removed.
25101 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
25102 ...
25103 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
25104 Don't include <sysdep.h> nor <init-arch.h>.
25105 (_ZGVdN4v_log): Removed.
25106 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
25107 ...
25108 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
25109 Don't include <sysdep.h> nor <init-arch.h>.
25110 (_ZGVeN8v_log): Removed.
25111 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
25112 ...
25113 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
25114 Don't include <sysdep.h> nor <init-arch.h>.
25115 (_ZGVbN2vv_pow): Removed.
25116 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
25117 ...
25118 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
25119 Don't include <sysdep.h> nor <init-arch.h>.
25120 (_ZGVdN4vv_pow): Removed.
25121 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
25122 ...
25123 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
25124 Don't include <sysdep.h> nor <init-arch.h>.
25125 (_ZGVeN8vv_pow): Removed.
25126 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
25127 ...
25128 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
25129 Don't include <sysdep.h> nor <init-arch.h>.
25130 (_ZGVbN2v_sin): Removed.
25131 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
25132 ...
25133 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
25134 Don't include <sysdep.h> nor <init-arch.h>.
25135 (_ZGVbN4v_sin): Removed.
25136 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
25137 ...
25138 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
25139 Don't include <sysdep.h> nor <init-arch.h>.
25140 (_ZGVbN8v_sin): Removed.
25141 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
25142 ...
25143 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
25144 Don't include <sysdep.h> nor <init-arch.h>.
25145 (_ZGVbN2vvv_sincos): Removed.
25146 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
25147 ...
25148 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
25149 Don't include <sysdep.h> nor <init-arch.h>.
25150 (_ZGVdN4vvv_sincos): Removed.
25151 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
25152 ...
25153 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
25154 Don't include <sysdep.h> nor <init-arch.h>.
25155 (_ZGVeN8vvv_sincos): Removed.
25156 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
25157 ...
25158 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
25159 Don't include <sysdep.h> nor <init-arch.h>.
25160 (_ZGVeN16v_cosf): Removed.
25161 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
25162 ...
25163 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
25164 Don't include <sysdep.h> nor <init-arch.h>.
25165 (_ZGVbN4v_cosf): Removed.
25166 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
25167 ...
25168 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
25169 Don't include <sysdep.h> nor <init-arch.h>.
25170 (_ZGVdN8v_cosf): Removed.
25171 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
25172 ...
25173 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
25174 Don't include <sysdep.h> nor <init-arch.h>.
25175 (_ZGVeN16v_expf): Removed.
25176 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
25177 ...
25178 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
25179 Don't include <sysdep.h> nor <init-arch.h>.
25180 (_ZGVbN4v_expf): Removed.
25181 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
25182 ...
25183 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
25184 Don't include <sysdep.h> nor <init-arch.h>.
25185 (_ZGVdN8v_expf): Removed.
25186 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
25187 ...
25188 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
25189 Don't include <sysdep.h> nor <init-arch.h>.
25190 (_ZGVeN16v_logf): Removed.
25191 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
25192 ...
25193 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
25194 Don't include <sysdep.h> nor <init-arch.h>.
25195 (_ZGVbN4v_logf): Removed.
25196 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
25197 ...
25198 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
25199 Don't include <sysdep.h> nor <init-arch.h>.
25200 (_ZGVdN8v_logf): Removed.
25201 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
25202 ...
25203 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
25204 Don't include <sysdep.h> nor <init-arch.h>.
25205 (_ZGVeN16vv_powf): Removed.
25206 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
25207 ...
25208 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
25209 Don't include <sysdep.h> nor <init-arch.h>.
25210 (_ZGVbN4vv_powf): Removed.
25211 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
25212 ...
25213 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
25214 Don't include <sysdep.h> nor <init-arch.h>.
25215 (_ZGVdN8vv_powf): Removed.
25216 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
25217 ...
25218 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
25219 Don't include <sysdep.h> nor <init-arch.h>.
25220 (_ZGVeN16vvv_sincosf): Removed.
25221 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
25222 ...
25223 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
25224 Don't include <sysdep.h> nor <init-arch.h>.
25225 (_ZGVbN4vvv_sincosf): Removed.
25226 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
25227 ...
25228 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
25229 Don't include <sysdep.h> nor <init-arch.h>.
25230 (_ZGVdN8vvv_sincosf): Removed.
25231 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
25232 ...
25233 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
25234 Don't include <sysdep.h> nor <init-arch.h>.
25235 (_ZGVeN16v_sinf): Removed.
25236 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
25237 ...
25238 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
25239 Don't include <sysdep.h> nor <init-arch.h>.
25240 (_ZGVbN4v_sinf): Removed.
25241 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
25242 ...
25243 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
25244 Don't include <sysdep.h> nor <init-arch.h>.
25245 (_ZGVdN8v_sinf): Removed.
25246
25247 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25248
25249 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25250 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
25251 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
25252 s_rint-sse4_1 and s_rintf-sse4_1.
25253 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
25254 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
25255 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
25256 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
25257 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
25258 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
25259 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
25260 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
25261 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
25262 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
25263 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
25264 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25265 (__ceil): Removed.
25266 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
25267 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
25268 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25269 (__ceilf): Removed.
25270 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
25271 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
25272 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25273 (__floor): Removed.
25274 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
25275 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
25276 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25277 (__floorf): Removed.
25278 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
25279 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
25280 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25281 (__nearbyint): Removed.
25282 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
25283 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
25284 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25285 (__nearbyintf): Removed.
25286 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
25287 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
25288 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25289 (__rint): Removed.
25290 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
25291 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
25292 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
25293 (__rintf): Removed.
25294
25295 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25296
25297 * sysdeps/i386/start.S (_start): Check Check PIC instead of
25298 SHARED. Avoid dynamic relocation against main in static PIE.
25299
25300 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25301
25302 [BZ #21815]
25303 * elf/Makefile (CFLAGS-tst-prelink.c): New.
25304 (LDFLAGS-tst-prelink): Likewise.
25305
25306 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25307
25308 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
25309 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
25310 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
25311 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
25312 (INTERNAL_SYSCALL_NCS): Likewise.
25313 (LOADARGS_1): Likewise.
25314 (LOADARGS_5): Likewise.
25315 (RESTOREARGS_1): Likewise.
25316 (RESTOREARGS_5): Likewise.
25317
25318 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25319
25320 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
25321 (MEMPCPY_SYMBOL): Likewise.
25322 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
25323 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
25324 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
25325 in libc.a.
25326 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
25327 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
25328 Likewise.
25329 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
25330 (__hidden_ver1): Don't use in libc.a.
25331 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
25332 (__mempcpy): Don't create a weak alias in libc.a.
25333 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
25334 libc.a.
25335 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
25336 (__hidden_ver1): Don't use in libc.a.
25337
25338 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25339
25340 * config.make.in (have-insert): New.
25341 * configure.ac (libc_cv_insert): New. Set to yes if linker
25342 supports INSERT in linker script.
25343 (AC_SUBST(libc_cv_insert): New.
25344 * configure: Regenerated.
25345 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
25346 if $(have-insert) == yes.
25347
25348 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25349
25350 * elf/Makefile (tests): Add vismain only if
25351 $(have-protected-data) == yes.
25352 (tests-pie): Likewise.
25353
25354 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25355
25356 [BZ #21871]
25357 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
25358 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
25359
25360 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
25361
25362 [BZ #21790]
25363 * sysdeps/i386/i586/memset.S
25364 (__memset_zero_constant_len_parameter): Removed.
25365 * sysdeps/i386/i686/memset.S
25366 (__memset_zero_constant_len_parameter): Likewise.
25367 * sysdeps/i386/i686/multiarch/memset_chk.S
25368 (__memset_zero_constant_len_parameter): Likewise.
25369 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
25370 Likewise.
25371
25372 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
25373
25374 * stdlib/getentropy.c (getentropy): Change return type to int.
25375
25376 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
25377
25378 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
25379
25380 2017-08-03 Joseph Myers <joseph@codesourcery.com>
25381
25382 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
25383 u_intN_t.
25384 * math/s_nexttowardf.c (__nexttowardf): Likewise.
25385 * sysdeps/generic/math_private.h (ieee_double_shape_type):
25386 Likewise.
25387 (ieee_float_shape_type): Likewise.
25388 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
25389 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
25390 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
25391 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25392 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25393 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
25394 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
25395 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
25396 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
25397 Likewise.
25398 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
25399 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25400 (__ieee754_yn): Likewise.
25401 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
25402 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
25403 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
25404 Likewise.
25405 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25406 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
25407 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
25408 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
25409 (__erfc): Likewise.
25410 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
25411 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
25412 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
25413 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
25414 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
25415 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
25416 Likewise.
25417 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25418 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
25419 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25420 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
25421 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
25422 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
25423 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
25424 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
25425 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
25426 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
25427 (__issignaling): Likewise.
25428 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
25429 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
25430 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25431 Likewise.
25432 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25433 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
25434 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
25435 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
25436 Likewise.
25437 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
25438 Likewise.
25439 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
25440 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
25441 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
25442 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
25443 (__erfcf): Likewise.
25444 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
25445 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25446 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
25447 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
25448 Likewise.
25449 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
25450 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
25451 Likewise.
25452 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25453 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
25454 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25455 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
25456 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
25457 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
25458 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
25459 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
25460 Likewise.
25461 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
25462 Likewise.
25463 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
25464 Likewise.
25465 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
25466 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25467 Likewise.
25468 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
25469 Likewise.
25470 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25471 (__ieee754_ynl): Likewise.
25472 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
25473 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
25474 Likewise.
25475 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
25476 Likewise.
25477 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
25478 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
25479 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
25480 Likewise.
25481 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
25482 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
25483 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
25484 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
25485 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
25486 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25487 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
25488 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
25489 Likewise.
25490 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
25491 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
25492 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
25493 Likewise.
25494 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
25495 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
25496 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25497 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
25498 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
25499 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
25500 Likewise.
25501 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
25502 Likewise.
25503 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
25504 Likewise.
25505 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
25506 Likewise.
25507 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
25508 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
25509 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25510 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
25511 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
25512 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
25513 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
25514 Likewise.
25515 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25516 Likewise.
25517 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
25518 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
25519 Likewise.
25520 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
25521 (__ieee754_remainderl): Likewise.
25522 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
25523 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25524 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
25525 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
25526 Likewise.
25527 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
25528 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25529 Likewise.
25530 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
25531 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
25532 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25533 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25534 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
25535 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25536 Likewise.
25537 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
25538 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
25539 (__ieee754_y0l): Likewise.
25540 (pzero): Likewise.
25541 (qzero): Likewise.
25542 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
25543 (__ieee754_y1l): Likewise.
25544 (pone): Likewise.
25545 (qone): Likewise.
25546 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25547 (__ieee754_ynl): Likewise.
25548 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
25549 (__ieee754_lgammal_r): Likewise.
25550 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
25551 Likewise.
25552 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25553 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
25554 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25555 (__erfcl): Likewise.
25556 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
25557 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
25558 Likewise.
25559 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
25560 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
25561 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25562 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
25563 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
25564 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
25565 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25566 Likewise.
25567 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
25568 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
25569 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
25570 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
25571 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25572 Likewise.
25573 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
25574 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
25575 Likewise.
25576 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
25577 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
25578 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
25579 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
25580 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
25581
25582 2017-08-03 Florian Weimer <fweimer@redhat.com>
25583
25584 [BZ #21885]
25585 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
25586 on memory allocation failure.
25587
25588 2017-08-03 Alan Modra <amodra@gmail.com>
25589
25590 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
25591 tst-tlsopt-powerpc.c with function name change and no test harness.
25592 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
25593 Call tls_get_addr_opt_test.
25594 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
25595 (modules-names): Add mod-tlsopt-powerpc.
25596 (mod-tlsopt-powerpc.so-no-z-defs): Define.
25597 (tst-tlsopt-powerpc): Depend on .so.
25598 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
25599 define. Expand use in TLS_GD and TLS_LD.
25600
25601 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
25602
25603 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
25604 function.
25605 * sysdeps/posix/shm_open.c: Include <pthread.h>.
25606
25607 2017-08-02 Joseph Myers <joseph@codesourcery.com>
25608
25609 [BZ #21686]
25610 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
25611 comparing size with that of double.
25612 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25613 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25614 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
25615 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25616 (__TGMATH_BINARY_REAL_IMAG): Likewise.
25617 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
25618 unsigned __int128 types.
25619
25620 2017-08-02 Steve Ellcey <sellcey@cavium.com>
25621
25622 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
25623 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
25624 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
25625 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
25626 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
25627
25628 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
25629
25630 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
25631
25632 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
25633
25634 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
25635 of SHARED.
25636 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
25637 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
25638 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
25639 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
25640 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
25641 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
25642 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
25643
25644 2017-08-02 Joseph Myers <joseph@codesourcery.com>
25645
25646 [BZ #21685]
25647 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
25648 bit-field expressions passed to sizeof or typeof.
25649 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25650 (__TGMATH_F128): Likewise.
25651 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25652 (__TGMATH_CF128): Likewise.
25653 (__TGMATH_UNARY_REAL_ONLY): Likewise.
25654 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
25655 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
25656 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
25657 (__TGMATH_BINARY_REAL_ONLY): Likewise.
25658 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
25659 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
25660 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
25661 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
25662 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
25663 (__TGMATH_UNARY_REAL_IMAG): Likewise.
25664 (__TGMATH_UNARY_IMAG): Likewise.
25665 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
25666 (__TGMATH_BINARY_REAL_IMAG): Likewise.
25667 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
25668 type.
25669 (define_vars_for_type): Handle bit_field type specially.
25670 (Tests.__init__): Declare structure with bit-field element.
25671
25672 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
25673
25674 [BZ #21791]
25675 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
25676 (MEMCPY_CHK): Define only if SHARED is defined.
25677 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
25678 Likewise.
25679 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
25680 Likewise.
25681
25682 See ChangeLog.18 for earlier changes.